Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[RESOLU] Démon se coupe / Timeout

Retrouvez ici des sujets concernant le protocole RFXcom et les modules domotiques compatibles RFXcom (Chacon, DI-O, Oregon, Blyss, etc...) utilisés avec JEEDOM
Jej
Timide
Messages : 4
Inscription : 04 mai 2018, 22:45

[RESOLU] Démon se coupe / Timeout

Message par Jej » 07 déc. 2018, 19:31

Bonjour,

Je viens d'acquérir le RFXtrx433XL. Mon but étant de le coupler à mon poêle MCZ (et bien plus par la suite).

Mais je bloque assez tôt et j'ai besoin de votre aide.
Tout semble fonctionner correctement avec le RFXManager, j'ai même pu démarrer mon poêle avec.

Du coup, je le branche sur mon RPI3, j'achète le module, je configure pour prendre le bon port USB, je laisse le reste par défaut.
pb_rfx_1.PNG
pb_rfx_1.PNG (14.29 Kio) Consulté 774 fois

Ensuite le démon se lance, et se coupe quelques secondes plus tard.
J'ai testé en changeant les protocoles ou la vitesse de communication (baud) mais sans succès.

Code : Tout sélectionner

[2018-12-07 19:16:52][INFO] : Lancement démon rfxcomd : /usr/bin/python /var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py --device /dev/ttyUSB1 --loglevel debug --socketport 55000 --serialrate 38400 --protocol 21 --callback http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php --apikey Mll6pdKISewpYKOFHOZI7WR2yOHYXk0c --cycle 0.3 --pid /tmp/jeedom/rfxcom/deamon.pid
[2018-12-07 18:16:54][INFO] : Start rfxcomd
[2018-12-07 18:16:54][INFO] : Log level : debug
[2018-12-07 18:16:54][INFO] : Socket port : 55000
[2018-12-07 18:16:54][INFO] : Socket host : 127.0.0.1
[2018-12-07 18:16:54][INFO] : PID file : /tmp/jeedom/rfxcom/deamon.pid
[2018-12-07 18:16:54][INFO] : Device : /dev/ttyUSB1
[2018-12-07 18:16:54][INFO] : Apikey : XXXXXX
[2018-12-07 18:16:54][INFO] : Callback : http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php
[2018-12-07 18:16:54][INFO] : Cycle : 0.3
[2018-12-07 18:16:54][INFO] : Serial rate : 38400
[2018-12-07 18:16:54][INFO] : Serial timeout : 9
[2018-12-07 18:16:54][INFO] : Protocol : 21
[2018-12-07 18:16:54][DEBUG] : Writing PID 7432 to /tmp/jeedom/rfxcom/deamon.pid
[2018-12-07 18:16:54][DEBUG] : Init request module v2.19.1
[2018-12-07 18:16:54][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2018-12-07 18:16:54][DEBUG] : http://127.0.0.1:80 "GET /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=XXXXXX HTTP/1.1" 200 0
[2018-12-07 18:16:54][DEBUG] : Init serial module v3.4
[2018-12-07 18:16:54][DEBUG] : Start listening...
[2018-12-07 18:16:54][DEBUG] : Socket interface started
[2018-12-07 18:16:54][DEBUG] : LoopNetServer Thread started
[2018-12-07 18:16:54][DEBUG] : Open serial port on device: /dev/ttyUSB1, rate 38400, timeout : 9
[2018-12-07 18:16:54][DEBUG] : Listening on: [127.0.0.1:55000]
[2018-12-07 18:16:54][DEBUG] : Open Serialport
[2018-12-07 18:16:54][DEBUG] : flushOutput serial port
[2018-12-07 18:16:54][DEBUG] : flushInput serial port
[2018-12-07 18:16:54][DEBUG] : flushOutput serial port
[2018-12-07 18:16:54][DEBUG] : flushInput serial port
[2018-12-07 18:16:54][DEBUG] : Read Socket Thread Launched
[2018-12-07 18:16:54][DEBUG] : Read Device Thread Launched
[2018-12-07 18:16:55][DEBUG] : Send rfxcomd_reset
[2018-12-07 18:16:55][DEBUG] : Write data to serial port : 0D 00 00 00 00 00 00 00 00 00 00 00 00 00
[2018-12-07 18:16:55][DEBUG] : Sleep 1 sec
[2018-12-07 18:16:56][DEBUG] : flushInput serial port
[2018-12-07 18:16:56][DEBUG] : Send get status test
[2018-12-07 18:16:56][DEBUG] : Write data to serial port : 0D 00 00 01 02 00 00 00 00 00 00 00 00 00
[2018-12-07 18:16:56][DEBUG] : Message: 14 01 00 01 02 5F 22 00 00 00 40 03 00 1C 10 58 00 00 00 00 00
[2018-12-07 18:16:56][DEBUG] : Decode : 14 01 00 01 02 5F 22 00 00 00 40 03 00 1C 10 58 00 00 00 00 00
[2018-12-07 18:16:56][DEBUG] : Test message: 14 01 00 01 02 5F 22 00 00 00 40 03 00 1C 10 58 00 00 00 00 00
[2018-12-07 18:16:56][DEBUG] : PacketType: 01
[2018-12-07 18:16:56][DEBUG] : SubType: 00
[2018-12-07 18:16:56][DEBUG] : SeqNbr: 01
[2018-12-07 18:16:56][DEBUG] : Id1: 02
[2018-12-07 18:16:56][DEBUG] : Id2: 5F
[2018-12-07 18:16:56][DEBUG] : Subtype			= Interface response
[2018-12-07 18:16:56][DEBUG] : Sequence nbr		= 01
[2018-12-07 18:16:56][DEBUG] : Response on cmnd	= Get Status, return firmware versions and configuration of the interface.
[2018-12-07 18:16:56][ERROR] : Error: unrecognizable packet (14 01 00 01 02 5F 22 00 00 00 40 03 00 1C 10 58 00 00 00 00 00) : '5F'
[2018-12-07 19:16:56][INFO] : Démon RFXcom lancé
[2018-12-07 18:17:21][ERROR] : Timeout waiting status
[2018-12-07 18:17:21][DEBUG] : Shutdown
[2018-12-07 18:17:21][DEBUG] : Removing PID file /tmp/jeedom/rfxcom/deamon.pid
[2018-12-07 18:17:22][DEBUG] : LoopNetServer Thread stopped
[2018-12-07 18:17:22][DEBUG] : Close serial port
[2018-12-07 18:17:22][DEBUG] : Serial port closed
[2018-12-07 18:17:22][DEBUG] : Exit 0

On voit clairement une erreur :
[2018-12-07 18:16:56][ERROR] : Error: unrecognizable packet (14 01 00 01 02 5F 22 00 00 00 40 03 00 1C 10 58 00 00 00 00 00) : '5F'

Je ne comprends pas pourquoi le paquet n'est pas reconnu. Je vois un timeout sur le statut, mais sous RFXMngr je n'ai pas de problème de statut :
pb_rfx_2.PNG
pb_rfx_2.PNG (19.81 Kio) Consulté 774 fois

Merci pour votre aide.
Dernière édition par Jej le 08 déc. 2018, 00:03, édité 1 fois.

Jej
Timide
Messages : 4
Inscription : 04 mai 2018, 22:45

Re: Démon se coupe / Timeout

Message par Jej » 07 déc. 2018, 23:49

Si certains rencontrent le même problème :
Le firmware 1034 est plus récent que le plugin. J'ai donc pris le 1027 (le plus ancien sur le RFXtrx433XL) et ça semble fonctionner.
Je teste le MCZ.

Olistormrage
Timide
Messages : 33
Inscription : 08 avr. 2019, 06:25

Re: Démon se coupe / Timeout

Message par Olistormrage » 03 mai 2019, 18:44

Jej a écrit :
07 déc. 2018, 23:49
Si certains rencontrent le même problème :
Le firmware 1034 est plus récent que le plugin. J'ai donc pris le 1027 (le plus ancien sur le RFXtrx433XL) et ça semble fonctionner.
Je teste le MCZ.

merci.
je suis dans ce cas.
je vais tester !!!

fmetz
Timide
Messages : 69
Inscription : 26 oct. 2015, 12:31

Re: [RESOLU] Démon se coupe / Timeout

Message par fmetz » 07 juil. 2019, 19:53

Bonjour,

Je viens d'installer un RFXtrx433XL et j'ai exactement le même problème, le démon se lance et puis se coupe au bout de qqs secondes sur "Timeout waiting status"
J'avais le firmware 1035 et puis le 1039 (le dernier) et cela ne marchait pas.
Je suis passé au firmware 1027 comme dit plus haut mais cela ne marche toujours pas.
Est-ce que pour vous cela a marché ? Avez-vous fait autre chose ?

Voici mon log, si quelqu'un voit un truc anormal je suis preneur.

Merci.

Code : Tout sélectionner

[2019-07-07 19:45:06][INFO] : Lancement démon rfxcomd : /usr/bin/python /var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py --device /dev/ttyAMA0 --loglevel debug --socketport 55000 --serialrate 38400 --protocol 18,21,22 --callback http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php --apikey mSRJlDaGlCuTclfZchmdFCk86atcbjly --cycle 0.3 --pid /tmp/jeedom/rfxcom/deamon.pid
[2019-07-07 17:45:08][INFO] : Start rfxcomd
[2019-07-07 17:45:08][INFO] : Log level : debug
[2019-07-07 17:45:08][INFO] : Socket port : 55000
[2019-07-07 17:45:08][INFO] : Socket host : 127.0.0.1
[2019-07-07 17:45:08][INFO] : PID file : /tmp/jeedom/rfxcom/deamon.pid
[2019-07-07 17:45:08][INFO] : Device : /dev/ttyAMA0
[2019-07-07 17:45:08][INFO] : Apikey : ******************
[2019-07-07 17:45:08][INFO] : Callback : http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php
[2019-07-07 17:45:08][INFO] : Cycle : 0.3
[2019-07-07 17:45:08][INFO] : Serial rate : 38400
[2019-07-07 17:45:08][INFO] : Serial timeout : 9
[2019-07-07 17:45:08][INFO] : Protocol : 18,21,22
[2019-07-07 17:45:08][DEBUG] : Writing PID 22041 to /tmp/jeedom/rfxcom/deamon.pid
[2019-07-07 17:45:08][DEBUG] : Init request module v2.12.4
[2019-07-07 17:45:08][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-07-07 17:45:08][DEBUG] : http://127.0.0.1:80 "GET /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=******************** HTTP/1.1" 200 0
[2019-07-07 17:45:08][DEBUG] : Init serial module v3.2.1
[2019-07-07 17:45:08][DEBUG] : Start listening...
[2019-07-07 17:45:08][DEBUG] : Socket interface started
[2019-07-07 17:45:08][DEBUG] : LoopNetServer Thread started
[2019-07-07 17:45:08][DEBUG] : Open serial port on device: /dev/ttyAMA0, rate 38400, timeout : 9
[2019-07-07 17:45:08][DEBUG] : Listening on: [127.0.0.1:55000]
[2019-07-07 17:45:08][DEBUG] : Open Serialport
[2019-07-07 17:45:08][DEBUG] : flushOutput serial port
[2019-07-07 17:45:08][DEBUG] : flushInput serial port
[2019-07-07 17:45:08][DEBUG] : flushOutput serial port
[2019-07-07 17:45:08][DEBUG] : flushInput serial port
[2019-07-07 17:45:08][DEBUG] : Read Socket Thread Launched
[2019-07-07 17:45:08][DEBUG] : Read Device Thread Launched
[2019-07-07 17:45:09][DEBUG] : Send rfxcomd_reset
[2019-07-07 17:45:09][DEBUG] : Write data to serial port : 0D 00 00 00 00 00 00 00 00 00 00 00 00 00
[2019-07-07 17:45:09][DEBUG] : Sleep 1 sec
[2019-07-07 17:45:10][DEBUG] : flushInput serial port
[2019-07-07 17:45:10][DEBUG] : Send get status test
[2019-07-07 17:45:10][DEBUG] : Write data to serial port : 0D 00 00 01 02 00 00 00 00 00 00 00 00 00
[2019-07-07 19:45:10][INFO] : Démon RFXcom lancé
[2019-07-07 17:45:35][ERROR] : Timeout waiting status
[2019-07-07 17:45:35][DEBUG] : Shutdown
[2019-07-07 17:45:35][DEBUG] : Removing PID file /tmp/jeedom/rfxcom/deamon.pid
[2019-07-07 17:45:36][DEBUG] : LoopNetServer Thread stopped
[2019-07-07 17:45:36][DEBUG] : Close serial port
[2019-07-07 17:45:36][DEBUG] : Serial port closed
[2019-07-07 17:45:36][DEBUG] : Exit 0

Répondre

Revenir vers « [Plugin Officiel] RFXcom »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 18 invités