Closed patstave closed 1 year ago
I've contacted head of development in Flexit Sweden. Fingers crossed, but i don't have huge hopes :)
I asked ChatGPT to chip in 😆
To decode a serial buffer where you do not know the RS485 registers, you can follow these steps:
Determine the baud rate, data bits, stop bits, and parity of the serial communication. You can use a logic analyzer or an oscilloscope to measure the timing of the communication.
Identify the format of the data in the buffer, such as ASCII or binary. This can be done by analyzing a sample of the data and looking for patterns or using a library to attempt to recognize the format.
Use a hex editor to inspect the contents of the buffer and try to understand the structure of the data. This may involve looking for header and footer patterns, or specific sequences of bytes that could represent commands or responses.
If the data format is ASCII, you can use a text editor to view the contents of the buffer and manually attempt to decode the data. If the data format is binary, you may need to write a custom program to decode the data, or use a library or tool that can read binary data formats.
Document your findings and repeat the process with additional data to verify your understanding of the data format and contents.
It is important to have a deep understanding of the communication protocol used by the device sending the data to be able to effectively decode the data. In some cases, you may need to reverse-engineer the protocol by analyzing the data and experimenting with different inputs to the device.
Flexit is not willing to provide docs
Can Flexit provide protocol documentation, if we ask very nicely... ?