Hello @Mips et bonjour à tous
J’ai mis le sujet en résolu parce que j’ai eu la réponse, mais en fait, j’ai changé ma carte SIM, même opérateur(Free) même numéro (juste un problème de format).
Et là, impossible de lancer le demon.
Avant de changer la SIM, après activation, je l’ai juste mise dans un téléphone, j’ai changé le code pin (remis l’ancien), testé un sms depuis le téléphone.
Ensuite j’ai retiré la clé Huawei de mon NUC Jeedom, changé la SIm dedans, remis dans le port USB
Impossible de lancerle demon.
Des messages OK, des messages pas OK, je n’y comprends pas grand chose. Je dirais un gros merci à un petit coup de main (car du coup l’ancienne sim a dû se désactiver)
Merci d’avance
[2021-05-19 16:31:42][INFO] : Lancement démon sms : /usr/bin/python /var/www/html/plugins/sms/resources/smsd/smsd.py --device /dev/ttyUSB1 --loglevel debug --socketport 55002 --serialrate 115200 --pin 2164 --textmode no --smsc None --cycle 6 --callback http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php --apikey u98yY5NVM32WutnJWyQDprRkJaBhv4NE --pid /tmp/jeedom/sms/deamon.pid
[2021-05-19 16:31:43][INFO] : Start smsd
[2021-05-19 16:31:43][INFO] : Log level : debug
[2021-05-19 16:31:43][INFO] : Socket port : 55002
[2021-05-19 16:31:43][INFO] : Socket host : 127.0.0.1
[2021-05-19 16:31:43][INFO] : PID file : /tmp/jeedom/sms/deamon.pid
[2021-05-19 16:31:43][INFO] : Device : /dev/ttyUSB1
[2021-05-19 16:31:43][INFO] : Apikey : u98XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[2021-05-19 16:31:43][INFO] : Callback : http://127.0.0.1:80/plugins/sms/core/php/jeeSMS.php
[2021-05-19 16:31:43][INFO] : Cycle : 6.0
[2021-05-19 16:31:43][INFO] : Serial rate : 115200
[2021-05-19 16:31:43][INFO] : Pin : XXXX
[2021-05-19 16:31:43][INFO] : Text mode : no
[2021-05-19 16:31:43][INFO] : SMSC : None
[2021-05-19 16:31:43][DEBUG] : Writing PID 29665 to /tmp/jeedom/sms/deamon.pid
[2021-05-19 16:31:43][DEBUG] : Init request module v2.21.0
[2021-05-19 16:31:43][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-05-19 16:31:43][DEBUG] : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=u98XXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1" 200 0
[2021-05-19 16:31:43][DEBUG] : Socket interface started
[2021-05-19 16:31:43][DEBUG] : LoopNetServer Thread started
[2021-05-19 16:31:43][DEBUG] : Start listening...
[2021-05-19 16:31:43][DEBUG] : Listening on: [127.0.0.1:55002]
[2021-05-19 16:31:43][DEBUG] : Connecting to GSM Modem...
[2021-05-19 16:31:43][DEBUG] : Text mode false
[2021-05-19 16:31:43][DEBUG] : Enter pin code : XXXX
[2021-05-19 16:31:43][INFO] : Connecting to modem on port /dev/ttyUSB1 at 115200bps
[2021-05-19 16:31:43][DEBUG] : write: ATZ
[2021-05-19 16:31:43][DEBUG] : response: ['OK']
[2021-05-19 16:31:43][DEBUG] : write: ATE0
[2021-05-19 16:31:43][DEBUG] : response: ['OK']
[2021-05-19 16:31:43][DEBUG] : write: AT+CFUN?
[2021-05-19 16:31:43][DEBUG] : response: ['+CFUN: 1', 'OK']
[2021-05-19 16:31:43][DEBUG] : write: AT+CMEE=1
[2021-05-19 16:31:43][DEBUG] : response: ['OK']
[2021-05-19 16:31:43][DEBUG] : write: AT+CPIN?
[2021-05-19 16:31:43][DEBUG] : response: ['+CPIN: READY', 'OK']
[2021-05-19 16:31:43][DEBUG] : write: AT+CLAC
[2021-05-19 16:31:43][DEBUG] : response: ['H', 'A', 'D', 'S0', 'S3', 'S4', 'S5', 'S6', 'S7', 'E', 'V', 'I', 'T', 'P', 'X', 'Z', 'Q', '&C', '&D', '&F', '+CPBS', '+CPBR', '+CPBW', '+CNUM', '+CPBF', '+CCHO', '+CCHC', '+CGLA', '+CPIN', '+CRSM', '+CSCS', '+CMEE', '+CSDH', '+CNMI', '+CMMS', '+CMGF', '+CGSMS', '+CSCA', '+CSMS', '+CSMP', '+CPMS', '+CMGD', '+CSCB', '+CLVL', '+CHUP', '+CLCC', '+CPAS', '+CBST', '+CMOD', '+CSTA', '+VTS', '+CRC', '+CLIP', '+CLIR', '+COLP', '+CCUG', '+CSSN', '+CHLD', '+CUUS1', '+CCWA', '+CCFC', '+CUSD', '+GMR', '+GMI', '+CPWD', '+CLCK', '+CGATT', '+COPS', '+CGCLASS', '+CGMI', '+CGMM', '+GMM', '+CGMR', '+CGSN', '+GSN', '+CIMI', '+CSQ', '+CBC', '+CLAC', '+GCAP', '+CPLS', '+CPOL', '+CREG', '+CGREG', '+CEREG', '+CGDCONT', '+CGDSCONT', '+CGTFT', '+CGACT', '+CGCMOD', '+CGPADDR', '+CGEQNEG', '+CGANS', '^CGANS', '^APENDPPP', '+CGDATA', '+CGEQREQ', '+CGEQMIN', '+CGAUTO', '+CTZR', '+CGCONTRDP', '+CGSCONTRDP', '+CGTFTRDP', '+CGEQOS', '+CGEQOSRDP', '+CPOS', '+CPOSR', '+CMUT', '+COPN', '^AT2OM', '^CPBR', '^CPBW', '^SCPBW', '^SCPBR', '^STSF', '^CSTR', '^CSIN', '^CSEN', '^CSMN', '^CSTC', '^STGI', '^STGR', '^IMSICHG', '^ICCID', '^CPIN', '^PNN', '^CPNN', '^OPL', '^CARDLOCK', '^CARDATR', '^CMSR', '^CMGI', '^CMMT', '^APTHROUGHPUT', '^APDIALMODE', '^APPDMVER', '^OPWORD', '^CPWORD', '^SPWORD', '^RSRPCFG', '^RSCPCFG', '^ECIOCFG', '^PDPROFMOD', '^SCID', '+CSQLVL', '^CSQLVLEXT', '^DISSD', '^SDREBOOT', '^DOCK', '^APCRADWIFIBS', '^APNDISCON', '^APCRADETHSTA', '^APFMCDHCPSTA', '^APDIALM', '^APWIFIBS', '^APWIFISEC', '^APDHCP', '^APCURPROF', '^APPROFRD', '^APBATLVL', '^OPENPORT', '^APPDIALMODE', '^LCSTARTTIME', '^DLOADVER', '^DLOADINFO', '^AUTHORITYVER', '^AUTHORITYID', '^NVBACKUP', '^NVRESTORE', '^GODLOAD', '^RESET', '^NVRSTSTTS', '^SUPINFO', '^CHKUPINFO', '^FLASHINFO', '^WIFIGLOBALMAC', '^SDLOAD', '^AUTHVER', '^CDUR', '^PFVER', '^IPV6CAP', '^DHCPV6', '^APRAINFO', '^APLANADDR', '^APRPTSRVURL', '^APXMLINFOTYPE', '^APXMLRPTFLAG', '^RSTRIGGER', '^VMSET', '^DTMF', '^ALS', '^APPWRONREG', '^ANQUERY', '^APHPLMN', '^VERTIME', '^WFREQLOCK', '^CSNR', '^HSPA', '^COMM', '^CRPN', '^GETPORTMODE', '^PORTSEL', '^DIALMODE', '^CARDMODE', '^SPN', '^CCC', '^MEANRPT', '^CELLINFO', '^CGAS', '^CWAS', '^CMLCK', '^GCFIND', '^CGCATT', '^CPDW', '^HWVER', '^HVER', '^FHVER', '^SRVST', '^CERSSI', '^MODE', '^SIMST', '^HS', '^CFPLMN', '^CQST', '^CAATT', '^SYSINFO', '^SYSINFOEX', '+CEMODE', '^LTECS', '^SYSCFG', '^SYSCFGEX', '^NETSCAN', '^PCSCINFO', '^CELLSRCH', '^CPAM', '^AUTHDATA', '^DHCP', '^DSFLOWCLR', '^DSFLOWQRY', '^NDISDUP', '^NDISCONN', '^NDISADD', '^CGDNS', '^TRIG', '^DSFLOWRPT', '^TIME', '^U2DIAG', '^GLASTERR', '^DNSP', '^DNSS', '^USBSPEED', '^FASTDORM', '^ACPUMEMINFO', '^CCPUMEMINFO', '^CIPHERQRY', '^LOCINFO', '^QRYNVRESUME', '^NVBACKUPSTAT', '^NANDBBC', '^NANDVER', '^CHIPTEMP', '^CPIN2', '^DNSQUERY', '^CSASM', '^APRPTPORTSEL', '^CHDATA', '+USBSWITCH', '^GPIO', '^RSFR', '^RSFW', '^ANTSTATE', '^SARREDUCTION', '^APSIMST', '^NVM', '^XCPOSR', '^CGPSCLOCK', '^CGPSINFO', '^LOGCFG', '^LOGSAVE', '^CPSERR', '^CISA', '^APDS', '^CLPR', '^CCSERR', '^WLTHRESHOLDCFG', '^ACINFO', '^CLTEROAMALLOW', '^SWVER', '^CBG', '^MMPLMNINFO', '^PLMN', '^XLEMA', '^BODYSARON', '^BODYSARWCDMA', '^BODYSARGSM', '^IMEIVERIFY', '^LOGPORT', '^NCELLMONITOR', '^USERSRVSTATE', '^SIMSLOT', '^SIMINSERT', '^MODEMLOOP', '^RELEASERRC', '^REFCLKFREQ', '^PULLOMLOG', '^REJINFO', '^PLMNSELEINFO', '^DIESN', '^CHIPSN', '^HANDLEDECT', '^HGMR', '^EOPLMN', '+ECID', '^ANTSWITCH', '^MODEMSTATUS', '^RATCOMBINEPRIO', '^MIPICLK', '^DPDTTEST', '^DPDT', '^DPDTQRY', '^JDETEX', '^CARDTYPE', '^FREQLOCK', '^CHLD', '^SETMODE', '^LTECAT', '^GTIMER', '^RSIM', '^PHYNUM', '^CSVER', '^QOS', '^SDOMAIN', '^DPACAT', '^HSSPT', '^PLATFORM', '^BSN', '^SFM', '^TMODE', '^FCHAN', '^FTXON', '^FDAC', '^FRXON', '^FPA', '^FLNA', '^FRSSI', '^MDATE', '^FACINFO', '^SD', '^GPIOPL', '^GETEXBANDINFO', '^GETEXBANDTESTINFO', '^INFORRS', '^INFORBU', '^DATALOCK', '^VERSION', '^SIMLOCK', '^MAXLCKTMS', '^CALLSRV', '^CSDFLT', '^SECUBOOTFEATURE', '^SECUBOOT', '^TMMI', '^TCHRENABLE', '^TCHRINFO', '^TSCREEN', '^TBATVOLT', '^WUPWD', '^PRODTYPE', '^SFEATURE', '^PRODNAME', '^FWAVE', '^EQVER', '^WIENABLE', '^WIMODE', '^WIBAND', '^WIFREQ', '^WIDATARATE', '^WIPOW', '^WITX', '^WIRX', '^WIRPCKG', '^SSID', '^WIKEY', '^WILOG', '^WIINFO', '^WICAL', '^WICALDATA', '^WICALTEMP', '^WICALFREQ', '^WICALPOW', '^NAVTYPE', '^NAVENABLE', '^NAVFREQ', '^NAVRX', '^AUDIO', '^WIPARANGE', '^NVRD', '^NVWR', '^CURC', '^SN', '^TBAT', '^PSTANDBY', '^WIWEP', '^CMDLEN', '^TSELRF', '^HUK', '^FACAUTHPUBKEY', '^IDENTIFYSTART', '^IDENTIFYEND', '^SIMLOCKDATAWRITE', '^PHONESIMLOCKINFO', '^SIMLOCKDATAREAD', '^PHONEPHYNUM', '^PORTCTRLTMP', '^PORTATTRIBSET', '^SIMLOCKUNLOCK', '^TNETPORT', '^EXTCHARGE', '^WUSITE', '^WIPIN', '^WUUSER', '^PORTLOCK', '^TBATDATA', '^WIPLATFORM', '^ANTENNA', '^FPLLSTATUS', '^FPOWDET', '^SETHWLOCK', '^TESTHWLOCK', '^TEMPINFO', '^BANDSW', '^FCHANS', '^FSEGMENT', '^FPOWS', '^FPAS', '^FLNAS', '^FTXWAVE', '^FSTART', '^FRSSIS', '^FCMTMS', '^FBLK', '^FIPSTART', '^FMAXPOWER', '^FPAPOWER', '^FPDMS', '^FCALIIP2S', '^FCALIDCOCS', '^FCALIIP2SMRF', '^FCALIDCOCSMRF', '^FGAINSTATES', '^FDBBATTS', '^FBBATTS', '^FCALITXIQS', '^FVCTCXO', '^FCALPDDCS', '^FPDPOWS', '^FQPDDCRES', '^NVRDLEN', '^NVRDEX', '^NVWREX', '^SSYNC', '^STXBW', '^STXCHAN', '^SSUBFRAME', '^SPARA', '^SSEGNUM', '^STXMODUS', '^STXRBNUMS', '^STXRBPOSS', '^STXPOWS', '^STXCHANTYPES', '^SSEGLEN', '^SRXSET', '^SRXSUBFRA', '^SRXMEAS', '^SSTART', '^SSTOP', '^STCFGDPCH', '^FPOW', '^STRXMEAS', '^SCELLINFO', '^SCALIB', '^CMTM', '^LTCOMMCMD', '^LWCLASH', '^RADVER', '^ISMCOEX', '^LCACELL', '^NDISSTATQRY', '^DLCK', '^NWSCAN', '^NWTIME', '^LTERSRP', '^HCSQ', '^EONS', '^HFREQINFO', '^SMSREGST', '+CFUN', '+CCLK', '+CSIM', '^DATACLASS', '^SIMPOWER', 'OK']
[2021-05-19 16:31:43][DEBUG] : write: AT+CGMI
[2021-05-19 16:31:48][DEBUG] : write: AT+COPS=3,0
[2021-05-19 16:31:48][DEBUG] : response: ['
', 'ERROR']
[2021-05-19 16:31:48][DEBUG] : write: AT+CMGF=0
[2021-05-19 16:31:48][DEBUG] : response: ['OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CSCA?
[2021-05-19 16:31:48][DEBUG] : response: ['+CSCA: "002B00330033003600390035003000300030003600390035",145', 'OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CSMP=49,167,0,0
[2021-05-19 16:31:48][DEBUG] : response: ['OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CSCA?
[2021-05-19 16:31:48][DEBUG] : response: ['+CSCA: "002B00330033003600390035003000300030003600390035",145', 'OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CPMS=?
[2021-05-19 16:31:48][DEBUG] : response: ['+CPMS: ("SM","ME"),("SM","ME"),("SM","ME")', 'OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CPMS="ME","ME","ME"
[2021-05-19 16:31:48][DEBUG] : response: ['+CPMS: 0,20,0,20,0,20', 'OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CNMI=2,1,0,2
[2021-05-19 16:31:48][DEBUG] : response: ['OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CLIP=1
[2021-05-19 16:31:48][DEBUG] : response: ['OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CRC=1
[2021-05-19 16:31:48][DEBUG] : response: ['OK']
[2021-05-19 16:31:48][DEBUG] : write: AT+CVHU=0
[2021-05-19 16:31:48][DEBUG] : response: ['ERROR']
[2021-05-19 16:31:48][DEBUG] : Waiting for network...
[2021-05-19 16:31:48][DEBUG] : write: AT+CREG?
[2021-05-19 16:31:48][DEBUG] : response: ['+CREG: 2,1,"2406","0676A13E"', 'OK']
[2021-05-19 16:31:48][INFO] : +CREG check disabled due to invalid response or unsupported command
[2021-05-19 16:31:49][DEBUG] : write: AT+CSQ
[2021-05-19 16:31:54][ERROR] : Exception: None
[2021-05-19 16:31:54][ERROR] : Exit 1 because this exeption is fatal
[2021-05-19 16:31:54][DEBUG] : Shutdown
[2021-05-19 16:31:54][DEBUG] : Removing PID file /tmp/jeedom/sms/deamon.pid
[2021-05-19 16:31:54][DEBUG] : Send to jeedom : {'message': 'None', 'number': 'none'}
[2021-05-19 16:31:54][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-05-19 16:31:54][DEBUG] : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=u98yY5NVM32WutnJWyQDprRkJaBhv4NE HTTP/1.1" 200 0
[2021-05-19 16:31:54][DEBUG] : LoopNetServer Thread stopped
[2021-05-19 16:31:54][DEBUG] : Exit 0