Re: [Owfs-developers] DS2450 CRC16 Checksum calculation

2017-02-04 Thread Jan Kandziora
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

[Owfs-developers] DS2450 CRC16 Checksum calculation

2017-02-04 Thread Ritchie
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