3.1.21:
Smsd installed from sources
Huawei e3531
Interface : USB
Good morning everyone !
Once I reboot my raspberry; this is what I can find in the smsd logs :
And this never stops.
In order to have the modem responding to commands, I have to manually unplug it and plug it again.
Once I unplugged and plugged again the modem, and restart smsd; it works fine.
This situation is a bit annoying for me, since I would like the setup to be able to recover on its own.
I use one raspberry, which is connected to a sitecom USB hub.
The sitecom USB Hub is connected to the power also; in order for the modem to receive the proper energy it needs.
The Huawei modem is connected to the sitecom USB Hub.
Raspbery > USB Hub > Huawei e3531
I have a file which turns the device into "huawei" under /dev, and smstools is connecting to this one.
/etc/udev/rules.d/99-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", SYMLINK+="huawei"
SUBSYSTEM=="tty", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", SYMLINK+="huawei"
'smsdconf' Syntax Highlight powered by GeSHi
I am suspecting that scripts and services are not launching in the correct order, which could maybe explains that the modem does not answer.
But that's just a theory; I am not sure what is wrong.
I am not sure where to start in order to troubleshoot this problem.
I was wondering if maybe you had a hint ?
Here is my smsd config :
#Main config
devices = MODEM1
loglevel = 7
# logfiles
stats = /var/log/sms/stats
logfile = /var/log/sms/smsd.log
#All alarms will trigger script alarm_handler.sh
alarmhandler=/root/raspnode/alarm_handler.py
#All new sms status will trigger event_handler.py script
eventhandler=/root/raspnode/event_handler.py
incoming_utf8 = yes
# 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
# report folder
report = /var/spool/sms/report
delaytime = 2
errorsleeptime = 10
blocktime = 180
autosplit = 3
#receive_before_send = yes
incoming_utf8 = yes
[queues]
MODEM1=/var/spool/sms/gsm1-1
# Modems configurations
[MODEM1]
queues=MODEM1
device = /dev/huawei
read_timeout = 15
#HUAWEI E3531
init = AT+CNMI=2,0,0,2,1
incoming = yes
check_sim=yes
report = yes
pin = xxxx
decode_unicode_text = yes
cs_convert = yes
pinsleeptime = 2
#350 sms per days max
message_limit = 320
message_count_clear = 1450
#report = yes
#For development purpose :
modem_disabled = no
#report_device_details = yes
#routed_status_report_cnma = yes
primary_memory = SM
devices = MODEM1
loglevel = 7
# logfiles
stats = /var/log/sms/stats
logfile = /var/log/sms/smsd.log
#All alarms will trigger script alarm_handler.sh
alarmhandler=/root/raspnode/alarm_handler.py
#All new sms status will trigger event_handler.py script
eventhandler=/root/raspnode/event_handler.py
incoming_utf8 = yes
# 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
# report folder
report = /var/spool/sms/report
delaytime = 2
errorsleeptime = 10
blocktime = 180
autosplit = 3
#receive_before_send = yes
incoming_utf8 = yes
[queues]
MODEM1=/var/spool/sms/gsm1-1
# Modems configurations
[MODEM1]
queues=MODEM1
device = /dev/huawei
read_timeout = 15
#HUAWEI E3531
init = AT+CNMI=2,0,0,2,1
incoming = yes
check_sim=yes
report = yes
pin = xxxx
decode_unicode_text = yes
cs_convert = yes
pinsleeptime = 2
#350 sms per days max
message_limit = 320
message_count_clear = 1450
#report = yes
#For development purpose :
modem_disabled = no
#report_device_details = yes
#routed_status_report_cnma = yes
primary_memory = SM
Thank you in advance for your help !!
Cheers
Biboubier