gmyb: Operating system name and version: ubuntu 12.04.5 lts
Version of smsd: 3.1.15
Smsd installed from: apt-get
Name and model of a modem / phone: ZTE
Interface: serial / USB / some adapter...
Hi all,
I have a problem, maybe someone can help me.
I have two gsm modems connected to usb port:
^X^Croot@sms:/etc/udev/rules.d# lsusb
Bus 001 Device 002: ID 19d2:2003 ZTE WCDMA Technologies MSM
Bus 001 Device 003: ID 19d2:0017 ZTE WCDMA Technologies MSM
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
And the rules:
root@sms:/etc/udev/rules.d# nano usb.rules
GNU nano 2.2.6 File: usb.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0017", SYMLINK+="tty096040173"
SUBSYSTEM=="tty", ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2003", SYMLINK+="tty096583920"
My smsd.conf:
# Global configuration
devices = modem1, modem2
loglevel = 5
# logfiles
stats = /var/log/sms/stats
logfile = /var/log/sms/smsd.log
# Default queue directory = /var/spool/sms
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
# do not set report folder, let status report files saved in incoming
#report = /var/spool/sms/report
delaytime = 2
errorsleeptime = 10
blocktime = 180
autosplit = 3
#receive_before_send = yes
# Queue configurations
[queues]
modem1 = /var/spool/sms/modem1
modem2 = /var/spool/sms/modem2
# Modem configurations
# Modem name: modem1
# Modem type: modem negro movistar
[modem1]
#init = AT+CNMI=2,2,0,1,0;+CMEE=1
device = /dev/tty096040173
baudrate = 115200
incoming = yes
report = yes
queues = modem1
# Modem name: modem2
# Modem type: modem blanco movistar 4G
[modem2]
#init = AT+CNMI=2,2,0,1,0;+CMEE=1
device = /dev/tty096583920
baudrate = 115200
incoming = yes
report = yes
queues = modem2
Sometimes work both modems, in other works only one, and as I show below does not work any , this varies every time i restart the computer.
Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.13.0-86-generic i686)
Your Hardware Enablement Stack (HWE) is supported until April 2017.
Last login: Wed Jun 8 10:14:11 2016 from 152.156.242.49
secadmin@sms:~$ su root
2016-06-08 10:19:27,2, smsd: Smsd v3.1.15 started.
2016-06-08 10:19:27,2, smsd: Running as root:root.
2016-06-08 10:19:27,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-06-08 10:19:27,5, smsd: Outgoing file checker has started. PID: 3209.
2016-06-08 10:19:27,5, modem2: Modem handler 1 has started. PID: 3212.
2016-06-08 10:19:27,5, modem1: Modem handler 0 has started. PID: 3211.
2016-06-08 10:19:27,5, modem2: Using check_memory_method 1: CPMS is used.
2016-06-08 10:19:27,5, modem1: Using check_memory_method 1: CPMS is used.
2016-06-08 10:21:29,3, modem1: Modem is not ready to answer commands (Timeouts: 0)
2016-06-08 10:21:29,3, modem2: Modem is not ready to answer commands (Timeouts: 0)
Sometimes even one modem1(in this case) is available after a short time...
2016-06-08 10:21:29,3, modem2: Modem is not ready to answer commands (Timeouts: 0)
2016-06-08 10:23:32,3, modem2: Modem is not ready to answer commands (Timeouts: 0)
2016-06-08 10:23:32,3, modem1: Modem is not ready to answer commands (Timeouts: 0)
2016-06-08 10:25:36,3, modem1: Modem is not ready to answer commands (Timeouts: 0)
2016-06-08 10:25:36,3, modem2: Modem is not ready to answer commands (Timeouts: 0)
2016-06-08 10:27:21,5, modem1: CGSN: 866948015706362
2016-06-08 10:27:21,5, modem1: IMSI: 748100005413502
2016-06-08 10:27:39,3, modem2: Modem is not ready to answer commands (Timeouts: 0)
2016-06-08 10:29:43,3, modem2: Modem is not ready to answer commands (Timeouts: 0)
2016-06-08 10:31:47,3, modem2: Modem is not ready to answer commands (Timeouts: 0)
If i test connections with minicom terminal, only work modem that is registered, for example modem1 at above example.
Can you help me?
Thanks
|