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 */
++CRC16_errors; /* statistics */
}
..
Best regards
Ritchie
> 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 regards
>
> Jan
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers