I'm trying to control an air conditioning unit. The app and the unit communicate using the Broadlink protocol. I can decode the settings it's sending and replay them.
The payload is 32 bytes but only the middle 15 ever change (prefixed with 19 00 bb 00 06 80 00 00 0f 00 01 01
and suffixed with zeros). I think the last two bytes are some kind of checksum, but I'm unsuccessful in recreating it.
Here's a sample (more):
9f e4 07 60 00 20 00 00 00 00 00 00 00 87 19
9f e4 07 60 00 20 00 00 20 00 00 00 00 67 19
9f e4 2d 60 00 20 00 00 20 00 00 00 00 41 19
97 e4 87 60 00 20 00 00 20 00 00 00 00 ef 18
97 e4 07 60 00 20 00 00 20 00 00 00 00 6f 19
9f e4 87 60 00 20 00 00 20 00 00 00 00 e7 18
a7 e4 07 60 00 20 00 00 20 00 00 00 00 5f 19
a7 e4 07 60 00 80 00 00 20 00 00 00 00 5e b9
a7 e4 07 40 00 20 00 00 20 00 00 00 00 5f 39
a7 e4 07 20 00 20 00 00 20 00 00 00 00 5f 59
a7 e4 07 20 40 20 00 00 20 00 00 00 00 1f 59
I think it's related to a sum because the same number of bits change in the sum, but I've calculated the difference and the XOR between the sum and the actual checksum and they aren't constant. Also tried reversing the bits with no luck.