Hi

For clarify a little, the "^Z" is normal when sending a message though
AT commads. It tells the modem of the end of the message and that it
can start processing the message. You must have an ^Z after each
message otherwise the modem will not process the message.

The "ATZ" command is the command that tells the modem to
"initialize"... not necesarily to reset nor to reset to factory
defaults.

The sequence to send an sms though at commands is:

AT+CMGS=XYZ                                          //Tells modem you
want to send message of XYZ octets (excluding the two initial zeros)
0011000B.... waht ever the PDU is                // full message pdu
<ctrl-z>                                                       // end
of PDU => process the message.


Are you using CMEE=1 or 2 in your modem config to get verbose logging
from the modem?
Check that the SIM is activated and has credit available if it is a prepaid plan

Hope helps

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



2010/4/28 Nikos Balkanas <nbalka...@gmail.com>:
> Hi,
>
> ^Z throws an error. This corresponds to reset string. You  need to configure
> it in your modems group. Please read User's guide about it.
>
> BR,
> Nikos
> ----- Original Message ----- From: "arway"
> <taha.ar...@alpha-engineering.net>
> To: <users@kannel.org>
> Sent: Wednesday, April 28, 2010 12:39 PM
> Subject: Generic error: ERROR
>
>
>
> Hello
>
> I have the same problem like you, im bloked, please tell mee if you have
> solved this problem.
> When i try to send sms with bearerbox and sendsms i have this generic error.
> My GSM modem is an usb siemens mc35 mounted on /dev/ttyACM0
>
> Thanks
> Best Regards..
>
>
>
> Drew Stockler wrote:
>>
>> This mornig I was getting this error in the bearerbox log. It was because
>> I had modemtype = wavecom. I changed it to auto and I was able to send my
>> first text messages. I then saved that config file and started working a
>> config file that would include dlr storage in mysql. That didnt go to well
>> so i reverted back to the config file that worked. However I started to
>> get this error again.Β It just repeats. Everything seems to connect
>> correctly until i send a message. the username and passwords are marked
>> out but they are correct in the config file and the url.
>>
>>
>> http://localhost:13004/cgi-bin/sendsms?username=*****&password=****&to=4043078165&text=test
>>
>> DEBUG: boxc_receiver: sms received
>> 2009-01-06 15:20:35 [7358] [13] DEBUG: send_msg: sending msg to box:
>> <127.0.0.1>
>> 2009-01-06 15:20:37 [7358] [6] DEBUG: AT2[/dev/ttyS0]: TP-Validity-Period:
>> 24.0 hours
>> 2009-01-06 15:20:37 [7358] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=17^M
>> 2009-01-06 15:20:37 [7358] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
>> 2009-01-06 15:20:37 [7358] [6] DEBUG: AT2[/dev/ttyS0]: send command
>> status: 1
>> 2009-01-06 15:20:37 [7358] [6] DEBUG: AT2[/dev/ttyS0]: -->
>> 0011000A8104347018560000A704F4F29C0E
>> 2009-01-06 15:20:37 [7358] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
>> 2009-01-06 15:20:39 [7358] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
>> 2009-01-06 15:20:39 [7358] [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
>> 2009-01-06 15:20:39 [7358] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
>> ERROR
>> 2009-01-06 15:20:39 [7358] [6] DEBUG: AT2[/dev/ttyS0]: send command
>> status: -1
>> 2009-01-06 15:20:39 [7358] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=17^M
>> 2009-01-06 15:20:39 [7358] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
>> 2009-01-06 15:20:39 [7358] [6] DEBUG: AT2[/dev/ttyS0]: send command
>> status: 1
>> 2009-01-06 15:20:39 [7358] [6] DEBUG: AT2[/dev/ttyS0]: -->
>> 0011000A8104347018560000A704F4F29C0E
>> 2009-01-06 15:20:40 [7358] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
>> 2009-01-06 15:20:42 [7358] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
>> 2009-01-06 15:20:42 [7358] [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
>> 2009-01-06 15:20:42 [7358] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
>> ERROR
>> 2009-01-06 15:20:42 [7358] [6] DEBUG: AT2[/dev/ttyS0]: send command
>> status: -1
>>
>> Here is the config file
>>
>> #
>> # Sample configuration file for Kannel bearerbox on Debian.
>> # See the documentation for explanations of fields.
>> #
>>
>> # HTTP administration is disabled by default. Make sure you set the
>> # password if you enable it.
>>
>> group = core
>> admin-port = 13000
>> admin-password = bar
>> admin-deny-ip = "*.*.*.*"
>> admin-allow-ip = ""
>> smsbox-port = 13003
>> wdp-interface-name = "*"
>> log-file = "/var/log/kannel/bearerbox.txt"
>> log-level = 0
>> box-deny-ip = "*.*.*.*"
>> box-allow-ip = "127.0.0.1"
>>
>>
>>
>> group = smsc
>> smsc = at
>> modemtype = auto
>> device = /dev/ttyS0
>> my-number = 13124010078
>> sms-center =13123149810
>> connect-allow-ip = 127.0.0.1
>>
>>
>>
>> group = sms-service
>> keyword =
>> keyword-regex = .*
>> catch-all = yes
>> max-messages = 0
>> get-url = "http://localhost/sms?phone=%p&text=%a";
>>
>> group = sendsms-user
>> username = *******
>> password = ****
>> max-messages = 10
>> concatenation = true
>>
>> group = smsbox
>> bearerbox-host = 127.0.0.1
>> sendsms-port = 13004
>> global-sender = 3124010078
>> log-file = "/var/log/kannel/smsbox.txt"
>> log-level = 0Β Β Β
>>
>> include= "/usr/share/doc/kannel/examples/modems.conf"
>>
>>
>>
>>
>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/AT2--dev-ttyS0-%3A-Generic-error%3A-ERROR-tp21319735p28367512.html
> Sent from the Kannel - User mailing list archive at Nabble.com.
>
>
>
>

Reply via email to