Author Topic: 1wire support  (Read 112022 times)

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
Re: 1wire support
« Reply #15 on: January 20, 2011, 07:02:01 am »
it was USB...

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 1wire support
« Reply #16 on: January 20, 2011, 02:04:16 pm »
http://www.ibuttonlink.com/linkusb.aspx

any device working as serial device with owfs should work

br Hari
« Last Edit: January 20, 2011, 02:14:58 pm by hari »
rock your home - http://www.agocontrol.com home automation

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #17 on: January 20, 2011, 07:13:37 pm »
Hi DragonK, Can you update the wiki page once up and running with the instructions on how to get working and maybe list equipment etc? http://wiki.linuxmce.org/index.php/1-Wire

I've got some stuff on order from www.hobby-boards.com so should get that in the next few weeks and I can update also.


Cheers,


Once im done I'll updatethe wiki, thats if you dont beat me to it. _IF_ is getting me the 1-wire interface and sensors. Cant get it in South Africa......  :(

Karel

Kezza

  • Veteran
  • ***
  • Posts: 146
    • View Profile
Re: 1wire support
« Reply #18 on: January 20, 2011, 08:55:53 pm »
Once im done I'll updatethe wiki, thats if you dont beat me to it. _IF_ is getting me the 1-wire interface and sensors. Cant get it in South Africa......  :(

Karel

Ok thats cool had thought you already had the gear. Hobby-boards seem to ship worldwide by the looks of it and I presume there stuff is all good.

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #19 on: January 20, 2011, 08:58:32 pm »
Hari,

I cant choose the template... says "ERROR: the device template does not exist or invalid controlled via"
template number i chose was 2161

Karel

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 1wire support
« Reply #20 on: January 20, 2011, 09:05:55 pm »
from schema.linuxmce.org:
Code: [Select]
PK_DeviceTemplate_DeviceCategory_ControlledVia FK_DeviceTemplate FK_DeviceCategory Description RerouteMessagesToParent AutoCreateChildren psc_id psc_batch psc_user psc_frozen psc_mod psc_restrict
5167 2161 6 0 0 2200 3085 35987 0 2011-01-17 12:03:39

FK_DeviceCategory == 6 # Computers

that should be fine and the template does exist...

Did you sqlCVS update the whole DCE repository?

br Hari
rock your home - http://www.agocontrol.com home automation

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #21 on: January 20, 2011, 09:13:29 pm »
Thanx for ur patients with me Hari,

I did a sqlCVS update via the webadmin, and checked everything. But I dont think it did update, There wasnt much traffic on my router when i did it.....

Im I doing something wrong?

Karel

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 1wire support
« Reply #22 on: January 20, 2011, 10:06:49 pm »
just tested with rperre on irc (thanks), he was able to create a child device of the core.

br Hari
rock your home - http://www.agocontrol.com home automation

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: 1wire support
« Reply #23 on: January 21, 2011, 02:15:28 am »

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: 1wire support
« Reply #24 on: January 21, 2011, 02:53:36 am »
So how is everyone connecting the sensors up?

I had some old phone cords around but found that some have only 2 wires and some have 4 but none have the power (pin1) and Data (3) and Ground (4).  is everyone using parasitic power ie just 3 and 4?

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 1wire support
« Reply #25 on: January 21, 2011, 09:09:41 am »
I did a sqlCVS update via the webadmin, and checked everything.

Did you select all repos, or did you select all tables within dce? Make sure to not do the former, but only the latter

DragonK

  • Guru
  • ****
  • Posts: 446
    • View Profile
Re: 1wire support
« Reply #26 on: January 21, 2011, 05:59:16 pm »
Posde,

Is this correct? It seems to take longer now.
This time only chose dce.

Karel

Edit: What should the default username and password be?
Mine is "anonymous" and "nopass"
« Last Edit: January 21, 2011, 06:03:18 pm by DragonK »

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 1wire support
« Reply #27 on: January 21, 2011, 07:02:20 pm »
username and password are irrelevant and stay the same. They are only relevant from your system to sqlCVS, not for the other way round.

Techstyle

  • Addicted
  • *
  • Posts: 674
    • View Profile
    • Techstyle UK Ltd.
Re: 1wire support
« Reply #28 on: January 22, 2011, 06:48:38 pm »
Hari,

I am struggling a little getting this to work but I have written down everything I did as I was going to update the Wiki page, here goes:

1. install this package: 'sudo apt-get install libmysqlclient-dev'
You may receive the following message:

"Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libmysqlclient-dev is a virtual package provided by:
  libmysqlclientXX-dev 5.0.67-0ubuntu6.1
You should explicitly select one to install.
E: Package libmysqlclient-dev has no installation candidate"

if you do receive this message the re-run the command replacing the your original command with the start of line 4 of the message, for example: 'sudo apt-get install libmysqlclientXX-dev'

2. go to http://sourceforge.net/projects/owfs/files/owfs and find out what the latest package is, for me that was 'owfs-2.8p5.tar.gz' in directory 'http://sourceforge.net/projects/owfs/files/owfs/2.8p5/' (i.e. http://sourceforge.net/projects/owfs/files/owfs/2.8p5/owfs-2.8p5.tar.gz - we will use this later) I will use http://sourceforge.net/projects/owfs/files/owfs/XXXXX/owfs-XXXXX.tar.gz in the steps.

2. follow the code below, you may have to have root privileges so use 'sudo' in front of the follow code:

Code: [Select]
cd /usr/src
wget http://sourceforge.net/projects/owfs/files/owfs/XXXXX/owfs-XXXXX.tar.gz
tar zxpf owfs-XXXXX.tar.gz
cd owfs-XXXXX
./configure
make
make install

(from Hari's post in the forum - http://forum.linuxmce.org/index.php?topic=11328.0)
Code: [Select]
sudo -i
cd /usr/src/
svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/src LinuxMCE-0810/src
cp /usr/pluto/lib/* LinuxMCE-0810/src/lib
cd LinuxMCE-0810/src/OneWire
make bin


I get some errors at this point:

Code: [Select]
Computing dependencies for ../Gen_Devices/OneWireBase.cpp done
Computing dependencies for OneWire.cpp done
Computing dependencies for Main.cpp done
g++ -c -I.. -I../DCE -I/usr/include/mysql -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/opt/owfs/include  -Wall -fPIC -ggdb3  Main.cpp -o Main.o
g++ -c -I.. -I../DCE -I/usr/include/mysql -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/opt/owfs/include  -Wall -fPIC -ggdb3  OneWire.cpp -o OneWire.o
OneWire.cpp:26:21: error: owcapi.h: No such file or directory
OneWire.cpp: In member function ‘virtual bool DCE::OneWire::GetConfig()’:
OneWire.cpp:74: error: ‘OW_init’ was not declared in this scope
OneWire.cpp: In member function ‘virtual void DCE::OneWire::readDevices()’:
OneWire.cpp:243: error: ‘OW_get’ was not declared in this scope
make: *** [OneWire.o] Error 1

Any ideas what went wrong?

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: 1wire support
« Reply #29 on: January 22, 2011, 06:50:01 pm »
OWFS was not properly installed. You need to make sure it's compiled and installed.

-Thom