Majestry: Yours modem is not register in network, according to logs. Wait about 20-30 seconds and check logs again. Also, take a look on my config, especially on init values
I have the same model, and it perfectly works with SMS and 3G connection in parallel (of course, on different usbTTY). My conig:
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
stats = /var/log/smstools/smsd_stats
logfile = /var/log/smstools/modemname.log
loglevel = 1
delaytime = 5
receive_before_send = no
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
autosplit = 3
# store_received_pdu 0=no, 1=unsupported, 2=unsupported and 8bit, 3=all
store_received_pdu = 0
internal_combine = no
executable_check=no
eventhandler=python3 /opt/smshandlerscript/smshandler.py
[GSM1]
init = AT+CPMS="ME";+CNMI=2,0,0,2,1
device = /dev/ttyUSB2
incoming = yes
check_memory_method=3
baudrate = 19200
report = disabled
memory_start = 0
report_device_details = no
And here are logs:
2019-02-27 21:30:41,6, GSM1: Initializing modem
2019-02-27 21:30:41,7, GSM1: -> AT+CPMS="ME";+CNMI=2,0,0,2,1
2019-02-27 21:30:41,7, GSM1: Command is sent, waiting for the answer. (10)
2019-02-27 21:30:41,7, GSM1: <- +CPMS: 0,20,0,20,0,20 OK
2019-02-27 21:30:41,7, GSM1: -> AT+CSQ
2019-02-27 21:30:41,7, GSM1: Command is sent, waiting for the answer. (10)
2019-02-27 21:30:41,7, GSM1: <- +CSQ: 15,99 OK
2019-02-27 21:30:41,6, GSM1: Signal Strength Indicator: (15,99) -83 dBm (Good), Bit Error Rate: not known or not detectable
2019-02-27 21:30:41,6, GSM1: Checking if Modem is registered to the network
2019-02-27 21:30:41,7, GSM1: -> AT+CREG?
2019-02-27 21:30:41,7, GSM1: Command is sent, waiting for the answer. (10)
2019-02-27 21:30:41,7, GSM1: <- +CREG: 2,1,"0016","0019D7F5" OK
2019-02-27 21:30:41,6, GSM1: Modem is registered to the network
2019-02-27 21:30:41,6, GSM1: Selecting PDU mode
2019-02-27 21:30:41,7, GSM1: -> AT+CMGF=0
2019-02-27 21:30:41,7, GSM1: Command is sent, waiting for the answer. (5)
2019-02-27 21:30:41,7, GSM1: <- OK
2019-02-27 21:30:41,6, GSM1: Checking memory size
2019-02-27 21:30:41,7, GSM1: -> AT+CMGL=4
2019-02-27 21:30:41,7, GSM1: Command is sent, waiting for the answer. (60)
2019-02-27 21:30:42,7, GSM1: <- OK
2019-02-27 21:30:42,6, GSM1: Used memory is 0
2019-02-27 21:30:42,6, GSM1: No SMS received
|