Domotiga / 1wire Walkthrough ?

Forum about 1-Wire devices.
Post Reply
klona
Starting Member
Starting Member
Posts: 16
Joined: Fri Dec 10, 2010 9:17 am

Domotiga / 1wire Walkthrough ?

Post by klona »

Hi,
using Homeseer for a while trough XAP with xapmcs1Wire on a 3 channel Hub master from Hobby boards, plus DS1920 Temp sensors and 2405s with relays and a thermosthat script.
Not so stable, quite boring, but working already for 4 years dealing with heating systems and few others stuff.

I just discover Domotiga and it looks really great.
Ubuntu 64 10.10 installed on a VM, Domotiga installed and running , and digitemp finds all DS units.

And, now, i am a bit lost ..
Can someone point me in the right direction ? I see OWFS and it looks quite nice (as able to drive 2405 what can not be done with digitemp, right ?)

How to set up DS units in Domotiga ? Is there any way to easily interface with OWFS ? (I see Perl, but I am not a coder at all..)

Thanks already for everything done and shared, and thanks ina dvance for any help.

/klona
steve2xyz
Starting Member
Starting Member
Posts: 34
Joined: Mon Feb 08, 2010 8:46 am

Re: Domotiga / 1wire Walkthrough ?

Post by steve2xyz »

There is support for some 1-wire devices in the Linux kernel, here are some of mine:
/sys/bus/w1/devices/20-0000000dcfb7
/sys/bus/w1/devices/26-000000cbd8e8
/sys/bus/w1/devices/28-00000154b806
/sys/bus/w1/devices/28-0000023a5c77
/sys/bus/w1/devices/81-000000295bd1
/sys/bus/w1/devices/w1 bus master

The various registers and functions in the 1-wire devices are exposed using the sysfs file system, you just read and write to them like any file:
cat /sys/bus/w1/devices/28-00000154b806/w1_slave

4d 01 4b 46 7f ff 03 10 d8 : crc=d8 YES
4d 01 4b 46 7f ff 03 10 d8 t=20812

I imagine it's straightforward to get Domotiga to do this (there is a Domotiga forum here). I haven't played with owfs but it does have support for many more 1-wire devices.

Cheers, Steve
klona
Starting Member
Starting Member
Posts: 16
Joined: Fri Dec 10, 2010 9:17 am

Re: Domotiga / 1wire Walkthrough ?

Post by klona »

Thx Steve !
Did know there is a native support in Linux. OWFS is working same way but offer other feature like http or perl API. I need to work a bit more on that and check wich one is best to integrate with Domotiga.
You are right, it's surely better to ask inthe Domotiga forum..

Can an admin move the post to the Domotiga section ?
Or I can start a new one, as you like.
steve2xyz
Starting Member
Starting Member
Posts: 34
Joined: Mon Feb 08, 2010 8:46 am

Re: Domotiga / 1wire Walkthrough ?

Post by steve2xyz »

The Linux kernel currently doesn't have support for a 2405 slave, though it's probably a simple one to add (I've done the 2450 and 2438), so it looks like OWFS is the way to go. I've not tried it, can you just 'cat' a file to read the 1-wire device registers, or do you need an OWFS application to do something special?

Steve
klona
Starting Member
Starting Member
Posts: 16
Joined: Fri Dec 10, 2010 9:17 am

Re: Domotiga / 1wire Walkthrough ?

Post by klona »

Hi,
Don't know exactly, I did not yet really investigate into OWFS. I expect to have some time this WE and hope to do some progress.
And I have to say I am not a coder, more a software integrator, so i am not sure I will be able to deal with OWFS and Domotiga integration.
If we can set up some simple scripts from Domotiga to drive OWFS engine, yes, if I need ot develop some software layer.. not sure..

BTW, will start tomorrow a new thread in Domotiga forum. Seems better in fact.
klona
Starting Member
Starting Member
Posts: 16
Joined: Fri Dec 10, 2010 9:17 am

Re: Domotiga / 1wire Walkthrough ?

Post by klona »

Post Reply

Return to “1-Wire Forum”