libzwaveip icon indicating copy to clipboard operation
libzwaveip copied to clipboard

parser & multi cmd

Open aromanro opened this issue 8 years ago • 2 comments

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.

aromanro avatar Feb 03 '17 12:02 aromanro

Can you give a sample bytestream?

miline avatar Feb 28 '17 20:02 miline

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.

aromanro avatar Mar 01 '17 10:03 aromanro