mal auf Papier an. Das
soll ja auch schmal helfe.
Vielen Dank
Richard
Ursprüngliche Nachricht Von: Jan Kandziora
Datum:05.02.2017 21:12 (GMT+01:00) An:
"OWFS (One-wire file system) discussion and help"
Betreff: Re:
[Owfs-developers] DS2450 CRC16 Checksum calcu
Am 05.02.2017 um 18:12 schrieb Ritchie:
> Can you explain, how it work, that the result of the Checksume is
> always 0xB001, if it is good.
>
Was genau ist dein Problem damit? Ich kann dir das Testen deines
DS2450-Klons nicht abnehmen, meist sind es Kleinigkeiten, die einem
einen CRC versauen. Der
Can you explain, how it work, that the result of the Checksume is
always 0xB001, if it is good.
CRC16seeded
...
if (sd == 0xB001) {
ret = 0;/* good */
} else {
ret = -1; /* error */
Am 04.02.2017 um 20:42 schrieb Ritchie:
>
> Is this correct, that the checksum is started with the value of "address" ?
>
Please see module/owlib/src/c/ow_2450.c:392 -- OW_w_mem()
423: if ( CRC16seeded(buf, 3, offset + i) || (echo[0] != p[i]) ) {
So, it's indeed seeded with 8+1 == 9.
Kind re