Operating system name and version: Debian 8.0
Version of smsd: 3.1.15
Smsd installed from: package repository
Name and model of a modem / phone: Huawei E3372h-153
Interface: USB
Hello all!
Please, help me to configure this device on Debian. I plug it, then use 'usb_modeswitch' to re-configure it as modem, not disk device. As I see using 'lsusb' modem is now working as modem, with another id. And using 'cat /proc/net/dev' - i see that new ethernet-interface was added.
In /dev i see 4 new devices ttyS0, ttyS1, ttyS2, ttyS3.
Then i install smstools 3.1.15 using apt-get.
/etc/smsd.conf:
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]
# init =
device = /dev/ttyS0
# incoming = yes
#pin =
baudrate = 115200
I tried to restart server, to plug-unplug modem, various things... The smsd.log is always say something like:
2017-05-16 15:49:49,2, smsd: Smsd v3.1.15 started.
2017-05-16 15:49:49,2, smsd: Running as smsd:dialout.
2017-05-16 15:49:49,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.28w9Pi /tmp/smsd_data.auvw7P
2017-05-16 15:49:49,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2017-05-16 15:49:49,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2017-05-16 15:49:49,5, smsd: Outgoing file checker has started. PID: 4161.
2017-05-16 15:49:49,7, smsd: All PID's: 4161,4162
2017-05-16 15:49:49,5, GSM1: Modem handler 0 has started. PID: 4162. Will only send messages.
2017-05-16 15:49:49,6, GSM1: Checking if modem is ready
2017-05-16 15:49:49,7, GSM1: -> AT
2017-05-16 15:50:59,5, smsd: Moved file /var/spool/sms/outgoing/sms1 to /var/spool/sms/checked
2017-05-16 15:50:59,7, GSM1: Command is sent, waiting for the answer
2017-05-16 15:51:04,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 1.
2017-05-16 15:51:04,7, GSM1: <-
2017-05-16 15:51:05,7, GSM1: ->
2017-05-16 15:58:31,7, GSM1: Command is sent, waiting for the answer
2017-05-16 15:58:31,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 4161.
2017-05-16 15:58:31,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 2.
2017-05-16 15:58:31,7, GSM1: <-
2017-05-16 15:58:31,2, GSM1: Failed to initialize modem GSM1. Stopping.
2017-05-16 15:59:01,2, GSM1: Modem handler 0 terminated. PID: 4162, was started 17-05-16 15:49:49.
I understand modem can't be initialized, but don't understand why.
Thanks in advance for any help!