i am trying to decode an air conditioner IR remote. and i could use some help understand how these bits are set
i have 2 possible sets of data, depending on how the incoming data interpreted. the are bits are just inverted in each of the sets.
18c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00000100,10000000,00000000,00000000,00000000,00000000,11110101
19c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00001100,10000000,00000000,00000000,00000000,00000000,11111001
20c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00000010,10000000,00000000,00000000,00000000,00000000,11110001
21c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00001010,10000000,00000000,00000000,00000000,00000000,11111110
22c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00000110,10000000,00000000,00000000,00000000,00000000,11110110
23c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00001110,10000000,00000000,00000000,00000000,00000000,11111010
24c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00000001,10000000,00000000,00000000,00000000,00000000,11110010
25c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00001001,10000000,00000000,00000000,00000000,00000000,11111100
26c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00000101,10000000,00000000,00000000,00000000,00000000,11110100
27c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00001101,10000000,00000000,00000000,00000000,00000000,11111000
28c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00000011,10000000,00000000,00000000,00000000,00000000,11110000
29c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00001011,10000000,00000000,00000000,00000000,00000000,11111111
30c-00101000,11000110,00000000,00001000,00001000,00111111,00010000,00001100,00000111,10000000,00000000,00000000,00000000,00000000,11110111
now i noticed that only 2 bytes of data are getting changed with every increment in temperature.
the first byte of data, this is what i believe is manipulating the temperature.
00000100 at 18
00001100 at 19
00000010 at 20
00001010 at 21
00000110 at 22
00000110 at 23
00001110 at 24
00000001 at 25
00001001 at 26
00000101 at 27
00001101 at 28
00000011 at 29
00001011 at 30
00000111 at 20
the second byte of data that changes is
11110101
11111001
11110001
11111110
11110110
11111010
11110010
11111100
11110100
11111000
11110000
11111111
11110111
the first byte that changes is a representation of the temperate in some way. the range for the temperatures is 18 to 30.
the second byte that changes i believe is some kind of check sum of the entire message.
i am weak when it comes to binary operations.
could someone please help me understand how the value of temperate is being manipulated ?
and also how the final byte is related to the entire message.