SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Mon Aug 25, 2025 06:32
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
Bivan84: I have take a look to the source code. In the modeminit.c why the first strstr fails? According to the LOG, "answer" string shoult contain AT+CREG? +CREG: 0,1 OK. if (strstr(answer, ",1")) { writelogfile(LOG_INFO, modemname, "Modem is registered to the network"); success = 1; } ------------- else if (strstr(answer,"+CREG:")) { //writelogfile(LOG_NOTICE,modemname,"Modem is not registered, waiting %i sec. before retrying",error_sleeptime); writelogfile(LOG_NOTICE,modemname, "MODEM IS NOT REGISTERED, WAITING %i SEC. BEFORE TRYING %i. TIME", error_sleeptime, retries +1); if (t_sleep(error_sleeptime)) return -2; }
Bivan84: Hello. I am using the last smsd version on a Debian Linux Lenny installed from the package. My modem is a board with Siemens TC35 Module attached on the /dev/ttyS0 In minicom I am able to send sms, but with smstool I can't. I keeps to obtain MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING and it not sends any sms. The first time it asks signal to the modem it is registered correctly. My LOG is: 2013-11-05 22:37:56,5, GSM1: Modem handler 0 has started. PID: 7936. 2013-11-05 22:37:56,5, GSM1: Using check_memory_method 1: CPMS is used. 2013-11-05 22:37:56,6, GSM1: Checking device for incoming SMS 2013-11-05 22:37:56,6, GSM1: Checking if modem is ready 2013-11-05 22:37:57,7, GSM1: -> AT 2013-11-05 22:37:57,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:37:57,7, GSM1: <- AT OK 2013-11-05 22:37:57,6, GSM1: Pre-initializing modem 2013-11-05 22:37:57,7, GSM1: -> ATE0+CMEE=1;+CREG=2 2013-11-05 22:37:57,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:37:57,7, GSM1: <- ATE0+CMEE=1;+CREG=2 OK 2013-11-05 22:37:57,6, GSM1: Checking if modem needs PIN 2013-11-05 22:37:58,7, GSM1: -> AT+CPIN? 2013-11-05 22:37:58,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:37:58,7, GSM1: <- AT+CPIN? +CPIN: READY OK 2013-11-05 22:37:58,7, GSM1: -> AT+CSQ 2013-11-05 22:37:58,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:37:59,7, GSM1: <- AT+CSQ +CSQ: 22,99 OK 2013-11-05 22:37:59,6, GSM1: Signal Strength Indicator: (22,99) -69 dBm (Excellent), Bit Error Rate: not kn own or not detectable 2013-11-05 22:37:59,6, GSM1: Checking if Modem is registered to the network 2013-11-05 22:37:59,7, GSM1: -> AT+CREG? 2013-11-05 22:37:59,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:37:59,7, GSM1: <- AT+CREG? +CREG: 0,1 OK 2013-11-05 22:37:59,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 1. TIME 2013-11-05 22:38:00,7, GSM1: -> AT+CSQ 2013-11-05 22:38:00,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:01,7, GSM1: <- AT+CSQ +CSQ: 22,99 OK 2013-11-05 22:38:01,5, GSM1: Signal Strength Indicator: (22,99) -69 dBm (Excellent), Bit Error Rate: not kn own or not detectable 2013-11-05 22:38:01,7, GSM1: -> AT+CREG? 2013-11-05 22:38:01,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:01,7, GSM1: <- AT+CREG? +CREG: 0,1 OK 2013-11-05 22:38:01,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 2. TIME 2013-11-05 22:38:03,7, GSM1: -> AT+CSQ 2013-11-05 22:38:03,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:03,7, GSM1: <- AT+CSQ +CSQ: 22,99 OK 2013-11-05 22:38:03,5, GSM1: Signal Strength Indicator: (22,99) -69 dBm (Excellent), Bit Error Rate: not kn own or not detectable 2013-11-05 22:38:03,7, GSM1: -> AT+CREG? 2013-11-05 22:38:03,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:04,7, GSM1: <- AT+CREG? +CREG: 0,1 OK 2013-11-05 22:38:04,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 3. TIME 2013-11-05 22:38:05,7, GSM1: -> AT+CSQ 2013-11-05 22:38:05,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:05,7, GSM1: <- AT+CSQ +CSQ: 22,99 OK 2013-11-05 22:38:05,5, GSM1: Signal Strength Indicator: (22,99) -69 dBm (Excellent), Bit Error Rate: not kn own or not detectable 2013-11-05 22:38:06,7, GSM1: -> AT+CREG? 2013-11-05 22:38:06,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:06,7, GSM1: <- AT+CREG? +CREG: 0,1 OK 2013-11-05 22:38:06,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 4. TIME 2013-11-05 22:38:07,7, GSM1: -> AT+CSQ 2013-11-05 22:38:07,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:08,7, GSM1: <- AT+CSQ +CSQ: 22,99 OK 2013-11-05 22:38:08,5, GSM1: Signal Strength Indicator: (22,99) -69 dBm (Excellent), Bit Error Rate: not kn own or not detectable 2013-11-05 22:38:08,7, GSM1: -> AT+CREG? 2013-11-05 22:38:08,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:08,7, GSM1: <- AT+CREG? +CREG: 0,1 OK 2013-11-05 22:38:08,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 5. TIME 2013-11-05 22:38:09,7, GSM1: -> AT+CSQ 2013-11-05 22:38:09,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:10,7, GSM1: <- AT+CSQ +CSQ: 22,99 OK 2013-11-05 22:38:10,5, GSM1: Signal Strength Indicator: (22,99) -69 dBm (Excellent), Bit Error Rate: not kn own or not detectable 2013-11-05 22:38:10,7, GSM1: -> AT+CREG? 2013-11-05 22:38:10,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:10,7, GSM1: <- AT+CREG? +CREG: 0,1 OK 2013-11-05 22:38:10,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 6. TIME 2013-11-05 22:38:12,7, GSM1: -> AT+CSQ 2013-11-05 22:38:12,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:12,7, GSM1: <- AT+CSQ +CSQ: 22,99 OK 2013-11-05 22:38:12,5, GSM1: Signal Strength Indicator: (22,99) -69 dBm (Excellent), Bit Error Rate: not kn own or not detectable 2013-11-05 22:38:12,7, GSM1: -> AT+CREG? 2013-11-05 22:38:12,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:13,7, GSM1: <- AT+CREG? +CREG: 0,1 OK 2013-11-05 22:38:13,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 7. TIME 2013-11-05 22:38:14,7, GSM1: -> AT+CSQ 2013-11-05 22:38:14,7, GSM1: Command is sent, waiting for the answer 2013-11-05 22:38:14,7, GSM1: <- AT+CSQ +CSQ: 22,99 OK 2013-11-05 22:38:14,5, GSM1: Signal Strength Indicator: (22,99) -69 dBm (Excellent), Bit Error Rate: not kn own or not detectable My Config file: devices = GSM1 outgoing = /var/spool/sms/outgoing checked = /var/spool/sms/checked incoming = /var/spool/sms/incoming logfile = /var/log/smstools/smsd.log #loglevel = debug infofile = /var/run/smstools/smsd.working pidfile = /var/run/smstools/smsd.pid outgoing = /var/spool/sms/outgoing loglevel = 8 checked = /var/spool/sms/checked failed = /var/spool/sms/failed incoming = /var/spool/sms/incoming sent = /var/spool/sms/sent stats = /var/log/smstools/smsd_stats receive_before_send = no autosplit = 3 [GSM1] #init = AT+CNMI=2,0,0,2,1 init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1 mode = new report = yes #init = ATZ #init2 = ATE0 device = /dev/ttyS0 incoming = yes baudrate = 9600 Thanks a lot. Ivan.

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.