Set up this integration with my WHR930 basic, which has a RS232 port in RJ-45 form. Connected to my RPI, but the code doesn’t interpret the received byte arrays correctly.
I limited the code to just getting a ‘get_temp’ to debug, but it shows me a lot of empty bytes. So I also added a piece of code to strip the byte array of its ‘00’ values in order to get some readable data. Still the code fails to recognize the received bytes.
I thought I would post it here in order to see if anyone understands what is going on here:
12-09-2022 11:28:35 DEBUG: Executing function <function get_temp at 0xffffa5a314c0>
12-09-2022 11:28:37 DEBUG: hex data is: ['00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', 'f1', '32', '10', '1f', 'ff', '5b', 'ed', '5f', '53', '51', '51', '51', 'e1', '4b', '4b', '4b', '5f', 'f1', 'e1', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00']
12-09-2022 11:28:37 DEBUG: actual data = ['f1', '32', '10', '1f', 'ff', '5b', 'ed', '5f', '53', '51', '51', '51', 'e1', '4b', '4b', '4b', '5f', 'f1', 'e1']
12-09-2022 11:28:37 WARNING: Checksum doesn't match (222 vs 0). Message ignored
12-09-2022 11:28:37 DEBUG: serial_data is empty
12-09-2022 11:28:37 WARNING: get_temp function could not get serial data
12-09-2022 11:28:42 DEBUG: Executing function <function get_temp at 0xffffa5a314c0>
12-09-2022 11:28:44 DEBUG: hex data is: ['00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '7c', '06', 'e2', '1f', 'ff', '5b', 'ed', '5f', '98', '45', '45', '45', '41', 'de', 'a9', 'a9', '29', '5f', 'f1', 'e1', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00']
12-09-2022 11:28:44 DEBUG: actual data = ['7c', '06', 'e2', '1f', 'ff', '5b', 'ed', '5f', '98', '45', '45', '45', '41', 'de', 'a9', 'a9', '29', '5f', 'f1', 'e1']
12-09-2022 11:28:44 WARNING: Checksum doesn't match (8 vs 0). Message ignored
12-09-2022 11:28:44 DEBUG: serial_data is empty
12-09-2022 11:28:44 WARNING: get_temp function could not get serial data