Hi What if you add ";CSMS=1" at the end of the init-string?
Regards |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Thu, Jul 9, 2015 at 11:05 AM, Torsten Parschau <tors...@parschau.de> wrote: > kannel sends "AT+CSMS=?" > modem responds: > "+CSMS: (0,1) > > OK" > > But the next kannel command (AT+CMEE=1) is sent, before "OK" (3rd line) is > received... > > So, no "AT+CSMS=1" will be sent... > > regards > Torsten > > Am 09.07.2015 um 17:54 schrieb Alvaro Cornejo: > >> Hi >> >> What do you mean by "...still not waiting for the complete response.." ? >> >> If there are no errors now, try adding command by command or removing the >> sendline-sleep to find the origin of the problem. >> >> Regards >> >> Alvaro >> >> >> |-----------------------------------------------------------------------------------------------------------------| >> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier >> celular y Nextel >> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via >> SMS y GPRS online >> Visitenos en www.perusms.com <http://www.perusms.com> >> >> On Thu, Jul 9, 2015 at 10:35 AM, Torsten Parschau <tors...@parschau.de >> <mailto:tors...@parschau.de>> wrote: >> >> hi, >> >> changed the config, like suggested. >> no error, but still not waiting for the complete response: >> >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: --> AT+CSMS=?^M >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: <-- OK >> -> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: --> AT+CMEE=1^M >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: <-- +CSMS: (0,1) >> >> Log: >> 2015-07-09 17:31:58 [10059] [6] INFO: AT2[modem]: opening device >> 2015-07-09 17:31:58 [10059] [6] DEBUG: AT2[modem]: device opened. >> Telnet mode = 0 >> 2015-07-09 17:31:58 [10059] [6] DEBUG: AT2[modem]: device opened >> 2015-07-09 17:31:58 [10059] [6] INFO: AT2[modem]: Logging in >> 2015-07-09 17:31:58 [10059] [6] INFO: AT2[modem]: init device >> 2015-07-09 17:31:58 [10059] [6] INFO: AT2[modem]: speed set to 9600 >> 2015-07-09 17:31:58 [10059] [6] DEBUG: AT2[modem]: --> ATZ^M >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: <-- OK >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: --> AT^M >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: <-- AT >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: <-- OK >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: --> AT&F^M >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: <-- AT&F >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: <-- OK >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: --> ATE0^M >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: <-- ATE0 >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: <-- OK >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: --> AT+IFC=2,2^M >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: <-- OK >> 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: --> AT+CPIN?^M >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: <-- +CPIN: READY >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: --> AT+CMGF=0^M >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: <-- OK >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: --> AT+CSMS=?^M >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: <-- OK >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: --> AT+CMEE=1^M >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: <-- +CSMS: (0,1) >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: <-- OK >> 2015-07-09 17:32:00 [10059] [6] INFO: AT2[modem]: AT SMSC >> successfully opened. >> 2015-07-09 17:32:00 [10059] [6] DEBUG: AT2[modem]: <-- OK >> >> Regards >> Torsten >> >> >> >> Am 09.07.2015 um 17:26 schrieb Alvaro Cornejo: >> >> Hi >> >> Try with a minimum config and then add one command at a time. >> This might help you find which command have the problem. I've >> added the command to have kannel wait in between commands. >> Have doubled the time in first try. You can finetune it once >> you get the right config. >> >> +++modems.conf+++ >> group = modems >> id = ct63 >> name = "CT63 Terminal" >> detect-string = "CT63" >> init-string = "AT+CMEE=1" >> #init-string = "AT+CNMI=3,2,0,1,1;+CMEE=1" >> #enable-hwhs = "AT\\Q3" >> #need-sleep = true >> sendline-sleep = 200 >> reset-string = "AT+CFUN=1" >> keepalive-cmd = "AT+CSQ" >> #no-smsc = true >> >> +++kannel.conf+++ >> group = smsc >> smsc = at >> smsc-id = modem >> modemtype = ct63 >> device = /dev/ttyS0 >> #validityperiod = 167 >> #keepalive = 30 >> #reroute-dlr = true >> log-file = "/var/log/kannel/gsm.log" >> log-level = 0 >> speed = 9600 >> >> Regards >> >> Alvaro >> >> >> |-----------------------------------------------------------------------------------------------------------------| >> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde >> cualquier celular y Nextel >> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 >> vias via SMS y GPRS online >> Visitenos en www.perusms.com >> <http://www.perusms.com> <http://www.perusms.com> >> >> On Thu, Jul 9, 2015 at 9:48 AM, Torsten Parschau >> <tors...@parschau.de <mailto:tors...@parschau.de> >> <mailto:tors...@parschau.de <mailto:tors...@parschau.de>>> wrote: >> >> unfortunately, it stops... >> >> Looks like kannel doesn't wait long enough for the >> complete answer. >> >> +++modems.conf+++ >> group = modems >> id = ct63 >> name = "CT63 Terminal" >> detect-string = "CT63" >> init-string = "AT+CNMI=3,2,0,1,1;+CMEE=1" >> speed = 19200 >> enable-hwhs = "AT\\Q3" >> need-sleep = true >> reset-string = "AT+CFUN=1" >> keepalive-cmd = "AT+CSQ" >> no-smsc = true >> >> +++kannel.conf+++ >> group = smsc >> smsc = at >> smsc-id = modem >> modemtype = ct63 >> device = /dev/ttyS0 >> validityperiod = 167 >> keepalive = 30 >> reroute-dlr = true >> log-file = "/var/log/kannel/gsm.log" >> log-level = 0 >> speed = 9600 >> >> Regards >> Torsten >> >> Am 09.07.2015 um 16:41 schrieb Alvaro Cornejo: >> >> Hi >> >> What happens after the error? Does sequence restart or >> just >> continue with the process? >> >> It is not clear where the error comes from. CSMS. >> Looks like >> kannel sending commands before waiting for the answer. >> >> Can you post your modem config? >> >> Regards >> >> Alvaro >> >> >> |-----------------------------------------------------------------------------------------------------------------| >> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y >> desde >> cualquier celular y Nextel >> en el Perú, México y en mas de 180 paises. Use >> aplicaciones 2 >> vias via SMS y GPRS online >> Visitenos en www.perusms.com >> <http://www.perusms.com> >> <http://www.perusms.com> <http://www.perusms.com> >> >> On Thu, Jul 9, 2015 at 9:27 AM, Torsten Parschau >> <tors...@parschau.de <mailto:tors...@parschau.de> >> <mailto:tors...@parschau.de <mailto:tors...@parschau.de>> >> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de>>>> wrote: >> >> Hi, >> i tried, but the error occurs *before *the modem gets >> initialized.... >> >> Regards >> Torsten >> >> Am 09.07.2015 um 16:17 schrieb Alvaro Cornejo: >> >> Hi >> >> Add +CMEE=1 or 2 to modem init config to get >> more detailed >> info from modem. >> >> Regards >> >> Alvaro >> >> >> |-----------------------------------------------------------------------------------------------------------------| >> Envíe y Reciba Datos y mensajes de Texto (SMS) >> hacia y >> desde >> cualquier celular y Nextel >> en el Perú, México y en mas de 180 paises. Use >> aplicaciones 2 >> vias via SMS y GPRS online >> Visitenos en www.perusms.com >> <http://www.perusms.com> >> <http://www.perusms.com> >> <http://www.perusms.com> <http://www.perusms.com> >> >> On Thu, Jul 9, 2015 at 8:39 AM, Torsten Parschau >> <tors...@parschau.de >> <mailto:tors...@parschau.de> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de>> >> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de>>> >> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de> >> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de>> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de> >> <mailto:tors...@parschau.de >> <mailto:tors...@parschau.de>>>>> wrote: >> >> Hello, >> >> with version 1.4.3 everything works great. >> With version 1.4.4 (even actual svn) we >> get get a >> generic >> error, >> after AT+CSMS=?^M. >> >> As you can see the modem responds (AT+CSMS=?) >> correctly, >> but the >> command AT+CNMI=3,2,0,1,1 should be after >> the complete >> response, >> not in the middle: >> >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: --> >> AT+CSMS=?^M >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: --> >> *AT+CNMI=3,2,0,1,1^M* >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: <-- >> +CSMS: (0,1) >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:36 [6081] [6] INFO: >> AT2[modem]: >> AT SMSC >> successfully opened. >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: >> <-- ERROR >> >> Modem is a serial connected Siemens ct63 >> (compatible TC35) >> >> *Version 1.4.3 (works)* >> 2015-07-09 15:07:31 [5615] [6] INFO: >> AT2[modem]: >> opening >> device >> 2015-07-09 15:07:31 [5615] [6] DEBUG: >> AT2[modem]: >> device >> opened. >> Telnet mode = 0 >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> device >> opened >> 2015-07-09 15:07:32 [5615] [6] INFO: >> AT2[modem]: >> Logging in >> 2015-07-09 15:07:32 [5615] [6] INFO: >> AT2[modem]: >> init device >> 2015-07-09 15:07:32 [5615] [6] INFO: >> AT2[modem]: >> speed set >> to 9600 >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> --> ATZ^M >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> --> AT^M >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> <-- AT >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> --> AT&F^M >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> <-- AT&F >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:32 [5615] [6] DEBUG: >> AT2[modem]: >> --> ATE0^M >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> <-- ATE0 >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> --> AT\Q3^M >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: --> >> AT+CPIN?^M >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: <-- >> +CPIN: READY >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: --> >> AT+CMGF=0^M >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: --> >> AT+CSMS=?^M >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: <-- >> +CSMS: (0,1) >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:33 [5615] [6] INFO: >> AT2[modem]: >> Phase 2+ >> is supported >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: --> >> AT+CSMS=1^M >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: <-- >> +CSMS: 1,1,1 >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: --> >> AT+CNMI=3,2,0,1,1^M >> 2015-07-09 15:07:33 [5615] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:07:33 [5615] [6] INFO: >> AT2[modem]: >> AT SMSC >> successfully opened. >> 2015-07-09 15:07:35 [5615] [6] DEBUG: >> AT2[modem]: >> --> AT+CSQ^M >> >> >> *Version 1.4.4 (error)* >> 2015-07-09 15:20:34 [6081] [6] INFO: >> AT2[modem]: >> opening >> device >> 2015-07-09 15:20:34 [6081] [6] DEBUG: >> AT2[modem]: >> device >> opened. >> Telnet mode = 0 >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> device >> opened >> 2015-07-09 15:20:35 [6081] [6] INFO: >> AT2[modem]: >> Logging in >> 2015-07-09 15:20:35 [6081] [6] INFO: >> AT2[modem]: >> init device >> 2015-07-09 15:20:35 [6081] [6] INFO: >> AT2[modem]: >> speed set >> to 9600 >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> --> ATZ^M >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> --> AT^M >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- AT >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> --> AT&F^M >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- AT&F >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> --> ATE0^M >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- ATE0 >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> --> AT\Q3^M >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: --> >> AT+CPIN?^M >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: <-- >> +CPIN: READY >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: --> >> AT+CMGF=0^M >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:35 [6081] [6] DEBUG: >> AT2[modem]: --> >> AT+CSMS=?^M >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: --> >> AT+CNMI=3,2,0,1,1^M >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: <-- >> +CSMS: (0,1) >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: >> <-- OK >> 2015-07-09 15:20:36 [6081] [6] INFO: >> AT2[modem]: >> AT SMSC >> successfully opened. >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: >> <-- ERROR >> 2015-07-09 15:20:36 [6081] [6] ERROR: >> AT2[modem]: >> Generic >> error: ERROR >> 2015-07-09 15:20:36 [6081] [6] DEBUG: >> AT2[modem]: >> --> AT+CSQ^M >> >> Does anybody know why this happens and how >> to fix it?? >> >> best regards >> Torsten >> >> >> >> >> >> >> >> >> >> >