in reply to Calculating CRC8 using Digest::CRC
According to the best information I have, I should be getting 234 (or EA hex) for the string 7AEE840000187A011B80C001001100119103F3267D000000000000FF00000000. Instead I am getting 236 (or EC hex).
Converting 7AEE840000187A011B80C001001100119103F3267D000000000000FF00000000 to hex in the online calculator here gives: 37414545383430303030313837413031314238304330303130303131303031313931303346333236374430303030303030303030303046463030303030303030.
Calculating the CRC-8 for this hex string in the online calculator here gives 0xec, as per your results with Digest::CRC.
So, why do you expect a result of 0xea?
HTH,
Athanasius <°(((>< contra mundum
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calculating CRC8 using Digest::CRC
by jedikaiti (Hermit) on Jun 07, 2012 at 03:47 UTC | |
by AnomalousMonk (Archbishop) on Jun 07, 2012 at 18:35 UTC | |
by jedikaiti (Hermit) on Jun 07, 2012 at 20:49 UTC |