LinuxMCE Forums
June 18, 2013, 11:40:10 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: 1 ... 4 5 [6] 7 8 ... 15
  Print  
Author Topic: 1wire support  (Read 17533 times)
_if_
Guru
****
Posts: 222


View Profile
« Reply #75 on: March 03, 2011, 10:01:59 pm »

yes it's connected.
I have the blue wire at the middle pin (data) and the blue/white at the other 2 pins of the sensor, should be right?
Logged
_if_
Guru
****
Posts: 222


View Profile
« Reply #76 on: March 05, 2011, 11:28:24 am »

arg, I found the problem: there was a little little assholewire in the lanjack which connected the 2 wires together...I put a new jack on it and I can now mount owfs perfectly and read the sensors value.

Altough if I run ./OneWire I still get:

./OneWire
OneWire, v.<=version=>
Visit www.plutohome.com for source code and license information

01   03/05/11 11:24:55.323      Opening port: ERR Parameter not found <0xb70356c0>
DEFAULT: owlib.c:LibStart(54) No valid 1-wire buses found
01   03/05/11 11:24:55.328      OW_init error: 22, Invalid argument <0xb70356c0>
01   03/05/11 11:24:55.328      Connect() Failed <0xb70356c0>


I also entered the sensors ID at webadmin to the multilevelsensor, but no value is shown in the orbiter - just the tempsymbol...
Logged
Kezza
Veteran
***
Posts: 146


View Profile
« Reply #77 on: March 05, 2011, 11:55:19 am »

So the OneWire log in webadmin has no errors? The temp ID you used starts with '10.'?

Do you have a USB-UIRT? When I add my OneWire to webadmin and reload the USB-UIRT semi stops working.

I have managed to get owfs to a point where I can read the temp values so it does work just need to get LMCE to play nice now.

I've tried numerous things so I might need to reload a backup of the system and try a fresh install of OneWire and see how get on.
Logged
_if_
Guru
****
Posts: 222


View Profile
« Reply #78 on: March 05, 2011, 12:15:38 pm »

the log has an error at: Opening port: /dev/ttyUSB0 <0xb717d6c0>
my ID starts with '28.'
At my cores usb ports I have only: 2nd nic, X10 Interface, and the 1-wire interface.
Logged
_if_
Guru
****
Posts: 222


View Profile
« Reply #79 on: March 06, 2011, 08:09:43 pm »

it's working! big thanks to hari!!



is this cool or what?
Logged
Kezza
Veteran
***
Posts: 146


View Profile
« Reply #80 on: March 06, 2011, 09:15:19 pm »

Wow that looks very cool.

Anything in particular you had to do to get it working?
Logged
_if_
Guru
****
Posts: 222


View Profile
« Reply #81 on: March 06, 2011, 09:51:45 pm »

well not really, the big problem was the short circuit in my jack.
all other things were like unexplainable things and solved themselves  Grin

oh and the value in my floorplan did not came up until I added a new respond event (not shure if those 2 things are really related...)

Next things to check: why my respond events are not responding at the moment and I will try to get datalogger running the next few days to check if logging works as well...
Logged
Kezza
Veteran
***
Posts: 146


View Profile
« Reply #82 on: March 11, 2011, 04:45:19 am »

Any idea what this means?

Code:
/var/log/pluto/46_OneWire.log1 03/11/11 16:37:00 /usr/pluto/bin/Spawn_Device.sh 46 (spawning-device) device: 46 ip: localhost cmd_line: OneWire
0 03/11/11 16:37:00 46 (spawning-device) Entering 46
========== NEW LOG SECTION ==========
1 03/11/11 16:37:00 46 (spawning-device) Starting... 1
1 03/11/11 16:37:00 46 (spawning-device) Found /usr/pluto/bin/OneWire
05 03/11/11 16:37:00.612 Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 46 last error 2 <0xb71a36c0>
05 03/11/11 16:37:00.612 The router must be reloaded before this device is fully functional <0xb71a36c0>
05 03/11/11 16:37:00.613 void ClientSocket::Disconnect() on this socket: 0x8a33de0 (m_Socket: 5) <0xb71a36c0>
05 03/11/11 16:37:00.656 Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 46 last error 2 <0xb71a36c0>
01 03/11/11 16:37:00.694 Opening port: /dev/ttyUSB0 <0xb71a36c0>
01 03/11/11 16:38:39.167 OW_get error: 22, Invalid argument <0xb71a2b90>
01 03/11/11 16:39:25.785 OW_get error: 22, Invalid argument <0xb71a2b90>
01 03/11/11 16:41:59.189 OW_get error: 22, Invalid argument <0xb71a2b90>
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2414



View Profile WWW
« Reply #83 on: March 11, 2011, 02:22:00 pm »

Any idea what this means?

Code:
/var/log/pluto/46_OneWire.log1 03/11/11 16:37:00 /usr/pluto/bin/Spawn_Device.sh 46 (spawning-device) device: 46 ip: localhost cmd_line: OneWire
0 03/11/11 16:37:00 46 (spawning-device) Entering 46
========== NEW LOG SECTION ==========
1 03/11/11 16:37:00 46 (spawning-device) Starting... 1
1 03/11/11 16:37:00 46 (spawning-device) Found /usr/pluto/bin/OneWire
05 03/11/11 16:37:00.612 Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 46 last error 2 <0xb71a36c0>
05 03/11/11 16:37:00.612 The router must be reloaded before this device is fully functional <0xb71a36c0>
05 03/11/11 16:37:00.613 void ClientSocket::Disconnect() on this socket: 0x8a33de0 (m_Socket: 5) <0xb71a36c0>
05 03/11/11 16:37:00.656 Connection for client socket reported NEED RELOAD IP=127.0.0.1, device 46 last error 2 <0xb71a36c0>
01 03/11/11 16:37:00.694 Opening port: /dev/ttyUSB0 <0xb71a36c0>
01 03/11/11 16:38:39.167 OW_get error: 22, Invalid argument <0xb71a2b90>
01 03/11/11 16:39:25.785 OW_get error: 22, Invalid argument <0xb71a2b90>
01 03/11/11 16:41:59.189 OW_get error: 22, Invalid argument <0xb71a2b90>

first, do a quick reload

2nd, make sure that you can read out the sensors with owfs.

br Hari
Logged

rock your home - http://www.agocontrol.com home automation
hari
Administrator
LinuxMCE God
*****
Posts: 2414



View Profile WWW
« Reply #84 on: March 11, 2011, 06:34:19 pm »

3rd, get the latest svn version, it spits out more debug information

br Hari
Logged

rock your home - http://www.agocontrol.com home automation
_if_
Guru
****
Posts: 222


View Profile
« Reply #85 on: March 12, 2011, 08:55:02 pm »

just to add: I added a second sensor today and the new 'auto sensor recognition' feature works really well.

Connect the sensor, quick reload, a new multilevelsensor device is created, you enter the sensors ID (you get it out of the interface log), quick reload. After that you can place the new sensor in your floorplan. That's it!
Logged
Techstyle
Addicted
*
Posts: 665



View Profile WWW
« Reply #86 on: March 12, 2011, 11:07:25 pm »

So as this support increases what are the steps now needed to get this to work?
Logged

_if_
Guru
****
Posts: 222


View Profile
« Reply #87 on: March 13, 2011, 02:44:46 pm »

I think the steps on post #63 from DragonK should be enough, do you run into any problems?
Logged
Techstyle
Addicted
*
Posts: 665



View Profile WWW
« Reply #88 on: March 13, 2011, 06:49:11 pm »

I originally had problems but have reinstalled since so I am effectively starting from scratch
Logged

_if_
Guru
****
Posts: 222


View Profile
« Reply #89 on: March 13, 2011, 07:08:41 pm »

that is cool, so we can check if that description works and we can put a wiki page together...
Logged
Pages: 1 ... 4 5 [6] 7 8 ... 15
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!