News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

1wire support

Started by hari, January 19, 2011, 11:12:15 AM

Previous topic - Next topic

twodogs

Yeah, thanks for your assistance too Techstyle. I'd like for my system to save more money and energy than it spends. My goals are somewhat lofty, but I'll chip away at them. I'd like LMCE to track my location in the house and control the temperature based upon the occupied areas. If we're in the living room with the fireplace on, then I'd like the furnace to idle down. In summer, I'd like to have an outside weather station to provide temp and humidity info and let the system determine if we should use A/C or evaporative cooling. I'm already saving about $60 per month in phone bills with the VOIP. So the 1-wire system is pretty important.

twodogs
[url="http://greenrenovation.wordpress.com/home-automation/"]http://greenrenovation.wordpress.com/home-automation/[/url]
system:
ASUS P5N7A-VM
integrated GeForce 9300
E5200 processor
Fusion 5 lite HDTV card
2G RAM
SYBA SY-PCI15001 6-port serial card
Denon AVR 3805
LG 42" Plasma
Gyration GYR3101
Cisco SPA3102 analog telephone adapter
Cisco 7971G IP phone/orbiter

Techstyle

It would be interesting to know what peoples sensor identifiers look like?
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

hari

there is no need to create childs manually, neither in 0810 nor in 1004. Regarding interfaces other than serial (or ttyUSB) ones supported by owfs, i dunno how to make a template that can work with serial and usb at the same time. maybe tschak can help. The code itself should work fine if the usb interface is supported by owfs.
br Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

twodogs

Hari, for anyone buying a new 1-wire adapter, what product do you recommend?
[url="http://greenrenovation.wordpress.com/home-automation/"]http://greenrenovation.wordpress.com/home-automation/[/url]
system:
ASUS P5N7A-VM
integrated GeForce 9300
E5200 processor
Fusion 5 lite HDTV card
2G RAM
SYBA SY-PCI15001 6-port serial card
Denon AVR 3805
LG 42" Plasma
Gyration GYR3101
Cisco SPA3102 analog telephone adapter
Cisco 7971G IP phone/orbiter

DragonK

Hi,

This is the one that I have, and it works. I believe its the same that _if_ has and the one that Hari used.

1wire interface -- LinkUSBi http://www.homechip.com/catalog/product_info.php?cPath=22&products_id=171

Karel

twodogs

Great. Found a USA supplier.

http://www.ibuttonlink.com/linkusbi.aspx

I might wait a few days to see if Tschak knows of a way to change the polarity of the flux capacitor, but looking at the source files tells me that this thing is complicated. I'll probably just get one that works.
[url="http://greenrenovation.wordpress.com/home-automation/"]http://greenrenovation.wordpress.com/home-automation/[/url]
system:
ASUS P5N7A-VM
integrated GeForce 9300
E5200 processor
Fusion 5 lite HDTV card
2G RAM
SYBA SY-PCI15001 6-port serial card
Denon AVR 3805
LG 42" Plasma
Gyration GYR3101
Cisco SPA3102 analog telephone adapter
Cisco 7971G IP phone/orbiter

Techstyle

I just ordered it from the US link you posted.  I will try it once I have it and then maybe ship my 9490R to somebody who can help to add support for it so others do not have this issue.
Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

twodogs

OK, the new adapter arrived today from iButtonLink. I thought I got the same adapter that Hari was using, but I didn't.

Hari has this the linkusb...
http://www.ibuttonlink.com/linkusb.aspx

I have the linkusbi...
http://www.ibuttonlink.com/linkusbi.aspx

According to the website, "The difference between LinkUSB and LinkUSBi is the addition of a DS2401 ID chip in the LinkUSBi." I hope that does not render it unusable for LMCE. I plugged it into my core and the detection scripts started to roll by, trying to determine what the new device was (it couldn't). I manually entered the device as a child of the core. Unlike my other adapter, this one gave my a USB port option (see picture). After some time it registered (see picture). I then added my temp sensor and nothing happened. I know it takes awhile but its been an hour, so I'm suspicious that something is wrong. I hope its not the wrong adapter (again).

Twodogs






[url="http://greenrenovation.wordpress.com/home-automation/"]http://greenrenovation.wordpress.com/home-automation/[/url]
system:
ASUS P5N7A-VM
integrated GeForce 9300
E5200 processor
Fusion 5 lite HDTV card
2G RAM
SYBA SY-PCI15001 6-port serial card
Denon AVR 3805
LG 42" Plasma
Gyration GYR3101
Cisco SPA3102 analog telephone adapter
Cisco 7971G IP phone/orbiter

DragonK

You dont have to had the childs manually.
My sensors started showing up after a reboot and a lot of patience.

I also initially ordered a LinkUSB and received a LinkUSBi

Karel....

Obey Rule #1

hari

there is no need to add the temp sensor manually. It will be created. watch the logs, when you see it created you can do a quick reload and there it is.. It will then send temperature changed events.

br Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

twodogs

#175
QuoteI also initially ordered a LinkUSB and received a LinkUSBi

Thanks DragonK - that's good to know. The temp sensor has been in all night and has not appeared as a child yet. Hari, I'll be patient but why does it take so long? Under what conditions does the software create new child devices? There has been no activity on the log since 10:30 last night - about 10 hours ago. This is installed in the LMCE 0810 version.

== ATTEMPT FRESH START ==
1 02/02/12 17:25:26 /usr/pluto/bin/Spawn_Device.sh 70 (spawning-device) 20321 Dev: 70; Already Running list: 15,16,18,19,67,31,32,55,57,64,69,63,21,65,22,36,27,26,25,23,
== FRESH START ==
1 02/02/12 17:25:26 /usr/pluto/bin/Spawn_Device.sh 70 (spawning-device) device: 70 ip: localhost cmd_line: OneWire
0 02/02/12 17:25:26 70 (spawning-device) Entering 70
========== NEW LOG SECTION ==========
1 02/02/12 17:25:26 70 (spawning-device) Starting... 1
1 02/02/12 17:25:26 70 (spawning-device) Found /usr/pluto/bin/OneWire
05 02/02/12 17:25:26.547 Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 70 last error 2 <0xb70456c0>
05 02/02/12 17:25:26.547 The router must be reloaded before this device is fully functional <0xb70456c0>
05 02/02/12 17:25:26.551 void ClientSocket::Disconnect() on this socket: 0x961ec60 (m_Socket: 5) <0xb70456c0>
05 02/02/12 17:25:26.562 Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 70 last error 2 <0xb70456c0>
01 02/02/12 17:25:26.602 Opening port: /dev/ttyUSB0 <0xb70456c0>
05 02/02/12 21:10:35.700 Got a reload command from 0  <0xb6042b90>
05 02/02/12 21:10:36.118 void ClientSocket::Disconnect() on this socket: 0x961f380 (m_Socket: 6) <0xb70456c0>
Return code: 2
2 02/02/12 21:10:36 70 (spawning-device) Device requests restart... count=1/50 dev=70
Thu Feb  2 21:10:36 MST 2012 Restart
========== NEW LOG SECTION ==========
1 02/02/12 21:10:44 70 (spawning-device) Starting... 1
1 02/02/12 21:10:44 70 (spawning-device) Found /usr/pluto/bin/OneWire
01 02/02/12 21:10:48.985 TranslateSerialUSB pci0000:00/0000:00:04.0+6 result /dev/ttyUSB0 <0xb71016c0>
01 02/02/12 21:10:48.986 Opening port: /dev/ttyUSB0 <0xb71016c0>
== ATTEMPT FRESH START ==
1 02/02/12 21:26:22 /usr/pluto/bin/Spawn_Device.sh 70 (spawning-device) 5751 Dev: 70; Already Running list: 15,16,18,67,19,31,32,55,57,64,
== FRESH START ==
1 02/02/12 21:26:22 /usr/pluto/bin/Spawn_Device.sh 70 (spawning-device) device: 70 ip: localhost cmd_line: OneWire
0 02/02/12 21:26:22 70 (spawning-device) Entering 70
========== NEW LOG SECTION ==========
1 02/02/12 21:26:22 70 (spawning-device) Starting... 1
1 02/02/12 21:26:22 70 (spawning-device) Found /usr/pluto/bin/OneWire
01 02/02/12 21:26:23.081 TranslateSerialUSB pci0000:00/0000:00:04.0+6 result /dev/ttyUSB0 <0xb71676c0>
01 02/02/12 21:26:23.081 Opening port: /dev/ttyUSB0 <0xb71676c0>
05 02/02/12 22:36:51.539 Got a reload command from 0  <0xb6164b90>
05 02/02/12 22:36:51.789 void ClientSocket::Disconnect() on this socket: 0x922c380 (m_Socket: 6) <0xb71676c0>
Return code: 2
2 02/02/12 22:36:51 70 (spawning-device) Device requests restart... count=1/50 dev=70
Thu Feb  2 22:36:51 MST 2012 Restart
========== NEW LOG SECTION ==========
1 02/02/12 22:37:00 70 (spawning-device) Starting... 1
1 02/02/12 22:37:00 70 (spawning-device) Found /usr/pluto/bin/OneWire
01 02/02/12 22:37:01.463 TranslateSerialUSB pci0000:00/0000:00:04.0+6 result /dev/ttyUSB0 <0xb70cf6c0>
01 02/02/12 22:37:01.463 Opening port: /dev/ttyUSB0 <0xb70cf6c0>


43 lines, displaying from 0 to 43
1
[url="http://greenrenovation.wordpress.com/home-automation/"]http://greenrenovation.wordpress.com/home-automation/[/url]
system:
ASUS P5N7A-VM
integrated GeForce 9300
E5200 processor
Fusion 5 lite HDTV card
2G RAM
SYBA SY-PCI15001 6-port serial card
Denon AVR 3805
LG 42" Plasma
Gyration GYR3101
Cisco SPA3102 analog telephone adapter
Cisco 7971G IP phone/orbiter

Techstyle

Twodogs,

Mine arrived also and I did exactly what you did and got the same result down to the last 2 code lines (and they are red) then nothing.

Techstyle UK Ltd
[url=http://www.techstyleuk.co.uk]http://www.techstyleuk.co.uk[/url]

Techstyle US Inc.
[url=http://www.techstyleus.com]http://www.techstyleus.com[/url]

twodogs

I was performing another chore on my core and caught the pop-up software box saying "failed to get libowfs". Pretty good clue, but I don't know how to solve the problem.
[url="http://greenrenovation.wordpress.com/home-automation/"]http://greenrenovation.wordpress.com/home-automation/[/url]
system:
ASUS P5N7A-VM
integrated GeForce 9300
E5200 processor
Fusion 5 lite HDTV card
2G RAM
SYBA SY-PCI15001 6-port serial card
Denon AVR 3805
LG 42" Plasma
Gyration GYR3101
Cisco SPA3102 analog telephone adapter
Cisco 7971G IP phone/orbiter

DragonK

Mine also innitially showed the pop-up, cant install libowfs.
Have you reloaded/rebooted the core yet?

Another thing, After I added a new Md, my temp sensors was added.
Not sure if it has anything to do with it.

twodogs

I've reloaded the router and rebooted a few times.
[url="http://greenrenovation.wordpress.com/home-automation/"]http://greenrenovation.wordpress.com/home-automation/[/url]
system:
ASUS P5N7A-VM
integrated GeForce 9300
E5200 processor
Fusion 5 lite HDTV card
2G RAM
SYBA SY-PCI15001 6-port serial card
Denon AVR 3805
LG 42" Plasma
Gyration GYR3101
Cisco SPA3102 analog telephone adapter
Cisco 7971G IP phone/orbiter