We now want to connect your company's access control board to our software, and we are developing it now, and we encounter a communication disorder caused by the same 0x7F data and the communication terminator. After we called for inquiries, we learned that there is a transcoding, please provide us with details about how to transfer it to us for reference. Thank you!
Hello, I am glad to cooperate with your company, thank you for using our products
Regarding the communication 0x7F and 0x7F encountered during the secondary development of your company, we use it as a communication start and communication end symbol, if this content appears in your communication, we require translation to avoid us as the end symbol treat. When you encounter this when writing code, please refer to the following transcoding:
Transcoding
Since the command uses 0x7E as the start and end mark of the command, the 7E byte cannot appear in the command content and can only appear in the command header and the command tail.
Transcoding is as follows:
0x7F 01 = 0x7E
0x7F 02 = 0x7F
Where transcoding is used, check and calculate the content of the command before sending the command, and then check the data of 0x7E and 0x7F. If you find 0x7E or 0x7F, perform the above formula conversion, and then you should first follow the command after receiving the command The above formula performs data reverse translation and then checksum verification.