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
Hi all,
I am trying to simulate a DS2450 and don't find the reason for the wrong
checksume calculation of the write command 0x55
A good data translation will show the following result:
2450 OW_w_mem Adr.: 8 data : 0
CRC16seeded 55 8 0 0 6f f1 CRC b001 == 0xB001 o.k.
CRC16seeded 8c 3e 5c CRC