Author Topic: 1wire support  (Read 101873 times)

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #135 on: January 03, 2012, 08:54:44 pm »
Maybe Im going about it all wrong......

I added the device in Webadmin and chose the port it was connected to. Then added a Multilevel sensor as a child.
The Interface's serial numer and other details where detected automatically, but the multilevel sensors's details dont get detected.

BTW.... the device and sensors is fully functional on a Windows install....  :(

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #136 on: January 03, 2012, 11:09:08 pm »
Everytime I add a multilevel sensor, on the orbiter is a message

"Downloading libowfs....."
and then
"Failed to download libowfs..."

The core does have internet access.....

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 1wire support
« Reply #137 on: January 04, 2012, 05:16:45 pm »
Please be a bit more verbose in your error messages.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 1wire support
« Reply #138 on: January 05, 2012, 10:23:09 am »
There is no need to manually add the childs
rock your home - http://www.agocontrol.com home automation

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #139 on: January 05, 2012, 11:23:50 am »
Ok Hari,

Tonight I'll remove everything and only add the interface.
Then I'll obey Rule #1.........

Thanx.

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #140 on: January 05, 2012, 09:24:25 pm »
So this is where Im at.....

Removed everything related to 1wire. Rebooted the core. Then I connected my usb 1-wire Interface.
I then added the 1wire interface in the webadmin and waited for the core to finish what it needed to do. After I chose the port that the device is connected to, I left the core to do its thing again. I rebooted the core.After it was up and running again, I went back into the webadmin, and the serial number field of the 1wire interface, was automaticly populated, and under advanced it reflected as "Registered YES".

So now I left the core for about an hour to add the child devices automaticly, but no luck.
Here are part of the logs.
Code: [Select]
daemon.log:Jan  3 23:57:25 dcerouter OWFS[17258]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
daemon.log:Jan  3 23:57:25 dcerouter OWFS[17258]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
daemon.log:Jan  4 00:16:45 dcerouter OWFS[1389]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
daemon.log:Jan  4 00:16:45 dcerouter OWFS[1389]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
daemon.log:Jan  5 20:07:34 dcerouter OWFS[1523]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
daemon.log:Jan  5 20:07:34 dcerouter OWFS[1523]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
daemon.log:Jan  5 20:16:44 dcerouter OWFS[1526]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
daemon.log:Jan  5 20:16:44 dcerouter OWFS[1526]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
daemon.log:Jan  5 21:10:34 dcerouter OWFS[1510]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
daemon.log:Jan  5 21:10:34 dcerouter OWFS[1510]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
and
Code: [Select]
syslog:Jan  5 20:07:34 dcerouter OWFS[1523]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
syslog:Jan  5 20:07:34 dcerouter OWFS[1523]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
syslog:Jan  5 20:16:44 dcerouter OWFS[1526]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
syslog:Jan  5 20:16:44 dcerouter OWFS[1526]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
syslog:Jan  5 21:10:34 dcerouter OWFS[1510]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
syslog:Jan  5 21:10:34 dcerouter OWFS[1510]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
syslog.1:Jan  3 23:57:25 dcerouter OWFS[17258]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
syslog.1:Jan  3 23:57:25 dcerouter OWFS[17258]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
syslog.1:Jan  4 00:16:45 dcerouter OWFS[1389]: DEFAULT: owlib.c:SetupSingleInboundConnection(196) Cannot open USB bus master
syslog.1:Jan  4 00:16:45 dcerouter OWFS[1389]: DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found

Onewire Log
Code: [Select]
dcerouter_1024512:/var/log/pluto# cat 63_OneWire.log
== ATTEMPT FRESH START ==
1       01/03/12 22:14:23       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     27453 Dev: 63; Already Running list: 15,16,18,19,30,40,62,21,22,37,25,27,26,23,
== FRESH START ==
1       01/03/12 22:14:24       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     device: 63 ip: localhost cmd_line: OneWire
0       01/03/12 22:14:24       63 (spawning-device)    Entering 63
========== NEW LOG SECTION ==========
1       01/03/12 22:14:24       63 (spawning-device)    Starting... 1
1       01/03/12 22:14:24       63 (spawning-device)    Found /usr/pluto/bin/OneWire
05      01/03/12 22:14:24.179           Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 63 last error 2 <0xb78786d0>
05      01/03/12 22:14:24.180           The router must be reloaded before this device is fully functional <0xb78786d0>
05      01/03/12 22:14:24.182           void ClientSocket::Disconnect() on this socket: 0x832ddb8 (m_Socket: 5) <0xb78786d0>
05      01/03/12 22:14:24.191           Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 63 last error 2 <0xb78786d0>
01      01/03/12 22:14:24.259           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 result /dev/ttyUSB0 <0xb78786d0>
01      01/03/12 22:14:24.259           Opening port: /dev/ttyUSB0 <0xb78786d0>
05      01/03/12 22:33:12.219           Got a reload command from 0  <0xb6475b70>
05      01/03/12 22:33:12.477           void ClientSocket::Disconnect() on this socket: 0x832e350 (m_Socket: 7) <0xb78786d0>
Return code: 2
2       01/03/12 22:33:12       63 (spawning-device)    Device requests restart... count=1/50 dev=63
Tue Jan  3 22:33:12 SAST 2012 Restart
========== NEW LOG SECTION ==========
1       01/03/12 22:33:20       63 (spawning-device)    Starting... 1
1       01/03/12 22:33:21       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 22:33:24.548           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 result /dev/ttyUSB0 <0xb78776d0>
01      01/03/12 22:33:24.548           Opening port: /dev/ttyUSB0 <0xb78776d0>
05      01/03/12 22:55:11.771           Got a reload command from 0  <0xb6474b70>
05      01/03/12 22:55:12.023           void ClientSocket::Disconnect() on this socket: 0x94e5350 (m_Socket: 7) <0xb78776d0>
Return code: 2
2       01/03/12 22:55:12       63 (spawning-device)    Device requests restart... count=1/50 dev=63
Tue Jan  3 22:55:12 SAST 2012 Restart
========== NEW LOG SECTION ==========
1       01/03/12 22:55:20       63 (spawning-device)    Starting... 1
1       01/03/12 22:55:20       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 22:55:23.992           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 result /dev/ttyUSB0 <0xb782e6d0>
01      01/03/12 22:55:23.992           Opening port: /dev/ttyUSB0 <0xb782e6d0>
05      01/03/12 23:02:35.536           Creating child 65 <0xb782e6d0>
05      01/03/12 23:02:35.536           Note: Device manager has attached a device of type 1946 that this has no custom event handler for.  It will not fire events. <0xb782e6d0>
05      01/03/12 23:02:35.536           Note: Device manager has attached a device of type 1946 that this has no custom handler for.  This is normal for IR. <0xb782e6d0>
== ATTEMPT FRESH START ==
1       01/03/12 23:14:06       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     22193 Dev: 63; Already Running list: 15,16,18,19,30,
== FRESH START ==
1       01/03/12 23:14:06       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     device: 63 ip: localhost cmd_line: OneWire
0       01/03/12 23:14:06       63 (spawning-device)    Entering 63
========== NEW LOG SECTION ==========
1       01/03/12 23:14:06       63 (spawning-device)    Starting... 1
1       01/03/12 23:14:06       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:14:07.001           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 result /dev/ttyUSB0 <0xb776f6d0>
01      01/03/12 23:14:07.001           Opening port: /dev/ttyUSB0 <0xb776f6d0>
01      01/03/12 23:20:45.444           OW_init error: 22, Invalid argument <0xb776f6d0>
01      01/03/12 23:20:45.444           Connect() Failed <0xb776f6d0>
Return code: 1
3       01/03/12 23:20:45       63 (spawning-device)    Device died... count=1/50 dev=63
Tue Jan  3 23:20:45 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:20:55       63 (spawning-device)    Starting... 2
1       01/03/12 23:20:55       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:20:55.644           Opening port:  <0xb78c76d0>
01      01/03/12 23:20:55.645           Connect() Failed <0xb78c76d0>
Return code: 1
3       01/03/12 23:20:55       63 (spawning-device)    Device died... count=2/50 dev=63
Tue Jan  3 23:20:55 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:21:05       63 (spawning-device)    Starting... 3
1       01/03/12 23:21:05       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:21:05.808           Opening port:  <0xb78996d0>
01      01/03/12 23:21:05.809           Connect() Failed <0xb78996d0>
Return code: 1
3       01/03/12 23:21:05       63 (spawning-device)    Device died... count=3/50 dev=63
Tue Jan  3 23:21:05 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:21:15       63 (spawning-device)    Starting... 4
1       01/03/12 23:21:15       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:21:16.004           Opening port:  <0xb76f76d0>
01      01/03/12 23:21:16.004           Connect() Failed <0xb76f76d0>
Return code: 1
3       01/03/12 23:21:16       63 (spawning-device)    Device died... count=4/50 dev=63
Tue Jan  3 23:21:16 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:21:26       63 (spawning-device)    Starting... 5
1       01/03/12 23:21:26       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:21:26.164           Opening port:  <0xb77d86d0>
01      01/03/12 23:21:26.164           Connect() Failed <0xb77d86d0>
Return code: 1
3       01/03/12 23:21:26       63 (spawning-device)    Device died... count=5/50 dev=63
Tue Jan  3 23:21:26 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:21:36       63 (spawning-device)    Starting... 6
1       01/03/12 23:21:36       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:21:36.324           Opening port:  <0xb784a6d0>
01      01/03/12 23:21:36.324           Connect() Failed <0xb784a6d0>
Return code: 1
3       01/03/12 23:21:36       63 (spawning-device)    Device died... count=6/50 dev=63
Tue Jan  3 23:21:36 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:21:46       63 (spawning-device)    Starting... 7
1       01/03/12 23:21:46       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:21:46.544           Opening port:  <0xb78956d0>
01      01/03/12 23:21:46.544           Connect() Failed <0xb78956d0>
Return code: 1
3       01/03/12 23:21:46       63 (spawning-device)    Device died... count=7/50 dev=63
Tue Jan  3 23:21:46 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:21:56       63 (spawning-device)    Starting... 8
1       01/03/12 23:21:56       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:21:56.708           Opening port:  <0xb77416d0>
01      01/03/12 23:21:56.708           Connect() Failed <0xb77416d0>
Return code: 1
3       01/03/12 23:21:56       63 (spawning-device)    Device died... count=8/50 dev=63
Tue Jan  3 23:21:56 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:22:06       63 (spawning-device)    Starting... 9
1       01/03/12 23:22:06       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:22:06.868           Opening port:  <0xb77b46d0>
01      01/03/12 23:22:06.868           Connect() Failed <0xb77b46d0>
Return code: 1
3       01/03/12 23:22:06       63 (spawning-device)    Device died... count=9/50 dev=63
Tue Jan  3 23:22:06 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:22:16       63 (spawning-device)    Starting... 10
1       01/03/12 23:22:16       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:22:17.028           Opening port:  <0xb78896d0>
01      01/03/12 23:22:17.028           Connect() Failed <0xb78896d0>
Return code: 1
3       01/03/12 23:22:17       63 (spawning-device)    Device died... count=10/50 dev=63
Tue Jan  3 23:22:17 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:22:27       63 (spawning-device)    Starting... 11
1       01/03/12 23:22:27       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:22:27.188           Opening port:  <0xb77b46d0>
01      01/03/12 23:22:27.188           Connect() Failed <0xb77b46d0>
Return code: 1
3       01/03/12 23:22:27       63 (spawning-device)    Device died... count=11/50 dev=63
Tue Jan  3 23:22:27 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:22:37       63 (spawning-device)    Starting... 12
1       01/03/12 23:22:37       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:22:37.348           Opening port:  <0xb77d36d0>
01      01/03/12 23:22:37.348           Connect() Failed <0xb77d36d0>
Return code: 1
3       01/03/12 23:22:37       63 (spawning-device)    Device died... count=12/50 dev=63
Tue Jan  3 23:22:37 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:22:47       63 (spawning-device)    Starting... 13
1       01/03/12 23:22:47       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:22:47.508           Opening port:  <0xb78616d0>
01      01/03/12 23:22:47.508           Connect() Failed <0xb78616d0>
Return code: 1
3       01/03/12 23:22:47       63 (spawning-device)    Device died... count=13/50 dev=63
Tue Jan  3 23:22:47 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:22:57       63 (spawning-device)    Starting... 14
1       01/03/12 23:22:57       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:22:57.672           Opening port:  <0xb77696d0>
01      01/03/12 23:22:57.672           Connect() Failed <0xb77696d0>
Return code: 1
3       01/03/12 23:22:57       63 (spawning-device)    Device died... count=14/50 dev=63
Tue Jan  3 23:22:57 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:23:07       63 (spawning-device)    Starting... 15
1       01/03/12 23:23:07       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:23:07.904           Opening port:  <0xb78106d0>
01      01/03/12 23:23:07.904           Connect() Failed <0xb78106d0>
Return code: 1
3       01/03/12 23:23:07       63 (spawning-device)    Device died... count=15/50 dev=63
Tue Jan  3 23:23:07 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:23:17       63 (spawning-device)    Starting... 16
1       01/03/12 23:23:17       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:23:18.064           Opening port:  <0xb77896d0>
01      01/03/12 23:23:18.064           Connect() Failed <0xb77896d0>
Return code: 1
3       01/03/12 23:23:18       63 (spawning-device)    Device died... count=16/50 dev=63
Tue Jan  3 23:23:18 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:23:28       63 (spawning-device)    Starting... 17
1       01/03/12 23:23:28       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:23:28.224           Opening port:  <0xb78296d0>
01      01/03/12 23:23:28.224           Connect() Failed <0xb78296d0>
Return code: 1
3       01/03/12 23:23:28       63 (spawning-device)    Device died... count=17/50 dev=63
Tue Jan  3 23:23:28 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:23:38       63 (spawning-device)    Starting... 18
1       01/03/12 23:23:38       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:23:38.384           Opening port: 0 <0xb77ff6d0>
01      01/03/12 23:23:38.386           OW_init error: 22, Invalid argument <0xb77ff6d0>
01      01/03/12 23:23:38.386           Connect() Failed <0xb77ff6d0>
Return code: 1
3       01/03/12 23:23:38       63 (spawning-device)    Device died... count=18/50 dev=63
Tue Jan  3 23:23:38 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:23:48       63 (spawning-device)    Starting... 19
1       01/03/12 23:23:48       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:23:48.548           Opening port: 0 <0xb772d6d0>
01      01/03/12 23:23:48.550           OW_init error: 22, Invalid argument <0xb772d6d0>
01      01/03/12 23:23:48.550           Connect() Failed <0xb772d6d0>
Return code: 1
3       01/03/12 23:23:48       63 (spawning-device)    Device died... count=19/50 dev=63
Tue Jan  3 23:23:48 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:23:58       63 (spawning-device)    Starting... 20
1       01/03/12 23:23:58       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:23:58.708           Opening port: 0 <0xb78c46d0>
01      01/03/12 23:23:58.710           OW_init error: 22, Invalid argument <0xb78c46d0>
01      01/03/12 23:23:58.710           Connect() Failed <0xb78c46d0>
Return code: 1
3       01/03/12 23:23:58       63 (spawning-device)    Device died... count=20/50 dev=63
Tue Jan  3 23:23:58 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:24:08       63 (spawning-device)    Starting... 21
1       01/03/12 23:24:08       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:24:08.868           Opening port: 0 <0xb77b36d0>
01      01/03/12 23:24:08.870           OW_init error: 22, Invalid argument <0xb77b36d0>
01      01/03/12 23:24:08.870           Connect() Failed <0xb77b36d0>
Return code: 1
3       01/03/12 23:24:08       63 (spawning-device)    Device died... count=21/50 dev=63
Tue Jan  3 23:24:08 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:24:18       63 (spawning-device)    Starting... 22
1       01/03/12 23:24:18       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:24:19.028           Opening port: 0 <0xb78dd6d0>
01      01/03/12 23:24:19.030           OW_init error: 22, Invalid argument <0xb78dd6d0>
01      01/03/12 23:24:19.030           Connect() Failed <0xb78dd6d0>
Return code: 1
3       01/03/12 23:24:19       63 (spawning-device)    Device died... count=22/50 dev=63
Tue Jan  3 23:24:19 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:24:29       63 (spawning-device)    Starting... 23
1       01/03/12 23:24:29       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:24:29.188           Opening port: 0 <0xb77516d0>
01      01/03/12 23:24:29.190           OW_init error: 22, Invalid argument <0xb77516d0>
01      01/03/12 23:24:29.190           Connect() Failed <0xb77516d0>
Return code: 1
3       01/03/12 23:24:29       63 (spawning-device)    Device died... count=23/50 dev=63
Tue Jan  3 23:24:29 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:24:39       63 (spawning-device)    Starting... 24
1       01/03/12 23:24:39       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:24:39.352           Opening port: 0 <0xb771f6d0>
01      01/03/12 23:24:39.354           OW_init error: 22, Invalid argument <0xb771f6d0>
01      01/03/12 23:24:39.354           Connect() Failed <0xb771f6d0>
Return code: 1
3       01/03/12 23:24:39       63 (spawning-device)    Device died... count=24/50 dev=63
Tue Jan  3 23:24:39 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:24:49       63 (spawning-device)    Starting... 25
1       01/03/12 23:24:49       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:24:49.528           Opening port: 0 <0xb77776d0>
01      01/03/12 23:24:49.530           OW_init error: 22, Invalid argument <0xb77776d0>
01      01/03/12 23:24:49.530           Connect() Failed <0xb77776d0>
Return code: 1
3       01/03/12 23:24:49       63 (spawning-device)    Device died... count=25/50 dev=63
Tue Jan  3 23:24:49 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:24:59       63 (spawning-device)    Starting... 26
1       01/03/12 23:24:59       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:24:59.708           Opening port: 0 <0xb777f6d0>
01      01/03/12 23:24:59.710           OW_init error: 22, Invalid argument <0xb777f6d0>
01      01/03/12 23:24:59.710           Connect() Failed <0xb777f6d0>
Return code: 1
3       01/03/12 23:24:59       63 (spawning-device)    Device died... count=26/50 dev=63
Tue Jan  3 23:24:59 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:25:09       63 (spawning-device)    Starting... 27
1       01/03/12 23:25:09       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:25:09.901           Opening port: 0 <0xb781f6d0>
01      01/03/12 23:25:09.903           OW_init error: 22, Invalid argument <0xb781f6d0>
01      01/03/12 23:25:09.903           Connect() Failed <0xb781f6d0>
Return code: 1
3       01/03/12 23:25:09       63 (spawning-device)    Device died... count=27/50 dev=63
Tue Jan  3 23:25:09 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:25:19       63 (spawning-device)    Starting... 28
1       01/03/12 23:25:19       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:25:20.092           Opening port: 0 <0xb77966d0>
01      01/03/12 23:25:20.094           OW_init error: 22, Invalid argument <0xb77966d0>
01      01/03/12 23:25:20.094           Connect() Failed <0xb77966d0>
Return code: 1
3       01/03/12 23:25:20       63 (spawning-device)    Device died... count=28/50 dev=63
Tue Jan  3 23:25:20 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:25:30       63 (spawning-device)    Starting... 29
1       01/03/12 23:25:30       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:25:30.392           Opening port: 0 <0xb778b6d0>
01      01/03/12 23:25:30.394           OW_init error: 22, Invalid argument <0xb778b6d0>
01      01/03/12 23:25:30.394           Connect() Failed <0xb778b6d0>
Return code: 1
3       01/03/12 23:25:30       63 (spawning-device)    Device died... count=29/50 dev=63
Tue Jan  3 23:25:30 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:25:40       63 (spawning-device)    Starting... 30
1       01/03/12 23:25:40       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:25:40.784           Opening port: 0 <0xb78026d0>
01      01/03/12 23:25:40.786           OW_init error: 22, Invalid argument <0xb78026d0>
01      01/03/12 23:25:40.787           Connect() Failed <0xb78026d0>
Return code: 1
3       01/03/12 23:25:40       63 (spawning-device)    Device died... count=30/50 dev=63
Tue Jan  3 23:25:40 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:25:50       63 (spawning-device)    Starting... 31
1       01/03/12 23:25:50       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:25:51.008           Opening port: 0 <0xb781d6d0>
01      01/03/12 23:25:51.010           OW_init error: 22, Invalid argument <0xb781d6d0>
01      01/03/12 23:25:51.010           Connect() Failed <0xb781d6d0>
Return code: 1
3       01/03/12 23:25:51       63 (spawning-device)    Device died... count=31/50 dev=63
Tue Jan  3 23:25:51 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:26:01       63 (spawning-device)    Starting... 32
1       01/03/12 23:26:01       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:26:01.236           Opening port: 0 <0xb77de6d0>
01      01/03/12 23:26:01.238           OW_init error: 22, Invalid argument <0xb77de6d0>
01      01/03/12 23:26:01.238           Connect() Failed <0xb77de6d0>
Return code: 1
3       01/03/12 23:26:01       63 (spawning-device)    Device died... count=32/50 dev=63
Tue Jan  3 23:26:01 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:26:11       63 (spawning-device)    Starting... 33
1       01/03/12 23:26:11       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:26:11.484           Opening port: 0 <0xb78076d0>
01      01/03/12 23:26:11.486           OW_init error: 22, Invalid argument <0xb78076d0>
01      01/03/12 23:26:11.486           Connect() Failed <0xb78076d0>
Return code: 1
3       01/03/12 23:26:11       63 (spawning-device)    Device died... count=33/50 dev=63
Tue Jan  3 23:26:11 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:26:21       63 (spawning-device)    Starting... 34
1       01/03/12 23:26:21       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:26:21.644           Opening port: 0 <0xb785a6d0>
01      01/03/12 23:26:21.645           OW_init error: 22, Invalid argument <0xb785a6d0>
01      01/03/12 23:26:21.646           Connect() Failed <0xb785a6d0>
Return code: 1
3       01/03/12 23:26:21       63 (spawning-device)    Device died... count=34/50 dev=63
Tue Jan  3 23:26:21 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:26:31       63 (spawning-device)    Starting... 35
1       01/03/12 23:26:31       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:26:31.804           Opening port: 0 <0xb76ea6d0>
01      01/03/12 23:26:31.806           OW_init error: 22, Invalid argument <0xb76ea6d0>
01      01/03/12 23:26:31.806           Connect() Failed <0xb76ea6d0>
Return code: 1
3       01/03/12 23:26:31       63 (spawning-device)    Device died... count=35/50 dev=63
Tue Jan  3 23:26:31 SAST 2012 died
========== NEW LOG SECTION ==========
1       01/03/12 23:26:41       63 (spawning-device)    Starting... 36
1       01/03/12 23:26:41       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:26:42.018           TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb77616d0>
01      01/03/12 23:26:42.018           Opening port: /dev/ttyUSB0 <0xb77616d0>
05      01/03/12 23:33:13.584           Creating child 65 <0xb77616d0>
05      01/03/12 23:33:13.585           Note: Device manager has attached a device of type 1946 that this has no custom event handler for.  It will not fire events. <0xb77616d0>
05      01/03/12 23:33:13.585           Note: Device manager has attached a device of type 1946 that this has no custom handler for.  This is normal for IR. <0xb77616d0>
05      01/03/12 23:48:50.027           Got a reload command from 0  <0xb635eb70>
05      01/03/12 23:48:50.280           void ClientSocket::Disconnect() on this socket: 0x9908350 (m_Socket: 7) <0xb77616d0>
Return code: 2
2       01/03/12 23:48:50       63 (spawning-device)    Device requests restart... count=36/50 dev=63
Tue Jan  3 23:48:50 SAST 2012 Restart
========== NEW LOG SECTION ==========
1       01/03/12 23:48:58       63 (spawning-device)    Starting... 36
1       01/03/12 23:48:58       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/03/12 23:49:00.959           TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb77c86d0>
01      01/03/12 23:49:00.959           Opening port: /dev/ttyUSB0 <0xb77c86d0>
05      01/03/12 23:59:52.775           Got a reload command from 0  <0xb63c5b70>
05      01/03/12 23:59:53.028           void ClientSocket::Disconnect() on this socket: 0x9365350 (m_Socket: 7) <0xb77c86d0>
Return code: 2
2       01/03/12 23:59:53       63 (spawning-device)    Device requests restart... count=36/50 dev=63
Tue Jan  3 23:59:53 SAST 2012 Restart
========== NEW LOG SECTION ==========
1       01/04/12 00:00:01       63 (spawning-device)    Starting... 36
1       01/04/12 00:00:01       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/04/12 0:00:03.783            TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb77c36d0>
01      01/04/12 0:00:03.783            Opening port: /dev/ttyUSB0 <0xb77c36d0>
05      01/04/12 0:06:30.376            Creating child 67 <0xb77c36d0>
05      01/04/12 0:06:30.376            Note: Device manager has attached a device of type 1946 that this has no custom event handler for.  It will not fire events. <0xb77c36d0>
05      01/04/12 0:06:30.376            Note: Device manager has attached a device of type 1946 that this has no custom handler for.  This is normal for IR. <0xb77c36d0>
05      01/04/12 0:15:09.511            Got a reload command from 0  <0xb63c0b70>
05      01/04/12 0:15:09.769            void ClientSocket::Disconnect() on this socket: 0x82f9350 (m_Socket: 7) <0xb77c36d0>
Return code: 2
2       01/04/12 00:15:09       63 (spawning-device)    Device requests restart... count=36/50 dev=63
Wed Jan  4 00:15:10 SAST 2012 Restart
========== NEW LOG SECTION ==========
1       01/04/12 00:15:18       63 (spawning-device)    Starting... 36
1       01/04/12 00:15:18       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/04/12 0:15:22.714            TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb774e6d0>
01      01/04/12 0:15:22.715            Opening port: /dev/ttyUSB0 <0xb774e6d0>
== ATTEMPT FRESH START ==
1       01/04/12 00:20:09       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     15533 Dev: 63; Already Running list: 15,16,18,19,30,
== FRESH START ==
1       01/04/12 00:20:09       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     device: 63 ip: localhost cmd_line: OneWire
0       01/04/12 00:20:09       63 (spawning-device)    Entering 63
========== NEW LOG SECTION ==========
1       01/04/12 00:20:09       63 (spawning-device)    Starting... 1
1       01/04/12 00:20:09       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/04/12 0:20:10.192            TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb77726d0>
01      01/04/12 0:20:10.192            Opening port: /dev/ttyUSB0 <0xb77726d0>
05      01/04/12 0:27:26.778            Creating child 68 <0xb77726d0>
05      01/04/12 0:27:26.778            Note: Device manager has attached a device of type 1946 that this has no custom event handler for.  It will not fire events. <0xb77726d0>
05      01/04/12 0:27:26.778            Note: Device manager has attached a device of type 1946 that this has no custom handler for.  This is normal for IR. <0xb77726d0>
05      01/04/12 6:20:22.505            Got a reload command from 0  <0xb636fb70>
05      01/04/12 6:20:22.764            void ClientSocket::Disconnect() on this socket: 0x8116350 (m_Socket: 7) <0xb77726d0>
Return code: 2
2       01/04/12 06:20:22       63 (spawning-device)    Device requests restart... count=1/50 dev=63
Wed Jan  4 06:20:23 SAST 2012 Restart
========== NEW LOG SECTION ==========
1       01/04/12 06:20:31       63 (spawning-device)    Starting... 1
1       01/04/12 06:20:31       63 (spawning-device)    Found /usr/pluto/bin/OneWire
05      01/04/12 6:20:32.442            Connect() failed, Error Code 111 (Connection refused)) <0xb77206d0>
01      01/04/12 6:20:46.923            TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb77206d0>
01      01/04/12 6:20:46.923            Opening port: /dev/ttyUSB0 <0xb77206d0>
05      01/04/12 6:27:58.478            Creating child 68 <0xb77206d0>
05      01/04/12 6:27:58.478            Note: Device manager has attached a device of type 1946 that this has no custom event handler for.  It will not fire events. <0xb77206d0>
05      01/04/12 6:27:58.478            Note: Device manager has attached a device of type 1946 that this has no custom handler for.  This is normal for IR. <0xb77206d0>
== ATTEMPT FRESH START ==
1       01/05/12 20:10:52       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     15548 Dev: 63; Already Running list: 15,16,18,19,30,
== FRESH START ==
1       01/05/12 20:10:52       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     device: 63 ip: localhost cmd_line: OneWire
0       01/05/12 20:10:52       63 (spawning-device)    Entering 63
========== NEW LOG SECTION ==========
1       01/05/12 20:10:52       63 (spawning-device)    Starting... 1
1       01/05/12 20:10:52       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/05/12 20:10:52.713           TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb78496d0>
01      01/05/12 20:10:52.713           Opening port: /dev/ttyUSB0 <0xb78496d0>
05      01/05/12 20:10:53.102           Creating child 68 <0xb78496d0>
05      01/05/12 20:10:53.102           Note: Device manager has attached a device of type 1946 that this has no custom event handler for.  It will not fire events. <0xb78496d0>
05      01/05/12 20:10:53.102           Note: Device manager has attached a device of type 1946 that this has no custom handler for.  This is normal for IR. <0xb78496d0>
01      01/05/12 20:10:54.413           No Child found for 28.A8A28003000, trying to create <0xb7848b70>
01      01/05/12 20:10:54.498           Child 69 created <0xb7848b70>
== ATTEMPT FRESH START ==
1       01/05/12 20:48:45       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     2012 Dev: 63; Already Running list: 15,16,18,19,30,40,62,21,22,23,26,37,25,27,
== FRESH START ==
1       01/05/12 20:48:45       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     device: 63 ip: localhost cmd_line: OneWire
0       01/05/12 20:48:45       63 (spawning-device)    Entering 63
========== NEW LOG SECTION ==========
1       01/05/12 20:48:45       63 (spawning-device)    Starting... 1
1       01/05/12 20:48:45       63 (spawning-device)    Found /usr/pluto/bin/OneWire
05      01/05/12 20:48:45.627           Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 63 last error 2 <0xb778c6d0>
05      01/05/12 20:48:45.627           The router must be reloaded before this device is fully functional <0xb778c6d0>
05      01/05/12 20:48:45.630           void ClientSocket::Disconnect() on this socket: 0x8f78db8 (m_Socket: 5) <0xb778c6d0>
05      01/05/12 20:48:45.639           Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 63 last error 2 <0xb778c6d0>
01      01/05/12 20:48:45.710           TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb778c6d0>
01      01/05/12 20:48:45.710           Opening port: /dev/ttyUSB0 <0xb778c6d0>
== ATTEMPT FRESH START ==
1       01/05/12 21:13:13       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     14048 Dev: 63; Already Running list: 15,16,18,19,30,
== FRESH START ==
1       01/05/12 21:13:13       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     device: 63 ip: localhost cmd_line: OneWire
0       01/05/12 21:13:13       63 (spawning-device)    Entering 63
========== NEW LOG SECTION ==========
1       01/05/12 21:13:13       63 (spawning-device)    Starting... 1
1       01/05/12 21:13:13       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/05/12 21:13:13.983           TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb780f6d0>
01      01/05/12 21:13:13.984           Opening port: /dev/ttyUSB0 <0xb780f6d0>
05      01/05/12 22:04:49.943           void ClientSocket::Disconnect() on this socket: 0x9468350 (m_Socket: 7) <0xb780f6d0>
Return code: 0
2       01/05/12 22:04:49       63 (spawning-device)    Shutting down... count=1/50 dev=63
Thu Jan  5 22:04:50 SAST 2012 Shutdown
== ATTEMPT FRESH START ==
1       01/05/12 22:12:38       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     22911 Dev: 63; Already Running list: 15,16,18,19,30,40,62,21,22,27,23,26,25,37,
== FRESH START ==
1       01/05/12 22:12:38       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     device: 63 ip: localhost cmd_line: OneWire
0       01/05/12 22:12:39       63 (spawning-device)    Entering 63
========== NEW LOG SECTION ==========
1       01/05/12 22:12:39       63 (spawning-device)    Starting... 1
1       01/05/12 22:12:39       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/05/12 22:12:39.532           TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb775c6d0>
01      01/05/12 22:12:39.533           Opening port: /dev/ttyUSB0 <0xb775c6d0>
== ATTEMPT FRESH START ==
1       01/05/12 22:19:27       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     14810 Dev: 63; Already Running list: 15,16,18,19,30,
== FRESH START ==
1       01/05/12 22:19:27       /usr/pluto/bin/Spawn_Device.sh 63 (spawning-device)     device: 63 ip: localhost cmd_line: OneWire
0       01/05/12 22:19:27       63 (spawning-device)    Entering 63
========== NEW LOG SECTION ==========
1       01/05/12 22:19:28       63 (spawning-device)    Starting... 1
1       01/05/12 22:19:28       63 (spawning-device)    Found /usr/pluto/bin/OneWire
01      01/05/12 22:19:28.292           TranslateSerialUSB pci0000:00/0000:00:1d.0+1 result /dev/ttyUSB0 <0xb77296d0>
01      01/05/12 22:19:28.292           Opening port: /dev/ttyUSB0 <0xb77296d0>
dcerouter_1024512:/var/log/pluto#

If I unplug the 1wire device from the usb port, in the webadmin,port section changes to "Please select port" and the serial number field is blank.
But if plug the 1wire device back in, and choose the port, and do a quick reload, the serial number is detected again. But the child devices dont get created.
 
1wire interface -- LinkUSBi http://www.homechip.com/catalog/product_info.php?cPath=22&products_id=171
Temp Sensors -- DS18B20 http://www.homechip.com/catalog/product_info.php?cPath=26&products_id=99

Karel

Edit:: The Onewire device and sensors work on a windows Pc....  :(
« Last Edit: January 05, 2012, 09:38:14 pm by DragonK »

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 1wire support
« Reply #141 on: January 06, 2012, 09:08:36 pm »
from your log:

01      01/05/12 20:10:54.413           No Child found for 28.A8A28003000, trying to create <0xb7848b70>
01      01/05/12 20:10:54.498           Child 69 created <0xb7848b70>

Are you sure that there is no child 69?
rock your home - http://www.agocontrol.com home automation

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #142 on: January 07, 2012, 01:38:15 pm »
Hari,

Last night when I got home, there was no child devices under the climate menu or under the 1-wire interface.
After adding an Old Acer laptop as an MD, the MD's Xineplayer is now #69.

But After a few reboots this morning (Powerfailures) the Temp sensor child was added to the climate menu with a device number of #74.

Now Im going to add another 2 sensors to the bus.

Hari, Thanx for ur patience and willingness to help.
Its greately appreciated.

Karel

twodogs

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #143 on: January 23, 2012, 08:27:41 pm »
I've reread this topic many times, and still completely confused. I have a USB 1-wire adapter as shown in the picture. When I go to add the interface, there is only a single option (1wire template 2161). When I pick the template, it seems that the correct software downloads. However when I go to configure the device, the only options I get are rs232 ports, not USB. The wiki seems to indicate that only rs232 adapters are supported. But earlier in this thread, both _if_ and Gangsingen state that they have USB devices working (see links). How can I get my USB device to work?

Twodogs

http://forum.linuxmce.org/index.php/topic,11328.msg86425.html#msg86425
http://forum.linuxmce.org/index.php/topic,11328.msg79599.html#msg79599
http://wiki.linuxmce.org/index.php/1-Wire_Basics



« Last Edit: January 23, 2012, 08:35:34 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

mkbrown69

  • Guru
  • ****
  • Posts: 213
    • View Profile
Re: 1wire support
« Reply #144 on: January 23, 2012, 09:27:41 pm »
Twodogs,

You're not alone ;-)

I've been wondering too, mostly because I'm looking to implement 1-wire, but on a remote host.  OWFS supports that, but it looks like the 2161 Template was done to configure owserver for a serial port adapter like a 9097U.  I've been wondering if I should create a new 1-wire template, or modify the 2161 to support the other methods.

Would someone more knowledgeable about the 1-wire template like to suggest a course of action for USB and remote 1-wire support?

Thanks!

/Mike

twodogs

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #145 on: January 24, 2012, 01:23:14 am »
It also looks like DragonK might not have completed the install of his USB 1-wire system.
« Last Edit: January 24, 2012, 01:45:03 am 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

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #146 on: January 24, 2012, 06:36:50 am »
Yip I did with alot of patience...... Rule #1 of LinuxMCE.
Im glad to say that when addidng more than one temp sensor to the bus, it gets added automaticly.
All you need to do is assign a room and place it on the floorplan.

What devices do you guys have?
LMCE 0810 or 1004?

These are the devices that I have.
1wire interface -- LinkUSBi http://www.homechip.com/catalog/product_info.php?cPath=22&products_id=171
Temp Sensors -- DS18B20 http://www.homechip.com/catalog/product_info.php?cPath=26&products_id=99


Karel

Oh and im running LMCE 1004
« Last Edit: January 24, 2012, 07:05:10 am by DragonK »

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 1wire support
« Reply #147 on: January 24, 2012, 11:01:04 am »
most usb 1-wire interface show up as serial port
rock your home - http://www.agocontrol.com home automation

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: 1wire support
« Reply #148 on: January 24, 2012, 06:04:36 pm »
Twodogs,

What is the part number of your interface?

Techstyle

twodogs

  • Guru
  • ****
  • Posts: 224
    • View Profile
Re: 1wire support
« Reply #149 on: January 24, 2012, 07:00:21 pm »
It is a DS9490R that I bought from Hobby Boards some time ago.

http://www.hobby-boards.com/catalog/product_info.php?products_id=1503

Hari's comment that the 1-wire adapters usually show up as serial devices was interesting. I think I have one of the few that actually show up as USB devices. The output of "LSUSB is...

Code: [Select]
Bus 002 Device 003: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 1-Wire adapter

I wanted to see if I could get this device running on my Ubuntu 11.04 desktop. The following links were helpful - the first shows how to install the software, and the second shows how to bring the DS9490R to life. Combining the instructions got things working.

https://help.ubuntu.com/community/1wireSoftware
http://apartment-automation.blogspot.com/2009/09/installing-1-wire-usb-adapter-ds9490r.html

To prepare, insert the DS9490R into the USB port (without the temperature sensor)
download latest owfs tar from sourceforge. Paste in /usr/src and extract.
Then...
Code: [Select]
sudo apt-get install automake autoconf autotools-dev gcc g++ libtool libusb-dev fuse-utils libfuse-dev swig python-dev tcl8.4-dev php5-dev
cd /usr/src/owfs-2.8p14
./configure
make
sudo make install
sudo mkdir /media/1-wire
sudo /opt/owfs/bin/owfs --allow_other -u /media/1-wire

-u key means USB and "/media/1-wire" is mountpoint and --allow_other means that non-root users can read 1-wire directory.
Plug the temp sensor into the DS9490R
Open the folder /media/1-wire and look for a folder named 10.E66CE1010800 or similar. It should contain a "temperature" file that shows the Celsius readout.

So awesome, now I've got it working in Ubuntu. Next question is how much effort to make it work with LMCE? Maybe I have to  change some configuration file to contain the -u option for USB? Also maybe change the LMCE 1-wire template so that it gives me something other than serial port options? As always, I'm feeling like a weak swimmer in deep waters!
« Last Edit: January 24, 2012, 07:08:44 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