genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
392 stars 155 forks source link

"Bad checksum message" followed by "Repeated message discarded." #198

Closed snagytx closed 8 years ago

snagytx commented 9 years ago

Not sure if this is because of the network or something else but I suspect the logic is not really expecting two messages to come at once

`2015-08-10T20:39:26.8115650-05:00 HomeGenie.System Console StdOut/StdErr redirect Console.Output SPO < 01 1D 00 13 06 16 98 81 AA AA AA AA AA AA AA AA BE D4 D7 72 80 95 A9 C1 1C BC 9A 44 05 20 11

2015-08-10T20:39:26.8403430-05:00 HomeGenie.System Console StdOut/StdErr redirect Console.Output SPI > 01 10 00 04 00 06 0A 98 80 72 3F 67 9C FA 38 16 7E E3 18

2015-08-10T20:39:26.8416870-05:00 HomeGenie.System Console StdOut/StdErr redirect Console.Output SPO < 15

2015-08-10T20:39:26.8422470-05:00 HomeGenie.System Console StdOut/StdErr redirect Console.Output Bad checksum message 01 10 00 04 00 06 0A 98 80 72 3F 67 9C FA 38 16 7E E3 18

2015-08-10T20:39:26.8920590-05:00 HomeGenie.System Console StdOut/StdErr redirect Console.Output SPI > 01 10 00 04 00 06 0A 98 80 72 3F 67 9C FA 38 16 7E E3

2015-08-10T20:39:26.8934180-05:00 HomeGenie.System Console StdOut/StdErr redirect Console.Output SPO < 06

2015-08-10T20:39:26.8939540-05:00 HomeGenie.System Console StdOut/StdErr redirect Console.Output Repeated message discarded.`

The first SPO might not make too much sense because it's encrypted by the Security CommandClass.

The first SPI seems to be TWO messages in one, the first one is everything except the last byte, 0x18, the second one is 0x18 (CAN) Since there are two messages in one message I would expect the 'Bad Checksum Message' to be returned but I can't explain why the "Repeated message discarded" get's generated when the device sends the message again.

Maybe you see something that I'm missing in the Controller code and have an explanation why the resend is marked as a repeated message

genemars commented 8 years ago

please have a try with the new ZWaveLib project: https://github.com/genielabs/zwave-lib-dotnet Any ZWaveLib related issue should be reported there from now on.

genemars commented 8 years ago

this is fixed now