25.05.2017, 13:18
Hello Admin,
I found this somewhere before, but I can't get it to work. The calculated CRC value is always something else than expected.
Here are few sample telegrams (last two bytes are the CRC):
02 08 05 [17 C3] - read address
02 00 02 [51 C1] - response
02 05 00 00 [11 9D] - read cumulative energy
02 03 00 D6 35 FF FF FF FF 00 00 BC 10 02 00 52 DE [78 B8] - response
This calculator gives a correct CRC for every check:
https://www.lammertbies.nl/comm/info/crc...ation.html
for the CRC-16 (Modbus) type.
I found this somewhere before, but I can't get it to work. The calculated CRC value is always something else than expected.
Here are few sample telegrams (last two bytes are the CRC):
02 08 05 [17 C3] - read address
02 00 02 [51 C1] - response
02 05 00 00 [11 9D] - read cumulative energy
02 03 00 D6 35 FF FF FF FF 00 00 BC 10 02 00 52 DE [78 B8] - response
This calculator gives a correct CRC for every check:
https://www.lammertbies.nl/comm/info/crc...ation.html
for the CRC-16 (Modbus) type.