[erlang-questions] checksum calculation
Wed Apr 8 01:19:11 CEST 2009
> Suppose you have an industrial machine which send messages following by the checksum calculated by the xor of all bytes, what can I do with your advices ;-)
I take it by this that this is a given and out of your control. In which
case your stuck, but should politely tell the manufacture they're a
bunch of idiots highlighting the drawbacks mentioned by Richard and try
to get the next revision fixed.
If your lucky enough to be able change the checksum take a look at
adler32/1 in the kernel/erlang section of the manual, or
crc32/1 in the same section.
example use of both,
I hope this solves your problem.
More information about the erlang-questions