Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

free software 1-wire (DS18x20) library (AVR, ARM)?

874 views
Skip to first unread message

Ivan Shmakov

unread,
May 2, 2013, 2:23:48 PM5/2/13
to
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
neither in the code nor on the Web page can I find any
permission whatsoever to reuse the code (or even to run it!)

I've also seen a number of such libraries for the Arduino
platform (including [2, 3]), which happen to rely on C++ and the
usual set of libraries, thus making me think that they may
end up being a bit too heavyweight to use "in production."

TIA.

[1] http://www.siwawi.arubi.uni-kl.de/avr_projects/tempsensor/
[2] http://milesburton.com/Main_Page?title=Dallas_Temperature_Control_Library
[3] http://www.elsewhere.org/onewire/

--
FSF associate member #7257

Vladimir Vassilevsky

unread,
May 2, 2013, 2:45:11 PM5/2/13
to
On 5/2/2013 1: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?

http://www.youtube.com/watch?feature=player_embedded&v=5W_wd9Qf0IE

You are idiot.
It takes about 15 minutes to DIY.



rickman

unread,
May 3, 2013, 4:53:42 PM5/3/13
to
There is clearly something wrong with someone who feels the need to
demean others for the slightest infraction of their "rules".

Will you get a life and stop being such a rude, condescending toad? You
actually have something to contribute, but you pollute the very waters
of these groups with your raw lack of respect for others.

--

Rick

Vladimir Vassilevsky

unread,
May 3, 2013, 7:08:03 PM5/3/13
to
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
Rickman - prickman

rickman

unread,
May 3, 2013, 7:26:17 PM5/3/13
to
Yes, you always cease to amaze me. You should hang out with the s.e.d
crowd. I think you would fit right in. But then again, you don't seem
the type to stand up for yourself. In s.e.d you would probably be eaten
alive.

--

Rick

rickman

unread,
May 3, 2013, 7:30:41 PM5/3/13
to
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
> neither in the code nor on the Web page can I find any
> permission whatsoever to reuse the code (or even to run it!)
>
> I've also seen a number of such libraries for the Arduino
> platform (including [2, 3]), which happen to rely on C++ and the
> usual set of libraries, thus making me think that they may
> end up being a bit too heavyweight to use "in production."
>
> TIA.
>
> [1] http://www.siwawi.arubi.uni-kl.de/avr_projects/tempsensor/
> [2] http://milesburton.com/Main_Page?title=Dallas_Temperature_Control_Library
> [3] http://www.elsewhere.org/onewire/
>

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

Vladimir Vassilevsky

unread,
May 3, 2013, 7:36:05 PM5/3/13
to
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
Rickman,

Have you already built your long promised WWWB clock?
No ?
Is it to tough for you, lamer?
Go and do it, pathetic windbag.



rickman

unread,
May 3, 2013, 7:49:08 PM5/3/13
to
Yes, you are perfect for s.e.d.

--

Rick

Anton Erasmus

unread,
May 8, 2013, 2:52:23 PM5/8/13
to
On Thu, 02 May 2013 18:23:48 +0000, Ivan Shmakov <onei...@gmail.com>
wrote:
If you use the CodevisionAVR compiler, you get a 1-wire library .
You pay for the compiler, but you get quite a lot of library code for
free.

Anton Erasmus

wainwri...@gmail.com

unread,
Jun 1, 2014, 8:18:13 PM6/1/14
to
Hi Ivan,

I tracked down Peter Dannegger on avrfreaks and he said "All my code on the forum can be used for free."

Martin Thomas was happy for his modifications to be used under a BSD licence.

So it should be possible to get permission to use the code if you need it.

Regards,
Alex
0 new messages