Accéder au contenu principal

62-option-modem-modeswitch.rules

SUBSYSTEM=="usb",
ATTR{idVendor}=="12d1",
ATTR{idProduct}=="1446",
RUN+="/lib/udev/modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"

Commentaires

  1. stp peut u m'expliquer chaque ligne de configuration....?

    RépondreSupprimer
  2. Savez vous pourquo je n'ai pas cez fichier dans mon rules.d
    j'ai plutot le 70-persistents-net et 70-persistent-cd.rules

    RépondreSupprimer
  3. slt!aidez moi!lj'utilise une clé huawei E3131 lorque je tape bearerbo -v 0 kannel.conf jè ce sms d'erreur
    2013
    -08-15 07:09:45 [2733] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2013-08-15 07:09:45 [2733] [0] ERROR: fopen failed: couldn't open `kannel.conf'
    2013-08-15 07:09:45 [2733] [0] ERROR: System error 2: No such file or directory
    2013-08-15 07:09:45 [2733] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
    2013-08-15 07:09:45 [2733] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80d21ed]
    2013-08-15 07:09:45 [2733] [0] PANIC: bearerbox(cfg_read+0x72b) [0x80be72b]
    2013-08-15 07:09:45 [2733] [0] PANIC: bearerbox(main+0xd1) [0x8054d61]
    2013-08-15 07:09:45 [2733] [0] PANIC: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x765bd6]
    2013-08-15 07:09:45 [2733] [0] PANIC: bearerbox() [0x8053f51]

    RépondreSupprimer
  4. slt j'ai vraiment besoin d'aide j'ai du mal avec smsbox quand je tape smsbox -v 0 kannel.conf il me renvoi ce code d'erreur

    2014-02-01 12:11:25 [3442] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2014-02-01 12:11:25 [3442] [0] DEBUG: Kannel smsbox 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 ngal-diaw-gassama, 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.34.
    Using SQLite 3.7.9.
    Using native malloc.

    2014-02-01 12:11:25 [3442] [0] INFO: HTTP: Opening server at port 13013.
    2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
    2014-02-01 12:11:25 [3442] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3442.
    2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
    2014-02-01 12:11:25 [3442] [0] INFO: Set up send sms service at port 13013
    2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
    2014-02-01 12:11:25 [3442] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 3442.
    2014-02-01 12:11:25 [3442] [0] DEBUG: ----------------------------------------------
    2014-02-01 12:11:25 [3442] [0] DEBUG: Kannel smsbox version 1.4.3 starting
    2014-02-01 12:11:25 [3442] [0] DEBUG: dumping group (sendsms-user):
    2014-02-01 12:11:25 [3442] [0] DEBUG: =
    2014-02-01 12:11:25 [3442] [0] DEBUG: =
    2014-02-01 12:11:25 [3442] [0] DEBUG: =
    2014-02-01 12:11:25 [3442] [0] DEBUG: dumping group (sendsms-user):
    2014-02-01 12:11:25 [3442] [0] DEBUG: = <127.0.0.1>
    2014-02-01 12:11:25 [3442] [0] DEBUG: = <*.*.*.*>
    2014-02-01 12:11:25 [3442] [0] DEBUG: =
    2014-02-01 12:11:25 [3442] [0] DEBUG: =
    2014-02-01 12:11:25 [3442] [0] DEBUG: =
    2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
    2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
    2014-02-01 12:11:25 [3442] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3442.
    2014-02-01 12:11:25 [3442] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 3442.
    2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
    2014-02-01 12:11:25 [3442] [0] ERROR: connect failed
    2014-02-01 12:11:25 [3442] [0] ERROR: System error 111: Connection refused
    2014-02-01 12:11:25 [3442] [0] ERROR: error connecting to server `localhost' at port `13001'
    2014-02-01 12:11:25 [3442] [0] PANIC: Couldn't connect to the bearerbox.
    2014-02-01 12:11:25 [3442] [0] PANIC: smsbox(gw_panic+0x17b) [0x43e14b]
    2014-02-01 12:11:25 [3442] [0] PANIC: smsbox(main+0xcbc) [0x40e0fc]
    2014-02-01 12:11:25 [3442] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f0c7921876d]
    2014-02-01 12:11:25 [3442] [0] PANIC: smsbox() [0x40ea35]

    RépondreSupprimer
  5. Bonjour j'avais un soucis pr terminer la config
    j'ai ce message
    2014-12-04 10:26:43 [12451] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2014-12-04 10:26:43 [12451] [0] ERROR: fopen failed: couldn't open `kannel.conf'
    2014-12-04 10:26:43 [12451] [0] ERROR: System error 2: No such file or directory
    2014-12-04 10:26:43 [12451] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
    2014-12-04 10:26:43 [12451] [0] PANIC: bearerbox(gw_panic+0x17b) [0x47fdab]
    2014-12-04 10:26:43 [12451] [0] PANIC: bearerbox(cfg_read+0x5c6) [0x46ade6]
    2014-12-04 10:26:43 [12451] [0] PANIC: bearerbox(main+0xc4) [0x40dc64]
    2014-12-04 10:26:43 [12451] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f681a718de5]
    2014-12-04 10:26:43 [12451] [0] PANIC: bearerbox() [0x40e9d5]

    RépondreSupprimer
  6. cette configuration ne marche que pour la clé E1552 dont l'idProduct est 1446;
    Donc si vous avez une autre clé comme par exemple E3131 le mien l'idProduct est le 15d1. Pour connaitre le votre brancher votre clé usb et taper lsusb en ligne de commande. Changer le ATTR{idProduct}=="1446" par votre idProduct ce qui donne ATTR{idProduct}=="15d1" dans mon cas.
    Ensuite aller dans kannel.conf remplacer E1552 par E3131 ou une autre si vous disposer d'une autre clé
    Stopper kannel pui rédemarrer bearerbox et smsbox sa devrait marcher.
    Enjoy guys

    RépondreSupprimer
  7. Bonjour j'ai fini ma config mais j'ai toujours cette erreur :

    2015-08-20 18:36:36 [14429] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2015-08-20 18:36:36 [14429] [0] ERROR: fopen failed: couldn't open `kannel.conf'
    2015-08-20 18:36:36 [14429] [0] ERROR: System error 2: No such file or directory
    2015-08-20 18:36:36 [14429] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
    2015-08-20 18:36:36 [14429] [0] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
    2015-08-20 18:36:36 [14429] [0] PANIC: bearerbox(cfg_read+0x6fa) [0x80ba0aa]
    2015-08-20 18:36:36 [14429] [0] PANIC: bearerbox(main+0xd1) [0x8052e61]
    2015-08-20 18:36:36 [14429] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6db7a83]
    2015-08-20 18:36:36 [14429] [0] PANIC: bearerbox() [0x8053dc9]

    j'ai un modem huawei E3131

    RépondreSupprimer
  8. je vous laisse mon fichier de configuration :

    #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 = "00225,+225,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 = +22547070002
    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-E3131
    modemtype = huawei_e3131
    device = /dev/ttyUSB0
    host = localhost
    sms-center = +22507070002
    my-number = +22547002579
    keepalive = 10
    speed = 9600
    sim-buffering = true

    #Modems
    group = modems
    id = huawei_e3131
    name = "huawei E3131"
    detect-string = "Huawei"
    init-string ="AT+CNMI=2,1,2,2,0"
    message-storage = "ME"
    speed = 9600

    #Sms Service Informations
    group = sms-service
    accepted-smsc = Huawei-E3131
    keyword = info
    catch-all = true
    get-url = http://localhost/info.php?t=%t&q=%q&a=%a

    #Sms Service test
    group = sms-service
    accepted-smsc = Huawei-E3131
    keyword = test
    catch-all = true 
    text="Configuration de kannel reussie. Bravo !!!"

    #Sendsms
    group = sendsms-user
    username = kannel
    password = kannel
    forced-smsc = huawei-E3131
    user-allow-ip = « *.*.*.* » 

    Merci de m'aider ....

    RépondreSupprimer
    Réponses
    1. Ou se situ votre réel problème?

      Supprimer
    2. en fait

      j'ai cette erreur:

      3: Queued for later delivery

      pouvez vous m'aidez ?

      je vous laisse mon fichier de configuration :
      ---
      #Core Kannel Configuration Section
      group = core
      admin-port = 13000
      admin-password = kannel
      status-password = kannel
      admin-allow-ip = "*.*.*.*"
      wapbox-port = 13003
      smsbox-port = 13002
      store-type = file
      log-file = "/var/log/kannel/bearerbox.log"
      access-log = "/var/log/kannel/bearerbox-access.log"
      log-level = 0
      unified-prefix = « 00221,+221,00′′
      smsbox-max-pending = 100

      #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-E13131
      modemtype = huawei
      device = /dev/tty6
      host = "localhost"
      sms-center = 51120837
      my-number = 51120837
      pin = 0000
      keepalive = 60
      speed = 9600
      sim-buffering = true
      validityperiod =167

      #Modems
      group = modems
      id = huawei_e3131
      name = "huawei E3131"
      detect-string = "Huawei"
      init-string ="AT+CNMI=2,1,2,2,0"
      message-storage = "SM"
      need-sleep = true
      speed = 115200

      #Sms Service Informations
      group = sms-service
      accepted-smsc = Huawei-E3131
      keyword = info
      catch-all = true
      get-url = http://localhost/info.php?t=%t&q=%q&a=%a

      #Sms Service test
      group = sms-service
      accepted-smsc = Huawei-E3131
      keyword = test
      catch-all = true
      text="Configuration de kannel reussie. Bravo !!!"
      accept-x-kannel-headers = true


      #Sendsms
      group = sendsms-user
      username = kannel
      password = kannel
      forced-smsc = huawei-E3131
      user-allow-ip = « *.*.*.* »


      Supprimer

Enregistrer un commentaire

Posts les plus consultés de ce blog

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, ...

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...