pyhys/minimalmodbus

Using CRC to correct error

MauroDiamantino opened this issue · 2 comments

Hi, taking into account that CRC is an error detection and correction code, are you using it to try to correct corrupted data? or is it being used just for detecting?

CRC is not error correction code.

In theory, it increases hamming distance, so it is possible to correct errors (see https://stackoverflow.com/questions/3788570/is-it-possible-to-do-rudimentary-error-correction-with-crc) but these algorithms are not widely used or they are computionally/memory expensive so they are inpractical.

Feel free to experiment with it and provide a PR.

pyhys commented

Closing due to inactivity.
Thanks @j123b567