ssjoholm / rfxcmd_gc

RFXCMD v0.3 (GoogleCode release)
19 stars 12 forks source link

Beginner troubles: "Wrong message received" #4

Open hcsaustrup opened 7 years ago

hcsaustrup commented 7 years ago

Hi!

I just received my new RFXCOM device, and I'm taking baby steps to get it working. As I understand it, I need to enable protocols in the device, before I can send/receive data on them. I figure this I need rfxproto.py for this. I try to list the currently enabled protocols, but get this error:

[root@wolverine rfxcmd_gc]# ./rfxproto.py  -d /dev/ttyUSB0  -l -D -v
2017-02-04 13:15:17,192 - MainThread - rfxproto:573 - DEBUG - Logger started
2017-02-04 13:15:17,192 - MainThread - rfxproto:574 - DEBUG - Version: 0.1 (566)
2017-02-04 13:15:17,192 - MainThread - rfxproto:575 - DEBUG - Date: Date: 2013-11-22 21:43:41 +0100 (Fri, 22 Nov 2013) 
2017-02-04 13:15:17,192 - MainThread - rfxproto:583 - DEBUG - Serial device: /dev/ttyUSB0
2017-02-04 13:15:17,192 - MainThread - rfxproto:609 - DEBUG - Get current state
2017-02-04 13:15:17,192 - MainThread - rfxproto:439 - DEBUG - Serial extension version: 3.1.1
2017-02-04 13:15:17,192 - MainThread - rfxproto:447 - DEBUG - Device: /dev/ttyUSB0
2017-02-04 13:15:17,192 - MainThread - rfxproto:454 - DEBUG - Open Serialport
2017-02-04 13:15:17,192 - MainThread - rfxproto:464 - DEBUG - Serialport flush output
2017-02-04 13:15:17,193 - MainThread - rfxproto:466 - DEBUG - Serialport flush input
2017-02-04 13:15:17,193 - MainThread - rfxproto:470 - DEBUG - Send RFX reset
2017-02-04 13:15:18,194 - MainThread - rfxproto:475 - DEBUG - Serialport flush output
2017-02-04 13:15:18,194 - MainThread - rfxproto:477 - DEBUG - Serialport flush input
2017-02-04 13:15:18,194 - MainThread - rfxproto:480 - DEBUG - Send message
2017-02-04 13:15:19,195 - MainThread - rfxproto:487 - DEBUG - Wait for the reply
2017-02-04 13:15:19,206 - MainThread - rfxproto:495 - DEBUG - Timestamp: 2017-02-04 13:15:19
2017-02-04 13:15:19,206 - MainThread - rfxproto:496 - DEBUG - SerWaiting: 21
2017-02-04 13:15:19,206 - MainThread - rfxproto:498 - DEBUG - Byte: 14
2017-02-04 13:15:19,206 - MainThread - rfxproto:511 - DEBUG - Wrong message received
2017-02-04 13:15:19,206 - MainThread - rfxproto:513 - DEBUG - Message: 14 01 00 00 02 53 0B 00 00 27 00 01 03 1C 03 00 00 00 00 00 00
Error: Wrong or no response received
hcsaustrup commented 7 years ago

This may be useful as well - note that running rfxcmd.py -f without -v doesn't return anything at all:

[root@wolverine rfxcmd_gc]# ./rfxcmd.py  -f  -v
RFXCMD Version 0.3 (739)
------------------------------------------------
Send            = 0D 00 00 00 02 00 00 00 00 00 00 00 00 00
Date/Time       = 2017-02-04 13:17:49
Packet Length       = 0D
Packettype      = Interface Control
------------------------------------------------
Received        = 14 01 00 00 02 53 0B 00 00 27 00 01 03 1C 03 00 00 00 00 00 00
Date/Time       = 2017-02-04 13:17:50
Packet Length       = 14
Packettype      = Interface Message