Bonjour,
Depuis 1 semaine je n’arrive plus a démarrer le Démon SMS :
Erreur +CME ERROR: 14
Clé brancher directement sur le NUC avec Debian 10 et Jeedom 4.3.15
Clé : HUAWEI E220
Test avec plusieurs SIM : Idem
[2023-01-21 18:05:51][INFO] : Lancement démon sms : /usr/bin/python3 /var/www/html/plugins/sms/resources/smsd/smsd.py --device auto --loglevel debug --socketport 55002 --serialrate 115200 --pin 0000 --textmode no --smsc None --cycle 30 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --pid /tmp/jeedom/sms/deamon.pid
[2023-01-21 18:05:51][INFO] : Start smsd
[2023-01-21 18:05:51][INFO] : Log level : debug
[2023-01-21 18:05:51][INFO] : Socket port : 55002
[2023-01-21 18:05:51][INFO] : Socket host : 127.0.0.1
[2023-01-21 18:05:51][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2023-01-21 18:05:51][INFO] : Device : auto
[2023-01-21 18:05:51][INFO] : Apikey : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[2023-01-21 18:05:51][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2023-01-21 18:05:51][INFO] : Cycle : 30.0
[2023-01-21 18:05:51][INFO] : Serial rate : 115200
[2023-01-21 18:05:51][INFO] : Pin : 0000
[2023-01-21 18:05:51][INFO] : Text mode : no
[2023-01-21 18:05:51][INFO] : SMSC : None
[2023-01-21 18:05:51][INFO] : Find device : /dev/ttyUSB1
[2023-01-21 18:05:51][DEBUG] : Writing PID 32272 to /tmp/jeedom/sms/deamon.pid
[2023-01-21 18:05:51][DEBUG] : Init request module v2.28.2
[2023-01-21 18:05:51][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-01-21 18:05:51][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1" 200 0
[2023-01-21 18:05:51][DEBUG] : Socket interface started
[2023-01-21 18:05:51][DEBUG] : LoopNetServer Thread started
[2023-01-21 18:05:51][DEBUG] : Listening on: [127.0.0.1:55002]
[2023-01-21 18:05:51][DEBUG] : Start listening...
[2023-01-21 18:05:51][DEBUG] : Connecting to GSM Modem...
[2023-01-21 18:05:51][DEBUG] : Text mode false
[2023-01-21 18:05:51][DEBUG] : Enter pin code : 0000
[2023-01-21 18:05:51][INFO] : Connecting to modem on port /dev/ttyUSB1 at 115200bps
[2023-01-21 18:05:51][DEBUG] : write: ATZ
[2023-01-21 18:05:51][DEBUG] : response: ['OK']
[2023-01-21 18:05:51][DEBUG] : write: ATE0
[2023-01-21 18:05:51][DEBUG] : response: ['ATE0
', 'OK']
[2023-01-21 18:05:51][DEBUG] : write: AT+CFUN?
[2023-01-21 18:05:51][DEBUG] : response: ['+CFUN: 1', 'OK']
[2023-01-21 18:05:51][DEBUG] : write: AT+CMEE=1
[2023-01-21 18:05:51][DEBUG] : response: ['OK']
[2023-01-21 18:05:51][DEBUG] : write: AT+CPIN?
[2023-01-21 18:05:51][DEBUG] : response: ['+CPIN: SIM PIN', 'OK']
[2023-01-21 18:05:51][DEBUG] : write: AT+CPIN="0000"
[2023-01-21 18:05:51][DEBUG] : response: ['OK']
[2023-01-21 18:05:51][DEBUG] : write: AT+CLAC
[2023-01-21 18:05:52][DEBUG] : response: ['&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', '+FCLASS', '+ICF', '+IFC', '+IPR', '+GMI', '+GMM', '+GMR', '+GCAP', '+GSN', '+DR', '+DS', '+WS46', '+CCLK', '+CBST', '+CRLP', '+CV120', '+CHSN', '+CSSN', '+CREG', '+CGREG', '+CFUN', '+GCAP', '+CSCS', '+CSTA', '+CR', '+CEER', '+CRC', '+CMEE', '+CGDCONT', '+CGDSCONT', '+CGTFT', '+CGEQREQ', '+CGEQMIN', '+CGQREQ', '+CGQMIN', '+CGEREP', '+CGPADDR', '+CGDATA', '+CGCLASS', '+CGSMS', '+CSMS', '+CMGF', '+CSAS', '+CRES', '+CSCA', '+CSMP', '+CSDH', '+CSCB', '+FDD', '+FAR', '+FCL', '+FIT', '+ES', '+ESA', '+CMOD', '+CVHU', '+CSQ', '+CBC', '+CPAS', '+CPIN', '+CMEC', '+CKPD', '+CGATT', '+CGACT', '+CGCMOD', '+CPBS', '+CPBR', '+CPBF', '+CPBW', '+CPMS', '+CNMI', '+CMGL', '+CMGR', '+CMGS', '+CMSS', '+CMGW', '+CMGD', '+CMGC', '+CNMA', '+CMMS', '+FTS', '+FRS', '+FTH', '+FRH', '+FTM', '+FRM', '+CHUP', '+CCFC', '+CCUG', '+COPS', '+CLCK', '+CPWD', '+CUSD', '+CAOC', '+CACM', '+CAMM', '+CPUC', '+CCWA', '+CHLD', '+CIMI', '+CGMI', '+CGMM', '+CGMR', '+CGSN', '+CNUM', '+CSIM', '+CRSM', '+CCLK', '+CLVL', '+CMUT', '+CLCC', '+COPN', '+CPOL', '+CPLS', '+CTZR', '+CTZU', '+CLAC', '+CLIP', '+COLP', '+CDIP', '+CTFR', '+CLIR', '$QCCNMI', '$QCCLR', '$QCDMG', '$QCDMR', '$QCDNSP', '$QCDNSS', '$QCTER', '$QCSLOT', '$QCPINSTAT', '$QCPDPP', '$QCPDPLT', '$QCPWRDN', '$QCDGEN', '$BREW', '$QCSYSMODE', 'OK']
[2023-01-21 18:05:52][DEBUG] : write: AT+CGMI
[2023-01-21 18:05:52][DEBUG] : response: ['huawei', 'OK']
[2023-01-21 18:05:52][DEBUG] : write: AT+CGMI
[2023-01-21 18:05:52][DEBUG] : response: ['huawei', 'OK']
[2023-01-21 18:05:52][INFO] : Loading Huawei call state update table
[2023-01-21 18:05:52][DEBUG] : write: AT+COPS=3,0
[2023-01-21 18:05:52][DEBUG] : response: ['OK']
[2023-01-21 18:05:52][DEBUG] : write: AT+CMGF=0
[2023-01-21 18:05:52][DEBUG] : response: ['OK']
[2023-01-21 18:05:52][DEBUG] : write: AT+CSCA?
[2023-01-21 18:05:52][DEBUG] : response: ['+CME ERROR: 14']
[2023-01-21 18:05:52][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.200000s
[2023-01-21 18:05:52][DEBUG] : write: AT+CSCA?
[2023-01-21 18:05:52][DEBUG] : response: ['+CME ERROR: 14']
[2023-01-21 18:05:52][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.400000s
[2023-01-21 18:05:52][DEBUG] : write: AT+CSCA?
[2023-01-21 18:05:52][DEBUG] : response: ['+CME ERROR: 14']
[2023-01-21 18:05:53][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.600000s
[2023-01-21 18:05:53][DEBUG] : write: AT+CSCA?
[2023-01-21 18:05:53][DEBUG] : response: ['+CME ERROR: 14']
[2023-01-21 18:05:54][DEBUG] : Device/SIM busy error detected; self._writeWait adjusted to 0.800000s
[2023-01-21 18:05:55][DEBUG] : write: AT+CSCA?
[2023-01-21 18:05:55][DEBUG] : response: ['+CSCA: "+33689004000",145', 'OK']
[2023-01-21 18:05:56][DEBUG] : self_writeWait set to 0.1 because of recovering from device busy (515) error
[2023-01-21 18:05:56][DEBUG] : self_writeWait set to 0.1 because of recovering from device busy (515) error
[2023-01-21 18:05:56][DEBUG] : self_writeWait set to 0.1 because of recovering from device busy (515) error
[2023-01-21 18:05:56][DEBUG] : self_writeWait set to 0.1 because of recovering from device busy (515) error
[2023-01-21 18:05:56][DEBUG] : write: AT+CSMP=49,167,0,0
[2023-01-21 18:05:56][DEBUG] : response: ['OK']
[2023-01-21 18:05:56][DEBUG] : write: AT+CSCA?
[2023-01-21 18:05:56][DEBUG] : response: ['+CSCA: "+33689004000",145', 'OK']
[2023-01-21 18:05:56][DEBUG] : write: AT+CPMS=?
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/var/www/html/plugins/sms/resources/smsd/gsmmodem/serial_comms.py", line 103, in _readLoop
line = rxBuffer[:-readTermLen].decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xaa in position 73: invalid start byte
[2023-01-21 18:06:06][ERROR] : Exception: None
[2023-01-21 18:06:06][DEBUG] : Send to jeedom : {'number': 'none', 'message': 'None'}
[2023-01-21 18:06:06][ERROR] : Exit 1 because this exeption is fatal
[2023-01-21 18:06:06][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-01-21 18:06:06][DEBUG] : Shutdown
[2023-01-21 18:06:06][DEBUG] : Removing PID file /tmp/jeedom/sms/deamon.pid
[2023-01-21 18:06:06][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1" 200 0
[2023-01-21 18:06:06][DEBUG] : LoopNetServer Thread stopped
[2023-01-21 18:06:06][DEBUG] : Exit 0