Author Topic: 1wire support  (Read 109984 times)

twodogs

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #165 on: January 26, 2012, 02:03:48 am »
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
http://greenrenovation.wordpress.com/home-automation/
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

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: 1wire support
« Reply #166 on: January 26, 2012, 03:01:44 am »
It would be interesting to know what peoples sensor identifiers look like?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 1wire support
« Reply #167 on: January 26, 2012, 05:07:19 pm »
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 - http://www.agocontrol.com home automation

twodogs

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #168 on: January 26, 2012, 05:39:20 pm »
Hari, for anyone buying a new 1-wire adapter, what product do you recommend?
http://greenrenovation.wordpress.com/home-automation/
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

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #169 on: January 26, 2012, 07:28:57 pm »
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

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #170 on: January 26, 2012, 07:48:53 pm »
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.
http://greenrenovation.wordpress.com/home-automation/
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

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: 1wire support
« Reply #171 on: January 27, 2012, 12:44:40 am »
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.

twodogs

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #172 on: February 03, 2012, 07:07:49 am »
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






http://greenrenovation.wordpress.com/home-automation/
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

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #173 on: February 03, 2012, 07:19:21 am »
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 1wire support
« Reply #174 on: February 03, 2012, 02:19:12 pm »
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 - http://www.agocontrol.com home automation

twodogs

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #175 on: February 03, 2012, 03:49:08 pm »
Quote
I 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.

Code: [Select]
== 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
« Last Edit: February 03, 2012, 05:54:11 pm by twodogs »
http://greenrenovation.wordpress.com/home-automation/
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

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: 1wire support
« Reply #176 on: February 03, 2012, 07:19:20 pm »
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.


twodogs

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #177 on: February 04, 2012, 03:26:57 am »
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.
http://greenrenovation.wordpress.com/home-automation/
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

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #178 on: February 04, 2012, 06:33:05 am »
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

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #179 on: February 04, 2012, 07:14:32 am »
I've reloaded the router and rebooted a few times.
http://greenrenovation.wordpress.com/home-automation/
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