Hello,
sorry for my english (I'm french).

I'm trying to use an Siemens M20 modem
(http://www.coster.info/costerit/teleges/doc/gsm812s.pdf), to send a text.
I'm on Linux.

The modem is perfectly detected by Gnokii :
[code]ju:~# gnokii --identify
...
Received message type 06
IMEI         : 520008411015526
Fabricant: SIEMENS
Modele       : M20
Product name : M20
Revision     : Revision 3.3
Serial device: closing device
ju:~#[/code]

But when I try to send a text :
[code]echo "mon message" | gnokii --sendsms +336XXXXXXXX[/code]

I have :
[code]...
write: [07913386094000F011000B913376515541F10000AA0BEDB71BD42ECFE7E17319^Z]
read :
[^A^4913386094000F011000B913376515541F10000AA0BEDB71BD42ECFE7E17319<cr><cr><lf>+CMS
ERROR: 500<cr><lf>]
Message received: 0x21 / 0x0054
04 01 f4 39 31 33 33 38 36 30 39 34 30 30 30 46 |    913386094000F
30 31 31 30 30 30 42 39 31 33 33 37 36 35 31 35 | 011000B913376515
35 34 31 46 31 30 30 30 30 41 41 30 42 45 44 42 | 541F10000AA0BEDB
37 31 42 44 34 32 45 43 46 45 37 45 31 37 33 31 | 71BD42ECFE7E1731
39 0d 0d 0a 2b 43 4d 53 20 45 52 52 4f 52 3a 20 | 9   +CMS ERROR: 
35 30 30 0d                                     | 500             
Received message type 21
Envoi de SMS: echec (erreur=Erreur inconnue).
Serial device: closing device
ju:~#[/code]

Error 500 : Unknown error !

With Kannel :
[code]bearerbox -v 0 /etc/kannel/sms.conf[/code]

I have :
[code]...
2009-08-12 20:45:13 [2626] [6] INFO: AT2[/dev/ttyS0]: opening device
2009-08-12 20:45:13 [2626] [6] DEBUG: AT2[/dev/ttyS0]: device opened
2009-08-12 20:45:14 [2626] [6] DEBUG: AT2[/dev/ttyS0]: device opened
2009-08-12 20:45:14 [2626] [6] INFO: AT2[/dev/ttyS0]: init device
2009-08-12 20:45:14 [2626] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600
2009-08-12 20:45:14 [2626] [6] DEBUG: AT2[/dev/ttyS0]: --> ATZ^M
2009-08-12 20:45:19 [2626] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer to
ATZ, ignoring
2009-08-12 20:45:19 [2626] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M
2009-08-12 20:45:23 [2626] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer to
AT. Trying again
2009-08-12 20:45:23 [2626] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M
2009-08-12 20:45:27 [2626] [6] ERROR: AT2[/dev/ttyS0]: Second attempt to
send AT failed
2009-08-12 20:45:27 [2626] [6] ERROR: AT2[/dev/ttyS0]: Opening failed.
Terminating
2009-08-12 20:45:27 [2626] [6] INFO: AT2[/dev/ttyS0]: closing device
2009-08-12 20:45:27 [2626] [6] INFO: AT2[/dev/ttyS0]: opening device
2009-08-12 20:45:27 [2626] [6] DEBUG: AT2[/dev/ttyS0]: device opened
2009-08-12 20:45:28 [2626] [6] DEBUG: AT2[/dev/ttyS0]: device opened
2009-08-12 20:45:28 [2626] [6] INFO: AT2[/dev/ttyS0]: init device
2009-08-12 20:45:28 [2626] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600
...[/code]

And a loop with « wrong or no answer ».

Can you help me ?
Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Send-SMS-with-Siemens-M20-on-Linux-tp24941326p24941326.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to