URL: https://linuxfr.org/forums/linux-general/posts/envoyer-un-sms-avec-un-siemens-m20 Title: Envoyer un SMS avec un Siemens M20 Authors: Junix Date: 2009年08月12日T22:52:41+02:00 Tags: Score: 1 Bonsoir. Je tente de faire fonctionner un modem terminal GSM de marque Siemens (M20 - [manuel](http://www.coster.info/costerit/teleges/doc/gsm812s.pdf)), en envoyant un simple SMS. Je suis sous Debian, et j'essai de l'utiliser grâce à Gnokii et/ou Kannel (une plate-forme SMS). Le modem est parfaitement reconnu par gnokii : 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:~# Mais quand je tente d'envoyer un message au travers de Gnokii : echo "mon message" | gnokii --sendsms +336XXXXXXXX J'obtiens : ... write: [07913386094000F011000B913376515541F10000AA0BEDB71BD42ECFE7E17319^Z] read : [^A^4913386094000F011000B913376515541F10000AA0BEDB71BD42ECFE7E17319+CMS ERROR: 500] 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:~# Soit une erreur inconnue... et aucun SMS d'envoyé. Et quand je tente d'utiliser Kannel, et donc de lancer bearbox (avant smsbox) : bearerbox -v 0 /etc/kannel/sms.conf J'obtiens : ... 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 ... Et puis le trying se répéte en boucle, sans jamais obtenir autre chose qu'une « wrong or no answer ». Pour Kannel, j'ai suivi [ce tuto](http://labregere.eu/~amwsh/smsd/pdf_passerelleSMS.pdf). Je ne sais plus quoi tenter. Quelqu'un pourrait-il venir à mon secours ? Merci d'avance.

AltStyle によって変換されたページ (->オリジナル) /