|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Tue Jul 01, 2025 04:10 |
Page: 1
Keywords: Mode: All keywords (AND) |
Mon Oct 30, 2017 06:39
|
sinai: Hello Greg57330,
I am not receiving delivery reports anymore. Because my employer said it does not need delivery report for speeding up the SMS sending!!
Furthermore if you want to receive delivery report I think you should set CNMI correctly, as keke said. I think the CNMI is related to the SIM card operator! For example, in Iran we have two cell phone operators; MTN and MCI. At first I was using MTN and I set the CNMI = 1,0,0,1,0 and I could get delivery reports. But when I changed the sim card to the 2nd operator I could not get any delivery reports. I think you should find the correct CNMI related to the used operator.
I have another experience in using D-Link modem. It is related to the GSM ports (ttyUSB0,..,ttyUSB4). If I want to check the balance of the sim card, I have to send the AT command via the port ttyUSB0 and get the result from the port ttyUSB1!! Here's my smsd.conf:
devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
sent = /var/spool/sms/sent
failed = /var/spool/sms/failed
store_received_pdu = 3
report = /var/spool/sms/report
store_sent_pdu = 3
stats = /var/spool/sms/stats
[queues]
GSM1 = /var/spool/sms/queue/GSM1-QUEUE
[GSM1]
pin = ignore
report_device_details = yes
routed_status_report_cnma = no
report = yes
init = AT+CNMI = 1,0,0,1,0
device = /dev/ttyUSB0
incoming = high
baudrate = 9600
primary_memory = SM
secondary_memory = ME
read_timeout = 2
regular_run_logfile = /var/log/smsd_regular_run.log
regular_run_interval = 180
regular_run = /var/spool/sms/regular_run/Pre_USSD_Recharge_GSM1.py
regular_run_post_run = /var/spool/sms/regular_run/Post_USSD_Recharge_GSM1.py
regular_run_cmdfile = /var/spool/sms/regular_run/USSD_CODE_GSM1.cmdfile
queues=GSM1
|
Mon Oct 02, 2017 07:07
|
sinai: Operating system name and version: Ubuntu 16.04
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem / phone: D-Link DWM-157
Interface: serial USB
Hi there. I am using smstools3 for sending SMS and USSD codes. It is working well. But I want to speed up sending the SMSs. Now it takes an average of 2 seconds to send one sms. As a test, I filled the sms queue with 4 SMSs. It took 8 seconds to send all the SMSs. I want to send a SMS within 1 second or even less by using smstools3. Is there anyway to reach this speed in smstools?
Moreover, does inactive the SMS receive, increase the rate of sending? If yes, how can I configure it in smstools?
Thanks in advanced.
|
Sat Sep 23, 2017 10:29
|
sinai: Operating system name and version: Ubuntu 16.04
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem / phone: D-Link DWM-157
Interface: USB
How to send multi line SMS with smstools3?
when I use sendsms I can only send one line smss!!
I wonder to know can I send multiline smss with smstools3? and if yes how is the format of the sms file?
sendsms +98phone_number
Text: this is
--
Text: this is
To: +98phone_number
Thanks in advanced.
|
Thu Sep 21, 2017 04:41
|
sinai: I did some more tests. I think I should send the USSD code via /dev/ttyUSB0 and receive the result from /dev/ttyUSB1!! The problem is that how can I make use of this behavior in smstools?? I mean how can I use both ports in smstools3 to send and receive the result of the USSD codes?
Dear Keke, Do you have any idea for the above issue?
Thanks.
|
Sun Sep 17, 2017 11:49
|
sinai: I did some more tests. I think I should send the USSD code via /dev/ttyUSB0 and receive the result from /dev/ttyUSB1!! The problem is that how can I make use of this behavior in smstools?? I mean how can I use both ports in smstools3 to send and receive the result of the USSD codes?
|
Sun Sep 17, 2017 04:42
|
sinai: Here's the output of wvdialconf:
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7
Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15
Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23
Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- MTK2
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- ATQ0 E1 Z
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- Q0 V1 E
ttyUSB1<*1>: ATQ0 V1 E1 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- MOLY.WR8.W1244.DNR.WG.MP.V7
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 &C1 &D2 +FCLASS=0 -- ATQ0 V1 2 +FCLAS
ttyUSB1<*1>: failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 &C1 &D2 +FCLASS=0"
It seems there are two ports ttyUSB0 and ttyUSB1.
I checked both ports with miniterm.py. The output of port ttyUSB0 is as follows:
AT
OK
at+cusd=1, "*140*11#"
OK
and there is no correct output!! And for port ttyUSB1 I cannot send any AT commands and I get error.
|
Sat Sep 16, 2017 19:35
|
sinai: Operating system name and version: Ubuntu 16.04
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem / phone: D-link
Interface: serial / USB
devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
sent = /var/spool/sms/sent
store_received_pdu = 3
report = /var/spool/sms/report
store_sent_pdu = 3
stats = /var/spool/sms/stats
[queues]
GSM1 = /var/spool/sms/queue/GSM-QUEUE1
[GSM1]
report_device_details = yes
routed_status_report_cnma = no
report = yes
init = AT+CNMI = 1,0,0,1,0
device = /dev/ttyUSB0
incoming = high
baudrate = 9600
primary_memory = SM
secondary_memory = ME
regular_run_interval = 30
regular_run = /var/spool/sms/regular_run/GSM1.sh
regular_run_cmdfile = /var/spool/sms/regular_run/GSM1.cmdfile
queues=GSM1
When I send the ussd code to retrieve the balance of my credit, I get the following error:
2017-09-16 23:56:36,6, GSM1: Running a regular_run (PRE_RUN)
2017-09-16 23:56:36,7, GSM1: Running regular_run (modem): /var/spool/sms/regular_run/GSM1.sh PRE_RUN "" GSM1
2017-09-16 23:56:36,7, GSM1: Done: regular_run (modem), execution time 0 sec., status: 0 (0)
2017-09-16 23:56:36,7, GSM1: -> AT+CUSD=1,"*140*11#"
2017-09-16 23:56:36,7, GSM1: Command is sent, waiting for the answer. (15)
2017-09-16 23:56:52,7, GSM1: Incorrect answer, put_command expected (\+CUSD:.*",)|(ERROR), timeout occurred. 1.
2017-09-16 23:56:52,7, GSM1: <- OK
2017-09-16 23:56:52,5, GSM1: CMD: AT+CUSD=1,"*140*11#": OK
|
Thu Sep 07, 2017 15:21
|
sinai: I used the international format and the problem is solved.
Thank you.
|
Thu Sep 07, 2017 09:13
|
sinai:
Operating system name and version: Ubuntu 16.04
Version of smsd: Version 3.1.21
Smsd installed from: sources
Name and model of a modem / phone: D-Link DWM-157
Interface: USB
The smsd.conf if as follows:
devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
sent = /var/spool/sms/sent
store_received_pdu = 3
report = /var/spool/sms/report
store_sent_pdu = 3
stats = /var/spool/sms/stats
[queues]
GSM1 = /var/spool/sms/queue/GSM-QUEUE1
[GSM1]
report_device_details = yes
#routed_status_report_cnma = no
#report = yes
init = AT+CNMI=1,0,0,1,0
device = /dev/ttyUSB0
incoming = high
baudrate = 115200
primary_memory = SM
secondary_memory = ME
queues=GSM1
I cannot send sms with smstools3. I get the following error:
2017-09-07 09:34:45,6, GSM1: Checking if modem is ready
2017-09-07 09:34:45,7, GSM1: -> AT
2017-09-07 09:34:45,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:45,7, GSM1: <- OK
2017-09-07 09:34:45,6, GSM1: Pre-initializing modem
2017-09-07 09:34:45,7, GSM1: -> ATE0
2017-09-07 09:34:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:45,7, GSM1: <- OK
2017-09-07 09:34:45,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:34:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:45,7, GSM1: <- OK
2017-09-07 09:34:45,6, GSM1: Initializing modem
2017-09-07 09:34:45,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:34:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:46,7, GSM1: <- OK
2017-09-07 09:34:46,7, GSM1: -> AT+CSQ
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:46,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:34:46,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:34:46,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:34:46,7, GSM1: -> AT+CREG?
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:46,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:34:46,6, GSM1: Modem is registered to the network
2017-09-07 09:34:46,6, GSM1: Selecting PDU mode
2017-09-07 09:34:46,7, GSM1: -> AT+CMGF=0
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- OK
2017-09-07 09:34:46,6, GSM1: Checking memory size
2017-09-07 09:34:46,7, GSM1: -> AT+CPMS?
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- +CPMS: "SM", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:34:46,6, GSM1: Used memory is 0 of 50
2017-09-07 09:34:46,6, GSM1: Changing memory
2017-09-07 09:34:46,7, GSM1: -> AT+CPMS="ME"
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:34:46,6, GSM1: Checking memory size
2017-09-07 09:34:46,7, GSM1: -> AT+CPMS?
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- +CPMS: "ME", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:34:46,6, GSM1: Used memory is 0 of 50
2017-09-07 09:34:46,6, GSM1: Changing memory
2017-09-07 09:34:46,7, GSM1: -> AT+CPMS="SM"
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:34:46,6, GSM1: No SMS received
2017-09-07 09:34:56,6, GSM1: Checking device for incoming SMS
2017-09-07 09:34:56,6, GSM1: Checking if modem is ready
2017-09-07 09:34:56,7, GSM1: -> AT
2017-09-07 09:34:56,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,6, GSM1: Pre-initializing modem
2017-09-07 09:34:57,7, GSM1: -> ATE0
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,6, GSM1: Initializing modem
2017-09-07 09:34:57,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,7, GSM1: -> AT+CSQ
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:34:57,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:34:57,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:34:57,7, GSM1: -> AT+CREG?
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:34:57,6, GSM1: Modem is registered to the network
2017-09-07 09:34:57,6, GSM1: Selecting PDU mode
2017-09-07 09:34:57,7, GSM1: -> AT+CMGF=0
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,6, GSM1: Checking memory size
2017-09-07 09:34:57,7, GSM1: -> AT+CPMS?
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:57,7, GSM1: <- +CPMS: "SM", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:34:57,6, GSM1: Used memory is 0 of 50
2017-09-07 09:34:57,6, GSM1: Changing memory
2017-09-07 09:34:57,7, GSM1: -> AT+CPMS="ME"
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:57,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:34:57,6, GSM1: Checking memory size
2017-09-07 09:34:58,7, GSM1: -> AT+CPMS?
2017-09-07 09:34:58,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:58,7, GSM1: <- +CPMS: "ME", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:34:58,6, GSM1: Used memory is 0 of 50
2017-09-07 09:34:58,6, GSM1: Changing memory
2017-09-07 09:34:58,7, GSM1: -> AT+CPMS="SM"
2017-09-07 09:34:58,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:58,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:34:58,6, GSM1: No SMS received
2017-09-07 09:35:08,6, GSM1: Checking device for incoming SMS
2017-09-07 09:35:08,6, GSM1: Checking if modem is ready
2017-09-07 09:35:08,7, GSM1: -> AT
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:08,7, GSM1: <- OK
2017-09-07 09:35:08,6, GSM1: Pre-initializing modem
2017-09-07 09:35:08,7, GSM1: -> ATE0
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- OK
2017-09-07 09:35:08,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- OK
2017-09-07 09:35:08,6, GSM1: Initializing modem
2017-09-07 09:35:08,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- OK
2017-09-07 09:35:08,7, GSM1: -> AT+CSQ
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:35:08,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:35:08,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:35:08,7, GSM1: -> AT+CREG?
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:35:08,6, GSM1: Modem is registered to the network
2017-09-07 09:35:08,6, GSM1: Selecting PDU mode
2017-09-07 09:35:09,7, GSM1: -> AT+CMGF=0
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- OK
2017-09-07 09:35:09,6, GSM1: Checking memory size
2017-09-07 09:35:09,7, GSM1: -> AT+CPMS?
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- +CPMS: "SM", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:35:09,6, GSM1: Used memory is 0 of 50
2017-09-07 09:35:09,6, GSM1: Changing memory
2017-09-07 09:35:09,7, GSM1: -> AT+CPMS="ME"
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:35:09,6, GSM1: Checking memory size
2017-09-07 09:35:09,7, GSM1: -> AT+CPMS?
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- +CPMS: "ME", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:35:09,6, GSM1: Used memory is 0 of 50
2017-09-07 09:35:09,6, GSM1: Changing memory
2017-09-07 09:35:09,7, GSM1: -> AT+CPMS="SM"
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:35:09,6, GSM1: No SMS received
2017-09-07 09:35:18,5, smsd: SMS To: 09361967512. Moved file /var/spool/sms/outgoing/send_vuNaAd to /var/spool/sms/queue/GSM-QUEUE1
2017-09-07 09:35:18,6, GSM1: I have to send 1 short message for /var/spool/sms/queue/GSM-QUEUE1/send_vuNaAd
2017-09-07 09:35:18,6, GSM1: Sending SMS from to 09361967512
2017-09-07 09:35:18,6, GSM1: Checking if modem is ready
2017-09-07 09:35:18,7, GSM1: -> AT
2017-09-07 09:35:18,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:18,7, GSM1: <- OK
2017-09-07 09:35:18,6, GSM1: Pre-initializing modem
2017-09-07 09:35:18,7, GSM1: -> ATE0
2017-09-07 09:35:18,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:18,7, GSM1: <- OK
2017-09-07 09:35:18,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:35:18,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- OK
2017-09-07 09:35:19,6, GSM1: Initializing modem
2017-09-07 09:35:19,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- OK
2017-09-07 09:35:19,7, GSM1: -> AT+CSQ
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:35:19,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:35:19,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:35:19,7, GSM1: -> AT+CREG?
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:35:19,6, GSM1: Modem is registered to the network
2017-09-07 09:35:19,6, GSM1: Selecting PDU mode
2017-09-07 09:35:19,7, GSM1: -> AT+CMGF=0
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:19,7, GSM1: <- OK
2017-09-07 09:35:19,7, GSM1: -> AT+CMGS=21
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- >
2017-09-07 09:35:19,7, GSM1: -> 0011000B919063917615F20000FF07F4F29C1E93CD00
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (60)
2017-09-07 09:35:20,7, GSM1: <- +CMS ERROR: 21 (Short message transfer rejected)
2017-09-07 09:35:20,3, GSM1: The modem answer was not OK: +CMS ERROR: 21 (Short message transfer rejected)
2017-09-07 09:35:20,5, GSM1: Waiting 10 sec. before retrying
2017-09-07 09:35:30,6, GSM1: Checking if modem is ready
2017-09-07 09:35:30,7, GSM1: -> AT
2017-09-07 09:35:30,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:30,7, GSM1: <- OK
2017-09-07 09:35:30,6, GSM1: Pre-initializing modem
2017-09-07 09:35:30,7, GSM1: -> ATE0
2017-09-07 09:35:30,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:30,7, GSM1: <- OK
2017-09-07 09:35:31,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- OK
2017-09-07 09:35:31,6, GSM1: Initializing modem
2017-09-07 09:35:31,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- OK
2017-09-07 09:35:31,7, GSM1: -> AT+CSQ
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:35:31,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:35:31,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:35:31,7, GSM1: -> AT+CREG?
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:35:31,6, GSM1: Modem is registered to the network
2017-09-07 09:35:31,6, GSM1: Selecting PDU mode
2017-09-07 09:35:31,7, GSM1: -> AT+CMGF=0
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:31,7, GSM1: <- OK
2017-09-07 09:35:31,7, GSM1: -> AT+CMGS=21
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- >
2017-09-07 09:35:31,7, GSM1: -> 0011000B919063917615F20000FF07F4F29C1E93CD00
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (60)
2017-09-07 09:35:32,7, GSM1: <- +CMS ERROR: 21 (Short message transfer rejected)
2017-09-07 09:35:32,3, GSM1: The modem answer was not OK: +CMS ERROR: 21 (Short message transfer rejected)
2017-09-07 09:35:32,5, GSM1: Waiting 10 sec. before retrying
May you please help me in this issue?
I think the problem is with this at command: AT+CMGF=0
When I use miniterm.py when I set AT+CMGF=0 I get ERROR after sending SMS. but When I set AT+CMGF=1 the modem sends the SMS. How can I set AT+CMGF=1 in smstools3?
|
Thu Sep 07, 2017 05:31
|
sinai: Operating system name and version: Ubuntu 16.04
Version of smsd: Version 3.1.21
Smsd installed from: sources
Name and model of a modem / phone: D-Link DWM-157
Interface: USB
The smsd.conf if as follows:
devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
sent = /var/spool/sms/sent
store_received_pdu = 3
report = /var/spool/sms/report
store_sent_pdu = 3
stats = /var/spool/sms/stats
[queues]
GSM1 = /var/spool/sms/queue/GSM-QUEUE1
[GSM1]
report_device_details = yes
#routed_status_report_cnma = no
#report = yes
init = AT+CNMI=1,0,0,1,0
device = /dev/ttyUSB0
incoming = high
baudrate = 115200
primary_memory = SM
secondary_memory = ME
queues=GSM1
I cannot send sms with smstools3. I get the following error:
2017-09-07 09:34:45,6, GSM1: Checking if modem is ready
2017-09-07 09:34:45,7, GSM1: -> AT
2017-09-07 09:34:45,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:45,7, GSM1: <- OK
2017-09-07 09:34:45,6, GSM1: Pre-initializing modem
2017-09-07 09:34:45,7, GSM1: -> ATE0
2017-09-07 09:34:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:45,7, GSM1: <- OK
2017-09-07 09:34:45,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:34:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:45,7, GSM1: <- OK
2017-09-07 09:34:45,6, GSM1: Initializing modem
2017-09-07 09:34:45,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:34:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:46,7, GSM1: <- OK
2017-09-07 09:34:46,7, GSM1: -> AT+CSQ
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:46,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:34:46,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:34:46,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:34:46,7, GSM1: -> AT+CREG?
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:46,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:34:46,6, GSM1: Modem is registered to the network
2017-09-07 09:34:46,6, GSM1: Selecting PDU mode
2017-09-07 09:34:46,7, GSM1: -> AT+CMGF=0
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- OK
2017-09-07 09:34:46,6, GSM1: Checking memory size
2017-09-07 09:34:46,7, GSM1: -> AT+CPMS?
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- +CPMS: "SM", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:34:46,6, GSM1: Used memory is 0 of 50
2017-09-07 09:34:46,6, GSM1: Changing memory
2017-09-07 09:34:46,7, GSM1: -> AT+CPMS="ME"
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:34:46,6, GSM1: Checking memory size
2017-09-07 09:34:46,7, GSM1: -> AT+CPMS?
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- +CPMS: "ME", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:34:46,6, GSM1: Used memory is 0 of 50
2017-09-07 09:34:46,6, GSM1: Changing memory
2017-09-07 09:34:46,7, GSM1: -> AT+CPMS="SM"
2017-09-07 09:34:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:46,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:34:46,6, GSM1: No SMS received
2017-09-07 09:34:56,6, GSM1: Checking device for incoming SMS
2017-09-07 09:34:56,6, GSM1: Checking if modem is ready
2017-09-07 09:34:56,7, GSM1: -> AT
2017-09-07 09:34:56,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,6, GSM1: Pre-initializing modem
2017-09-07 09:34:57,7, GSM1: -> ATE0
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,6, GSM1: Initializing modem
2017-09-07 09:34:57,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,7, GSM1: -> AT+CSQ
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:34:57,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:34:57,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:34:57,7, GSM1: -> AT+CREG?
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:34:57,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:34:57,6, GSM1: Modem is registered to the network
2017-09-07 09:34:57,6, GSM1: Selecting PDU mode
2017-09-07 09:34:57,7, GSM1: -> AT+CMGF=0
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:57,7, GSM1: <- OK
2017-09-07 09:34:57,6, GSM1: Checking memory size
2017-09-07 09:34:57,7, GSM1: -> AT+CPMS?
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:57,7, GSM1: <- +CPMS: "SM", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:34:57,6, GSM1: Used memory is 0 of 50
2017-09-07 09:34:57,6, GSM1: Changing memory
2017-09-07 09:34:57,7, GSM1: -> AT+CPMS="ME"
2017-09-07 09:34:57,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:57,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:34:57,6, GSM1: Checking memory size
2017-09-07 09:34:58,7, GSM1: -> AT+CPMS?
2017-09-07 09:34:58,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:58,7, GSM1: <- +CPMS: "ME", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:34:58,6, GSM1: Used memory is 0 of 50
2017-09-07 09:34:58,6, GSM1: Changing memory
2017-09-07 09:34:58,7, GSM1: -> AT+CPMS="SM"
2017-09-07 09:34:58,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:34:58,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:34:58,6, GSM1: No SMS received
2017-09-07 09:35:08,6, GSM1: Checking device for incoming SMS
2017-09-07 09:35:08,6, GSM1: Checking if modem is ready
2017-09-07 09:35:08,7, GSM1: -> AT
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:08,7, GSM1: <- OK
2017-09-07 09:35:08,6, GSM1: Pre-initializing modem
2017-09-07 09:35:08,7, GSM1: -> ATE0
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- OK
2017-09-07 09:35:08,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- OK
2017-09-07 09:35:08,6, GSM1: Initializing modem
2017-09-07 09:35:08,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- OK
2017-09-07 09:35:08,7, GSM1: -> AT+CSQ
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:35:08,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:35:08,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:35:08,7, GSM1: -> AT+CREG?
2017-09-07 09:35:08,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:08,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:35:08,6, GSM1: Modem is registered to the network
2017-09-07 09:35:08,6, GSM1: Selecting PDU mode
2017-09-07 09:35:09,7, GSM1: -> AT+CMGF=0
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- OK
2017-09-07 09:35:09,6, GSM1: Checking memory size
2017-09-07 09:35:09,7, GSM1: -> AT+CPMS?
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- +CPMS: "SM", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:35:09,6, GSM1: Used memory is 0 of 50
2017-09-07 09:35:09,6, GSM1: Changing memory
2017-09-07 09:35:09,7, GSM1: -> AT+CPMS="ME"
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:35:09,6, GSM1: Checking memory size
2017-09-07 09:35:09,7, GSM1: -> AT+CPMS?
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- +CPMS: "ME", 0, 50, "MT", 0, 100, "MT", 0, 100 OK
2017-09-07 09:35:09,6, GSM1: Used memory is 0 of 50
2017-09-07 09:35:09,6, GSM1: Changing memory
2017-09-07 09:35:09,7, GSM1: -> AT+CPMS="SM"
2017-09-07 09:35:09,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:09,7, GSM1: <- +CPMS: 0, 50, 0, 100, 0, 100 OK
2017-09-07 09:35:09,6, GSM1: No SMS received
2017-09-07 09:35:18,5, smsd: SMS To: 09361967512. Moved file /var/spool/sms/outgoing/send_vuNaAd to /var/spool/sms/queue/GSM-QUEUE1
2017-09-07 09:35:18,6, GSM1: I have to send 1 short message for /var/spool/sms/queue/GSM-QUEUE1/send_vuNaAd
2017-09-07 09:35:18,6, GSM1: Sending SMS from to 09361967512
2017-09-07 09:35:18,6, GSM1: Checking if modem is ready
2017-09-07 09:35:18,7, GSM1: -> AT
2017-09-07 09:35:18,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:18,7, GSM1: <- OK
2017-09-07 09:35:18,6, GSM1: Pre-initializing modem
2017-09-07 09:35:18,7, GSM1: -> ATE0
2017-09-07 09:35:18,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:18,7, GSM1: <- OK
2017-09-07 09:35:18,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:35:18,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- OK
2017-09-07 09:35:19,6, GSM1: Initializing modem
2017-09-07 09:35:19,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- OK
2017-09-07 09:35:19,7, GSM1: -> AT+CSQ
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:35:19,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:35:19,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:35:19,7, GSM1: -> AT+CREG?
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:35:19,6, GSM1: Modem is registered to the network
2017-09-07 09:35:19,6, GSM1: Selecting PDU mode
2017-09-07 09:35:19,7, GSM1: -> AT+CMGF=0
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:19,7, GSM1: <- OK
2017-09-07 09:35:19,7, GSM1: -> AT+CMGS=21
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:19,7, GSM1: <- >
2017-09-07 09:35:19,7, GSM1: -> 0011000B919063917615F20000FF07F4F29C1E93CD00
2017-09-07 09:35:19,7, GSM1: Command is sent, waiting for the answer. (60)
2017-09-07 09:35:20,7, GSM1: <- +CMS ERROR: 21 (Short message transfer rejected)
2017-09-07 09:35:20,3, GSM1: The modem answer was not OK: +CMS ERROR: 21 (Short message transfer rejected)
2017-09-07 09:35:20,5, GSM1: Waiting 10 sec. before retrying
2017-09-07 09:35:30,6, GSM1: Checking if modem is ready
2017-09-07 09:35:30,7, GSM1: -> AT
2017-09-07 09:35:30,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:30,7, GSM1: <- OK
2017-09-07 09:35:30,6, GSM1: Pre-initializing modem
2017-09-07 09:35:30,7, GSM1: -> ATE0
2017-09-07 09:35:30,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:30,7, GSM1: <- OK
2017-09-07 09:35:31,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- OK
2017-09-07 09:35:31,6, GSM1: Initializing modem
2017-09-07 09:35:31,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- OK
2017-09-07 09:35:31,7, GSM1: -> AT+CSQ
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- +CSQ: 14, 99 OK
2017-09-07 09:35:31,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-09-07 09:35:31,6, GSM1: Checking if Modem is registered to the network
2017-09-07 09:35:31,7, GSM1: -> AT+CREG?
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- +CREG: 2,1,"7B1A","02021B9C",6 OK
2017-09-07 09:35:31,6, GSM1: Modem is registered to the network
2017-09-07 09:35:31,6, GSM1: Selecting PDU mode
2017-09-07 09:35:31,7, GSM1: -> AT+CMGF=0
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (5)
2017-09-07 09:35:31,7, GSM1: <- OK
2017-09-07 09:35:31,7, GSM1: -> AT+CMGS=21
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (10)
2017-09-07 09:35:31,7, GSM1: <- >
2017-09-07 09:35:31,7, GSM1: -> 0011000B919063917615F20000FF07F4F29C1E93CD00
2017-09-07 09:35:31,7, GSM1: Command is sent, waiting for the answer. (60)
2017-09-07 09:35:32,7, GSM1: <- +CMS ERROR: 21 (Short message transfer rejected)
2017-09-07 09:35:32,3, GSM1: The modem answer was not OK: +CMS ERROR: 21 (Short message transfer rejected)
2017-09-07 09:35:32,5, GSM1: Waiting 10 sec. before retrying
May you please help me in this issue?
|
Mon Aug 28, 2017 05:48
|
sinai: The information when the modem is disconnected are as follows:
lsusb
Bus 002 Device 006: ID 258a:0001
Bus 002 Device 012: ID 093a:2516 Pixart Imaging, Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 2232:1008 Silicon Motion
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
There is no USB serial in /dev
The information after connecting the modem are as follows:
lsusb
Bus 002 Device 006: ID 258a:0001
Bus 002 Device 018: ID 2001:7d0e D-Link Corp.
Bus 002 Device 012: ID 093a:2516 Pixart Imaging, Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 2232:1008 Silicon Motion
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ls /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 Aug 28 09:53 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Aug 28 09:53 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Aug 28 09:53 /dev/ttyUSB2
crw-rw---- 1 root dialout 188, 3 Aug 28 09:53 /dev/ttyUSB3
from the above ports, only one of them works at a time. sometimes USB1 sometimes USB0 and sometimes USB2!!!! another big problem is that when I disconnect the modem and reconnect it to my machine, it does not work and I have to restart the system to make it work!!!
you said "The first port just gets OK for USSD, as you now have, and the answer is going to another port". You mean I should send USSD codes via one of the ports (e.g. first port) and receive the answers from another port (e.g. second port)??
|
Sun Aug 27, 2017 09:03
|
sinai: Excuse me to reopening this post. I defined regular_run and regular_run_cmdfile as you said. I was getting the right result after executing the USSD codes in regular_run_cmdfile but now I see the following error in the logs:
2017-08-27 13:23:57,6, GSM1: Running a regular_run (PRE_RUN)
2017-08-27 13:23:57,7, GSM1: Running regular_run (modem): /var/spool/sms/regular_run/GSM1.py PRE_RUN "" GSM1
2017-08-27 13:23:57,7, GSM1: Done: regular_run (modem), execution time 0 sec., status: 0 (0)
2017-08-27 13:23:57,7, GSM1: -> AT+CUSD=1,"*141*1#"
2017-08-27 13:23:57,7, GSM1: Command is sent, waiting for the answer. (15)
2017-08-27 13:24:13,7, GSM1: Incorrect answer, put_command expected (\+CUSD:.*",)|(ERROR), timeout occurred. 1.
2017-08-27 13:24:13,7, GSM1: <- OK
2017-08-27 13:24:13,6, GSM1: Checking device for incoming SMS
2017-08-27 13:24:13,6, GSM1: Checking if modem is ready
2017-08-27 13:24:13,7, GSM1: -> AT
What did happen? I did not change anything but I get error!!!
|
Sun Aug 27, 2017 06:40
|
sinai: The strange thing is that, with the same smsd.conf file I could get delivery report on my old laptop. But with the same configuration I cannot get delivery report on the new one!!
The logs are as follow:
2017-08-27 10:41:44,2, smsd: Smsd v3.1.21 started.
2017-08-27 10:41:44,2, smsd: Running as root:root (0:0).
2017-08-27 10:41:45,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.CF63KM /tmp/smsd_data.7pThio
2017-08-27 10:41:45,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2017-08-27 10:41:45,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2017-08-27 10:41:45,5, smsd: Outgoing file checker has started. PID: 4681.
2017-08-27 10:41:45,7, smsd: All PID's: 4681,4683
2017-08-27 10:41:45,5, GSM1: Modem handler 0 has started. PID: 4683.
2017-08-27 10:41:45,5, GSM1: Serving queues: GSM1
2017-08-27 10:41:45,5, GSM1: Using check_memory_method 1: CPMS is used.
2017-08-27 10:41:45,6, GSM1: Checking device for incoming SMS
2017-08-27 10:41:45,6, GSM1: Checking if modem is ready
2017-08-27 10:41:45,3, GSM1: Unexpected input: ~��!
2017-08-27 10:41:45,7, GSM1: -> AT
2017-08-27 10:41:45,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:45,7, GSM1: <- AT OK
2017-08-27 10:41:45,6, GSM1: Pre-initializing modem
2017-08-27 10:41:45,7, GSM1: -> ATE0
2017-08-27 10:41:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-08-27 10:41:45,7, GSM1: <- ATE0 OK
2017-08-27 10:41:45,7, GSM1: -> AT+CMEE=1;+CREG=2
2017-08-27 10:41:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-08-27 10:41:45,7, GSM1: <- OK
2017-08-27 10:41:45,6, GSM1: Checking if modem needs PIN
2017-08-27 10:41:45,7, GSM1: -> AT+CPIN?
2017-08-27 10:41:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-08-27 10:41:45,7, GSM1: <- +CPIN: READY OK
2017-08-27 10:41:45,6, GSM1: Initializing modem
2017-08-27 10:41:45,7, GSM1: -> AT+CNMI=1,0,0,1,0
2017-08-27 10:41:45,7, GSM1: Command is sent, waiting for the answer. (10)
2017-08-27 10:41:45,7, GSM1: <- OK
2017-08-27 10:41:46,7, GSM1: -> AT+CSQ
2017-08-27 10:41:46,7, GSM1: Command is sent, waiting for the answer. (10)
2017-08-27 10:41:46,7, GSM1: <- +CSQ: 14, 99 OK
2017-08-27 10:41:46,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-08-27 10:41:46,6, GSM1: Checking if Modem is registered to the network
2017-08-27 10:41:46,7, GSM1: -> AT+CREG?
2017-08-27 10:41:46,7, GSM1: Command is sent, waiting for the answer. (10)
2017-08-27 10:41:46,7, GSM1: <- +CREG: 2,1,"7F6A","038627DA",6 OK
2017-08-27 10:41:46,6, GSM1: Modem is registered to the network
2017-08-27 10:41:46,6, GSM1: Location area code: 7F6A, Cell ID: 27DA
2017-08-27 10:41:46,7, GSM1: -> AT+CSQ
2017-08-27 10:41:46,7, GSM1: Command is sent, waiting for the answer. (10)
2017-08-27 10:41:46,7, GSM1: <- +CSQ: 14, 99 OK
2017-08-27 10:41:46,6, GSM1: Signal Strength Indicator: (14,99) -85 dBm (Workable), Bit Error Rate: not known or not detectable
2017-08-27 10:41:46,6, GSM1: Selecting PDU mode
2017-08-27 10:41:46,7, GSM1: -> AT+CMGF=0
2017-08-27 10:41:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:46,7, GSM1: <- OK
2017-08-27 10:41:46,7, GSM1: -> AT+CGSN
2017-08-27 10:41:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:46,7, GSM1: <- 355621056297819 OK
2017-08-27 10:41:46,5, GSM1: IMEI: 355621056297819
2017-08-27 10:41:46,7, GSM1: -> AT+CIMI
2017-08-27 10:41:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:46,7, GSM1: <- 432350368617592 OK
2017-08-27 10:41:46,5, GSM1: IMSI: 432350368617592
2017-08-27 10:41:46,6, GSM1: Checking if reading of messages is supported
2017-08-27 10:41:46,7, GSM1: -> AT+CPMS?
2017-08-27 10:41:46,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:46,7, GSM1: <- +CPMS: "MT", 2, 65, "MT", 2, 65, "MT", 2, 65 OK
2017-08-27 10:41:46,7, GSM1: ## Start of device details
2017-08-27 10:41:46,7, GSM1: # Manufacturer identification:
2017-08-27 10:41:46,7, GSM1: -> AT+CGMI
2017-08-27 10:41:46,7, GSM1: <- +CGMI: MTK1
OK
2017-08-27 10:41:46,7, GSM1: # Model identification:
2017-08-27 10:41:46,7, GSM1: -> AT+CGMM
2017-08-27 10:41:46,7, GSM1: <- +CGMM: MTK2
OK
2017-08-27 10:41:46,7, GSM1: # Revision identification:
2017-08-27 10:41:47,7, GSM1: -> AT+CGMR
2017-08-27 10:41:47,7, GSM1: <- +CGMR: 0.1.8
OK
2017-08-27 10:41:47,7, GSM1: # New message indications, list of supported modes:
2017-08-27 10:41:47,7, GSM1: -> AT+CNMI=?
2017-08-27 10:41:47,7, GSM1: <- +CNMI: (0-3), (0-3), (0,2,3), (0,1), (0,1)
OK
2017-08-27 10:41:47,7, GSM1: # New message indications, current settings:
2017-08-27 10:41:47,7, GSM1: -> AT+CNMI?
2017-08-27 10:41:47,7, GSM1: <- +CNMI: 1, 0, 0, 1, 0
OK
2017-08-27 10:41:47,7, GSM1: # Preferred message storage, list of supported mem's:
2017-08-27 10:41:47,7, GSM1: -> AT+CPMS=?
2017-08-27 10:41:47,7, GSM1: <- +CPMS: ("SM", "ME", "SM_P", "ME_P", "MT"), ("SM", "ME", "SM_P", "ME_P", "MT"), ("SM", "ME", "SM_P", "ME_P", "MT")
OK
2017-08-27 10:41:47,7, GSM1: # Phonebook storage, available mem's:
2017-08-27 10:41:47,7, GSM1: -> AT+CPBS=?
2017-08-27 10:41:47,7, GSM1: <- +CPBS: ("ME","SM","LD","MC","RC","FD","DC","ON")
OK
2017-08-27 10:41:47,7, GSM1: # List messages, list of supported stat's:
2017-08-27 10:41:47,7, GSM1: -> AT+CMGL=?
2017-08-27 10:41:47,7, GSM1: <- +CMGL: (0-4)
OK
2017-08-27 10:41:47,7, GSM1: # Delete message, list of supported values:
2017-08-27 10:41:47,7, GSM1: -> AT+CMGD=?
2017-08-27 10:41:47,7, GSM1: <- +CMGD: (1-65), (0-4)
OK
2017-08-27 10:41:47,7, GSM1: # Phone activity status, list of supported stat's:
2017-08-27 10:41:47,7, GSM1: -> AT+CPAS=?
2017-08-27 10:41:47,7, GSM1: <- +CPAS: (0-5)
OK
2017-08-27 10:41:47,7, GSM1: # TE character set, list of supported charset's:
2017-08-27 10:41:48,7, GSM1: -> AT+CSCS=?
2017-08-27 10:41:48,7, GSM1: <- +CSCS: ("IRA", "GSM", "HEX", "PCCP437", "8859-1", "UCS2", "UCS2_0X81")
OK
2017-08-27 10:41:48,7, GSM1: # TE character set, current setting:
2017-08-27 10:41:48,7, GSM1: -> AT+CSCS?
2017-08-27 10:41:48,7, GSM1: <- +CSCS: "IRA"
OK
2017-08-27 10:41:48,7, GSM1: ## End of device details
2017-08-27 10:41:48,6, GSM1: Checking memory size
2017-08-27 10:41:48,7, GSM1: -> AT+CPMS?
2017-08-27 10:41:48,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:48,7, GSM1: <- +CPMS: "MT", 2, 65, "MT", 2, 65, "MT", 2, 65 OK
2017-08-27 10:41:48,6, GSM1: Used memory is 2 of 65
2017-08-27 10:41:48,6, GSM1: Trying to get stored message 1
2017-08-27 10:41:48,7, GSM1: -> AT+CMGR=1
2017-08-27 10:41:48,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:48,7, GSM1: <- +CMGR: 0,, 161 07918939050041004412D0AEA434E81C16994C170008718072907330818B06080406BA0201062706CC0646062A06310646062A0020063406450627063706280642002006450635063106410020062206320627062F062706320634062706310698063406AF0641062A00200627064606AF06CC06320645062D06270633062806470020064506CC06340648062F0020062E063106CC062F06280633062A06470020062A064406AF0631 OK
2017-08-27 10:41:48,5, GSM1: SMS received (part 1/2), From: .IRANCELL.
2017-08-27 10:41:48,6, GSM1: Deleting message 1
2017-08-27 10:41:48,7, GSM1: -> AT+CMGD=1
2017-08-27 10:41:48,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:48,7, GSM1: <- OK
2017-08-27 10:41:48,6, GSM1: Trying to get stored message 2
2017-08-27 10:41:48,7, GSM1: -> AT+CMGR=2
2017-08-27 10:41:48,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:48,7, GSM1: <- +CMGR: 0,, 157 07918939050041004412D0AEA434E81C16994C170008718072907330818706080406BA02020627064500200645062706310648062F0646062806270644002006A90646002006480020062806310646062F06470020062C062706CC0632064700200634064800200020002000200020002000200020002000200020002000200068007400740070003A002F002F00690033006C002E00690072002F005300740065006C0065 OK
2017-08-27 10:41:48,5, GSM1: SMS received (part 2/2), From: .IRANCELL.
2017-08-27 10:41:48,6, GSM1: Wrote an incoming message file: /var/spool/sms/incoming/GSM1.oUfObG
2017-08-27 10:41:48,7, GSM1: Running eventhandler: /home/sms_event_handler.py RECEIVED /var/spool/sms/incoming/GSM1.oUfObG
2017-08-27 10:41:48,7, GSM1: Done: eventhandler, execution time 0 sec., status: 0 (0)
2017-08-27 10:41:48,6, GSM1: Deleting message 2
2017-08-27 10:41:48,7, GSM1: -> AT+CMGD=2
2017-08-27 10:41:48,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:49,7, GSM1: <- OK
2017-08-27 10:41:49,6, GSM1: Changing memory
2017-08-27 10:41:49,7, GSM1: -> AT+CPMS="ME"
2017-08-27 10:41:49,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:49,7, GSM1: <- +CPMS: 0, 50, 0, 65, 0, 65 OK
2017-08-27 10:41:49,6, GSM1: Checking memory size
2017-08-27 10:41:49,7, GSM1: -> AT+CPMS?
2017-08-27 10:41:49,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:49,7, GSM1: <- +CPMS: "ME", 0, 50, "MT", 0, 65, "MT", 0, 65 OK
2017-08-27 10:41:49,6, GSM1: Used memory is 0 of 50
2017-08-27 10:41:49,6, GSM1: Changing memory
2017-08-27 10:41:49,7, GSM1: -> AT+CPMS="SM"
2017-08-27 10:41:49,7, GSM1: Command is sent, waiting for the answer. (5)
2017-08-27 10:41:49,7, GSM1: <- +CPMS: 0, 15, 0, 65, 0, 65 OK
2017-08-27 10:41:49,6, GSM1: Running a regular_run (PRE_RUN)
2017-08-27 10:41:49,7, GSM1: Running regular_run (modem): /var/spool/sms/regular_run/GSM1.py PRE_RUN "" GSM1
2017-08-27 10:41:50,7, GSM1: Done: regular_run (modem), execution time 1 sec., status: 0 (0)
2017-08-27 10:41:50,7, GSM1: -> AT+CUSD=1,"*141*1#"
2017-08-27 10:41:50,7, GSM1: Command is sent, waiting for the answer. (15)
Unfortunately I don't have any manual. But I will google for it.
Thank you.
|
Sat Aug 26, 2017 19:11
|
sinai: Operating system: Ubuntu 16.04
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem: D-Link DWM-157
Interface: /dev/ttyUSB1
Hi. I cannot receive delivery report in the logs and in 'report' folder. here's my smsd.conf file:
devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
sent = /var/spool/sms/sent
store_received_pdu = 3
report = /var/spool/sms/report
store_sent_pdu = 3
stats = /var/spool/sms/stats
#alarmhandler = /home/sms_alarm_handler.py
[default]
regular_run_interval = 15
regular_run_logfile = /var/log/smsd_regular_run.log
[queues]
GSM1 = /var/spool/sms/queue/GSM-QUEUE1
[GSM1]
report_device_details = yes
routed_status_report_cnma = no
report = yes
init = AT+CNMI=1,0,0,1,0
device = /dev/ttyUSB0
incoming = high
baudrate = 115200
primary_memory = SM
secondary_memory = ME
eventhandler = /home/sms_event_handler.py
regular_run = /var/spool/sms/regular_run/GSM1.py
regular_run_cmdfile = /var/spool/sms/regular_run/GSM1.cmdfile
queues=GSM1
Any help is appreciated.
|
Sat Aug 26, 2017 19:05
|
sinai: I tested it. It is working properly. Thank you.
|
Sat Aug 26, 2017 06:22
|
sinai: Thank you. The first link you provided says it is working on version 3.1.7 or later. I have 3.1.21. Does it work properly on my version too?
|
Fri Aug 25, 2017 18:38
|
sinai: Operating system: Ubuntu 16.04
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem: GSM Modem- D-Link DWM-157
Interface: USB /dev/ttyUSB1
Hi. I want to know how can I send USSD code with smstools3. I tested sending USSD code via a separate code written in python, but it seems it is not working properly when smstools3 is running!! I think the commands get conflict with smstools3. Due to this issue, I wonder to know is there any way to send USSD code for retrieving the balance and recharging the SIM CARD with smstools3?
Any help is appreciated.
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|