EmbeddedRelated.com
Forums

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

Started by Ivan Shmakov May 2, 2013
	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
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.
On 5/2/2013 2:45 PM, Vladimir Vassilevsky wrote:
> 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.
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
On 5/3/2013 3:53 PM, rickman wrote:
> On 5/2/2013 2:45 PM, Vladimir Vassilevsky wrote: >> 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. > > > 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. >
Rickman - prickman
On 5/3/2013 7:08 PM, Vladimir Vassilevsky wrote:
> On 5/3/2013 3:53 PM, rickman wrote: >> On 5/2/2013 2:45 PM, Vladimir Vassilevsky wrote: >>> 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. >> >> >> 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. >> > > Rickman - prickman
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
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
On 5/3/2013 6:26 PM, rickman wrote:
> On 5/3/2013 7:08 PM, Vladimir Vassilevsky wrote: >> On 5/3/2013 3:53 PM, rickman wrote: >>> On 5/2/2013 2:45 PM, Vladimir Vassilevsky wrote: >>>> 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. >>> >>> >>> 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. >>> >> >> Rickman - prickman > > 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. >
Rickman, Have you already built your long promised WWWB clock? No ? Is it to tough for you, lamer? Go and do it, pathetic windbag.
On 5/3/2013 7:36 PM, Vladimir Vassilevsky wrote:
> On 5/3/2013 6:26 PM, rickman wrote: >> On 5/3/2013 7:08 PM, Vladimir Vassilevsky wrote: >>> On 5/3/2013 3:53 PM, rickman wrote: >>>> On 5/2/2013 2:45 PM, Vladimir Vassilevsky wrote: >>>>> 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. >>>> >>>> >>>> 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. >>>> >>> >>> Rickman - prickman >> >> 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. >> > > Rickman, > > Have you already built your long promised WWWB clock? > No ? > Is it to tough for you, lamer? > Go and do it, pathetic windbag.
Yes, you are perfect for s.e.d. -- Rick
On Thu, 02 May 2013 18:23:48 +0000, Ivan Shmakov <oneingray@gmail.com>
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/
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
On Friday, 3 May 2013 04:23:48 UTC+10, 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/ > > > > -- > > FSF associate member #7257
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