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.
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 :
Merci pour votre aide.