Je viens de recevoir la petite clef USB SIM800C, j’ai introduit ma carte SIM, je lance le demon SMS, il semble fonctionner, les logs me montre une erreur 321 mais il a l’ai d’ignorer le probleme, je teste un SMS vers mon GSM, ca fonctionne, après quelques temps le demon SMS est rouge, il ne fonctionne plus, je relance, ca a l’air de fonctionner à nouveau, après quelques minutes, il redevient rouge sans aucune erreur dans les logs ??
Je remarque à la fin du log, un cycle de 30 secondes ou il repete des commandes AT et après 3 fois le demon est rouge.
Vous avez une idée ?
[2023-04-19 09:47:08][INFO] : Lancement démon sms : /usr/bin/python3 /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB0 --loglevel debug --socketport 55002 --serialrate 9600 --pin 9963 --textmode no --smsc +32475161616 --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey xxxx --pid /tmp/jeedom/sms/deamon.pid
[2023-04-19 09:47:08][INFO] : Start smsd
[2023-04-19 09:47:08][INFO] : Log level : debug
[2023-04-19 09:47:08][INFO] : Socket port : 55002
[2023-04-19 09:47:08][INFO] : Socket host : 127.0.0.1
[2023-04-19 09:47:08][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2023-04-19 09:47:08][INFO] : Device : /dev/ttyUSB0
[2023-04-19 09:47:08][INFO] : Apikey : xxxx
[2023-04-19 09:47:08][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2023-04-19 09:47:08][INFO] : Cycle : 30.0
[2023-04-19 09:47:08][INFO] : Serial rate : 9600
[2023-04-19 09:47:08][INFO] : Pin : 0000
[2023-04-19 09:47:08][INFO] : Text mode : no
[2023-04-19 09:47:08][INFO] : SMSC : +32475161616
[2023-04-19 09:47:08][DEBUG] : Writing PID 14271 to /tmp/jeedom/sms/deamon.pid
[2023-04-19 09:47:08][DEBUG] : Init request module v2.28.2
[2023-04-19 09:47:08][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-04-19 09:47:08][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=xxxx HTTP/1.1" 200 0
[2023-04-19 09:47:08][DEBUG] : Socket interface started
[2023-04-19 09:47:08][DEBUG] : LoopNetServer Thread started
[2023-04-19 09:47:08][DEBUG] : Start listening...
[2023-04-19 09:47:08][DEBUG] : Listening on: [127.0.0.1:55002]
[2023-04-19 09:47:08][DEBUG] : Connecting to GSM Modem...
[2023-04-19 09:47:08][DEBUG] : Text mode false
[2023-04-19 09:47:08][DEBUG] : Enter pin code : 0000
[2023-04-19 09:47:08][INFO] : Connecting to modem on port /dev/ttyUSB0 at 9600bps
[2023-04-19 09:47:08][DEBUG] : write: ATZ
[2023-04-19 09:47:08][DEBUG] : response: ['OK']
[2023-04-19 09:47:08][DEBUG] : write: ATE0
[2023-04-19 09:47:08][DEBUG] : response: ['ATE0', 'OK']
[2023-04-19 09:47:08][DEBUG] : write: AT+CFUN?
[2023-04-19 09:47:09][DEBUG] : response: ['+CFUN: 1', 'OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CMEE=1
[2023-04-19 09:47:09][DEBUG] : response: ['OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CPIN?
[2023-04-19 09:47:09][DEBUG] : response: ['+CPIN: READY', 'OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CLAC
[2023-04-19 09:47:09][DEBUG] : response: ['+CME ERROR: 100']
[2023-04-19 09:47:09][DEBUG] : write: AT
[2023-04-19 09:47:09][DEBUG] : response: ['OK']
[2023-04-19 09:47:09][DEBUG] : write: AT^CVOICE=?
[2023-04-19 09:47:09][DEBUG] : response: ['+CME ERROR: 100']
[2023-04-19 09:47:09][DEBUG] : write: AT+VTS=?
[2023-04-19 09:47:09][DEBUG] : response: ['+VTS: (0-9,*,#,A,B,C,D),(1-255)', 'OK']
[2023-04-19 09:47:09][DEBUG] : write: AT^DTMF=?
[2023-04-19 09:47:09][DEBUG] : response: ['+CME ERROR: 100']
[2023-04-19 09:47:09][DEBUG] : write: AT^USSDMODE=?
[2023-04-19 09:47:09][DEBUG] : response: ['+CME ERROR: 100']
[2023-04-19 09:47:09][DEBUG] : write: AT+WIND=?
[2023-04-19 09:47:09][DEBUG] : response: ['+CME ERROR: 100']
[2023-04-19 09:47:09][DEBUG] : write: AT+ZPAS=?
[2023-04-19 09:47:09][DEBUG] : response: ['+CME ERROR: 100']
[2023-04-19 09:47:09][DEBUG] : write: AT+CSCS=?
[2023-04-19 09:47:09][DEBUG] : response: ['+CSCS: ("IRA","GSM","UCS2","HEX","PCCP","PCDN","8859-1")', 'OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CNUM=?
[2023-04-19 09:47:09][DEBUG] : response: ['OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CGMI
[2023-04-19 09:47:09][DEBUG] : response: ['SIMCOM_Ltd', 'OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+DDET=1
[2023-04-19 09:47:09][DEBUG] : response: ['OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CGMI
[2023-04-19 09:47:09][DEBUG] : response: ['SIMCOM_Ltd', 'OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+ZPAS?
[2023-04-19 09:47:09][DEBUG] : response: ['+CME ERROR: 100']
[2023-04-19 09:47:09][INFO] : Unknown/generic modem type - will use polling for call state updates
[2023-04-19 09:47:09][DEBUG] : write: AT+COPS=3,0
[2023-04-19 09:47:09][DEBUG] : response: ['OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CMGF=0
[2023-04-19 09:47:09][DEBUG] : response: ['OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CSCA?
[2023-04-19 09:47:09][DEBUG] : response: ['+CSCA: "+32475161616",145', 'OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CSMP=49,167,0,0
[2023-04-19 09:47:09][DEBUG] : response: ['OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CSCA?
[2023-04-19 09:47:09][DEBUG] : response: ['+CSCA: "+32475161616",145', 'OK']
[2023-04-19 09:47:09][DEBUG] : write: AT+CPMS=?
[2023-04-19 09:47:10][DEBUG] : response: ['+CPMS: ("SM","ME","SM_P","ME_P","MT"),("SM","ME","SM_P","ME_P","MT"),("SM","ME","SM_P","ME_P","MT")', 'OK']
[2023-04-19 09:47:10][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2023-04-19 09:47:10][DEBUG] : response: ['+CPMS: 0,50,0,50,0,50', 'OK']
[2023-04-19 09:47:10][DEBUG] : write: AT+CNMI=2,1,0,2
[2023-04-19 09:47:10][DEBUG] : response: ['+CMS ERROR: 325']
[2023-04-19 09:47:10][DEBUG] : write: AT+CNMI=2,1,0,1,0
[2023-04-19 09:47:10][DEBUG] : response: ['OK']
[2023-04-19 09:47:10][DEBUG] : write: AT+CLIP=1
[2023-04-19 09:47:10][DEBUG] : response: ['OK']
[2023-04-19 09:47:10][DEBUG] : write: AT+CRC=1
[2023-04-19 09:47:10][DEBUG] : response: ['OK']
[2023-04-19 09:47:10][DEBUG] : write: AT+CVHU=0
[2023-04-19 09:47:10][DEBUG] : response: ['OK']
[2023-04-19 09:47:10][DEBUG] : Configure smsc : +32475161616
[2023-04-19 09:47:10][DEBUG] : write: AT+CSCA="+32475161616"
[2023-04-19 09:47:10][DEBUG] : response: ['OK']
[2023-04-19 09:47:10][DEBUG] : Waiting for network...
[2023-04-19 09:47:10][DEBUG] : write: AT+CREG?
[2023-04-19 09:47:10][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2023-04-19 09:47:11][DEBUG] : write: AT+CSQ
[2023-04-19 09:47:11][DEBUG] : response: ['+CSQ: 17,0', 'OK']
[2023-04-19 09:47:11][DEBUG] : Ok
[2023-04-19 09:47:11][DEBUG] : write: AT+COPS?
[2023-04-19 09:47:11][DEBUG] : response: ['+COPS: 0,0,"PROXIMUS"', 'OK']
[2023-04-19 09:47:11][DEBUG] : Send to jeedom : {'number': 'network_name', 'message': 'PROXIMUS'}
[2023-04-19 09:47:11][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2023-04-19 09:47:11][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-04-19 09:47:11][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=xxxx HTTP/1.1" 200 0
[2023-04-19 09:47:11][DEBUG] : response: ['+CPMS: 0,50,0,50,0,50', 'OK']
[2023-04-19 09:47:11][DEBUG] : write: AT+CMGD=1,4
[2023-04-19 09:47:11][DEBUG] : response: ['+CMS ERROR: 321']
[2023-04-19 09:47:11][ERROR] : Exception: CMS 321
[2023-04-19 09:47:11][DEBUG] : write: AT+CPMS="SM","SM","SM"
[2023-04-19 09:47:11][DEBUG] : response: ['+CPMS: 0,30,0,30,0,30', 'OK']
[2023-04-19 09:47:11][DEBUG] : write: AT+CMGD=1,4
[2023-04-19 09:47:11][DEBUG] : response: ['OK']
[2023-04-19 09:47:41][DEBUG] : write: AT+CREG?
[2023-04-19 09:47:41][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2023-04-19 09:47:42][DEBUG] : write: AT+CSQ
[2023-04-19 09:47:42][DEBUG] : response: ['+CSQ: 17,0', 'OK']
[2023-04-19 09:47:42][DEBUG] : write: AT+CMGL=0
[2023-04-19 09:47:42][DEBUG] : response: ['OK']
[2023-04-19 09:47:42][DEBUG] : write: AT+CSQ
[2023-04-19 09:47:42][DEBUG] : response: ['+CSQ: 17,0', 'OK']
[2023-04-19 09:47:42][DEBUG] : write: AT+CSQ
[2023-04-19 09:47:42][DEBUG] : response: ['+CSQ: 17,0', 'OK']
[2023-04-19 09:47:42][DEBUG] : write: AT+CSQ
[2023-04-19 09:47:42][DEBUG] : response: ['+CSQ: 17,0', 'OK']
[2023-04-19 09:47:42][DEBUG] : Send to jeedom : {'number': 'signal_strength', 'message': '17'}
[2023-04-19 09:47:42][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-04-19 09:47:43][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=xxxx HTTP/1.1" 200 0
[2023-04-19 09:48:13][DEBUG] : write: AT+CREG?
[2023-04-19 09:48:13][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2023-04-19 09:48:14][DEBUG] : write: AT+CSQ
[2023-04-19 09:48:14][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:48:14][DEBUG] : write: AT+CMGL=0
[2023-04-19 09:48:14][DEBUG] : response: ['OK']
[2023-04-19 09:48:14][DEBUG] : write: AT+CSQ
[2023-04-19 09:48:14][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:48:14][DEBUG] : write: AT+CSQ
[2023-04-19 09:48:14][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:48:14][DEBUG] : write: AT+CSQ
[2023-04-19 09:48:14][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:48:14][DEBUG] : Send to jeedom : {'number': 'signal_strength', 'message': '16'}
[2023-04-19 09:48:14][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-04-19 09:48:14][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=xxxx HTTP/1.1" 200 0
[2023-04-19 09:48:44][DEBUG] : write: AT+CREG?
[2023-04-19 09:48:44][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2023-04-19 09:48:45][DEBUG] : write: AT+CSQ
[2023-04-19 09:48:45][DEBUG] : response: ['+CSQ: 15,0', 'OK']
[2023-04-19 09:48:45][DEBUG] : write: AT+CMGL=0
[2023-04-19 09:48:45][DEBUG] : response: ['OK']
[2023-04-19 09:48:45][DEBUG] : write: AT+CSQ
[2023-04-19 09:48:45][DEBUG] : response: ['+CSQ: 15,0', 'OK']
[2023-04-19 09:48:45][DEBUG] : write: AT+CSQ
[2023-04-19 09:48:45][DEBUG] : response: ['+CSQ: 15,0', 'OK']
[2023-04-19 09:48:45][DEBUG] : write: AT+CSQ
[2023-04-19 09:48:45][DEBUG] : response: ['+CSQ: 15,0', 'OK']
[2023-04-19 09:48:45][DEBUG] : Send to jeedom : {'number': 'signal_strength', 'message': '15'}
[2023-04-19 09:48:45][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-04-19 09:48:45][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=xxxx HTTP/1.1" 200 0
[2023-04-19 09:49:15][DEBUG] : write: AT+CREG?
[2023-04-19 09:49:15][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2023-04-19 09:49:16][DEBUG] : write: AT+CSQ
[2023-04-19 09:49:16][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:49:16][DEBUG] : write: AT+CMGL=0
[2023-04-19 09:49:16][DEBUG] : response: ['OK']
[2023-04-19 09:49:16][DEBUG] : write: AT+CSQ
[2023-04-19 09:49:16][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:49:16][DEBUG] : write: AT+CSQ
[2023-04-19 09:49:16][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:49:16][DEBUG] : write: AT+CSQ
[2023-04-19 09:49:16][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:49:16][DEBUG] : Send to jeedom : {'number': 'signal_strength', 'message': '16'}
[2023-04-19 09:49:16][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-04-19 09:49:16][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=xxxx HTTP/1.1" 200 0
[2023-04-19 09:49:46][DEBUG] : write: AT+CREG?
[2023-04-19 09:49:46][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2023-04-19 09:49:47][DEBUG] : write: AT+CSQ
[2023-04-19 09:49:47][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:49:47][DEBUG] : write: AT+CMGL=0
[2023-04-19 09:49:47][DEBUG] : response: ['OK']
[2023-04-19 09:49:47][DEBUG] : write: AT+CSQ
[2023-04-19 09:49:47][DEBUG] : response: ['+CSQ: 16,0', 'OK']
[2023-04-19 09:50:17][DEBUG] : write: AT+CREG?
[2023-04-19 09:50:18][DEBUG] : response: ['+CREG: 0,1', 'OK']
[2023-04-19 09:50:19][DEBUG] : write: AT+CSQ
[2023-04-19 09:50:19][DEBUG] : response: ['+CSQ: 16,4', 'OK']
[2023-04-19 09:50:19][DEBUG] : write: AT+CMGL=0
[2023-04-19 09:50:19][DEBUG] : response: ['OK']
[2023-04-19 09:50:19][DEBUG] : write: AT+CSQ
[2023-04-19 09:50:19][DEBUG] : response: ['+CSQ: 16,4', 'OK']