Re: Plugin SMS
Publié : 04 avr. 2019, 14:20
Chez moi texte mode n'est PAS coché..... et ca a toujours bien fonctionné comme ca !!(j'ai une Huawei E220)
Also, if in text mode, you need to enable the report feature by setting <AT+CSMP=49,167,0,0>
Bon alors j'ai testé mes 3 clés : E1752, E1752 reconnue comme une E220 et une E367 toutes des huawei, elles fonctionnent très bien sur mon rpi2
Code : Tout sélectionner
[2019-04-05 17:43:27][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxx","number":"06xxxxxxxx","message":"essai"}
[2019-04-05 17:43:27][DEBUG] : Client disconnected from [127.0.0.1:59496]
[2019-04-05 17:43:39][DEBUG] : write: AT+CREG?
[2019-04-05 17:43:39][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-05 17:43:40][DEBUG] : write: AT+CSQ
[2019-04-05 17:43:40][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 17:43:40][DEBUG] : write: AT+CMGL="REC UNREAD"
[2019-04-05 17:43:40][DEBUG] : response: ['OK']
[2019-04-05 17:43:40][DEBUG] : write: AT+CSQ
[2019-04-05 17:43:40][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 17:43:40][DEBUG] : write: AT+CSQ
[2019-04-05 17:43:40][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 17:43:40][DEBUG] : write: AT+CSQ
[2019-04-05 17:43:40][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 17:43:40][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-04-05 17:43:40][DEBUG] : Send to jeedom : {'message': '12', 'number': 'signal_strength'}
[2019-04-05 17:43:40][DEBUG] : write: AT+CREG?
[2019-04-05 17:43:40][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-04-05 17:43:40][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-05 17:43:40][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxHTTP/1.1" 200 0
[2019-04-05 17:43:41][DEBUG] : write: AT+CSQ
[2019-04-05 17:43:41][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 17:43:41][DEBUG] : write: AT+CMGS="06xxxxxxxx"
[2019-04-05 17:43:41][DEBUG] : response: ['> ']
[2019-04-05 17:43:41][DEBUG] : write: essai
[2019-04-05 17:43:41][ERROR] : unicode strings are not supported, please encode to bytes: u'essai\x1a'
Code : Tout sélectionner
[2019-04-05 18:09:03][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxx","number":"06xxxxxxxx","message":"essai"}
[2019-04-05 18:09:03][DEBUG] : Client disconnected from [127.0.0.1:44502]
[2019-04-05 18:09:31][DEBUG] : write: AT+CREG?
[2019-04-05 18:09:31][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-05 18:09:32][DEBUG] : write: AT+CSQ
[2019-04-05 18:09:32][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 18:09:32][DEBUG] : write: AT+CMGL=0
[2019-04-05 18:09:32][DEBUG] : response: ['OK']
[2019-04-05 18:09:32][DEBUG] : write: AT+CSQ
[2019-04-05 18:09:32][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 18:09:32][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-04-05 18:09:32][DEBUG] : write: AT+CREG?
[2019-04-05 18:09:32][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-05 18:09:33][DEBUG] : write: AT+CSQ
[2019-04-05 18:09:33][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 18:09:33][DEBUG] : write: AT+CMGS=17
[2019-04-05 18:09:33][DEBUG] : response: ['> ']
[2019-04-05 18:09:33][DEBUG] : write: 0021670AA16034461872000005E5F93C9C06
[2019-04-05 18:09:35][DEBUG] : response: ['+CMGS: 103', 'OK']
[2019-04-05 18:10:05][DEBUG] : write: AT+CREG?
[2019-04-05 18:10:05][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-05 18:10:06][DEBUG] : write: AT+CSQ
[2019-04-05 18:10:06][DEBUG] : response: ['+CSQ: 12,99', 'OK']
[2019-04-05 18:10:06][DEBUG] : write: AT+CMGL=0
[2019-04-05 18:10:06][DEBUG] : response: ['+CMGL: 0,0,,25', '07913396050056F906670B913346638421F7914050919053809140509190538000', 'OK']
[2019-04-05 18:10:06][DEBUG] : write: AT+CMGD=0,0
[2019-04-05 18:10:06][DEBUG] : response: ['OK']
[2019-04-05 18:10:06][DEBUG] : Got SMS message : <gsmmodem.modem.StatusReport object at 0x7553f210>
[2019-04-05 18:10:06][DEBUG] : No text so nothing to do
[2019-04-05 18:10:06][DEBUG] : write: AT+CSQ
[2019-04-05 18:10:06][DEBUG] : response: ['+CSQ: 12,99', 'OK']
Code : Tout sélectionner
[2019-04-06 07:18:55][DEBUG] : Client connected to [127.0.0.1:46914]
[2019-04-06 07:18:55][DEBUG] : Message read from socket: {"apikey":"xxxxxxxxxxxxxxxxxxxxxxxx","number":"06xxxxxxxx","message":"essai"}
[2019-04-06 07:18:55][DEBUG] : Client disconnected from [127.0.0.1:46914]
[2019-04-06 07:18:58][DEBUG] : write: AT+CREG?
[2019-04-06 07:18:58][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-06 07:18:59][DEBUG] : write: AT+CSQ
[2019-04-06 07:18:59][DEBUG] : response: ['+CSQ: 13,99', 'OK']
[2019-04-06 07:18:59][DEBUG] : write: AT+CMGL=0
[2019-04-06 07:19:04][ERROR] : Exception on GSM : None
[2019-04-06 07:19:04][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE
[2019-04-06 07:19:04][DEBUG] : write: AT+CREG?
[2019-04-06 07:19:04][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-06 07:19:05][DEBUG] : write: AT+CSQ
[2019-04-06 07:19:05][DEBUG] : response: ['+CSQ: 13,99', 'OK']
[2019-04-06 07:19:05][DEBUG] : write: AT+CMGS=17
[2019-04-06 07:19:05][DEBUG] : response: ['> ']
[2019-04-06 07:19:05][DEBUG] : write: 00216B0AA16034461872000005E5F93C9C06
[2019-04-06 07:19:08][DEBUG] : response: ['+CMGS: 107', 'OK']
Code : Tout sélectionner
[2019-04-06 07:19:38][DEBUG] : write: AT+CREG?
[2019-04-06 07:19:38][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-04-06 07:19:39][DEBUG] : write: AT+CSQ
[2019-04-06 07:19:39][DEBUG] : response: ['+CSQ: 13,99', 'OK']
[2019-04-06 07:19:39][DEBUG] : write: AT+CMGL=0
[2019-04-06 07:19:44][ERROR] : Exception on GSM : None
Salut moi j était sous rpi et stretch et ça marche super bienTooms a écrit : ↑08 avr. 2019, 13:39Bonjour,
de mon côté j'ai complètement supprimé ma clé Huawei E220 car impossible de la faire fonctionner de manière stable depuis quelques temps (avec une Jeedom smart, cela fonctionnait depuis plusieurs mois). J'ai testé avec hub usb auto alimenté sans amélioration. Il me semble avoir compris que certains ont réussi à stabiliser en passant sous Debian Stretch mais je n'ai pas encore sauté le pas.
Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB1 --loglevel info --socketport 55002 --serialrate 115200 --pin None --textmode no --smsc +33695000695 --cycle 15 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey UHQlkxCKjfP1DyGmS2nllRLvZ9FM1F2u --pid /tmp/jeedom/sms/deamon.pid
[2019-04-19 08:48:36][INFO] : Start smsd
[2019-04-19 08:48:36][INFO] : Log level : info
[2019-04-19 08:48:36][INFO] : Socket port : 55002
[2019-04-19 08:48:36][INFO] : Socket host : 127.0.0.1
[2019-04-19 08:48:36][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2019-04-19 08:48:36][INFO] : Device : /dev/ttyUSB1
[2019-04-19 08:48:36][INFO] : Apikey : xxxxxxxxxxxxxxx
[2019-04-19 08:48:36][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2019-04-19 08:48:36][INFO] : Cycle : 15.0
[2019-04-19 08:48:36][INFO] : Serial rate : 115200
[2019-04-19 08:48:36][INFO] : Pin : None
[2019-04-19 08:48:36][INFO] : Text mode : no
[2019-04-19 08:48:36][INFO] : SMSC : +33695000695
[2019-04-19 08:48:36][INFO] : Connecting to modem on port /dev/ttyUSB1 at 115200bps
[2019-04-19 08:48:57][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:49:13][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:49:30][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:49:46][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:50:02][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:50:18][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:50:34][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:50:50][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:51:07][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:51:23][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:51:39][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:51:55][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:52:11][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:52:27][INFO] : +CREG check disabled due to invalid response or unsupported command
[2019-04-19 08:52:44][INFO] : +CREG check disabled due to invalid response or unsupported command
Code : Tout sélectionner
[2019-05-11 20:39:51][DEBUG] : write: AT+CSQ
[2019-05-11 20:39:51][DEBUG] : response: ['+CSQ: 6,99', 'OK']
[2019-05-11 20:40:21][DEBUG] : write: AT+CREG?
[2019-05-11 20:40:21][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-05-11 20:40:22][DEBUG] : write: AT+CSQ
[2019-05-11 20:40:22][DEBUG] : response: ['+CSQ: 6,99', 'OK']
[2019-05-11 20:40:22][DEBUG] : write: AT+CMGL=0
[2019-05-11 20:40:22][DEBUG] : response: ['OK']
[2019-05-11 20:40:22][DEBUG] : write: AT+CSQ
[2019-05-11 20:40:22][DEBUG] : response: ['+CSQ: 6,99', 'OK']
[2019-05-11 20:40:52][DEBUG] : write: AT+CREG?
[2019-05-11 20:40:52][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-05-11 20:40:53][DEBUG] : write: AT+CSQ
[2019-05-11 20:40:58][ERROR] : Exception on GSM : None
[2019-05-11 20:41:28][DEBUG] : write: AT+CREG?
[2019-05-11 20:41:33][ERROR] : Exception on GSM : None
[2019-05-11 20:42:03][DEBUG] : write: AT+CREG?
[2019-05-11 20:42:08][ERROR] : Exception on GSM : None
[2019-05-11 20:42:38][DEBUG] : write: AT+CREG?
[2019-05-11 20:42:43][ERROR] : Exception on GSM : None
[2019-05-11 20:43:13][DEBUG] : write: AT+CREG?
[2019-05-11 20:43:18][ERROR] : Exception on GSM : None
[2019-05-11 20:43:48][DEBUG] : write: AT+CREG?
[2019-05-11 20:43:53][ERROR] : Exception on GSM : None
[2019-05-11 20:44:23][DEBUG] : write: AT+CREG?
[2019-05-11 20:44:28][ERROR] : Exception on GSM : None
[2019-05-11 20:44:58][DEBUG] : write: AT+CREG?
[2019-05-11 20:45:03][ERROR] : Exception on GSM : None
[2019-05-11 20:45:33][DEBUG] : write: AT+CREG?
[2019-05-11 20:45:38][ERROR] : Exception on GSM : None
[2019-05-11 20:46:08][DEBUG] : write: AT+CREG?
[2019-05-11 20:46:13][ERROR] : Exception on GSM : None
[2019-05-11 20:46:43][DEBUG] : write: AT+CREG?
[2019-05-11 20:46:48][ERROR] : Exception on GSM : None
[2019-05-11 20:47:18][DEBUG] : write: AT+CREG?
[2019-05-11 20:47:23][ERROR] : Exception on GSM : None
[2019-05-11 20:47:53][DEBUG] : write: AT+CREG?
[2019-05-11 20:47:58][ERROR] : Exception on GSM : None
[2019-05-11 20:48:28][DEBUG] : write: AT+CREG?
[2019-05-11 20:48:33][ERROR] : Exception on GSM : None
[2019-05-11 20:49:03][DEBUG] : write: AT+CREG?
Code : Tout sélectionner
[2019-05-13 12:47:08][DEBUG] : Client connected to [127.0.0.1:55928]
[2019-05-13 12:47:08][DEBUG] : Message read from socket: {"apikey":"ma_cle_api","number":"06xxxxxxxx","message":"essais"}
[2019-05-13 12:47:08][DEBUG] : Client disconnected from [127.0.0.1:55928]
Code : Tout sélectionner
[2019-05-23 12:56:50][DEBUG] : write: 0021820AA16034461872000005E5F93C9C06
[2019-05-23 12:56:51][DEBUG] : response: ['+CMGS: 130', 'OK']
[2019-05-23 12:57:21][DEBUG] : write: AT+CREG?
[2019-05-23 12:57:22][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-05-23 12:57:23][DEBUG] : write: AT+CSQ
[2019-05-23 12:57:23][DEBUG] : response: ['+CSQ: 10,99', 'OK']
[2019-05-23 12:57:23][DEBUG] : write: AT+CMGL=0
[2019-05-23 12:57:28][ERROR] : Exception on GSM : None
[2019-05-23 12:57:58][DEBUG] : write: AT+CREG?
[2019-05-23 12:57:58][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-05-23 12:57:59][DEBUG] : write: AT+CSQ
[2019-05-23 12:57:59][DEBUG] : response: ['+CSQ: 10,99', 'OK']
[2019-05-23 12:57:59][DEBUG] : write: AT+CMGL=0
[2019-05-23 12:58:04][ERROR] : Exception on GSM : None
[2019-05-23 12:58:34][DEBUG] : write: AT+CREG?
[2019-05-23 12:58:34][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-05-23 12:58:35][DEBUG] : write: AT+CSQ
[2019-05-23 12:58:35][DEBUG] : response: ['+CSQ: 11,99', 'OK']
[2019-05-23 12:58:35][DEBUG] : write: AT+CMGL=0
[2019-05-23 12:58:40][ERROR] : Exception on GSM : None
[2019-05-23 12:59:10][DEBUG] : write: AT+CREG?
[2019-05-23 12:59:10][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-05-23 12:59:11][DEBUG] : write: AT+CSQ
[2019-05-23 12:59:11][DEBUG] : response: ['+CSQ: 10,99', 'OK']
[2019-05-23 12:59:11][DEBUG] : write: AT+CMGL=0
[2019-05-23 12:59:16][ERROR] : Exception on GSM : None
[2019-05-23 12:59:46][DEBUG] : write: AT+CREG?
[2019-05-23 12:59:46][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2019-05-23 12:59:47][DEBUG] : write: AT+CSQ
[2019-05-23 12:59:47][DEBUG] : response: ['+CSQ: 11,99', 'OK']
[2019-05-23 12:59:47][DEBUG] : write: AT+CMGL=0
[2019-05-23 12:59:52][ERROR] : Exception on GSM : None