Keywords: Mode: All keywords (AND) |
Fri May 04, 2012 19:37
|
ZeiP: Thanks! The only thing required was installing package usb-modeswitch and then reconnecting the device, after that I got the correct device to show up.
I dumped the correct configuration on the sample setup forum, so that other people don't need to look for confirmation on functionality and exact config :) Keke, many thanks for the prompt and helpful replies!
|
Fri May 04, 2012 19:34
|
ZeiP: I succeeded in configuring a Huawei E180 (which is reported by lsusb as ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem) for receiving SMS's on Debian 6, and since there was so little documentation of that exact device I decided to share it with you here, even though it really requires nothing too special.
Smstools config:
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
[GSM1]
init = AT
device = /dev/ttyUSB0
incoming = yes
pin = 0000
report = yes
In addition, it seems that the device presents itself as a mass storage device and only secondarily as a modem. This is why you also need to install the package usb-modeswitch, and after that (re-)connect your device and (re-)start the sms service with the command
# /etc/init.d/smstools restart
That was actually it, it seems to be working for me. Hope it's useful for you.
|
Thu May 03, 2012 22:11
|
ZeiP: The dmesg reply is
[ 2598.493019] usb 1-4: new high speed USB device using ehci_hcd and address 5
[ 2598.627349] usb 1-4: New USB device found, idVendor=12d1, idProduct=1446
[ 2598.627355] usb 1-4: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 2598.627359] usb 1-4: Product: HUAWEI Mobile
[ 2598.627363] usb 1-4: Manufacturer: HUAWEI Technology
[ 2598.627524] usb 1-4: configuration #1 chosen from 1 choice
[ 2598.629509] scsi6 : SCSI emulation for USB Mass Storage devices
[ 2598.629758] usb-storage: device found at 5
[ 2598.629762] usb-storage: waiting for device to settle before scanning
[ 2598.629802] scsi7 : SCSI emulation for USB Mass Storage devices
[ 2598.630172] usb-storage: device found at 5
[ 2598.630176] usb-storage: waiting for device to settle before scanning
[ 2603.632528] usb-storage: device scan complete
[ 2603.633126] usb-storage: device scan complete
[ 2603.633392] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 2603.634572] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 2603.637745] sr0: scsi-1 drive
[ 2603.637922] sr 6:0:0:0: Attached scsi CD-ROM sr0
[ 2603.638043] sr 6:0:0:0: Attached scsi generic sg2 type 5
[ 2603.640412] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 2603.644170] sd 7:0:0:0: [sdc] Attached SCSI removable disk
Does this mean that the modem functionality isn't recognised at all?
|
Thu May 03, 2012 22:00
|
ZeiP: Yeah, I was wondering about that... There are no ttyUSBx ports there, only /dev/ttyS0 and /dev/ttyS1. When I tried modprobe -v usbserial for the device, I got two more (ttyS2 and ttyS3), which give an Input/output error when I try to socat them – for the two first ports (ttyS0 and ttyS1) I can socat but they don't seem to reply anything. Am I doing something wrong here or should there be a reply when I do ”sudo socat - /dev/ttyS0” and enter ”AT[enter]” to the prompt?
|
Thu May 03, 2012 21:03
|
ZeiP: Operating system name and version: Debian 6
Version of smsd: Version 3.1.11
Smsd installed from: Package repository (smstools 3.1.11-1)
Name and model of a modem / phone: Huawei E180 (reported by lsusb as E1552)
Interface: USB
I'm trying to receive / send SMS's, but for some reason it seems that although smstools detects the message, it doesn't do anything to deliver it – I'm not sure how to interpret the log. Can someone tell me what might be wrong in my configuration / what's going on with smstools? It seems that PIN code etc. should be correct (and actually they are, because inserting the modem in my laptop it works fine with the given PIN code – on laptop I'm not using any sms tools though, just networkmanager.)
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
loglevel = 7
receive_before_send = no
autosplit = 3
[GSM1]
report_device_details = yes
#init = AT^CURC=0
#init = AT+CPMS="ME","ME","ME"
init = AT^CURC=0
# init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
device = /dev/ttyS0
incoming = yes
#queues = OTHER
pin = 0000
check_memory_method=1
baudrate = 9600
report = yes
2012-05-04 00:05:11,2, smsd: Smsd v3.1.11 started.
2012-05-04 00:05:11,2, smsd: Running as smsd:dialout.
2012-05-04 00:05:11,7, smsd: Running startup_check (shell): /tmp/smsd_script.dmBK6N /tmp/smsd_data.cD6apR
2012-05-04 00:05:11,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2012-05-04 00:05:11,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2012-05-04 00:05:11,5, smsd: Outgoing file checker has started. PID: 4626.
2012-05-04 00:05:11,5, GSM1: Modem handler 0 has started. PID: 4627.
2012-05-04 00:05:11,5, GSM1: Using check_memory_method 1: CPMS is used.
2012-05-04 00:05:11,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/viesti.txt
2012-05-04 00:05:11,6, GSM1: Sending SMS from to 35850xxxxxxx
2012-05-04 00:05:11,6, GSM1: Checking if modem is ready
2012-05-04 00:05:11,7, GSM1: -> AT
Edit: Replaced the log text with a new one, there was another issue with the previous.
|