Re: modem init

2015-07-09 Thread 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

On Thu, Jul 9, 2015 at 9:27 AM, Torsten Parschau 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

 On Thu, Jul 9, 2015 at 8:39 AM, Torsten Parschau 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]: -- ATF^M
 2015-07-09 15:07:32 [5615] [6] DEBUG: AT2[modem]: -- ATF
 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
 

Re: modem init

2015-07-09 Thread Torsten Parschau

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

On Thu, Jul 9, 2015 at 9:27 AM, Torsten Parschau 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

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 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]: -- ATF^M
2015-07-09 15:07:32 [5615] [6] DEBUG: AT2[modem]: -- ATF
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: 

Re: generic error after init device (AT+CSMS=?) only version = 1.4.4

2015-07-09 Thread 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

On Thu, Jul 9, 2015 at 8:39 AM, Torsten Parschau 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]: -- ATF^M
 2015-07-09 15:07:32 [5615] [6] DEBUG: AT2[modem]: -- ATF
 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]: -- ATF^M
 2015-07-09 15:20:35 [6081] [6] DEBUG: AT2[modem]: -- ATF
 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]: 

Re: modem init

2015-07-09 Thread Torsten Parschau

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]: -- ATF^M
2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: -- ATF
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

On Thu, Jul 9, 2015 at 9:48 AM, Torsten Parschau 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 

Re: modem init

2015-07-09 Thread 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

On Thu, Jul 9, 2015 at 9:48 AM, Torsten Parschau 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

 On Thu, Jul 9, 2015 at 9:27 AM, Torsten Parschau 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

 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 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
 

Re: modem init

2015-07-09 Thread Torsten Parschau

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]: -- ATF^M
2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: -- ATF
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 

Re: modem init

2015-07-09 Thread 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

On Thu, Jul 9, 2015 at 10:35 AM, Torsten Parschau 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]: -- ATF^M
 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: -- ATF
 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

 On Thu, Jul 9, 2015 at 9:48 AM, Torsten Parschau 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 

Re: modem init

2015-07-09 Thread Alvaro Cornejo
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]: -- ATF^M
 2015-07-09 17:31:59 [10059] [6] DEBUG: AT2[modem]: -- ATF
 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 = 

Messages not getting deleted on modem

2015-07-09 Thread Arya Farzan
I have a Huawei E220 and from time to time I see the following messages,
and sometimes I see the log mesaages below. If I recieve lots of messages
the modem stops working and responds with SMMEMFULL:SM


Are there any workarounds for this?

group = modems
id = generic
name = Huawei E220
detect-string = huawei
init-string = AT+CNMI=2,1,2,2,0
init-string = AT+CMGD=4
message-storage = sm
speed = 460800
message-start = 0

group = smsc
smsc = at
modemtype = generic
device = /dev/ttyUSB1
#speed = 19200
my-number = #
validityperiod = 167
#keepalive = 10
sim-buffering=true

2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: User data length
read as (60)
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: Udh decoding done
len=60 udhi=0 udhlen=0 udh=''
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGD=3^M
2015-07-09 20:44:54 [3791] [9] DEBUG: send_msg: sending msg to box:
127.0.0.1
2015-07-09 20:44:54 [3791] [9] DEBUG: boxc_sender: sent message to
127.0.0.1
2015-07-09 20:44:54 [3791] [8] DEBUG: boxc_receiver: got ack
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CPMS=sm^M
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- +CPMS:
0,30,0,30,0,30
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=0^M
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=1^M
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=2^M
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=3^M
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=4^M
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=5^M
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:54 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=6^M
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=7^M
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=8^M
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=9^M
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=10^M
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=11^M
2015-07-09 20:44:55 [3791] [1] DEBUG: HTTP: Destroying HTTPClient area
0x7f9b04000b70.
2015-07-09 20:44:55 [3791] [1] DEBUG: HTTP: Destroying HTTPClient for
`99.238.8.22'.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=12^M
2015-07-09 20:44:55 [3791] [1] DEBUG: HTTP: Destroying HTTPClient area
0x7f9b04000d30.
2015-07-09 20:44:55 [3791] [1] DEBUG: HTTP: Destroying HTTPClient for
`99.238.8.22'.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=13^M
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=14^M
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: not deleted.
2015-07-09 20:44:55 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- AT+CMGR=15^M
2015-07-09 20:44:56 [3791] [6] DEBUG: AT2[/dev/ttyUSB1]: -- OK
2015-07-09 20:44:56 [3791] [6] 

question about postgresql dlr storage

2015-07-09 Thread Marcin Matyaszczyk
Hello

we have a problem with Postgresql DLR storage, when we try to send sms
with source field containing ' character we've got an error:

2015-04-02 10:18:51 CEST STATEMENT:  INSERT INTO dlr (smsc, ts,
source, destination, service, url, mask, boxc, status)
VALUES ('smpp3', '', 'Victoria's', '+488', 'xx',
'http://.domain.pl/dlr2.php?id=110725920source=XXXt=%ti=%id=%dD=%DA=%AF=%F',
'31', '', '0');

2015-04-02 10:21:51 CEST ERROR:  syntax error at or near s at
character 147

We use kannel 1.5. Can you tell me how we can avoid this problem?

regards
Marcin Matyaszczyk



generic error after init device (AT+CSMS=?) only version = 1.4.4

2015-07-09 Thread Torsten Parschau

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]: -- ATF^M
2015-07-09 15:07:32 [5615] [6] DEBUG: AT2[modem]: -- ATF
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]: -- ATF^M
2015-07-09 15:20:35 [6081] [6] DEBUG: AT2[modem]: -- ATF
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: 

Re: Huawei E220 not reliable enough, please recommend something for high volume.

2015-07-09 Thread Alvaro Cornejo
Hi

You don't need to recompile kannel. just adjust 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

On Wed, Jul 8, 2015 at 7:59 PM, Arya Farzan arya6...@gmail.com wrote:

 I just found out to make the MultiTech work I would have to recompile the
 kernal. This is way too much work. I am still looking for a stable modem.

 On Fri, Jul 3, 2015 at 7:55 PM, Vinicio Cruz vinicio.c...@gmail.com
 wrote:

 Always copy to kannel list so everybody read it and may other have
 opinions about it or benefit of it.



 I’m pretty sure it was a mistake with the link, in the beginning, 8 years
 ago…, we tried this usb modem but due to the HW and SW versions by this
 time it wasn’t an option for us, this why we keep going with them up to now.



 Serial version has been very reliable for us, even last year when we
 change HW and SW and used the serial to usb converter they become even more
 stable, actually using kannel svn-r5104.



 Here is one modem config stract:



 group = smsc

 smsc-id = modem1

 smsc = at

 modemtype = multi-modem-serial

 device = /dev/ttyUSB0

 my-number = 

 keepalive = 60

 max-error-count = 1

 log-file = /kannel/log/modem1.log

 log-level = 0

 preferred-smsc-id = modem1

 validityperiod = 0

 speed = 57600

 sim-buffering = true



 *From:* Arya Farzan [mailto:arya6...@gmail.com]
 *Sent:* Friday, July 03, 2015 5:12 PM
 *To:* Vinicio Cruz
 *Subject:* RE: Huawei E220 not reliable enough, please recommend
 something for high volume.



 I think in one of your posts you said you also use this the modern below?


 http://www.amazon.com/gp/aw/d/B0007MYC1Y/ref=mp_s_a_1_1?qid=1435964617sr=8-1pi=AC_SX110_SY165_QL70keywords=MTCBA-G-UF2

 If you do can you tell me how well it worked for you? Can you give the
 config section for the modem?

 On Jul 3, 2015 7:07 PM, Vinicio Cruz vinicio.c...@gmail.com wrote:

 Forgot to tell that the modem pool have a year and half working.



 Regards.



 *From:* Vinicio Cruz [mailto:vinicio.c...@gmail.com]
 *Sent:* Friday, July 03, 2015 4:34 PM
 *To:* 'Arya Farzan'; 'Valdas Petrulis'
 *Cc:* 'users@kannel.org'
 *Subject:* RE: Huawei E220 not reliable enough, please recommend
 something for high volume.



 I use Multitech MTCBA-G-F2 model based on Wavecom Q2426B since 7 years
 ago and no problems, they are serial but last year using them with an
 Startech adapter serial to usb and had no problems with loads about 5-8k a
 day each, today they are old and hard to find, shure there are newer models
 and probably only usb model.



 I’m using another generic modem usb pool based on Wavecom Q2426B and no
 problems too, the only issue is that they are aprox 100% to 15% slower than
 the Multitech but in my case no problem, the average sending speed is 5 to
 6 seconds per message.



 Here are the links in case you want to make a little research:

 StarTech box converter:
 http://www.amazon.com/gp/product/B009AT5TB2?psc=1redirect=trueref_=oh_aui_search_detailpage

 Generic modem pool:
 http://www.amazon.com/gp/product/B00BD0UOR0?psc=1redirect=trueref_=oh_aui_search_detailpage



 Hope this helps.



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Arya
 Farzan
 *Sent:* Thursday, July 02, 2015 11:40 AM
 *To:* Valdas Petrulis
 *Cc:* users@kannel.org
 *Subject:* Re: Huawei E220 not reliable enough, please recommend
 something for high volume.



 Any have experience with the Multitech MTCBA-E1?



 On Thu, Jul 2, 2015 at 12:40 PM, Valdas Petrulis 
 petrulis.val...@gmail.com wrote:

 I recommend You Teltonika usb modem, we never forgot problems after
 migration Huawei - Teltonika



 2015-07-02, kt, 19:34 Leos Tovarek drl...@gmail.com rašė:

 Please check your MNO which you use for sending SMS.

 May be they can even deliver you their preferred modem.



 On Thu, Jul 2, 2015 at 6:30 PM, Arya Farzan arya6...@gmail.com wrote:

 Unfortunately Teltonika does not manufacture GSM USB modems anymore.
 Please keep the suggestions coming.



 On Thu, Jul 2, 2015 at 4:01 AM, Leos Tovarek drl...@gmail.com wrote:

 My Experience: Whatever I bought from Huawei, it had serious problems.
 I'll never repeat such mistake any more.



 On Thu, Jul 2, 2015 at 7:39 AM, JAHANZAIB SYED aaca...@hotmail.com
 wrote:

 I use teltonika usb modem and it works fine without hanging or
 plug/unplug.

 --- Original Message ---

 From: Arya Farzan arya6...@gmail.com
 Sent: 1 July 2015 20:24
 To: users@kannel.org
 Subject: Huawei E220 not reliable enough, please recommend something for
 high volume.

 Right now I am using the Huawei E220 but it becomes unresponsive a few
 times in a day and it needs to unplugged and plugged back in the USB port
 to work again. I send and 

Re: ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

2015-07-09 Thread Torsten Parschau

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

On Thu, Jul 9, 2015 at 8:39 AM, Torsten Parschau 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]: -- ATF^M
2015-07-09 15:07:32 [5615] [6] DEBUG: AT2[modem]: -- ATF
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]: -- ATF^M
2015-07-09 15:20:35 [6081] [6] DEBUG: AT2[modem]: -- ATF
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
   

RE: Huawei E220 not reliable enough, please recommend something for high volume.

2015-07-09 Thread Vinicio Cruz
Agree with Alvaro, don’t need to recompile kannel just add it.

 

From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] 
Sent: Thursday, July 09, 2015 7:40 AM
To: Arya Farzan
Cc: Vinicio Cruz; users
Subject: Re: Huawei E220 not reliable enough, please recommend something for 
high volume.

 

Hi

 

You don't need to recompile kannel. just adjust 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 

 

On Wed, Jul 8, 2015 at 7:59 PM, Arya Farzan arya6...@gmail.com wrote:

I just found out to make the MultiTech work I would have to recompile the 
kernal. This is way too much work. I am still looking for a stable modem.

 

On Fri, Jul 3, 2015 at 7:55 PM, Vinicio Cruz vinicio.c...@gmail.com wrote:

Always copy to kannel list so everybody read it and may other have opinions 
about it or benefit of it.

 

I’m pretty sure it was a mistake with the link, in the beginning, 8 years ago…, 
we tried this usb modem but due to the HW and SW versions by this time it 
wasn’t an option for us, this why we keep going with them up to now.

 

Serial version has been very reliable for us, even last year when we change HW 
and SW and used the serial to usb converter they become even more stable, 
actually using kannel svn-r5104.

 

Here is one modem config stract:

 

group = smsc

smsc-id = modem1

smsc = at

modemtype = multi-modem-serial

device = /dev/ttyUSB0

my-number = 

keepalive = 60

max-error-count = 1

log-file = /kannel/log/modem1.log

log-level = 0

preferred-smsc-id = modem1

validityperiod = 0

speed = 57600

sim-buffering = true

 

From: Arya Farzan [mailto:arya6...@gmail.com] 
Sent: Friday, July 03, 2015 5:12 PM
To: Vinicio Cruz
Subject: RE: Huawei E220 not reliable enough, please recommend something for 
high volume.

 

I think in one of your posts you said you also use this the modern below?

http://www.amazon.com/gp/aw/d/B0007MYC1Y/ref=mp_s_a_1_1?qid=1435964617 
http://www.amazon.com/gp/aw/d/B0007MYC1Y/ref=mp_s_a_1_1?qid=1435964617sr=8-1pi=AC_SX110_SY165_QL70keywords=MTCBA-G-UF2
 sr=8-1pi=AC_SX110_SY165_QL70keywords=MTCBA-G-UF2

If you do can you tell me how well it worked for you? Can you give the config 
section for the modem?

On Jul 3, 2015 7:07 PM, Vinicio Cruz vinicio.c...@gmail.com wrote:

Forgot to tell that the modem pool have a year and half working.

 

Regards.

 

From: Vinicio Cruz [mailto:vinicio.c...@gmail.com] 
Sent: Friday, July 03, 2015 4:34 PM
To: 'Arya Farzan'; 'Valdas Petrulis'
Cc: 'users@kannel.org'
Subject: RE: Huawei E220 not reliable enough, please recommend something for 
high volume.

 

I use Multitech MTCBA-G-F2 model based on Wavecom Q2426B since 7 years ago and 
no problems, they are serial but last year using them with an Startech adapter 
serial to usb and had no problems with loads about 5-8k a day each, today they 
are old and hard to find, shure there are newer models and probably only usb 
model.

 

I’m using another generic modem usb pool based on Wavecom Q2426B and no 
problems too, the only issue is that they are aprox 100% to 15% slower than the 
Multitech but in my case no problem, the average sending speed is 5 to 6 
seconds per message.

 

Here are the links in case you want to make a little research:

StarTech box converter: http://www.amazon.com/gp/product/B009AT5TB2?psc=1 
http://www.amazon.com/gp/product/B009AT5TB2?psc=1redirect=trueref_=oh_aui_search_detailpage
 redirect=trueref_=oh_aui_search_detailpage

Generic modem pool: http://www.amazon.com/gp/product/B00BD0UOR0?psc=1 
http://www.amazon.com/gp/product/B00BD0UOR0?psc=1redirect=trueref_=oh_aui_search_detailpage
 redirect=trueref_=oh_aui_search_detailpage

 

Hope this helps.

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Arya Farzan
Sent: Thursday, July 02, 2015 11:40 AM
To: Valdas Petrulis
Cc: users@kannel.org
Subject: Re: Huawei E220 not reliable enough, please recommend something for 
high volume.

 

Any have experience with the Multitech MTCBA-E1?

 

On Thu, Jul 2, 2015 at 12:40 PM, Valdas Petrulis petrulis.val...@gmail.com 
wrote:

I recommend You Teltonika usb modem, we never forgot problems after migration 
Huawei - Teltonika

 

2015-07-02, kt, 19:34 Leos Tovarek drl...@gmail.com rašė:

Please check your MNO which you use for sending SMS. 

May be they can even deliver you their preferred modem. 

 

On Thu, Jul 2, 2015 at 6:30 PM, Arya Farzan arya6...@gmail.com wrote:

Unfortunately Teltonika does not manufacture GSM USB modems anymore. Please 
keep the suggestions coming.

 

On Thu, Jul 2, 2015 at 4:01 AM, Leos Tovarek drl...@gmail.com wrote:

My Experience: Whatever I bought from Huawei, it had serious problems. I'll 
never repeat