On 5/2/2013 2:23 PM, Ivan Shmakov wrote:
> BTW, is there any good 1-wire "master" interface library (as
> used, e. g., to communicate with the DS18B20 temperature
> sensors), which happens to be free software?
>
> I'm aware of the Peter Dannegger& Martin Thomas work [1], yet
I'm glad Vlad responded. That reminded me to respond to the OP...
There are any number of 1-wire libraries around. Just do a little
searching and I'm sure you will find one. It is not really a 15 minute
exercise but it is not so difficult to write one. The specs are not
totally clear on how to implement in software. At one time they just
plain didn't give the full range of timing info needed to properly spec
the interface, but I think that has been fully rectified by now. You
just need to set a small set of timing values to control the reading and
writing of the bus. The other part is enumeration of the devices out
there. Again, you need to read the protocol and make sure you
understand how it works. All this will help even if you are just using
someone else's library.
--
Rick