Hi to all,

I still did not the a correct communication with my DS2423, when a press 
a button "Change" on 1D.A20000000001/pages for write on page change down 
to the chip.

I just think, that the protocol is more less

Byte    Data            Description
----------------------------------------------------
1       0x0F            <Write SCRATCH PAD Command>
2       0x00            <Start offset of Write address>
3       0x1F            <End Offset of the Writing>
4       <First Data>
...
...
36      <Last Data>     <---- End of transmission

37      <CRC LOW>       <----- I Do not know if this is correct
38      <CRC HIGH>

Chip always hang after command 0X0F.
READ_SCRATCH_PAD never executed. (Bus stops working)

But I could see in the Source code that in case of the transmitted
by is small equal (Page width) 32 Byte, a checksum is used ?

if (((offset + size) & 0x1F)) { // doesn't end on page boundary, no crc16
                RETURN_BAD_IF_BAD(BUS_transaction(tcopy, pn)) ;
        } else {                                        // DOES end on page 
boundary, can check CRC16
                RETURN_BAD_IF_BAD(BUS_transaction(tcopy_crc, pn)) ;
        }

Even in the transmission structure, I see a
        BYTE p[1 + 2 + 32 + 2] = { _1W_WRITE_SCRATCHPAD, 
LOW_HIGH_ADDRESS(offset), };

Which I guess includes a checksum for transmission after the 32 bytes.


Thanks for any help.

Ritchie




> Am 29.10.2015 um 20:36 schrieb Ritchie:
>> Hi to all,
>>
>> in which Module of the OWFS Server do I have to take a closer look
>> in matter of the Read/Write/Copy Scratch Pad function.
>>
> Are you still working on you DS2423 clone? Then at
>
> module/owlib/src/c/ow_2423.c
>
> See the ow_w_mem function at line 180ff.
>
> Kind regards
>
>       Jan
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>


------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to