Plugin SMS
Re: Plugin SMS
Bonjour,
Suite à passage d'un RPI2 à un RPI3 B+ avec SSD msata avec une sauvegarde de Jeedom, reconfiguration à l'identique des port USB le plugin SMS refuse de fonctionner, j'ai une clé E1552 elle est bien en mode GSM et dans le plugin j'en voit 2 (tout comme sur le RPI2)
Mais que je choisisse tty/USB0 ou USB1j'ai l'erreur :
Error : [Errno 32] Broken pipe
Est-ce que quelqu'un serait d'où cela peut venir.
Pour info, j'ai de connecté sur les ports USB :
SSD en msata
Clé E1552
RFLINK
Clé Zwave
Merci d'avance pour votre aide
Suite à passage d'un RPI2 à un RPI3 B+ avec SSD msata avec une sauvegarde de Jeedom, reconfiguration à l'identique des port USB le plugin SMS refuse de fonctionner, j'ai une clé E1552 elle est bien en mode GSM et dans le plugin j'en voit 2 (tout comme sur le RPI2)
Mais que je choisisse tty/USB0 ou USB1j'ai l'erreur :
Error : [Errno 32] Broken pipe
Est-ce que quelqu'un serait d'où cela peut venir.
Pour info, j'ai de connecté sur les ports USB :
SSD en msata
Clé E1552
RFLINK
Clé Zwave
Merci d'avance pour votre aide
Re: Plugin SMS
Bonjour,
Si tu fais un lsusb, tu vois également 2 périphériques ?
Je te conseillerais de donner un nom persistant à tes périphériques, juste histoire d'être sur d'attaquer le bon. Tu trouveras pas mal de tutos en cherchant 99-usb-serial.rules sur le net. Il te suffit ensuite de sélectionner ton alias dans la liste déroulante de configuration du plugin sms.
Si tu fais un lsusb, tu vois également 2 périphériques ?
Je te conseillerais de donner un nom persistant à tes périphériques, juste histoire d'être sur d'attaquer le bon. Tu trouveras pas mal de tutos en cherchant 99-usb-serial.rules sur le net. Il te suffit ensuite de sélectionner ton alias dans la liste déroulante de configuration du plugin sms.
Jeedom sur nuc/proxmox + dongle Aeotec GEN5 et RfxCom
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Re: Plugin SMS
Bonjour,
Non quand je fais un lsusb il n'y a qu'une clé :
et sur l'interface graphique j'en ai bien 2 :
Sur le RPI2 seul le ttyUSB1 fonctionnait, mais sur le Rpi3 aucun
Non quand je fais un lsusb il n'y a qu'une clé :
Code : Tout sélectionner
Bus 001 Device 004: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM)
Bus 001 Device 007: ID 0850:0003 Fast Point Technologies, Inc.
Bus 001 Device 005: ID 0658:0200 Sigma Designs, Inc.
Bus 001 Device 009: ID 12d1:141b Huawei Technologies Co., Ltd.
Bus 001 Device 006: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Sur le RPI2 seul le ttyUSB1 fonctionnait, mais sur le Rpi3 aucun
Re: Plugin SMS
Crée une règle persistante avec ID 12d1:141b Huawei Technologies Co., Ltd.
dans /etc/udev/rules.d/99-usb-serial.rules, tu ajoutes
SUBSYSTEM=="tty", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="141b", SYMLINK+="ttyUSB-GSM"
et tu utilises ttyUSB-GSM dans jeedom
dans /etc/udev/rules.d/99-usb-serial.rules, tu ajoutes
SUBSYSTEM=="tty", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="141b", SYMLINK+="ttyUSB-GSM"
et tu utilises ttyUSB-GSM dans jeedom
Jeedom sur nuc/proxmox + dongle Aeotec GEN5 et RfxCom
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Re: Plugin SMS
Bonjpur Chrisax,
Merci mais pas mieux voici les logs :
J'ai remplacé volontairement la clé api dans les logs , mais d'ailleurs elle vient d'où cette clé ?
Merci mais pas mieux voici les logs :
Code : Tout sélectionner
[2019-03-24 18:25:05][INFO] : Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB-GSM --loglevel debug --socketport 55002 --serialrate 115200 --pin 1234 --textmode yes --smsc None --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey yn94fyAKhlc5bilsM9GDF8xebkJalH2J --pid /tmp/jeedom/sms/deamon.pid
[2019-03-24 17:25:07][INFO] : Start smsd
[2019-03-24 17:25:07][INFO] : Log level : debug
[2019-03-24 17:25:07][INFO] : Socket port : 55002
[2019-03-24 17:25:07][INFO] : Socket host : 127.0.0.1
[2019-03-24 17:25:07][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2019-03-24 17:25:07][INFO] : Device : /dev/ttyUSB-GSM
[2019-03-24 17:25:07][INFO] : Apikey :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2019-03-24 17:25:07][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2019-03-24 17:25:07][INFO] : Cycle : 30.0
[2019-03-24 17:25:07][INFO] : Serial rate : 115200
[2019-03-24 17:25:07][INFO] : Pin : 1234
[2019-03-24 17:25:07][INFO] : Text mode : yes
[2019-03-24 17:25:07][INFO] : SMSC : None
[2019-03-24 17:25:07][DEBUG] : Writing PID 12722 to /tmp/jeedom/sms/deamon.pid
[2019-03-24 17:25:07][DEBUG] : Init request module v2.12.4
[2019-03-24 17:25:07][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-03-24 17:25:07][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=xxxxxxxxxxxxxxxxxxxxxHTTP/1.1" 200 0
[2019-03-24 17:25:07][DEBUG] : Socket interface started
[2019-03-24 17:25:07][DEBUG] : LoopNetServer Thread started
[2019-03-24 17:25:07][DEBUG] : Start listening...
[2019-03-24 17:25:07][DEBUG] : Listening on: [127.0.0.1:55002]
[2019-03-24 17:25:07][DEBUG] : Connecting to GSM Modem...
[2019-03-24 17:25:07][DEBUG] : Text mode true
[2019-03-24 17:25:07][DEBUG] : Enter pin code : 1234
[2019-03-24 17:25:07][INFO] : Connecting to modem on port /dev/ttyUSB-GSM at 115200bps
[2019-03-24 17:25:07][DEBUG] : write: ATZ
[2019-03-24 17:25:12][ERROR] : Exception: None
[2019-03-24 17:25:12][ERROR] : Exit 1 because this exeption is fatal
[2019-03-24 17:25:12][DEBUG] : Send to jeedom : {'message': 'None', 'number': 'none'}
[2019-03-24 17:25:12][DEBUG] : Shutdown
[2019-03-24 17:25:12][DEBUG] : Removing PID file /tmp/jeedom/sms/deamon.pid
[2019-03-24 17:25:12][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-03-24 17:25:12][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=xxxxxxxxxxxxxxxxxHTTP/1.1" 200 0
[2019-03-24 17:25:12][DEBUG] : LoopNetServer Thread stopped
[2019-03-24 17:25:12][DEBUG] : Exit 0
Re: Plugin SMS
Pour rappel lorsque j'avais installé la clé sur le Rpi2 j'avais lors d'un lsusbromu044 a écrit : ↑24 mars 2019, 07:58Bonjour,
Non quand je fais un lsusb il n'y a qu'une clé :et sur l'interface graphique j'en ai bien 2 :Code : Tout sélectionner
Bus 001 Device 004: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM) Bus 001 Device 007: ID 0850:0003 Fast Point Technologies, Inc. Bus 001 Device 005: ID 0658:0200 Sigma Designs, Inc. Bus 001 Device 009: ID 12d1:141b Huawei Technologies Co., Ltd. Bus 001 Device 006: ID 0424:7800 Standard Microsystems Corp. Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Sur le RPI2 seul le ttyUSB1 fonctionnait, mais sur le Rpi3 aucun
Code : Tout sélectionner
Bus 001 Device 005: ID 12d1:1446 Huawei Technologies Co., Ltd. E1552/E1800/E173 (HSPA modem)
Code : Tout sélectionner
sudo usb_modeswitch -v 12d1 -p 1446 -M 55534243000000000000000000000011060000000000000000000000000000 -m 0x01
Code : Tout sélectionner
Bus 001 Device 010: ID 12d1:141b Huawei Technologies Co., Ltd.
Code : Tout sélectionner
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1446 -M 55534243000000000000000000000011060000000000000000000000000000 -m 0x01"' > /etc/udev/rules.d/99-usb_modeswitch.rules
Code : Tout sélectionner
pi@raspberrypi:~ $ lsusb
Bus 001 Device 011: ID 12d1:141b Huawei Technologies Co., Ltd.
Re: Plugin SMS
Chez moi, Texte mode n'est pas coché et je n'ai pas de code pin.
www-data fait partie du groupe dialout.
www-data fait partie du groupe dialout.
Jeedom sur nuc/proxmox + dongle Aeotec GEN5 et RfxCom
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Re: Plugin SMS
je ne pense pas que ce soit cela qui fait que le démon soit down.
Re: Plugin SMS
En parcourant les autres sujets de ce fil, on peut voir que vous êtes plusieurs à avoir le même problème d'écriture (write: ATZ)
Est-ce que tu as vérifié que www-data faisait partie du groupe dialout ?
Est-ce que tu as vérifié que www-data faisait partie du groupe dialout ?
Jeedom sur nuc/proxmox + dongle Aeotec GEN5 et RfxCom
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Re: Plugin SMS
en faisant dans une console ssh:
more /etc/group |grep dialout
ça doit te retourner quelque chose comme "dialout20:www-data"
si ce n'est pas le cas, tu peux ajouter l'utilisateur en tapant:
sudo usermod -aG dialout www-data
more /etc/group |grep dialout
ça doit te retourner quelque chose comme "dialout20:www-data"
si ce n'est pas le cas, tu peux ajouter l'utilisateur en tapant:
sudo usermod -aG dialout www-data
Jeedom sur nuc/proxmox + dongle Aeotec GEN5 et RfxCom
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Re: Plugin SMS
Bonjour Chrisax
voici ce que j'ai
mais le démon ne veux même plus ce lancer : Impossible de lancer le démon sms, vérifiez le port
pourtant la clé est bien présente
Bref
Je viens de récupérer une clé E220 :
elle est reconnue, le démon ce lance bien mais voici les logs :
je ne trouve pas ce que cela peut être.
aurais tu une idée ?
voici ce que j'ai
Code : Tout sélectionner
pi@raspberrypi:~ $ more /etc/group |grep dialout
dialout:x:20:pi,www-data
pourtant la clé est bien présente
Bref
Je viens de récupérer une clé E220 :
Code : Tout sélectionner
pi@raspberrypi:~ $ lsusb
Bus 001 Device 012: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
Code : Tout sélectionner
[2019-03-30 07:52:46][INFO] : Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB0 --loglevel debug --socketport 55002 --serialrate 115200 --pin 1234 --textmode yes --smsc None --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey ***clé api *** --pid /tmp/jeedom/sms/deamon.pid
[2019-03-30 06:52:48][INFO] : Start smsd
[2019-03-30 06:52:48][INFO] : Log level : debug
[2019-03-30 06:52:48][INFO] : Socket port : 55002
[2019-03-30 06:52:48][INFO] : Socket host : 127.0.0.1
[2019-03-30 06:52:48][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2019-03-30 06:52:48][INFO] : Device : /dev/ttyUSB0
[2019-03-30 06:52:48][INFO] : Apikey : ***clé api ***
[2019-03-30 06:52:48][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2019-03-30 06:52:48][INFO] : Cycle : 30.0
[2019-03-30 06:52:48][INFO] : Serial rate : 115200
[2019-03-30 06:52:48][INFO] : Pin : 1234
[2019-03-30 06:52:48][INFO] : Text mode : yes
[2019-03-30 06:52:48][INFO] : SMSC : None
[2019-03-30 06:52:48][DEBUG] : Writing PID 13776 to /tmp/jeedom/sms/deamon.pid
[2019-03-30 06:52:48][DEBUG] : Init request module v2.12.4
[2019-03-30 06:52:48][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-03-30 06:52:48][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=yn94fyAKhlc5bilsM9GDF8xebkJalH2J HTTP/1.1" 200 0
[2019-03-30 06:52:48][DEBUG] : Socket interface started
[2019-03-30 06:52:48][DEBUG] : LoopNetServer Thread started
[2019-03-30 06:52:48][DEBUG] : Start listening...
[2019-03-30 06:52:48][DEBUG] : Listening on: [127.0.0.1:55002]
[2019-03-30 06:52:48][DEBUG] : Connecting to GSM Modem...
[2019-03-30 06:52:48][DEBUG] : Text mode true
[2019-03-30 06:52:48][DEBUG] : Enter pin code : 1234
[2019-03-30 06:52:48][INFO] : Connecting to modem on port /dev/ttyUSB0 at 115200bps
[2019-03-30 06:52:48][DEBUG] : write: ATZ
[2019-03-30 06:52:48][DEBUG] : response: ['ATZ
', 'OK']
[2019-03-30 06:52:48][DEBUG] : write: ATE0
[2019-03-30 06:52:48][DEBUG] : response: ['ATE0
', 'OK']
[2019-03-30 06:52:48][DEBUG] : write: AT+CFUN?
[2019-03-30 06:52:48][DEBUG] : response: ['+CFUN: 1', 'OK']
[2019-03-30 06:52:48][DEBUG] : write: AT+CMEE=1
[2019-03-30 06:52:48][DEBUG] : response: ['OK']
[2019-03-30 06:52:48][DEBUG] : write: AT+CPIN?
[2019-03-30 06:52:48][DEBUG] : response: ['+CPIN: SIM PIN', 'OK']
[2019-03-30 06:52:48][DEBUG] : write: AT+CPIN="1234"
[2019-03-30 06:52:48][DEBUG] : response: ['OK']
[2019-03-30 06:52:48][DEBUG] : write: AT+CLAC
[2019-03-30 06:52:48][DEBUG] : response: ['+CLAC:&C,&D,&F,&V,E,I,L,M,Q,V,X,Z,T,P,D,A,H,O,S0,S2,S3,S4,S5,S6,S7,S8,S9,S10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IN,^SN,^EARST,^CARDLOCK,^CARDUNLOCK,^ATRECORD,^CDUR,^BOOT,^FHVER,^CURC,^FREQLOCK,^FREQPREF,^HSPA,^HSUPA,^HSDPA,^GLASTERR,^CARDMODE,^U2DIAG,^SETPID,^SCSITIMEOUT,^CQI,^CVOICE,^DDSETEX,^RDCUST,^FPLMN,^FPLMNCTRL,^USSDMODE,^YJCX,', 'OK']
[2019-03-30 06:52:48][DEBUG] : write: AT^CVOICE=0
[2019-03-30 06:52:48][DEBUG] : response: ['ERROR']
[2019-03-30 06:52:48][DEBUG] : write: AT^USSDMODE=0
[2019-03-30 06:52:48][DEBUG] : response: ['OK']
[2019-03-30 06:52:48][INFO] : Loading Huawei call state update table
[2019-03-30 06:52:48][DEBUG] : write: AT+COPS=3,0
[2019-03-30 06:52:48][DEBUG] : response: ['OK']
[2019-03-30 06:52:48][DEBUG] : write: AT+CMGF=1
[2019-03-30 06:52:48][DEBUG] : response: ['OK']
[2019-03-30 06:52:48][DEBUG] : write: AT+CSCA?
[2019-03-30 06:52:48][DEBUG] : response: ['+CME ERROR: 14']
[2019-03-30 06:52:48][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.200000s
[2019-03-30 06:52:48][DEBUG] : write: AT+CSCA?
[2019-03-30 06:52:48][DEBUG] : response: ['+CME ERROR: 14']
[2019-03-30 06:52:49][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.400000s
[2019-03-30 06:52:49][DEBUG] : write: AT+CSCA?
[2019-03-30 06:52:49][DEBUG] : response: ['+CME ERROR: 14']
[2019-03-30 06:52:50][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.600000s
[2019-03-30 06:52:50][DEBUG] : write: AT+CSCA?
[2019-03-30 06:52:50][DEBUG] : response: ['+CME ERROR: 14']
aurais tu une idée ?
Re: Plugin SMS
Tes logs s’arrêtent là ou tu n'as pas tout mis ?
Car là, tu es dans la procédure normale de démarrage.
Car là, tu es dans la procédure normale de démarrage.
Dernière édition par Jeandhom le 30 mars 2019, 12:34, édité 1 fois.
Re: Plugin SMS
Oui, là au moins la clé est reconnue et le démon discute avec elle.
Tu as fais un test d'envoi ou réception ?
Tu as fais un test d'envoi ou réception ?
Jeedom sur nuc/proxmox + dongle Aeotec GEN5 et RfxCom
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Re: Plugin SMS
oui les logs s’arrêtent là.
Et oui j'ai fait un test d'envoi :
il y a toujours cette erreur
Et oui j'ai fait un test d'envoi :
Code : Tout sélectionner
[2019-03-31 07:35:13][DEBUG] : response: ['+CME ERROR: 14']
[2019-03-31 07:37:24][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 130.800000s
[2019-03-31 07:39:35][DEBUG] : write: AT+CSCA?
[2019-03-31 07:39:35][DEBUG] : response: ['+CME ERROR: 14']
[2019-03-31 07:41:45][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 131.000000s
[2019-03-31 07:42:20][DEBUG] : Client connected to [127.0.0.1:44926]
[2019-03-31 07:42:20][DEBUG] : Message read from socket: {"apikey":"***api key***","number":"06xxxxxxxx","message":"essai"}
[2019-03-31 07:42:20][DEBUG] : Client disconnected from [127.0.0.1:44926]
il y a toujours cette erreur
Re: Plugin SMS
Tu as toujours ton RPI2 ?
Ca serait peut être pas mal de tester les 2 clés dessus pour être sûr que ce n'est pas un problème matériel.
Sinon, je commence à être à cours d'idées...
Ca serait peut être pas mal de tester les 2 clés dessus pour être sûr que ce n'est pas un problème matériel.
Sinon, je commence à être à cours d'idées...
Jeedom sur nuc/proxmox + dongle Aeotec GEN5 et RfxCom
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Re: Plugin SMS
Ma E1752 fonctionne très bien sur mon Rpi2
Re: Plugin SMS
Bon j'ai pensé à un truc, est-ce que ma clé est desimlockée ?
vu que c'est une clé (la E220) orange et la carte sim free
J'ai effectué l'opération, reconnecté la clé, redémarré le rpi et fait un essai, envoyé le message "essai"
voici les log :
tout à lair de bien ce passé mais je ne reçoit rien et il y a l'erreur sur la dernière ligne, je comprends pas, ça veut dire quoi ?
vu que c'est une clé (la E220) orange et la carte sim free
J'ai effectué l'opération, reconnecté la clé, redémarré le rpi et fait un essai, envoyé le message "essai"
voici les log :
Code : Tout sélectionner
[2019-04-03 15:43:40][INFO] : Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB0 --loglevel debug --socketport 55002 --serialrate 115200 --pin 1234 --textmode yes --smsc None --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey ***clé*** --pid /tmp/jeedom/sms/deamon.pid
[2019-04-03 14:43:42][INFO] : Start smsd
[2019-04-03 14:43:42][INFO] : Log level : debug
[2019-04-03 14:43:42][INFO] : Socket port : 55002
[2019-04-03 14:43:42][INFO] : Socket host : 127.0.0.1
[2019-04-03 14:43:42][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2019-04-03 14:43:42][INFO] : Device : /dev/ttyUSB0
[2019-04-03 14:43:42][INFO] : Apikey : ***clé***
[2019-04-03 14:43:42][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2019-04-03 14:43:42][INFO] : Cycle : 30.0
[2019-04-03 14:43:42][INFO] : Serial rate : 115200
[2019-04-03 14:43:42][INFO] : Pin : 1234
[2019-04-03 14:43:42][INFO] : Text mode : yes
[2019-04-03 14:43:42][INFO] : SMSC : None
[2019-04-03 14:43:42][DEBUG] : Writing PID 1829 to /tmp/jeedom/sms/deamon.pid
[2019-04-03 14:43:42][DEBUG] : Init request module v2.12.4
[2019-04-03 14:43:42][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-04-03 14:43:42][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=***clé*** HTTP/1.1" 200 0
[2019-04-03 14:43:42][DEBUG] : Socket interface started
[2019-04-03 14:43:42][DEBUG] : LoopNetServer Thread started
[2019-04-03 14:43:42][DEBUG] : Start listening...
[2019-04-03 14:43:42][DEBUG] : Listening on: [127.0.0.1:55002]
[2019-04-03 14:43:42][DEBUG] : Connecting to GSM Modem...
[2019-04-03 14:43:42][DEBUG] : Text mode true
[2019-04-03 14:43:42][DEBUG] : Enter pin code : 1234
[2019-04-03 14:43:42][INFO] : Connecting to modem on port /dev/ttyUSB0 at 115200bps
[2019-04-03 14:43:42][DEBUG] : write: ATZ
[2019-04-03 14:43:42][DEBUG] : response: ['ATZ
', 'OK']
[2019-04-03 14:43:42][DEBUG] : write: ATE0
[2019-04-03 14:43:42][DEBUG] : response: ['ATE0
', 'OK']
[2019-04-03 14:43:42][DEBUG] : write: AT+CFUN?
[2019-04-03 14:43:42][DEBUG] : response: ['+CFUN: 1', 'OK']
[2019-04-03 14:43:42][DEBUG] : write: AT+CMEE=1
[2019-04-03 14:43:42][DEBUG] : response: ['OK']
[2019-04-03 14:43:42][DEBUG] : write: AT+CPIN?
[2019-04-03 14:43:42][DEBUG] : response: ['+CPIN: SIM PIN', 'OK']
[2019-04-03 14:43:42][DEBUG] : write: AT+CPIN="1234"
[2019-04-03 14:43:42][DEBUG] : response: ['OK']
[2019-04-03 14:43:42][DEBUG] : write: AT+CLAC
[2019-04-03 14:43:42][DEBUG] : response: ['+CLAC:&C,&D,&F,&V,E,I,L,M,Q,V,X,Z,T,P,D,A,H,O,S0,S2,S3,S4,S5,S6,S7,S8,S9,S10,S11,S30,S103,S104,+FCLASS,+ICF,+IFC,+IPR,+GMI,+GMM,+GMR,+GCAP,+GSN,+DR,+DS,+WS46,+CLAC,+CCLK,+CBST,+CRLP,+CV120,+CHSN,+CSSN,+CREG,+CGREG,+CFUN,+GCAP,+CSCS,+CSTA,+CR,+CEER,+CRC,+CMEE,+CGDCONT,+CGDSCONT,+CGTFT,+CGEQREQ,+CGEQMIN,+CGQREQ,+CGQMIN,+CGEQNEG,+CGEREP,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2019-04-03 14:43:42][DEBUG] : response: ['ERROR']
[2019-04-03 14:43:42][DEBUG] : write: AT^USSDMODE=0
[2019-04-03 14:43:42][DEBUG] : response: ['OK']
[2019-04-03 14:43:42][INFO] : Loading Huawei call state update table
[2019-04-03 14:43:42][DEBUG] : write: AT+COPS=3,0
[2019-04-03 14:43:42][DEBUG] : response: ['OK']
[2019-04-03 14:43:42][DEBUG] : write: AT+CMGF=1
[2019-04-03 14:43:42][DEBUG] : response: ['OK']
[2019-04-03 14:43:42][DEBUG] : write: AT+CSCA?
[2019-04-03 14:43:42][DEBUG] : response: ['+CME ERROR: 14']
[2019-04-03 14:43:42][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.200000s
[2019-04-03 14:43:43][DEBUG] : write: AT+CSCA?
[2019-04-03 14:43:43][DEBUG] : response: ['+CME ERROR: 14']
[2019-04-03 14:43:43][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.400000s
[2019-04-03 14:43:43][DEBUG] : write: AT+CSCA?
[2019-04-03 14:43:43][DEBUG] : response: ['+CME ERROR: 14']
[2019-04-03 14:43:44][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.600000s
[2019-04-03 14:43:44][DEBUG] : write: AT+CSCA?
[2019-04-03 14:43:44][DEBUG] : response: ['+CSCA: "+33695000695",145', 'OK']
[2019-04-03 14:43:45][DEBUG] : self_writeWait set to 0.1 because of recovering from device busy (515) error
[2019-04-03 14:43:45][DEBUG] : self_writeWait set to 0.1 because of recovering from device busy (515) error
[2019-04-03 14:43:45][DEBUG] : self_writeWait set to 0.1 because of recovering from device busy (515) error
[2019-04-03 14:43:45][DEBUG] : write: AT+CSMP=49,167,0,0
[2019-04-03 14:43:45][DEBUG] : response: ['OK']
[2019-04-03 14:43:45][DEBUG] : write: AT+CSCA?
[2019-04-03 14:43:45][DEBUG] : response: ['+CSCA: "+33695000695",145', 'OK']
[2019-04-03 14:43:45][DEBUG] : write: AT+CPMS=?
[2019-04-03 14:43:45][DEBUG] : response: ['+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")', 'OK']
[2019-04-03 14:43:45][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2019-04-03 14:43:45][DEBUG] : response: ['+CPMS: 0,23,0,23,0,23', 'OK']
[2019-04-03 14:43:45][DEBUG] : write: AT+CNMI=2,1,0,2
[2019-04-03 14:43:45][DEBUG] : response: ['OK']
[2019-04-03 14:43:45][DEBUG] : write: AT+CLIP=1
[2019-04-03 14:43:45][DEBUG] : response: ['OK']
[2019-04-03 14:43:45][DEBUG] : write: AT+CRC=1
[2019-04-03 14:43:45][DEBUG] : response: ['OK']
[2019-04-03 14:43:45][DEBUG] : write: AT+CVHU=0
[2019-04-03 14:43:45][DEBUG] : response: ['OK']
[2019-04-03 14:43:45][DEBUG] : Waiting for network...
[2019-04-03 14:43:45][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:45][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:46][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:46][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:47][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:47][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:48][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:48][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:49][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:49][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:50][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:50][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:51][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:51][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:52][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:52][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:53][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:53][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:54][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:54][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:55][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:55][DEBUG] : response: ['+CREG: 0,2', 'OK']
[2019-04-03 14:43:56][DEBUG] : write: AT+CREG?
[2019-04-03 14:43:56][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-03 14:43:57][DEBUG] : write: AT+CSQ
[2019-04-03 14:43:57][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:43:57][DEBUG] : Ok
[2019-04-03 14:43:57][DEBUG] : write: AT+COPS?
[2019-04-03 14:43:57][DEBUG] : response: ['+COPS: 0,0,"",2', 'OK']
[2019-04-03 14:43:57][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2019-04-03 14:43:57][DEBUG] : Send to jeedom : {'message': 'None', 'number': 'network_name'}
[2019-04-03 14:43:57][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-04-03 14:43:57][DEBUG] : response: ['+CPMS: 0,23,0,23,0,23', 'OK']
[2019-04-03 14:43:57][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=***clé*** HTTP/1.1" 200 0
[2019-04-03 14:43:57][DEBUG] : write: AT+CMGD=1,4
[2019-04-03 14:43:57][DEBUG] : response: ['OK']
[2019-04-03 14:43:57][DEBUG] : write: AT+CPMS="SM","SM","SM"
[2019-04-03 14:43:57][DEBUG] : response: ['+CPMS: 0,100,0,100,0,100', 'OK']
[2019-04-03 14:43:57][DEBUG] : write: AT+CMGD=1,4
[2019-04-03 14:43:57][DEBUG] : response: ['OK']
[2019-04-03 14:44:27][DEBUG] : write: AT+CREG?
[2019-04-03 14:44:27][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-03 14:44:28][DEBUG] : write: AT+CSQ
[2019-04-03 14:44:28][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:44:28][DEBUG] : write: AT+CMGL="REC UNREAD"
[2019-04-03 14:44:28][DEBUG] : response: ['OK']
[2019-04-03 14:44:28][DEBUG] : write: AT+CSQ
[2019-04-03 14:44:28][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:44:28][DEBUG] : write: AT+CSQ
[2019-04-03 14:44:28][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:44:28][DEBUG] : write: AT+CSQ
[2019-04-03 14:44:28][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:44:28][DEBUG] : Send to jeedom : {'message': '12', 'number': 'signal_strength'}
[2019-04-03 14:44:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-04-03 14:44:29][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=***clé*** HTTP/1.1" 200 0
[2019-04-03 14:44:58][DEBUG] : write: AT+CREG?
[2019-04-03 14:44:58][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-03 14:44:59][DEBUG] : write: AT+CSQ
[2019-04-03 14:44:59][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:44:59][DEBUG] : write: AT+CMGL="REC UNREAD"
[2019-04-03 14:44:59][DEBUG] : response: ['OK']
[2019-04-03 14:44:59][DEBUG] : write: AT+CSQ
[2019-04-03 14:44:59][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:45:30][DEBUG] : write: AT+CREG?
[2019-04-03 14:45:30][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-03 14:45:31][DEBUG] : write: AT+CSQ
[2019-04-03 14:45:31][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:45:31][DEBUG] : write: AT+CMGL="REC UNREAD"
[2019-04-03 14:45:31][DEBUG] : response: ['OK']
[2019-04-03 14:45:31][DEBUG] : write: AT+CSQ
[2019-04-03 14:45:31][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:46:01][DEBUG] : write: AT+CREG?
[2019-04-03 14:46:01][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-03 14:46:02][DEBUG] : write: AT+CSQ
[2019-04-03 14:46:02][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:46:02][DEBUG] : write: AT+CMGL="REC UNREAD"
[2019-04-03 14:46:02][DEBUG] : response: ['OK']
[2019-04-03 14:46:02][DEBUG] : write: AT+CSQ
[2019-04-03 14:46:02][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:46:22][DEBUG] : Client connected to [127.0.0.1:37810]
[2019-04-03 14:46:22][DEBUG] : Message read from socket: {"apikey":"***clé***","number":"06********","message":"essai"}
[2019-04-03 14:46:22][DEBUG] : Client disconnected from [127.0.0.1:37810]
[2019-04-03 14:46:32][DEBUG] : write: AT+CREG?
[2019-04-03 14:46:32][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-03 14:46:33][DEBUG] : write: AT+CSQ
[2019-04-03 14:46:33][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:46:33][DEBUG] : write: AT+CMGL="REC UNREAD"
[2019-04-03 14:46:33][DEBUG] : response: ['OK']
[2019-04-03 14:46:33][DEBUG] : write: AT+CSQ
[2019-04-03 14:46:33][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:46:33][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-04-03 14:46:33][DEBUG] : write: AT+CREG?
[2019-04-03 14:46:33][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-03 14:46:34][DEBUG] : write: AT+CSQ
[2019-04-03 14:46:34][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-03 14:46:34][DEBUG] : write: AT+CMGS="06********"
[2019-04-03 14:46:34][DEBUG] : response: ['> ']
[2019-04-03 14:46:34][DEBUG] : write: essai
[2019-04-03 14:46:34][ERROR] : unicode strings are not supported, please encode to bytes: u'essai\x1a'
Re: Plugin SMS
Ce n'est pas un problème de clé. Les logs montrent bien que ça discute normalement.
Ça ressemble plus à un problème d'encodage python, non ?
Tu as décoché le mode texte ?
Ça ressemble plus à un problème d'encodage python, non ?
Tu as décoché le mode texte ?
Jeedom sur nuc/proxmox + dongle Aeotec GEN5 et RfxCom
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Ecran de contrôle sur Rpi 3B+ et Google Voice Kit
Re: Plugin SMS
Non texte mode est bien coché
Qui est en ligne ?
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 2 invités