The error can come from a number of possibilities:
add at+cmee=1 or 2 to the modem init string in order to get debug info
about the error returned from modem
and post results.
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.NET www.smsglobal.com.mx y
www.pravcom.com
On Tue, Aug 25, 2009 at 1:10 PM, Michael
Bochkaryov<[email protected]> wrote:
> Hello,
>
> Can anybody help with Kannel configuration for use with Siemens C35 phone as
> 'at' SMSC?
> Seems like it should support AT+CMGS command (if trust to Siemens docs) but
> response is "ERROR" :-(
>
> Configuration and part of log is below.
> Thanks in advance!
>
>
> Configuration (smsc and modem sections):
> ==================================================
> group = smsc
> smsc = at
> smsc-id = c35
> allowed-smsc-id = c35
> modemtype = siemens
> device = /dev/ttyS0
> speed = 19200
> sms-center = "+380639010000"
> #sim-buffering = true
> log-file = /var/log/kannel/siemens.log
> log-level = 0
>
> group = modems
> id = siemens
> name = "Siemens C35"
> detect-string = "SIEMENS"
> init-string = "AT+CNMI=1,2,0,1,1"
> speed = 9600
> enable-hwhs = "AT\\Q3"
> keepalive-cmd = "AT+CBC;+CSQ"
> need-sleep = true
>
>
>
> Here is part of debug level log:
> ==================================================
> 2009-08-25 20:57:00 [4041] [7] DEBUG: AT2[c35]: --> ATZ^M
> 2009-08-25 20:57:04 [4041] [7] ERROR: AT2[c35]: Wrong or no answer to ATZ,
> ignoring
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: --> AT^M
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- AT
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: --> AT&F^M
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- AT&F
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: --> ATE0^M
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- ATE0
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: --> AT\Q3^M
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: --> AT+CPIN?^M
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- +CPIN: READY
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -->
> AT+CSCA="+380639010000"^M
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: --> AT+CMGF=0^M
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: --> AT+CSMS=?^M
> 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: <-- +CSMS: (0,1)
> 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:05 [4041] [7] INFO: AT2[c35]: Phase 2+ is supported
> 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: --> AT+CSMS=1^M
> 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: <-- +CSMS: 1,1,1
> 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: --> AT+CNMI=1,2,0,1,1^M
> 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: <-- OK
> 2009-08-25 20:57:05 [4041] [7] INFO: AT2[c35]: AT SMSC successfully opened.
> 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: TP-Validity-Period: 24.0
> hours
> 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: --> AT+CMGS=21^M
> 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: <-- >
> 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: send command status: 1
> 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: -->
> 0011000B810876226077F00000A708F4F29C0E1ACF6A
> 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: --> ^Z
> 2009-08-25 20:57:23 [4041] [7] DEBUG: AT2[c35]: <-- >
> 2009-08-25 20:57:23 [4041] [7] DEBUG: AT2[c35]: <-- ERROR
> 2009-08-25 20:57:23 [4041] [7] ERROR: AT2[c35]: Generic error: ERROR
> 2009-08-25 20:57:23 [4041] [7] DEBUG: AT2[c35]: send command status: -1
>
>
>
>
> --
> Regards,
> Michael Bochkaryov
> www.rattler.kiev.ua
>