libzwaveip
libzwaveip copied to clipboard
parser & multi cmd
The parser used in the reference client and listener does not parse correctly multi commands. The reason is that it should subtract from command length the bytes for command class and command. The information is in the xml file as sizechange="-2" attribute, which is ignored by the parser.
Can you give a sample bytestream?
Hopefully this helps:
./reference_listener -l 192.168.123.236
PSK not configured - using default
Listening on 192.168.123.236 port 41230
8F01030380033306310501420A640284
07
cmd_class: COMMAND_CLASS_MULTI_CMD v1
cmd: MULTI_CMD_ENCAP
Number of Commands >
03
Command Length >
003
Command Class >
80
Command >
03
Data >
Command Length >
051
Command Class >
06
Command >
31
Data >
Command Length >
005
Command Class >
01
Command >
42
Data >
: More data in bytestream than needed?
bytestream: 8f 01 03 03 80 03 33 06 31 05 01 42 0a 64 02 84 07
It comes from a thermostat.