Se connecter avec
S'enregistrer | Connectez-vous

You are not allowed to do this.

[Siemens M20] Envoyer un SMS sous Linux

Bonsoir.

Je tente de faire fonctionner un modem terminal GSM de marque Siemens (M20 - manuel), en envoyant un simple SMS.
Je suis sous Linux, et j'essai de l'utiliser grâce à Gnokii et/ou Kannel (une plate-forme SMS).

Le modem est parfaitement reconnu par gnokii :
  1. ju:~# gnokii --identify
  2. ...
  3. Received message type 06
  4. IMEI : 520008411015526
  5. Fabricant: SIEMENS
  6. Modele : M20
  7. Product name : M20
  8. Revision : Revision 3.3
  9. Serial device: closing device
  10. ju:~#


Mais quand je tente d'envoyer un message au travers de Gnokii :
  1. echo "mon message" | gnokii --sendsms +336XXXXXXXX


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


Soit une erreur inconnue... et aucun SMS d'envoyé.

Et quand je tente d'utiliser Kannel, et donc de lancer bearbox (avant smsbox) :
  1. bearerbox -v 0 /etc/kannel/sms.conf


J'obtiens :
  1. ...
  2. 2009-08-12 20:45:13 [2626] [6] INFO: AT2[/dev/ttyS0]: opening device
  3. 2009-08-12 20:45:13 [2626] [6] DEBUG: AT2[/dev/ttyS0]: device opened
  4. 2009-08-12 20:45:14 [2626] [6] DEBUG: AT2[/dev/ttyS0]: device opened
  5. 2009-08-12 20:45:14 [2626] [6] INFO: AT2[/dev/ttyS0]: init device
  6. 2009-08-12 20:45:14 [2626] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600
  7. 2009-08-12 20:45:14 [2626] [6] DEBUG: AT2[/dev/ttyS0]: --> ATZ^M
  8. 2009-08-12 20:45:19 [2626] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer to ATZ, ignoring
  9. 2009-08-12 20:45:19 [2626] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M
  10. 2009-08-12 20:45:23 [2626] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer to AT. Trying again
  11. 2009-08-12 20:45:23 [2626] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M
  12. 2009-08-12 20:45:27 [2626] [6] ERROR: AT2[/dev/ttyS0]: Second attempt to send AT failed
  13. 2009-08-12 20:45:27 [2626] [6] ERROR: AT2[/dev/ttyS0]: Opening failed. Terminating
  14. 2009-08-12 20:45:27 [2626] [6] INFO: AT2[/dev/ttyS0]: closing device
  15. 2009-08-12 20:45:27 [2626] [6] INFO: AT2[/dev/ttyS0]: opening device
  16. 2009-08-12 20:45:27 [2626] [6] DEBUG: AT2[/dev/ttyS0]: device opened
  17. 2009-08-12 20:45:28 [2626] [6] DEBUG: AT2[/dev/ttyS0]: device opened
  18. 2009-08-12 20:45:28 [2626] [6] INFO: AT2[/dev/ttyS0]: init device
  19. 2009-08-12 20:45:28 [2626] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600
  20. ...


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.

Je ne sais plus quoi tenter.

Quelqu'un pourrait-il venir à mon secours ?
Merci d'avance.

Autres pages sur : siemens m20 envoyer sms linux

Lassé par la pub ? Créez un compte
Tom's guide dans le monde