Support more 1-wire hub & sensors

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
tparvais
Starting Member
Starting Member
Posts: 12
Joined: Mon Nov 10, 2008 5:59 pm
Location: Belgium

Support more 1-wire hub & sensors

Post by tparvais »

Hello

Do you plan to support more 1-wire sensors (from Hobby board i.e.) with master hub serial or USB interface ?

Thank you
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Support more 1-wire hub & sensors

Post by RDNZL »

Hi, maybe in the future, I don't have that hardware to test with, and cannot find any protocol specs the hobbyboard uses, do you have any techincal information about them?

Regards,
Ron.
tparvais
Starting Member
Starting Member
Posts: 12
Joined: Mon Nov 10, 2008 5:59 pm
Location: Belgium

Support more 1-wire hub & sensors

Post by tparvais »

Hi Ron

All the info regarding USB interface is here: http://owfs.org/index.php?page=usb-ds9490r
I don't think it's far different from Serial. You can mount 1-wire with owfs very easily under linux. And access all sensors like a filesystem or web (via wget)

regarding others sensors, this is not too complex neither. You'll find all info on owfs pages

Regarding test, I can do them, I've some different sensors available.


Thomas
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Support more 1-wire hub & sensors

Post by RDNZL »

Ok so you use 1-wire filesystem with your hub?
Maybe I can test/develop support for that with my old serial 1-wire dongle..
Which sensors do you have, so I can focus on those first.

Regards,
Ron
Stevexyz
Member
Member
Posts: 87
Joined: Fri Dec 14, 2007 1:45 am
Location: United Kingdom
Contact:

Support more 1-wire hub & sensors

Post by Stevexyz »

You can do this another way using the 1-wire drivers which come with the Linux kernel. There's one for the DS2490 USB 1-wire master, the 2433, 2760 and the thermometers and more.
If you want to read the a DS1820 you can do this:

$ cat /sys/bus/w1/devices/10-000800daf9fd/w1_slave
26 00 4b 46 ff ff 0e 10 bb t=18875

Or to read ADC C on a DS2450:
$ cat /sys/bus/w1/devices/20-0000000dcfb7/c_adc
25572

It's just reading from a device; I don't know if this makes it easier for DomotiGa.

Steve
tparvais
Starting Member
Starting Member
Posts: 12
Joined: Mon Nov 10, 2008 5:59 pm
Location: Belgium

Support more 1-wire hub & sensors

Post by tparvais »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
Ok so you use 1-wire filesystem with your hub?
Maybe I can test/develop support for that with my old serial 1-wire dongle..
Which sensors do you have, so I can focus on those first.
Regards,
Ron<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">All sensors sold by http://www.hobby-boards.com : barometer, temperature, humidity, lightning, rain....

You will find all info on this website.

Ready to support you in test & validation

Thomas
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Support more 1-wire hub & sensors

Post by RDNZL »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by tparvais</i>
<br /><blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
Ok so you use 1-wire filesystem with your hub?
Maybe I can test/develop support for that with my old serial 1-wire dongle..
Which sensors do you have, so I can focus on those first.
Regards,
Ron<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">All sensors sold by http://www.hobby-boards.com : barometer, temperature, humidity, lightning, rain....

You will find all info on this website.

Ready to support you in test & validation

Thomas
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

I'm sorry but you're not very helpful, I don't have time to search through websites in search of sensors I don't know and have to build support for. A little bit more detailed and to the point info would help me though.
tparvais
Starting Member
Starting Member
Posts: 12
Joined: Mon Nov 10, 2008 5:59 pm
Location: Belgium

Support more 1-wire hub & sensors

Post by tparvais »

Ok. Please let me exactly what youy want to know (and details level) in order to prepare this for you. (= I don't know what you already know about 1-wire)

Is this kind of info about Temperature reading not enough ? http://owfs.org/index.php?page=ds18b20

example (shell script) : tempread=`cat /home/thomas/owfs2/10.4F7494010800/temperature` to read the T of the sensor 10.4F7494010800 (10. stands always for temperature 26. for humidity ...)

with Owfs, you will find some simple doc to discover automatically all 1-wire available on your bus.

Please tell me what do you need. I'll help you.

If you're able to
Post Reply

Return to “DomotiGa Forum”