Greg57330: Hello sinai,
Did you get the report receipt working ?
I've exactly the same 3G USB Modem (D-Link DWM-157) and get the same issue.
My Config : (ttyUSB start USB2 to USB5 for my modem)
devices = GSM1
outgoing = /var/spool/sms/outgoing
incoming = /var/spool/sms/incoming
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
report = /var/spool/sms/reports
logfile = /var/log/smstools/smsd.log
stats = /var/log/smstools/smsd_stats
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
store_received_pdu = 3
store_sent_pdu = 3
loglevel = 7
receive_before_send = yes
autosplit = 3
validity = 255
[GSM1]
start = AT+CFUN=1
init = AT+CNMI=2,0,0,1,0
device = /dev/ttyUSB2
mode = new
routed_status_report_cnma = no
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
report = yes
incoming = 2
baudrate = 115200
primary_memory = SM
secondary_memory = ME
2017-10-29 23:25:04,5, smsd: SMS To: XXXXXXXXXXX. Moved file /var/spool/sms/outgoing/test to /var/spool/sms/checked
2017-10-29 23:25:04,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/test
2017-10-29 23:25:04,6, GSM1: Checking device for incoming SMS
2017-10-29 23:25:04,6, GSM1: Checking if modem is ready
2017-10-29 23:25:04,7, GSM1: -> AT
2017-10-29 23:25:04,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:04,7, GSM1: <- OK
2017-10-29 23:25:04,6, GSM1: Pre-initializing modem
2017-10-29 23:25:04,7, GSM1: -> ATE0
2017-10-29 23:25:04,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:04,7, GSM1: <- OK
2017-10-29 23:25:04,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-10-29 23:25:04,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:04,7, GSM1: <- OK
2017-10-29 23:25:04,6, GSM1: Initializing modem
2017-10-29 23:25:04,7, GSM1: -> AT+CNMI=2,0,0,1,0
2017-10-29 23:25:04,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:04,7, GSM1: <- OK
2017-10-29 23:25:04,7, GSM1: -> AT+CSQ
2017-10-29 23:25:04,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:04,7, GSM1: <- +CSQ: 14, 99 OK
2017-10-29 23:25:04,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-10-29 23:25:04,6, GSM1: Checking if Modem is registered to the network
2017-10-29 23:25:05,7, GSM1: -> AT+CREG?
2017-10-29 23:25:05,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:05,7, GSM1: <- +CREG: 2,1,"0820","0005C6E3",6 OK
2017-10-29 23:25:05,6, GSM1: Modem is registered to the network
2017-10-29 23:25:05,6, GSM1: Selecting PDU mode
2017-10-29 23:25:05,7, GSM1: -> AT+CMGF=0
2017-10-29 23:25:05,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:05,7, GSM1: <- OK
2017-10-29 23:25:05,6, GSM1: Checking memory size
2017-10-29 23:25:05,7, GSM1: -> AT+CPMS?
2017-10-29 23:25:05,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:05,7, GSM1: <- +CPMS: "SM", 0, 50, "SM", 0, 50, "SM", 0, 50 OK
2017-10-29 23:25:05,6, GSM1: Used memory is 0 of 50
2017-10-29 23:25:05,6, GSM1: No SMS received
2017-10-29 23:25:05,6, GSM1: Sending SMS from to XXXXXXXXXXX
2017-10-29 23:25:05,6, GSM1: Checking if modem is ready
2017-10-29 23:25:05,7, GSM1: -> AT
2017-10-29 23:25:05,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:05,7, GSM1: <- OK
2017-10-29 23:25:05,6, GSM1: Pre-initializing modem
2017-10-29 23:25:05,7, GSM1: -> ATE0
2017-10-29 23:25:05,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:05,7, GSM1: <- OK
2017-10-29 23:25:05,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-10-29 23:25:05,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:05,7, GSM1: <- OK
2017-10-29 23:25:05,6, GSM1: Initializing modem
2017-10-29 23:25:05,7, GSM1: -> AT+CNMI=2,0,0,1,0
2017-10-29 23:25:05,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:05,7, GSM1: <- OK
2017-10-29 23:25:05,7, GSM1: -> AT+CSQ
2017-10-29 23:25:05,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:05,7, GSM1: <- +CSQ: 14, 99 OK
2017-10-29 23:25:05,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-10-29 23:25:05,6, GSM1: Checking if Modem is registered to the network
2017-10-29 23:25:06,7, GSM1: -> AT+CREG?
2017-10-29 23:25:06,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:06,7, GSM1: <- +CREG: 2,1,"0820","0005C6E3",6 OK
2017-10-29 23:25:06,6, GSM1: Modem is registered to the network
2017-10-29 23:25:06,6, GSM1: Selecting PDU mode
2017-10-29 23:25:06,7, GSM1: -> AT+CMGF=0
2017-10-29 23:25:06,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:06,7, GSM1: <- OK
2017-10-29 23:25:06,7, GSM1: -> AT+CMGS=38
2017-10-29 23:25:06,7, GSM1: Command is sent, waiting for the answer. (10)
2017-10-29 23:25:06,7, GSM1: <- >
2017-10-29 23:25:06,7, GSM1: -> 0031000B91XXXXXXXXXXF80000FF1BC8329BFD061DE5E5330B347EB7DB65371D340E83EC61D00F
2017-10-29 23:25:06,7, GSM1: Command is sent, waiting for the answer. (60)
2017-10-29 23:25:07,7, GSM1: <- +CMGS: 23 OK
2017-10-29 23:25:07,5, GSM1: SMS sent, Message_id: 23, To: XXXXXXXXXXX, sending time 2 sec.
2017-10-29 23:25:07,6, GSM1: SMS To: XXXXXXXXXXX. Moved file /var/spool/sms/checked/test to /var/spool/sms/sent/test
2017-10-29 23:25:07,6, GSM1: Checking device for incoming SMS
2017-10-29 23:25:07,6, GSM1: Checking memory size
2017-10-29 23:25:07,7, GSM1: -> AT+CPMS?
2017-10-29 23:25:07,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:07,7, GSM1: <- +CPMS: "SM", 0, 50, "SM", 0, 50, "SM", 0, 50 OK
2017-10-29 23:25:07,6, GSM1: Used memory is 0 of 50
2017-10-29 23:25:07,6, GSM1: Changing memory
2017-10-29 23:25:08,7, GSM1: -> AT+CPMS="ME"
2017-10-29 23:25:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:08,7, GSM1: <- +CPMS: 0, 50, 0, 50, 0, 50 OK
2017-10-29 23:25:08,6, GSM1: Checking memory size
2017-10-29 23:25:08,7, GSM1: -> AT+CPMS?
2017-10-29 23:25:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:08,7, GSM1: <- +CPMS: "ME", 0, 50, "SM", 0, 50, "SM", 0, 50 OK
2017-10-29 23:25:08,6, GSM1: Used memory is 0 of 50
2017-10-29 23:25:08,6, GSM1: Changing memory
2017-10-29 23:25:08,7, GSM1: -> AT+CPMS="SM"
2017-10-29 23:25:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:08,7, GSM1: <- +CPMS: 0, 50, 0, 50, 0, 50 OK
2017-10-29 23:25:08,6, GSM1: No SMS received
2017-10-29 23:25:08,6, GSM1: Checking device for incoming SMS
2017-10-29 23:25:08,6, GSM1: Checking memory size
2017-10-29 23:25:08,7, GSM1: -> AT+CPMS?
2017-10-29 23:25:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:08,7, GSM1: <- +CPMS: "SM", 0, 50, "SM", 0, 50, "SM", 0, 50 OK
2017-10-29 23:25:08,6, GSM1: Used memory is 0 of 50
2017-10-29 23:25:08,6, GSM1: Changing memory
2017-10-29 23:25:08,7, GSM1: -> AT+CPMS="ME"
2017-10-29 23:25:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:08,7, GSM1: <- +CPMS: 0, 50, 0, 50, 0, 50 OK
2017-10-29 23:25:08,6, GSM1: Checking memory size
2017-10-29 23:25:08,7, GSM1: -> AT+CPMS?
2017-10-29 23:25:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:08,7, GSM1: <- +CPMS: "ME", 0, 50, "SM", 0, 50, "SM", 0, 50 OK
2017-10-29 23:25:08,6, GSM1: Used memory is 0 of 50
2017-10-29 23:25:08,6, GSM1: Changing memory
2017-10-29 23:25:08,7, GSM1: -> AT+CPMS="SM"
2017-10-29 23:25:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-10-29 23:25:08,7, GSM1: <- +CPMS: 0, 50, 0, 50, 0, 50 OK
2017-10-29 23:25:08,6, GSM1: No SMS received
Thanks in advance for your help :)
Best regards,
Grégory
|