Accéder au contenu principal

Configuration de Kannel

Voir la première étape

La configuration se fera en trois sous-étapes :

1. Configuration du modem
Branchez votre modem Huawei 3G (Clé Orange), ouvrez le terminal et tapez :
sudo su
puis tapez votre mot de passe.
Ensuite, tapez
apt-get install usb-modeswitch

Toujours sur le terminal; tapez :
gedit /etc/udev/rules.d/62-option-modem-modeswitch.rules
Attention : Ne fermez pas le terminal, nous n'avons pas terminé.
Copiez, sur le fichier ouvert; le contenu du fichier disponible ici
 Enregistrez et fermez le fichier

Continuons toujours sur le terminal en tapant :
minicom -s
Allez à la trosième ligne qui est :
Serial port setup ou
Appuyez sur la touche "Entrer"  et tapez
a
Effacez tout ce qui est après /dev/tty et tapez 
USB0
Vous devez obtenir /dev/ttyUSB0
Tapez sur la touche "Entrer" deux (2) fois
 Allez à la ligne six(6) qui est :
Save setup as dfl ou
faites "Entrer" deux (2) fois..
Ensuite, faites "ctrl a", puis appuyez sur la touche "q"
voila votre modem est configuré !

2. Configuration du fichier kannel.conf
 Sur le terminal, tapez
cd /etc/kannel
ensuite
gedit kannel.conf
Effacez tout le contenu du fichier ouvert; puis copiez, sur le fichier; le contenu du fichier disponible ici.
Remplaez  aux lignes :
-global-sender, +22177xxxxxxx  par le numéro de la carte sim sur votre modem ;
-my-number pareil que précédemment ;
-pin, 0000 par le code pin de la carte sim sur votre modem..
Ensuite, enregistrez et fermez le fichier.
Sur le terminal, tapez
bearerbox -v 0 kannel.conf
S' il y a des lignes et des lignes qui se terminent par
AT succesfully ...
Vous avez réussi à configurer kannel.
Ouvrez un second terminal
Tapez :
sudo su
saisissez votre mot de passe.
Ensuite, tapez :
smsbox -v 0 kannel.conf

3. Tests
Pour tester, envoyez                                                                                                                                      
test                                                                                                                                                                
à partir de votre portable.
Vous devriez voir le message sur le terminal où vous avez lancé le smsbox
Si la carte sim sur la clé orange a du crédit, vous recevriez, sur votre portable, le message
Configuration de kannel réussie. Bravo !!!

Vous pouvez aussi envoyer un message à partir de votre navigateur, en tapant sur la barre d'adresse du navigateur (remplacer les étoiles par le numéro de la carte sim de la clé):
http://localhost:14000/cgi-bin/sendsms?username=kannel&password=kannel&to=+22177****&text=test                                                                                                                                                       

Enfin !!!
Si vous voulez utiliser kannel avec une base de données, passez à l'étape 3 en cliquant ici


[)3\/73X, le blog du partage !

Commentaires

  1. Senghor orphan8 mai 2011 à 17:02

    C'est bien, félicitation à Djolof tek!

    RépondreSupprimer
    Réponses
    1. Binjour j'ai suivi le tuto, mais j'ai un pb avec mon modem, il était detectable et maintenant je ne vois plus rien, quelqu'un peut m'aider? Merci

      voici mon fichier wvdial.conf
      [Dialer Defaults]
      Init1 = ATZ
      Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
      Modem Type = Analog Modem
      ISDN = 0
      ; Password =
      New PPPD = yes
      ; Username =
      Phone = 05XXXXXXXXX
      Modem = /dev/ttyUSB0
      Baud = 9600

      Supprimer
  2. Bonjour, le lien de l'étape trois n est pas actif.

    RépondreSupprimer
  3. Il est maintenant actif -le lien de l'étape trois !

    RépondreSupprimer
    Réponses
    1. Bonsoir
      excusez-moi mais je ne trouve pas le dossier kannel

      Supprimer
  4. le lien pour le fichier test.sql n'est pas actif

    RépondreSupprimer
  5. Bonjour!
    D'abord merci pour le tuto mais moi j'ai un problème, j'ai suivie toutes les configurations mais quand je tape bearbox -v 0 kannel.conf j'ai un message d'érreur:
    bearbox : commande introuvable

    RépondreSupprimer
    Réponses
    1. Bonjour
      Ecrivez bearerbox -v 0 kannel.conf

      Supprimer
  6. Bonjour,
    Vous avez écrit "bearbox" au lieu de "bearerbox".
    Vous avez omis le "er" entre "bear" et "box".

    RépondreSupprimer
  7. Bonsoir M.
    J'ai des difficultés et je voudrais demander votre aide. quand je tape la commande bearerbox -v 0 kannel.conf j'ai cette erreure:
    ERROR: AT2[Huawei-E1550]: Couldnot write to device.
    2011-09-02 21:04:21 [4125] [4] ERROR: System error 11: Resource temporarily unavailable

    SVP aidez moi!

    RépondreSupprimer
  8. Bonjour M.
    J'ai pu regler mon érreur il a fallu que je change le USB0 en USB2. Mais maintenant j'ai une autre erreur : AT2[Huawei-E1550]: Couldn't connect.
    Pouvez vous m'aidez?

    RépondreSupprimer
  9. Bonsoir,
    Pouvez-vous donner entièrement le message d'erreur ?
    Sur votre fichier kannel.conf, modifiez E1552 en E1550.
    Essayez aussi les solutions suivantes et donnez moi les réponses:
    -tapez minicom pour voir si votre modem est bien connecté. Si oui suivez le second tiret sinon revoyez votre configuration.
    -Vérifiez bien le fichier 62-option-modem-modeswitch.rules
    NB: Il ne faut l'utiliser en même temps pour la connexion internet (Verifiez que le modem n'est pas connecté !)
    -
    -Il y a une autre possibilité.
    Envoyez moi les erreurs.

    RépondreSupprimer
  10. Bonjour, merci votre aide elle très précieuse pour moi.
    J'ai tenu compte de toutes les possibilités que vous aviez proposer mais je rencontre toujours des problèmes. voici le message d'erreur:
    ilboudo@ILBOUDO-PC:/etc/kannel$ sudo bearerbox -v 1 kannel.conf
    2011-09-09 08:43:22 [21553] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0
    2011-09-09 08:43:22 [21553] [0] WARNING: DLR: using default 'internal' for storage type.
    2011-09-09 08:43:22 [21553] [0] INFO: DLR using storage type: internal
    2011-09-09 08:43:22 [21553] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'.
    2011-09-09 08:43:22 [21553] [0] INFO: Started access logfile `/var/log/bearerbox-access.log'.
    2011-09-09 08:43:22 [21553] [0] INFO: HTTP: Opening server at port 13001.
    2011-09-09 08:43:22 [21553] [0] ERROR: bind failed
    2011-09-09 08:43:22 [21553] [0] ERROR: System error 98: Address already in use
    2011-09-09 08:43:22 [21553] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2011-09-09 08:43:22 [21553] [0] INFO: Set SMS resend frequency to 60 seconds.
    2011-09-09 08:43:22 [21553] [0] INFO: SMS resend retry set to unlimited.
    2011-09-09 08:43:22 [21553] [0] INFO: DLR rerouting for smsc id disabled.
    2011-09-09 08:43:22 [21553] [0] INFO: AT2[Huawei-E1550]: configuration shows modemtype
    2011-09-09 08:43:22 [21553] [0] INFO: AT2[Huawei-E1550]: modemtype not found, revert to autodetect
    2011-09-09 08:43:22 [21553] [4] INFO: AT2[Huawei-E1550]: opening device
    2011-09-09 08:43:22 [21553] [0] INFO: ----------------------------------------
    2011-09-09 08:43:22 [21553] [0] INFO: Kannel bearerbox II version 1.4.3 starting
    2011-09-09 08:43:22 [21553] [0] INFO: MAIN: Start-up done, entering mainloop
    2011-09-09 08:43:23 [21553] [4] INFO: AT2[Huawei-E1550]: speed set to 9600
    2011-09-09 08:43:33 [21553] [4] ERROR: AT2[Huawei-E1550]: Couldn't connect (retrying in 10 seconds).
    2011-09-09 08:43:43 [21553] [4] INFO: AT2[Huawei-E1550]: opening device
    2011-09-09 08:43:43 [21553] [4] WARNING: AT2[Huawei-E1550]: trying to open device with not closed device!!! Please report!!!
    2011-09-09 08:43:43 [21553] [4] INFO: AT2[Huawei-E1550]: Closing device
    2011-09-09 08:43:44 [21553] [4] INFO: AT2[Huawei-E1550]: speed set to 9600
    2011-09-09 08:43:54 [21553] [4] ERROR: AT2[Huawei-E1550]: Couldn't connect (retrying in 10 seconds).
    2011-09-09 08:44:04 [21553] [4] INFO: AT2[Huawei-E1550]: opening device
    2011-09-09 08:44:04 [21553] [4] WARNING: AT2[Huawei-E1550]: trying to open devio {7!>h@C[lN[h4B: Fj \port!!!
    2011-09-09 08:44:04 [21553] [4] INFO: AT2[Huawei-E1550]: Closing device
    2011-09-09 08:44:05 [21553] [4] INFO: AT2[Huawei-E1550]: speed set to 9600
    2011-09-09 08:44:15 [21553] [4] ERROR: AT2[Huawei-E1550]: Couldn't connect (retrying in 10 seconds).
    2011-09-09 08:44:25 [21553] [4] INFO: AT2[Huawei-E1550]: opening device
    2011-09-09 08:44:25 [21553] [4] WARNING: AT2[Huawei-E1550]: trying to open device with not closed device!!! Please report!!!
    2011-09-09 08:44:25 [21553] [4] INFO: AT2[Huawei-E1550]: Closing device
    2011-09-09 08:44:26 [21553] [4] INFO: AT2[Huawei-E1550]: speed set to 9600
    2011-09-09 08:44:36 [21553] [4] ERROR: AT2[Huawei-E1550]: Couldn't connect (retrying in 10 seconds).

    RépondreSupprimer
  11. Bonsoir,
    Il semblerait que vous n'ayez pas changé le type du modem. Il signale "modemtype not found, revert to autodetect". Ensuite, tuez le processus en cours (kill -9 ...). Et réessayez !

    RépondreSupprimer
  12. Bonjour,
    merci votre aide elle très précieuse pour moi.
    J'ai tenu compte de toutes les possibilités que vous aviez proposer mais je rencontre toujours des problèmes. voici le message d'erreur:

    root@kafena:/etc/kannel# bearerbox -v O kannel.conf
    2011-10-11 12:43:13 [3026] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2011-10-11 12:43:13 [3026] [0] ERROR: Group does not contain variable 'group'.
    2011-10-11 12:43:13 [3026] [0] ERROR: Error found on line 14 of file `kannel.conf'.
    2011-10-11 12:43:13 [3026] [0] PANIC: Couldn't read configuration from `kannel.conf'.
    2011-10-11 12:43:13 [3026] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80d469d]
    2011-10-11 12:43:13 [3026] [0] PANIC: bearerbox(main+0xdc8) [0x8055fc8]
    2011-10-11 12:43:13 [3026] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0xd94e37]



    SVP aidez moi!

    RépondreSupprimer
  13. bsr moi également j'ai eu la meme erreur et ça quand je tapais bearerbox -v 0 kannel.conf ça m'affichait:
    root@ubuntu:/etc/kannel# bearerbox -v kannel.conf
    2012-03-29 00:33:40 [4875] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2012-03-29 00:33:40 [4875] [0] ERROR: Group does not contain variable 'group'.
    2012-03-29 00:33:40 [4875] [0] ERROR: Error found on line 6 of file `kannel.conf'.
    2012-03-29 00:33:40 [4875] [0] PANIC: Couldn't read configuration from `kannel.conf'.
    2012-03-29 00:33:40 [4875] [0] PANIC: bearerbox(gw_panic+0x15a) [0x481bfa]
    2012-03-29 00:33:40 [4875] [0] PANIC: bearerbox(main+0xc20) [0x410be0]
    2012-03-29 00:33:40 [4875] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff) [0x7f106973aeff]
    2012-03-29 00:33:40 [4875] [0] PANIC: bearerbox() [0x40f299]

    RépondreSupprimer
  14. hello all!
    Au cas où l'interface affiche couldn't connect il faut faire un /etc/init.d/kannel stop et relancer le bearerbox.
    Ps: En passant @[)3\/73X il est magnifique ton tutoriel. good job!

    NotaGeek -_-'

    RépondreSupprimer
  15. Bonsoir
    j'ai configuré Kannel et tout marche tres bien mais quand j'effectue un test avec sms-service les sms ne passent pas pouratant je recois un accuse sur mon mobile. voici l'erreur que j'ai

    2012-05-23 22:02:22 [15133] [6] INFO: AT2[Huawei-E1552]: AT SMSC successfully opened.
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: --> AT^M
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: <-- OK
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: --> AT+CPMS?^M
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: <-- +CPMS: "SM",1,30,"SM",1,30,"SM",1,30
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: <-- OK
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: 1 messages waiting in memory
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: --> AT+CMGR=1^M
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: <-- OK
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: not deleted.
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: --> AT+CMGR=2^M
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: <-- OK
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: not deleted.
    2012-05-23 22:02:24 [15133] [6] DEBUG: AT2[Huawei-E1552]: --> AT+CMGR=3^M

    RépondreSupprimer
  16. Bonjour,

    "1 messages waiting in memory" veut dire qu'il a bien recu le message mais la memoire est pleine.
    Remarque :
    Ta configuration est bonne.
    Cependant, tu utilises la carte SIM pour enregistrer les messages recus {SM}. Essayes ME pour voir et envoie ta ligne init-string.

    RépondreSupprimer
  17. Salut a tous,

    j'ai besoin de votre aide :

    je viens de configurer kannel avec une cle orange everywhere.
    J'arrive a envoyer des messages depuis le navigateur sans probleme.
    Mais si j'envoie depuis un portable, rien ne s'affiche a l'ecran.
    Et pourtant, la puce de la cle orange recois le message.

    Avec "SM" comme "ME", c'est la meme chose.
    J'ai essayé 2 ligne init-string different qui marche(depuis le navigateur):
    init-string ="AT+CNMI=2,1,2,2,0"
    init-string = "AT+CNMI=2,1,0,0,0;+CMEE=1"

    Mon seul souci est que : si je send un sms depuis un portable, rien ne s'affiche.

    merci de votre aide.

    RépondreSupprimer
    Réponses
    1. Salut,
      Rien ne s'affiche sur le bearerbox ou sur le smsbox ?
      avez-vous autorisé l'envoi de message depuis un téléphone ?
      Postez le fichier de configuration.

      Supprimer
    2. slt,comment j'autorise l'envoie de message depuis téléphone

      Supprimer
    3. Bonjour! Très bon Boulot [)3\/73X.
      J'ai suivi le tutoriel, et j'ai le même problème.
      J'ai configuré Kannel avec un clé Orange everywhere E3131.
      J'arrive à envoyer des messages depuis le navigateur et le message envoyé est visible sur le terminal de smsbox. Mais lorsque j'envoie un message depuis un téléphone, je reçois bien un accusé de réception, mais je ne vois pas le message sur le terminal de smsbox.

      Comment autoriser l'envoi de message depuis un téléphone?

      Supprimer
  18. Bonjour,
    merci pour ce tuto. Je rencontre une erreur: AT2[huaweie1552]:Couldn't connect retrying in 10 secondes.
    Merci de m'aider svp.

    RépondreSupprimer
    Réponses
    1. Bonjour,
      Veuillez regarder si le modem est bien connecté.
      Si oui, revoyez la configuration avec le minicom.

      Supprimer
  19. Le modem est bien connecté oui: quand je mets minicom -s, il mouvre bien linterface de connectivité au modem. Et quand je lance le bearerbox, je vois quelque part ou il me dit modem desabled.

    RépondreSupprimer
    Réponses
    1. Alors revoyez tous le processus (fichier kannel, fichier usbmodesswitch...).
      J’espère aussi que vous n'utilisez pas le modem en même temps pour vous connecter, vérifiez tout de même, parfois il se connecte automatiquement.

      Avec le "couldn't connect" c'est toujours cela, reconnectez le modem et regardez s'il n'est pas connecté comme clé internet.

      Supprimer
  20. Alors revoyez tous le processus (fichier kannel, fichier usbmodesswitch...).
    J’espère aussi que vous n'utilisez pas le modem en même temps pour vous connecter, vérifiez tout de même, parfois il se connecte automatiquement.

    Avec le "couldn't connect" c'est toujours cela, reconnectez le modem et regardez s'il n'est pas connecté comme clé internet.

    RépondreSupprimer
  21. je viens de suivre votre procedure d'installer, tout marche pas. Merci

    RépondreSupprimer
  22. Tout ne peut pas ne pas marcher ! revoyez votre methode !

    RépondreSupprimer
  23. Bonjour à tous. J'ai tenté l'expérience avec Kannel. J'aurais juré que ma config est bonne parceque je l'ai révisé encore et encore mais n'empéche ca ne passe toujours pas. Quand j'exécute la commande bearerbox -v 0 kannel.conf, voici ce qui s'affiche:

    2012-12-18 18:44:17 [4771] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
    2012-12-18 18:44:17 [4771] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
    2012-12-18 18:44:17 [4771] [0] INFO: HTTP: Opening server at port 13000.
    2012-12-18 18:44:17 [4771] [0] ERROR: bind failed
    2012-12-18 18:44:17 [4771] [0] ERROR: System error 98: Address already in use
    2012-12-18 18:44:17 [4771] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_run)
    2012-12-18 18:44:17 [4771] [0] DEBUG: starting smsbox connection module
    2012-12-18 18:44:17 [4771] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2012-12-18 18:44:17 [4771] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_smsboxes)
    2012-12-18 18:44:17 [4771] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) maps to pid 4771.
    2012-12-18 18:44:17 [4771] [2] DEBUG: Thread 2 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 4771.
    2012-12-18 18:44:17 [4771] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps to pid 4771.
    2012-12-18 18:44:17 [4771] [1] DEBUG: HTTP: No clients with requests, quitting.
    2012-12-18 18:44:17 [4771] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) terminates.
    2012-12-18 18:44:17 [4771] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_run)
    2012-12-18 18:44:17 [4771] [0] INFO: Set SMS resend frequency to 60 seconds.
    2012-12-18 18:44:17 [4771] [3] ERROR: bind failed
    2012-12-18 18:44:17 [4771] [3] ERROR: System error 98: Address already in use
    2012-12-18 18:44:17 [4771] [0] INFO: SMS resend retry set to unlimited.
    2012-12-18 18:44:17 [4771] [3] PANIC: Could not open smsbox port 13002
    2012-12-18 18:44:17 [4771] [0] DEBUG: smsbox MO concatenated message handling enabled
    2012-12-18 18:44:17 [4771] [0] INFO: DLR rerouting for smsc id disabled.
    2012-12-18 18:44:17 [4771] [0] INFO: AT2[Huawei-EC167]: configuration shows modemtype

    RépondreSupprimer
    Réponses
    1. Salut,
      Des que tu vois "already in use", c'est parceque le port est deja utilise. Solution : tue les processus kannel et recommence !

      Supprimer
  24. Ce commentaire a été supprimé par un administrateur du blog.

    RépondreSupprimer
  25. Bsr!! Bon, apparemment tout fonctionne mis à part ceci:

    2012-12-21 19:56:02 [4345] [6] ERROR: AT2[Huawei-EC167]: Wrong or no answer to ATZ, ignoring
    2012-12-21 19:56:02 [4345] [6] DEBUG: AT2[Huawei-EC167]: --> AT^M
    2012-12-21 19:56:06 [4345] [6] ERROR: AT2[Huawei-EC167]: Wrong or no answer to AT. Trying again
    2012-12-21 19:56:06 [4345] [6] DEBUG: AT2[Huawei-EC167]: --> AT^M
    2012-12-21 19:56:10 [4345] [6] ERROR: AT2[Huawei-EC167]: Second attempt to send AT failed
    2012-12-21 19:56:10 [4345] [6] ERROR: AT2[Huawei-EC167]: Initialization of device failed.
    2012-12-21 19:56:10 [4345] [6] INFO: AT2[Huawei-EC167]: Closing device
    2012-12-21 19:56:10 [4345] [6] ERROR: AT2[Huawei-EC167]: Couldn't connect (retrying in 10 seconds).

    Si vous pouvez m'aider. Merci!!

    RépondreSupprimer
    Réponses
    1. Bonsoir,
      Regarde si ton modem est bien connecte et s'il n'est pas utilise ailleurs. Fais minicom -s par exemple, tu sauras.

      Supprimer
  26. Slt! 'ai toujours le méme probleme et c'est seulement le modem:

    2013-01-01 18:52:40 [8488] [0] WARNING: DLR: using default 'internal' for storage type.
    2013-01-01 18:52:44 [8488] [6] ERROR: AT2[Huawei-EC_167]: Wrong or no answer to ATZ, ignoring
    2013-01-01 18:52:48 [8488] [6] ERROR: AT2[Huawei-EC_167]: Wrong or no answer to AT. Trying again
    2013-01-01 18:52:52 [8488] [6] ERROR: AT2[Huawei-EC_167]: Second attempt to send AT failed
    2013-01-01 18:52:52 [8488] [6] ERROR: AT2[Huawei-EC_167]: Initialization of device failed.
    2013-01-01 18:52:52 [8488] [6] ERROR: AT2[Huawei-EC_167]: Couldn't connect (retrying in 10 seconds).
    2013-01-01 18:53:06 [8488] [6] ERROR: AT2[Huawei-EC_167]: Wrong or no answer to ATZ, ignoring
    2013-01-01 18:53:10 [8488] [6] ERROR: AT2[Huawei-EC_167]: Wrong or no answer to AT. Trying again
    2013-01-01 18:53:14 [8488] [6] ERROR: AT2[Huawei-EC_167]: Second attempt to send AT failed
    2013-01-01 18:53:14 [8488] [6] ERROR: AT2[Huawei-EC_167]: Initialization of device failed.

    RépondreSupprimer
    Réponses
    1. Slt,
      Faites sur le terminal : wvdialconf
      Et donnez moi le resultat

      Supprimer
  27. la commande minicom -s ca passe chez moi, ma clé m'est pas connecté à internerreur persiste?t car j'use de mon Wlan mais cet erreur persiste. Cet erreur me fatigue trop snifff!!!

    RépondreSupprimer
    Réponses
    1. Slt,
      Faites sur le terminal : wvdialconf
      Et donnez moi le resultat

      Supprimer
    2. voici le rsulta


      Scanning your serial ports for a modem.

      Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7
      Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15
      Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23
      Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31
      ttyUSB0<*1>: ATQ0 V1 E1 -- OK
      ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
      ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
      ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
      ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
      ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
      ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
      ttyUSB0<*1>: Speed 9600: AT -- OK
      ttyUSB0<*1>: Max speed is 9600; that should be safe.
      ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
      ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
      ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
      ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
      ttyUSB2<*1>: ATQ0 V1 E1 -- OK
      ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
      ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
      ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
      ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
      ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
      ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: huawei
      ttyUSB2<*1>: Speed 9600: AT -- OK
      ttyUSB2<*1>: Max speed is 9600; that should be safe.
      ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
      ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
      ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
      ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
      ttyUSB4<*1>: ATQ0 V1 E1 -- OK
      ttyUSB4<*1>: ATQ0 V1 E1 Z -- OK
      ttyUSB4<*1>: ATQ0 V1 E1 S0=0 -- OK
      ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
      ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
      ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
      ttyUSB4<*1>: Modem Identifier: ATI -- Manufacturer: huawei
      ttyUSB4<*1>: Speed 9600: AT -- OK
      ttyUSB4<*1>: Max speed is 9600; that should be safe.
      ttyUSB4<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
      ttyUSB5<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
      ttyUSB5<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
      ttyUSB5<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

      Found a modem on /dev/ttyUSB0.
      Modem configuration written to /etc/wvdial.conf.
      ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
      ttyUSB2: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
      ttyUSB4: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
      root@justin-CedarTrail-Platform:/etc/kannel#

      Supprimer
  28. Pour tous ceux qui ont des messages du genre "address already in use", tapez :
    ps -edf | grep kannel
    Ensuite faites
    kill -9 numéros processus
    Remplacer numéros processus par les premiers numéros sur chaque ligne.

    RépondreSupprimer
  29. Pour tous ceux qui ont des messages du genre "device couldn't connect" :
    -deconnectez la clé
    -reconnectez la clé
    -ouvrez le terminal
    -Tapez : wvdialconf
    -Si le modem est là, vous verrez une message comme cela :
    djoloftek@djoloftek-VirtualBox:~$ wvdialconf
    Editing `/etc/wvdial.conf'.

    Scanning your serial ports for a modem.

    Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7
    Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15
    Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23
    Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31
    WvModem<*1>: Cannot set information for serial port.
    ttyUSB0<*1>: ATQ0 V1 E1 -- OK
    ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
    ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
    ttyUSB0<*1>: Speed 9600: AT -- OK
    ttyUSB0<*1>: Max speed is 9600; that should be safe.
    ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
    WvModem<*1>: Cannot set information for serial port.
    ttyUSB1<*1>: ATQ0 V1 E1 -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
    ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
    ttyUSB1<*1>: Speed 9600: AT -- OK
    ttyUSB1<*1>: Max speed is 9600; that should be safe.
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

    Found a modem on /dev/ttyUSB0.
    Modem configuration written to /etc/wvdial.conf.
    /etc/wvdial.conf: Can't write '/etc/wvdial.conf.tmp10482': Permission denied
    /etc/wvdial.conf: Can't write '/etc/wvdial.conf' ('/etc/wvdial.conf'): Bad file descriptor
    ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
    ttyUSB1: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

    RépondreSupprimer
  30. salut,j'ai suivi toutes les démarches mais je n'arrive pas à avoir succesfully après bearerbox -v 0 kannel.conf.voici le message affiché:2013-02-09 00:39:48 [4569] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2013-02-09 00:39:48 [4569] [0] WARNING: DLR: using default 'internal' for storage type.
    2013-02-09 00:39:48 [4569] [0] INFO: DLR using storage type: internal
    2013-02-09 00:39:48 [4569] [0] DEBUG: Kannel bearerbox version `1.4.3'.
    Build `Apr 6 2010 13:16:08', compiler `4.4.3'.
    System Linux, release 2.6.32-21-generic, version #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010, machine i686.
    Hostname ubu1004, IP 127.0.1.1.
    Libxml version 2.7.6.
    Using OpenSSL 0.9.8k 25 Mar 2009.
    Compiled with MySQL 5.1.41, using MySQL 5.1.67.
    Using native malloc.

    2013-02-09 00:39:48 [4569] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
    2013-02-09 00:39:48 [4569] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
    2013-02-09 00:39:48 [4569] [0] INFO: HTTP: Opening server at port 13000.
    2013-02-09 00:39:48 [4569] [0] ERROR: bind failed
    2013-02-09 00:39:48 [4569] [0] ERROR: System error 98: Address already in use
    2013-02-09 00:39:48 [4569] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_run)
    2013-02-09 00:39:48 [4569] [0] DEBUG: starting smsbox connection module
    2013-02-09 00:39:48 [4569] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2013-02-09 00:39:48 [4569] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_smsboxes)
    2013-02-09 00:39:48 [4569] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_run)
    2013-02-09 00:39:48 [4569] [0] INFO: Set SMS resend frequency to 60 seconds.
    2013-02-09 00:39:48 [4569] [0] INFO: SMS resend retry set to unlimited.
    2013-02-09 00:39:48 [4569] [0] DEBUG: smsbox MO concatenated message handling enabled
    2013-02-09 00:39:48 [4569] [0] INFO: DLR rerouting for smsc id disabled.
    2013-02-09 00:39:48 [4569] [0] INFO: AT2[Huawei-E1552]: configuration shows modemtype
    2013-02-09 00:39:48 [4569] [0] DEBUG: AT2[Huawei-E1552]: Reading modem definitions from
    2013-02-09 00:39:48 [4569] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps to pid 4569.
    2013-02-09 00:39:48 [4569] [3] ERROR: bind failed
    2013-02-09 00:39:48 [4569] [3] ERROR: System error 98: Address already in use
    2013-02-09 00:39:48 [4569] [3] PANIC: Could not open smsbox port 13002
    2013-02-09 00:39:48 [4569] [3] PANIC: bearerbox(gw_panic+0xcd) [0x80d21ed]
    2013-02-09 00:39:48 [4569] [3] PANIC: bearerbox() [0x8059af8]
    2013-02-09 00:39:48 [4569] [3] PANIC: bearerbox() [0x80c952d]
    2013-02-09 00:39:48 [4569] [3] PANIC: /lib/tls/i686/cmov/libpthread.so.0(+0x596e) [0x61196e]
    2013-02-09 00:39:48 [4569] [3] PANIC: /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0x8f9a0e]
    root@ubu1004:/etc/kannel# gedit kannel.conf
    root@ubu1004:/etc/kannel# bearerbox -v 0 kannel.conf
    2013-02-09 00:45:09 [4601] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2013-02-09 00:45:09 [4601] [0] WARNING: DLR: using default 'internal' for storage type.
    2013-02-09 00:45:09 [4601] [0] INFO: DLR using storage type: internal
    2013-02-09 00:45:09 [4601] [0] DEBUG: Kannel bearerbox version `1.4.3'.
    Build `Apr 6 2010 13:16:08', compiler `4.4.3'.
    System Linux, release 2.6.32-21-generic, version #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010, machine i686.
    Hostname ubu1004, IP 127.0.1.1.
    Libxml version 2.7.6.
    Using OpenSSL 0.9.8k 25 Mar 2009.
    Compiled with MySQL 5.1.41, using MySQL 5.1.67.
    Using native malloc.

    2013-02-09 00:45:09 [4601] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
    2013-02-09 00:45:09 [4601] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
    2013-02-09 00:45:09 [4601] [0] INFO: HTTP: Opening server at port 13000

    RépondreSupprimer
    Réponses
    1. SVp, regaardez les deux commentairres precedents. Merci.

      Supprimer
  31. j'ai un probléme dans la configuration du modeme(Huawei E1752) voila le resultat====>
    Scanning your serial ports for a modem.

    ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
    ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
    ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
    ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
    ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
    ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
    Modem Port Scan<*1>: S2 S3 S4 S5 S6 S7 S8 S9
    Modem Port Scan<*1>: S10 S11 S12 S13 S14 S15 S16 S17
    Modem Port Scan<*1>: S18 S19 S20 S21 S22 S23 S24 S25
    Modem Port Scan<*1>: S26 S27 S28 S29 S30 S31

    RépondreSupprimer
    Réponses
    1. Et que vois tu avec lsusb ?

      Supprimer
    2. avec lsusb je vois ça =====>

      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
      Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
      Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub

      Supprimer
    3. Il ne voit meme pas ton modem, vérifie qu'il est bien branché.

      Supprimer
    4. Bjr djolof tek merci pour le tuto tres clair . Mon problem est que je peux envoyer par HTTP mais si j'envoie par mon phone je ne vois de message dans le terminal lance smsbox et je recois pas dans mon phone

      Supprimer
  32. Et ton fichier usb-modeswitch ? Qu'as tu mis ?

    RépondreSupprimer
  33. j'ai mis ça dans le fichier usb-modeswitch
    SUBSYSTEM=="usb",
    ATTR{idVendor}=="12d1",
    ATTR{idProduct}=="1446",
    RUN+="/lib/udev/modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"

    RépondreSupprimer
    Réponses
    1. Aussi, ton id n'est pas forcement le bon, d'abord vérifie que le modem est bien branché, après avec lsusb tu auras les attributs corrects.
      PS : tu utilises une machine virtuelle ?

      Supprimer
    2. oui j'utlise machine virtuelle

      Supprimer
    3. C'est un problème fréquent avec les machines virtuelles. Le modem ne peut pas être banchée sur le Host et l'invité en même temps. Il faut que tu cliques (en haut de la machine virtuelle) sur périphériques / périphériques USB et tu choisis le bon périphérique.

      Supprimer
  34. le probléme est corriger et ça marche merci

    RépondreSupprimer
  35. j'ai un probléme quand je fait le test et j'envoie le message test de mon telephone vers le serveur kannel je ne vois pas le message test sur le terminale smsbox s'il vous plait aide moi ceque c'est le projet de mon fin d'etude

    RépondreSupprimer
    Réponses
    1. Slt, desolee du retard. Tout d'abord regarde le minicom (minicom) et dis moi, ce qui se passe.

      Supprimer
  36. quand je d=fait la configuration de clé 3g comme etant un modem le message afficher et ce lui la :

    minicom: cannot open /dev/tty/usb0: Not a directory

    RépondreSupprimer
    Réponses
    1. quand je fait la commande lsusb j'obtient ça ===>
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
      Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
      Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
      Bus 001 Device 002: ID 12d1:141b Huawei Technologies Co., Ltd.

      Supprimer
    2. Tout d'abord mets USB en majuscule (pas usb0) !

      Supprimer
    3. oooooh desoleee. Enleve le / entre tty et USB0 !

      Supprimer
    4. merci j'ai resoudre ce probléme et ça marche .mais j'ai un autre question est ce que je peux utiliser la clé 3g E 1752 comme modem

      Supprimer
  37. s'il vous plait aide moi a savoire le probléme

    RépondreSupprimer
  38. s'il vous palait aide moi a savoire le source de probléme

    RépondreSupprimer
  39. Salut à tous chez moi tout va bien du faite que j'ai suivi le tuto à la lettre mais une chose qui me complique c'est juste lorsque je send beaucoup de message dans le terminal bearerbox il ya un message d'erreur qui s'affiche c'est dû à quoi voici le message en question:
    2013-03-18 22:45:16 [10732] [6] DEBUG: AT2[Huawei-E153u-1]: <-- +CMS ERROR: 500
    2013-03-18 22:45:16 [10732] [6] ERROR: AT2[Huawei-E153u-1]: CMS ERROR: +CMS ERROR: 500
    2013-03-18 22:45:16 [10732] [6] ERROR: AT2[Huawei-E153u-1]: CMS ERROR: Unknown error. -> maybe Sim storage is full? I'll have a look at it. (500)

    Aidez-moi svp!!!

    RépondreSupprimer
    Réponses
    1. C'est le probleme majeur !

      Envoie ton fichier kannel.conf pour voir.

      Supprimer
  40. Bonsoir svp aidez moi a comprendre le problème. j'ai suivi at la lettre toute votre procédure ; mais mon bearerbox m'affiche ceci:

    root@ubuntu:~# bearerbox -v 0 kannel.conf
    2013-03-19 18:21:59 [10296] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2013-03-19 18:21:59 [10296] [0] ERROR: fopen failed: couldn't open `kannel.conf'
    2013-03-19 18:21:59 [10296] [0] ERROR: System error 2: No such file or directory
    2013-03-19 18:21:59 [10296] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
    2013-03-19 18:21:59 [10296] [0] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
    2013-03-19 18:21:59 [10296] [0] PANIC: bearerbox(cfg_read+0x6fa) [0x80ba0aa]
    2013-03-19 18:21:59 [10296] [0] PANIC: bearerbox(main+0xd1) [0x8052e61]
    2013-03-19 18:21:59 [10296] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6e134d3]
    2013-03-19 18:21:59 [10296] [0] PANIC: bearerbox() [0x8053dc9]
    root@ubuntu:~#

    Merci de m'aider a resoudre ce problème.

    RépondreSupprimer
    Réponses
    1. Ton fichier kannel.conf est le problème. Affiche le pour voir.

      Supprimer
    2. Aussi, qu'aas tu avec minicom ?

      Supprimer
  41. slt, j'ai débloque la clé orange E1752 et je lance la commande
    bearerbox -v 1 /etc/kannel/kannel.conf
    le resultat et celle la ====>

    2013-03-22 05:56:00 [3956] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0
    2013-03-22 05:56:00 [3956] [0] WARNING: DLR: using default 'internal' for storage type.
    2013-03-22 05:56:00 [3956] [0] INFO: DLR using storage type: internal
    2013-03-22 05:56:00 [3956] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
    2013-03-22 05:56:00 [3956] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
    2013-03-22 05:56:00 [3956] [0] INFO: HTTP: Opening server at port 13000.
    2013-03-22 05:56:00 [3956] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2013-03-22 05:56:00 [3956] [0] INFO: Set SMS resend frequency to 60 seconds.
    2013-03-22 05:56:00 [3956] [0] INFO: SMS resend retry set to unlimited.
    2013-03-22 05:56:00 [3956] [0] INFO: DLR rerouting for smsc id disabled.
    2013-03-22 05:56:00 [3956] [0] INFO: AT2[Huawei E1752]: configuration shows modemtype
    2013-03-22 05:56:00 [3956] [0] INFO: AT2[Huawei E1752]: read modem definition for
    2013-03-22 05:56:00 [3956] [0] INFO: ----------------------------------------
    2013-03-22 05:56:00 [3956] [0] INFO: Kannel bearerbox II version 1.4.3 starting
    2013-03-22 05:56:00 [3956] [0] INFO: MAIN: Start-up done, entering mainloop
    2013-03-22 05:56:00 [3956] [6] INFO: AT2[Huawei E1752]: opening device
    2013-03-22 05:56:00 [3956] [6] INFO: AT2[Huawei E1752]: Logging in
    2013-03-22 05:56:00 [3956] [6] INFO: AT2[Huawei E1752]: init device
    2013-03-22 05:56:00 [3956] [6] INFO: AT2[Huawei E1752]: speed set to 9600
    2013-03-22 05:56:01 [3956] [6] INFO: AT2[Huawei E1752]: AT SMSC successfully opened.

    2013-03-22 05:58:10 [3956] [5] INFO: Client connected from <127.0.0.1>

    est ce que le bearebox a bien marcher???

    RépondreSupprimer
    Réponses
    1. Succesfully opened ==> ? oui !

      Supprimer
    2. merci mais lorsque je fait le test et j'envoie le message "test" je ne le voi pas sur le terminale de smsbox

      Supprimer
  42. Eh bien, je ne peux pas te lister toutes les solutions. Tu poses une question et j'essayes de répondre.

    RépondreSupprimer
  43. merci .s'il vous plait vous pouvez me fixé juste le source de probléme .est ce que dans le fichier de configuration kannel.conf???

    RépondreSupprimer
  44. soit ton smsc sur le fichier de configuration, soit la configuration du modem (minicom).
    Test ton minicom.

    RépondreSupprimer
  45. j'ai fait le test et je débloque la clé avec les commande at

    RépondreSupprimer
    Réponses
    1. lol non. Tape juste minicom pour voir

      Supprimer
    2. ok je tape et voila le resultat ===>

      Welcome to minicom 2.5

      OPTIONS: I18n
      Compiled on May 2 2011, 00:39:27.
      Port /dev/ttyUSB0

      Press CTRL-A Z for help on special keys


      OK
      at
      OK





      Supprimer
  46. voila le resultatde test de minicom ==>

    AT^CARDLOCK?
    ^CARDLOCK: 2,10,0

    OK

    RépondreSupprimer
    Réponses
    1. ta carte n'est pas bloquée. As-tu essayee d’envoyer un message à partir du navigateur ? sinon essayes, si oui affiche ton fichier kannel

      Supprimer
  47. bonjour j'envoie un message a partir de navigateur voila le resultat
    ====>

    2013-03-24 06:04:30 [3540] [6] INFO: AT2[Huawei-E1752]: AT SMSC successfully opened.
    2013-03-24 06:04:57 [3540] [5] INFO: Client connected from <127.0.0.1>
    2013-03-24 06:07:09 [3540] [6] ERROR: AT2[Huawei-E1752]: CMS ERROR: +CMS ERROR: 500
    2013-03-24 06:07:09 [3540] [6] ERROR: AT2[Huawei-E1752]: CMS ERROR: Unknown error. -> maybe Sim storage is full? I'll have a look at it. (500)
    2013-03-24 06:07:31 [3540] [6] ERROR: AT2[Huawei-E1752]: CMS ERROR: +CMS ERROR: 500
    2013-03-24 06:07:31 [3540] [6] ERROR: AT2[Huawei-E1752]: CMS ERROR: Unknown error. -> maybe Sim storage is full? I'll have a look at it. (500)
    2013-03-24 06:07:40 [3540] [6] ERROR: AT2[Huawei-E1752]: CMS ERROR: +CMS ERROR: 500
    2013-03-24 06:07:40 [3540] [6] ERROR: AT2[Huawei-E1752]: CMS ERROR: Unknown error. -> maybe Sim storage is full? I'll have a look at it. (500)
    2013-03-24 06:07:43 [3540] [11] INFO: Connection closed by the box <127.0.0.1>
    2013-03-24 06:08:08 [3540] [6] ERROR: AT2[Huawei-E1752]: CMS ERROR: +CMS ERROR: 500
    2013-03-24 06:08:08 [3540] [6] ERROR: AT2[Huawei-E1752]: CMS ERROR: Unknown error. -> maybe Sim storage is full? I'll have a look at it. (500)


    merci pour votre aide :)

    RépondreSupprimer
  48. j'ai essayer d'envoie une message par les commande at voila le resultat
    ===>

    OK
    at
    OK
    at+cmgf=0
    OK
    at+cmgs="51223744"
    +CMS ERROR: 304



    RépondreSupprimer
  49. slt. j'ai fait ça voila le resultat d'envoie un message
    ===>
    OK | |
    at +-----------------------------+
    OK
    at+cmgf=1
    OK
    at+cmgs="55908246"
    ERROR
    at+cmgs="55908246"
    > test

    +CMS ERROR: 500

    s'il vous plait aide-MOI

    RépondreSupprimer
  50. bonjour.j'ai fait le test d'envoie un message ça ne marche pas quand j'envoie le message rien ne s'affiche sur le smsbox .mais quand je fait le test avec

    le navigateur ça marche bien quelle est mon probléme s'il vous plait

    RépondreSupprimer
  51. bonsoire s'il vous plait il n' y a pas de réponse sur mes questions .s'il vous plait aide moi je suis bloqué

    RépondreSupprimer
  52. bonjour s'il vous plait j'ai besoin d'une réponse je suis bloqué c'est mon projet de fin d'etude

    RépondreSupprimer
  53. bonjour,
    merci pour ce tuto .
    J'ai suivi votre demarche mais j'ai eu un probleme .Quand j'essaie d'envoyer un sms via le navigateur j'ai eu su le terminal de smsbox :
    DEBUG: Status: 404 Answer:
    2013-04-17 13:18:11 [5406] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
    2013-04-17 13:18:26 [5406] [1] DEBUG: HTTP: Destroying HTTPClient area 0xb59006e8.
    2013-04-17 13:18:26 [5406] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
    2013-04-17 13:19:26 [5406] [1] DEBUG: Timeout for fd:24 appeares.
    2013-04-17 13:19:26 [5406] [1] DEBUG: HTTP: Destroying HTTPClient area 0xb59005c8.
    2013-04-17 13:19:26 [5406] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1

    ***************************
    ainsi sur le terminal de bearerbox :

    2013-04-17 13:18:04 [5303] [6] DEBUG: AT2[Huawei-E1552]: <-- OK
    2013-04-17 13:18:11 [5303] [11] DEBUG: boxc_receiver: sms received
    2013-04-17 13:18:11 [5303] [11] DEBUG: send_msg: sending msg to box: <127.0.0.1>
    2013-04-17 13:18:12 [5303] [6] ERROR: AT2[Huawei-E1552]: Error encoding PDU!
    2013-04-17 13:18:12 [5303] [6] ERROR: System error 2: No such file or directory

    ****
    SVP j'ai besoin d'aide je suis bloque
    Je vous demande aussi s'il est possible de configurer kannel avec nokia e51
    j'ai fait un essai mais toujours j'ai un probleme d'initialisation de device

    RépondreSupprimer
    Réponses
    1. salut .tout d'abord vous essaiez d'envoie un message à partir de téléphone portable

      Supprimer
    2. salut,
      oui j'ai essaye mais il n'apparait pas sur le terminal du smsbox

      Supprimer
    3. Svp une reponse je suis bloque

      Supprimer
    4. Bonjour,
      J'ai reussi a resolu le probleme et a envoyer un message depuis l'url.
      Je donne le truc et j'espere qu'ik servira un jour :
      le probleme reside dans le numero de destination le + au debut du numero n'est pas acceptable je 'ai remplace par 00 et j'ai ateint mon but.
      J'ai itilise un modem Huawei e367 pour la configuration.
      Maintenant je veux utiliser mon kannel pour envoyer des alertes sms automatiques en utilisant php+mysql
      [)3\/73X pouvez-vous m'expliquer comment le faire .La vision est un peux floues et j'ai pas d'idees comment le faire ?
      Merci

      Supprimer
  54. bjr lorsk g tape la commande bearerbox
    g recois ceci g ne sais pas sil fo k g continue ou pas!!!
    2013-06-06 23:01:30 [4624] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2013-06-06 23:01:30 [4624] [0] WARNING: DLR: using default 'internal' for storage type.
    2013-06-06 23:01:30 [4624] [0] INFO: DLR using storage type: internal
    2013-06-06 23:01:30 [4624] [0] DEBUG: Kannel bearerbox version `1.4.3'.
    Build `Nov 24 2011 09:54:00', compiler `4.6.2'.
    System Linux, release 3.2.0-23-generic, version #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012, machine x86_64.
    Hostname Cute-doll, IP 127.0.1.1.
    Libxml version 2.7.8.
    Using OpenSSL 1.0.0e 6 Sep 2011.
    Compiled with MySQL 5.5.17, using MySQL 5.5.31.
    Using SQLite 3.7.9.
    Using native malloc.

    2013-06-06 23:01:30 [4624] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
    2013-06-06 23:01:30 [4624] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
    2013-06-06 23:01:30 [4624] [0] INFO: HTTP: Opening server at port 13000.
    2013-06-06 23:01:30 [4624] [0] ERROR: bind failed
    2013-06-06 23:01:30 [4624] [0] ERROR: System error 98: Address already in use
    2013-06-06 23:01:30 [4624] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_run)
    2013-06-06 23:01:30 [4624] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) maps to pid 4624.
    2013-06-06 23:01:30 [4624] [0] DEBUG: starting smsbox connection module
    2013-06-06 23:01:30 [4624] [1] DEBUG: HTTP: No clients with requests, quitting.
    2013-06-06 23:01:30 [4624] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2013-06-06 23:01:30 [4624] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) terminates.
    2013-06-06 23:01:30 [4624] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_smsboxes)
    2013-06-06 23:01:30 [4624] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_run)
    2013-06-06 23:01:30 [4624] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps to pid 4624.
    2013-06-06 23:01:30 [4624] [0] INFO: Set SMS resend frequency to 60 seconds.
    2013-06-06 23:01:30 [4624] [3] ERROR: bind failed
    2013-06-06 23:01:30 [4624] [3] ERROR: System error 98: Address already in use
    2013-06-06 23:01:30 [4624] [0] INFO: SMS resend retry set to unlimited.
    2013-06-06 23:01:30 [4624] [3] PANIC: Could not open smsbox port 13002
    2013-06-06 23:01:30 [4624] [0] DEBUG: smsbox MO concatenated message handling enabled
    2013-06-06 23:01:30 [4624] [0] INFO: DLR rerouting for smsc id disabled.
    2013-06-06 23:01:30 [4624] [3] PANIC: bearerbox(gw_panic+0x17b) [0x47fdab]
    2013-06-06 23:01:30 [4624] [2] DEBUG: Thread 2 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 4624.
    2013-06-06 23:01:30 [4624] [3] PANIC: bearerbox() [0x410e28]
    2013-06-06 23:01:30 [4624] [3] PANIC: bearerbox() [0x4779be]
    2013-06-06 23:01:30 [4624] [3] PANIC: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7f3269346e9a]
    2013-06-06 23:01:30 [4624] [3] PANIC: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f3267f084bd]

    Merci de m repondr

    RépondreSupprimer
  55. bjr kan g lance la commande smsbox -v 0 kannel.conf cs m renvoit ce message ?k faire?
    2013-06-08 07:10:01 [3660] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2013-06-08 07:10:01 [3660] [0] ERROR: fopen failed: couldn't open `kannel.conf'
    2013-06-08 07:10:01 [3660] [0] ERROR: System error 2: No such file or directory
    2013-06-08 07:10:01 [3660] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
    2013-06-08 07:10:01 [3660] [0] PANIC: smsbox(gw_panic+0x17b) [0x43e14b]
    2013-06-08 07:10:01 [3660] [0] PANIC: smsbox(cfg_read+0x5c6) [0x42b066]
    2013-06-08 07:10:01 [3660] [0] PANIC: smsbox(main+0xe8) [0x40d528]
    2013-06-08 07:10:01 [3660] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f0c3b7a576d]
    2013-06-08 07:10:01 [3660] [0] PANIC: smsbox() [0x40ea35]

    RépondreSupprimer
  56. Hello,
    TOut dabord je vous félicite vous avez fait du bon boulot.
    Mon problème en est que je n'arrive pas à recevoir de message o niveau du smsbox quand j'envoi un sms o numéro qui se trouve dans le modem Huawei, alors que les configurations sont bonnes à mon avis, il n'y a pas d'erreurs générées.

    RépondreSupprimer
  57. bonjour et merci pour le tuto mais j'ai rencontré un problème avec kannel lorsque je demarre le bearerbox j'ai le message couldn't connect (retry in 10 seconds ) qui boucle jusqu'a ce que je ne l'arrete.svp pouvez vous m'aider ?

    RépondreSupprimer
  58. Merci cousin, j'ai suivi ton tuto et jai configuré kannel sur mon ordi et ça marche.

    RépondreSupprimer
  59. bjr!tout d'abord je tiens d'abord à vs remercié pour ce tuto,je lè testé pour la première fois ca marché mais lorque j'essai faire le second demarage du bearerbox je recois comme message d'erreur:error systeme 11:ressource temporaly unvalable.è ce ke vs pouvons m'aider à resoudre ce probleme?

    RépondreSupprimer
  60. bjr ...stp jè un pb avec le test du bearbox. en fait ça m'affiche cela
    2013-10-01 14:33:48 [12259] [6] ERROR: AT2[Huawei-E1552]: Couldnot write to device.
    2013-10-01 14:33:48 [12259] [6] ERROR: System error 11: Resource temporarily unavailable
    2013-10-01 14:33:52 [12259] [6] ERROR: AT2[Huawei-E1552]: Wrong or no answer to AT. Trying again
    2013-10-01 14:33:52 [12259] [6] DEBUG: AT2[Huawei-E1552]: --> AT^M
    2013-10-01 14:33:55 [12259] [6] ERROR: AT2[Huawei-E1552]: Couldnot write to device.
    2013-10-01 14:33:55 [12259] [6] ERROR: System error 11: Resource temporarily unavailable
    2013-10-01 14:33:59 [12259] [6] ERROR: AT2[Huawei-E1552]: Second attempt to send AT failed
    2013-10-01 14:33:59 [12259] [6] ERROR: AT2[Huawei-E1552]: Initialization of device failed.
    2013-10-01 14:33:59 [12259] [6] INFO: AT2[Huawei-E1552]: Closing device
    2013-10-01 14:33:59 [12259] [6] ERROR: AT2[Huawei-E1552]: Couldn't connect (retrying in 10 seconds).
    2013-10-01 14:34:09 [12259] [6] INFO: AT2[Huawei-E1552]: opening device
    2013-10-01 14:34:09 [12259] [6] DEBUG: AT2[Huawei-E1552]: device opened. Telnet mode = 0
    2013-10-01 14:34:09 [12259] [6] DEBUG: AT2[Huawei-E1552]: device opened
    2013-10-01 14:34:09 [12259] [6] INFO: AT2[Huawei-E1552]: Logging in
    2013-10-01 14:34:09 [12259] [6] INFO: AT2[Huawei-E1552]: init device
    2013-10-01 14:34:09 [12259] [6] INFO: AT2[Huawei-E1552]: speed set to 9600
    2013-10-01 14:34:09 [12259] [6] DEBUG: AT2[Huawei-E1552]: --> ATZ^M
    2013-10-01 14:34:12 [12259] [6] ERROR: AT2[Huawei-E1552]: Couldnot write to device.
    2013-10-01 14:34:12 [12259] [6] ERROR: System error 11: Resource temporarily unavailable
    2013-10-01 14:34:16 [12259] [6] ERROR: AT2[Huawei-E1552]: Wrong or no answer to ATZ, ignoring
    2013-10-01 14:34:16 [12259] [6] DEBUG: AT2[Huawei-E1552]: --> AT^M
    2013-10-01 14:34:19 [12259] [6] ERROR: AT2[Huawei-E1552]: Couldnot write to device.
    2013-10-01 14:34:19 [12259] [6] ERROR: System error 11: Resource temporarily unavailable
    2013-10-01 14:34:23 [12259] [6] ERROR: AT2[Huawei-E1552]: Wrong or no answer to AT. Trying again
    2013-10-01 14:34:23 [12259] [6] DEBUG: AT2[Huawei-E1552]: --> AT^M
    2013-10-01 14:34:26 [12259] [6] ERROR: AT2[Huawei-E1552]: Couldnot write to device.
    2013-10-01 14:34:26 [12259] [6] ERROR: System error 11: Resource temporarily unavailable
    2013-10-01 14:34:30 [12259] [6] ERROR: AT2[Huawei-E1552]: Second attempt to send AT failed
    2013-10-01 14:34:30 [12259] [6] ERROR: AT2[Huawei-E1552]: Initialization of device failed.
    2013-10-01 14:34:30 [12259] [6] INFO: AT2[Huawei-E1552]: Closing device
    2013-10-01 14:34:30 [12259] [6] ERROR: AT2[Huawei-E1552]: Couldn't connect (retrying in 10 seconds).

    et mem lorsk g tape minicom -s jè comme resultat ''Le périphérique /dev/ttyUSB0 est verrouillé.''


    RépondreSupprimer
  61. Bonjour! Très bon Boulot [)3\/73X.
    J'ai suivi le tutoriel, et j'ai un problème.
    J'ai configuré Kannel avec un clé Orange everywhere E3131.
    J'arrive à envoyer des messages depuis le navigateur et le message envoyé est visible sur le terminal de smsbox. Mais lorsque j'envoie un message depuis un téléphone, je reçois bien un accusé de réception, mais je ne vois pas le message sur le terminal de smsbox.

    Comment autoriser l'envoi de message depuis un téléphone?

    RépondreSupprimer
  62. Pour tout ce qui ont un probleme de receptions de SMS par le SMSBOX faite ce config ci dessous:

    remplace < < message-storage = "ME" > > par < < message-storage = "SM" > > dans le groupe Modems.
    NB: Assurez vous aussi que vous avez supprimé tous les SMS recut de votre SIM pour ne pas abuser la memoire.

    Email: bahpetel2@yahoo.fr
    TEL: 00224 631516512

    RépondreSupprimer
  63. Bonjout; vous avez fait un tr bon travail cher ami,
    Mon probleme si je tape la commande, g ce message d'erreur
    root@STATION-ONE:/# bearerbox -v 0 kannel.conf
    2014-07-16 15:27:55 [3176] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2014-07-16 15:27:55 [3176] [0] ERROR: fopen failed: couldn't open `kannel.conf'
    2014-07-16 15:27:55 [3176] [0] ERROR: System error 2: No such file or directory
    2014-07-16 15:27:55 [3176] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
    2014-07-16 15:27:55 [3176] [0] PANIC: bearerbox(gw_panic+0x17b) [0x47fdab]
    2014-07-16 15:27:55 [3176] [0] PANIC: bearerbox(cfg_read+0x5c6) [0x46ade6]
    2014-07-16 15:27:55 [3176] [0] PANIC: bearerbox(main+0xc4) [0x40dc64]
    2014-07-16 15:27:55 [3176] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fcb16ba6ec5]
    2014-07-16 15:27:55 [3176] [0] PANIC: bearerbox() [0x40e9d5]

    RépondreSupprimer
  64. pour ceux qui ont des problemes de receptions de message sur leurs telephone ajouter ces lignes au kannel.conf
    store-type = file
    store-file = "/var/log/kannel/kannel.store"

    RépondreSupprimer
  65. bonjour à tous
    j ai un souci qui est que quand je fais un envoi depuis le navigateur je me rend compte au niveau de la smsbox que le message a ete envoyé mais le destinataire ne recoit rien.
    merci pour votre aide

    RépondreSupprimer
  66. Bonjour à tous
    j'ai une problème avec la connexion du Kannel au clé Huawei E3236 .En effet j'ai essai cette configuration mais elle ne marche pas. Dans mon cas j'utilise fedora 9 que je l'ai installer dans VMware.

    RépondreSupprimer
  67. la commande bearerbox -v 0 kannel.conf affiche :
    2015-02-23 01:41:08 [3198] [0] INFO: ----------------------------------------
    2015-02-23 01:41:08 [3198] [0] INFO: Kannel bearerbox II version 1.4.4 starting
    2015-02-23 01:41:08 [3198] [0] INFO: MAIN: Start-up done, entering mainloop
    2015-02-23 01:41:08 [3198] [0] DEBUG: AT2[Huawei-E3236]: start called
    2015-02-23 01:41:08 [3198] [0] DEBUG: smsc_fake: start called
    2015-02-23 01:41:08 [3198] [9] DEBUG: wdp_to_wapboxes: destroying lists
    2015-02-23 01:41:08 [3198] [9] DEBUG: Thread 9 (gw/bb_boxc.c:wdp_to_wapboxes) terminates.
    2015-02-23 01:41:08 [3198] [6] INFO: AT2[Huawei-E3236]: init device
    2015-02-23 01:41:08 [3198] [6] INFO: AT2[Huawei-E3236]: speed set to 9600
    2015-02-23 01:41:08 [3198] [6] DEBUG: AT2[Huawei-E3236]: --> ATZ^M
    2015-02-23 01:41:14 [3198] [6] ERROR: AT2[Huawei-E3236]: Wrong or no answer to ATZ, ignoring
    2015-02-23 01:41:14 [3198] [6] ERROR: AT2[Huawei-E3236]: Initialization of device failed. Attempt #0 on -1 max.
    2015-02-23 01:41:14 [3198] [6] INFO: AT2[Huawei-E3236]: Closing device
    2015-02-23 01:41:14 [3198] [6] ERROR: AT2[Huawei-E3236]: Couldn't connect (retrying in 10 seconds).

    RépondreSupprimer
  68. Bonsoir,
    Vous avez fait un excellent travaille, j'utilise une cle internet

    Version du logiciel : 22.157.39.00.00

    Version matérielle : CH2E303SM

    Version IU Web: 11.010.12.00.591
    Nom du périph. : E303

    IMEI: 861737006802677

    N°IMSI: 611043223885563

    Numéro de série : E9P7SA1260411297

    j'ai rencontre un problème a ce niveau

    root@ubuntu:/etc/kannel# bearerbox -v 0 kannel.conf
    2015-09-19 12:54:20 [28943] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2015-09-19 12:54:20 [28943] [0] WARNING: DLR: using default 'internal' for storage type.
    2015-09-19 12:54:20 [28943] [0] INFO: DLR using storage type: internal
    2015-09-19 12:54:20 [28943] [0] DEBUG: Kannel bearerbox version `1.4.3'.
    Build `Nov 24 2011 08:02:18', compiler `4.6.2'.
    System Linux, release 3.13.0-32-generic, version #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014, machine i686.
    Hostname ubuntu, IP 127.0.1.1.
    Libxml version 2.7.8.
    Using OpenSSL 1.0.0e 6 Sep 2011.
    Compiled with MySQL 5.5.17, using MySQL 5.5.44.
    Using SQLite 3.7.9.
    Using native malloc.

    2015-09-19 12:54:20 [28943] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
    2015-09-19 12:54:20 [28943] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
    2015-09-19 12:54:20 [28943] [0] INFO: HTTP: Opening server at port 13000.
    2015-09-19 12:54:20 [28943] [0] ERROR: bind failed
    2015-09-19 12:54:20 [28943] [0] ERROR: System error 98: Address already in use
    2015-09-19 12:54:20 [28943] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_run)
    2015-09-19 12:54:20 [28943] [0] DEBUG: starting smsbox connection module
    2015-09-19 12:54:20 [28943] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2015-09-19 12:54:20 [28943] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_smsboxes)
    2015-09-19 12:54:20 [28943] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_run)
    2015-09-19 12:54:20 [28943] [0] INFO: Set SMS resend frequency to 60 seconds.
    2015-09-19 12:54:20 [28943] [0] INFO: SMS resend retry set to unlimited.
    2015-09-19 12:54:20 [28943] [0] DEBUG: smsbox MO concatenated message handling enabled
    2015-09-19 12:54:20 [28943] [0] INFO: DLR rerouting for smsc id disabled.
    2015-09-19 12:54:20 [28943] [0] INFO: AT2[Huawei-E303]: configuration shows modemtype
    2015-09-19 12:54:20 [28943] [0] DEBUG: AT2[Huawei-E303]: Reading modem definitions from
    2015-09-19 12:54:20 [28943] [0] DEBUG: AT2[Huawei-E303]: Found <1> modems in config
    2015-09-19 12:54:20 [28943] [0] INFO: AT2[Huawei-E303]: read modem definition for
    2015-09-19 12:54:20 [28943] [0] DEBUG: Started thread 4 (gw/smsc/smsc_at.c:at2_device_thread)
    2015-09-19 12:54:20 [28943] [0] DEBUG: Started thread 5 (gw/bb_smscconn.c:sms_router)
    2015-09-19 12:54:20 [28943] [0] DEBUG: starting wapbox connection module
    2015-09-19 12:54:20 [28943] [0] DEBUG: Started thread 6 (gw/bb_boxc.c:wdp_to_wapboxes)
    2015-09-19 12:54:20 [28943] [0] DEBUG: Started thread 7 (gw/bb_boxc.c:wapboxc_run)
    2015-09-19 12:54:20 [28943] [0] DEBUG: starting WDP router
    2015-09-19 12:54:20 [28943] [0] DEBUG: Started thread 8 (gw/bearerbox.c:wdp_router)
    2015-09-19 12:54:20 [28943] [0] INFO: ----------------------------------------
    2015-09-19 12:54:20 [28943] [0] INFO: Kannel bearerbox II version 1.4.3 starting
    2015-09-19 12:54:20 [28943] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps to pid 28943.
    2015-09-19 12:54:20 [28943] [3] ERROR: bind failed
    2015-09-19 12:54:20 [28943] [3] ERROR: System error 98: Address already in use
    2015-09-19 12:54:20 [28943] [3] PANIC: Could not open smsbox port 13002
    2015-09-19 12:54:20 [28943] [3] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
    2015-09-19 12:54:20 [28943] [3] PANIC: bearerbox() [0x8056478]
    2015-09-19 12:54:20 [28943] [3] PANIC: bearerbox() [0x80c8b3b]
    2015-09-19 12:54:20 [28943] [3] PANIC: /lib/i386-linux-gnu/libpthread.so.0(+0x6f70) [0xb76b7f70]
    2015-09-19 12:54:20 [28943] [3] PANIC: /lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb6e99bee]

    Aidez moi!

    RépondreSupprimer
  69. je vous remercie pour ce tuto mais j'ai un probleme qd je lance le bearerbox -v 0 kannel.conf
    voici l'ereur:
    2016-09-06 15:48:10 [8356] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
    2016-09-06 15:48:10 [8356] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
    2016-09-06 15:48:10 [8356] [0] INFO: HTTP: Opening server at port 13000.
    2016-09-06 15:48:10 [8356] [0] ERROR: bind failed
    2016-09-06 15:48:10 [8356] [0] ERROR: System error 98: Address already in use
    2016-09-06 15:48:10 [8356] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_run)
    2016-09-06 15:48:10 [8356] [0] DEBUG: starting smsbox connection module
    2016-09-06 15:48:10 [8356] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2016-09-06 15:48:10 [8356] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_smsboxes)
    2016-09-06 15:48:10 [8356] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_run)
    2016-09-06 15:48:10 [8356] [0] INFO: Set SMS resend frequency to 60 seconds.
    2016-09-06 15:48:10 [8356] [0] INFO: SMS resend retry set to unlimited.
    2016-09-06 15:48:10 [8356] [0] DEBUG: smsbox MO concatenated message handling enabled
    2016-09-06 15:48:10 [8356] [0] INFO: DLR rerouting for smsc id disabled.
    2016-09-06 15:48:10 [8356] [0] INFO: AT2[T&A mobile phones]: configuration shows modemtype
    2016-09-06 15:48:10 [8356] [0] DEBUG: AT2[T&A mobile phones]: Reading modem definitions from
    2016-09-06 15:48:10 [8356] [0] DEBUG: AT2[T&A mobile phones]: Found <1> modems in config
    2016-09-06 15:48:10 [8356] [0] INFO: AT2[T&A mobile phones]: modemtype not found, revert to autodetect
    2016-09-06 15:48:10 [8356] [0] DEBUG: Started thread 4 (gw/smsc/smsc_at.c:at2_device_thread)
    2016-09-06 15:48:10 [8356] [0] DEBUG: Started thread 5 (gw/bb_smscconn.c:sms_router)
    2016-09-06 15:48:10 [8356] [0] DEBUG: starting wapbox connection module
    2016-09-06 15:48:10 [8356] [0] DEBUG: Started thread 6 (gw/bb_boxc.c:wdp_to_wapboxes)
    2016-09-06 15:48:10 [8356] [0] DEBUG: Started thread 7 (gw/bb_boxc.c:wapboxc_run)
    2016-09-06 15:48:10 [8356] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps to pid 8356.
    2016-09-06 15:48:10 [8356] [3] ERROR: bind failed
    2016-09-06 15:48:10 [8356] [3] ERROR: System error 98: Address already in use
    2016-09-06 15:48:10 [8356] [3] PANIC: Could not open smsbox port 13002
    2016-09-06 15:48:10 [8356] [3] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
    2016-09-06 15:48:10 [8356] [3] PANIC: bearerbox() [0x8056478]
    2016-09-06 15:48:10 [8356] [3] PANIC: bearerbox() [0x80c8b3b]
    2016-09-06 15:48:10 [8356] [3] PANIC: /lib/i386-linux-gnu/libpthread.so.0(+0x6f70) [0xb76d7f70]
    2016-09-06 15:48:10 [8356] [3] PANIC: /lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb6eb970e]

    RépondreSupprimer
  70. Bonjour tout le monde j'ai un problème au niveau de l'envoie de sms, le kannel marche bien mais quand je met le url dans mon navigateur rien n'envoyer.
    Aider moi SVP

    RépondreSupprimer
  71. Bonjour,

    je travaille sur un projet Kannel avec la cle huawei E1552.
    J'ai suivi ce tuto sur l'installation et la config je'nai rien change.
    Ce pendant j'ai rencontre un soucis.
    L'envoie de SMS via l'URL marche a merveille.
    Mais la reponse via SMS lorsqu'on lui envoie un mot cle (test) qui ne fonctionne pas.
    Voici l'erreur que j'ai au niveau du bearerbox:

    2017-11-25 20:40:13 [8170] [6] DEBUG: AT2[Huawei-E1552]: not deleted.
    2017-11-25 20:40:13 [8170] [6] DEBUG: AT2[Huawei-E1552]: --> AT+CMGR=19^M
    2017-11-25 20:40:13 [8170] [6] DEBUG: AT2[Huawei-E1552]: <-- OK
    2017-11-25 20:40:13 [8170] [6] DEBUG: AT2[Huawei-E1552]: not deleted.
    2017-11-25 20:40:13 [8170] [6] DEBUG: AT2[Huawei-E1552]: --> AT+CMGR=20^M
    2017-11-25 20:40:13 [8170] [6] DEBUG: AT2[Huawei-E1552]: <-- +CMS ERROR: 321
    2017-11-25 20:40:13 [8170] [6] ERROR: AT2[Huawei-E1552]: +CMS ERROR: +CMS ERROR: 321
    2017-11-25 20:40:13 [8170] [6] ERROR: AT2[Huawei-E1552]: +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321)
    2017-11-25 20:40:13 [8170] [6] DEBUG: AT2[Huawei-E1552]: failed to get message 20.
    2017-11-25 20:40:15 [8170] [6] DEBUG: AT2[Huawei-E1552]: --> AT^M
    2017-11-25 20:40:15 [8170] [6] DEBUG: AT2[Huawei-E1552]: <-- OK

    Merci de m'aider a resoudre ce probleme.
    BR

    RépondreSupprimer
  72. slt merci pour ce tuto
    moi je comprend pas ce qui ne marche pas
    2019-06-26 13:30:07 [4807] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0
    2019-06-26 13:30:07 [4807] [0] ERROR: Group 'sms-service' may not contain field '0keyword'.
    2019-06-26 13:30:07 [4807] [0] ERROR: Error found on line 89 of file `/etc/kannel/kannel.conf'.
    2019-06-26 13:30:07 [4807] [0] PANIC: Couldn't read configuration from `/etc/kannel/kannel.conf'.
    2019-06-26 13:30:07 [4807] [0] PANIC: bearerbox(gw_backtrace+0xce) [0x49dc2e]
    2019-06-26 13:30:07 [4807] [0] PANIC: bearerbox(gw_panic+0x16f) [0x49ddaf]
    2019-06-26 13:30:07 [4807] [0] PANIC: bearerbox(main+0x1143) [0x4109d3]
    2019-06-26 13:30:07 [4807] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fe0841ce830]
    2019-06-26 13:30:07 [4807] [0] PANIC: bearerbox(_start+0x29) [0x410ac9]


    merci de m'aider

    RépondreSupprimer
  73. salut à tous je ne sais pas si quelqu'un peu m'aide en ce qui concerne l'erreur j'ai dans l’exécution de mon bearerbox

    e# bearerbox -v 1 /etc/kannel/kannel.conf
    2020-03-27 02:54:41 [12554] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0
    2020-03-27 02:54:41 [12554] [0] INFO: MYSQL: Connected to server at localhost.
    2020-03-27 02:54:41 [12554] [0] INFO: MYSQL: server version 5.7.29-0ubuntu0.18.04.1, client version 5.7.29.
    2020-03-27 02:54:41 [12554] [0] INFO: DLR using storage type: mysql
    2020-03-27 02:54:41 [12554] [0] INFO: Added logfile `/var/log/kannel/kannel.log' with level `1'.
    2020-03-27 02:54:41 [12554] [0] INFO: Started access logfile `/var/log/kannel/access.log'.
    2020-03-27 02:54:41 [12554] [0] WARNING: 'store-file' option deprecated, please use 'store-location' and 'store-type' instead.
    2020-03-27 02:54:41 [12554] [0] INFO: HTTP: Opening server at port 13000.
    2020-03-27 02:54:41 [12554] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2020-03-27 02:54:41 [12554] [0] INFO: Set SMS resend frequency to 60 seconds.
    2020-03-27 02:54:41 [12554] [0] INFO: SMS resend retry set to unlimited.
    2020-03-27 02:54:41 [12554] [0] INFO: DLR rerouting for smsc id disabled.
    2020-03-27 02:54:41 [12554] [0] INFO: AT2[Huawei-E303]: configuration shows modemtype
    2020-03-27 02:54:41 [12554] [0] INFO: AT2[Huawei-E303]: modemtype not found, revert to autodetect
    2020-03-27 02:54:41 [12554] [0] INFO: ----------------------------------------
    2020-03-27 02:54:41 [12554] [0] INFO: Kannel bearerbox II version 1.4.4 starting
    2020-03-27 02:54:41 [12554] [0] INFO: Loading store file `/var/log/kannel/kannel.store'
    2020-03-27 02:54:41 [12554] [6] INFO: AT2[Huawei-E303]: opening device
    2020-03-27 02:54:41 [12554] [0] INFO: Store-file size 1422, starting to unpack
    2020-03-27 02:54:41 [12554] [0] INFO: Retrieved 6 messages, non-acknowledged messages: 6
    2020-03-27 02:54:41 [12554] [0] INFO: MAIN: Start-up done, entering mainloop
    2020-03-27 02:54:42 [12554] [6] INFO: AT2[Huawei-E303]: speed set to 9600
    2020-03-27 02:54:45 [12554] [6] INFO: AT2[Huawei-E303]: Closing device
    2020-03-27 02:54:45 [12554] [6] INFO: AT2[Huawei-E303]: opening device
    2020-03-27 02:54:45 [12554] [6] INFO: AT2[Huawei-E303]: Logging in
    2020-03-27 02:54:45 [12554] [6] INFO: AT2[Huawei-E303]: init device
    2020-03-27 02:54:45 [12554] [6] INFO: AT2[Huawei-E303]: speed set to 9600
    2020-03-27 02:54:46 [12554] [6] INFO: AT2[Huawei-E303]: AT SMSC successfully opened.
    2020-03-27 02:55:15 [12554] [6] ERROR: AT2[Huawei-E303]: +CMS ERROR: +CMS ERROR: 500
    2020-03-27 02:55:15 [12554] [6] ERROR: AT2[Huawei-E303]: +CMS ERROR: An unknown error occurred (500)
    ^C2020-03-27 02:55:18 [12554] [0] WARNING: Killing signal or HTTP admin command received, shutting down...

    vraiment je compte sur aide

    RépondreSupprimer
  74. Bonjour j'ai vrament besoin de ton aide pour la configuration de kannel.conf j'ai une cle E3531

    RépondreSupprimer
  75. Bonsoir Je voudrais avoir de l'aide avec ma configuration j'utilise un nokia 6230

    RépondreSupprimer

Enregistrer un commentaire

Posts les plus consultés de ce blog

Installation des composants de kannel

Ouvrez votre terminal puis tapez : sudo su Cela nous évitera de retaper sudo. a) Installons libxml2 et libxml2-dev en tapant : apt-get install libxml2 libxml2-dev b) Installons kannel en tapant : apt-get install kannel c'est beaucoup plus rapide que de le télécharger puis le compiler. c) Installons le serveur LAMP. C'est pour prévoir l'utilisation d'une base de données. Tapez : apt-get install lamp-server^                                                                                         N'oubliez pas le l'accent circonflexe ^ Au cours de l'instal...

Kannel.conf version base de donnees

#Core Kannel Configuration Section group = core admin-port = 13000 admin-password = kannel status-password = kannel admin-allow-ip = "*.*.*.*" wapbox-port = 13003 smsbox-port = 13002 log-file = "/var/log/kannel/bearerbox.log" access-log = "/var/log/kannel/bearerbox-access.log" log-level = 1 unified-prefix = « 00221,+221,00′′ #Wapbox group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" #Smsbox group = smsbox bearerbox-host = localhost sendsms-port = 14000 sendsms-url = "/cgi-bin/sendsms" sendsms-chars = "0123456789+-" global-sender = 14000 log-level = 0 log-file = "/var/log/kannel/smsbox.log" access-log = "/var/log/kannel/smsbox-access.log" #Smsc group = smsc smsc = at smsc-id = Huawei-E1552 modemtype = huawei_e1552 device = /dev/ttyUSB0 host = localhost sms-center = +221776380010 my-number = +2217...