getting plugwise working in DomotiGa under VirtualBox

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

getting plugwise working in DomotiGa under VirtualBox

Post by daferra »

Hi All,

Can someone explane me what I am missing? I've installed on a MS windows machine, ubuntu 12.04 and the latest DomotiGa from SVN. from comandline I can see the plugwise dongle:

ferdi_vissers@VB-Domotica:~$ ls -al /dev/serial/by-id
total 0
drwxr-xr-x 2 root root 60 May 25 11:18 .
drwxr-xr-x 4 root root 80 May 25 11:18 ..
lrwxrwxrwx 1 root root 13 May 25 11:18 usb-FTDI_FT232R_USB_UART_A8009iF5-if00-port0 -> ../../ttyUSB0
ferdi_vissers@VB-Domotica:~$

in Domotiga I use these settings:
serial port = /dev/ttyUSB0
Polltime = 300
Firmware = 2010 (don't know if this is correct) everything is updated a couple of mouths ago)

the sysytem gives me the following message:
2012/05/25 11:57:37 Plugwise support enabled.
2012/05/25 11:57:37 Plugwise Error: Cannot open serial port (#5)
2012/05/25 11:57:37 ERROR: Plugwise interface FAILED to connect to Port /dev/ttyUSB0

Anyone who can point me in the right directory?

Best regards, Ferdi
wwolkers
Member
Member
Posts: 273
Joined: Tue Sep 23, 2008 10:10 am
Location: Netherlands
Contact:

Re: getting plugwise working in DomotiGa under VirtualBox

Post by wwolkers »

How are the permissions set on /dev/ttyUSB0 ?

In my setup, they were set to root,dialout which meant that I had to add the user under which domotiga is running to the dialout group.
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

Re: getting plugwise working in DomotiGa under VirtualBox

Post by daferra »

the same as your's. ls -l /dev/tty* gives me:
crw-rw---- 1 root dialout 188, 0 May 29 10:35 /dev/ttyUSB0

would you help me out with this. with userright I always make a mess off it.

Ferdi
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

Re: getting plugwise working in DomotiGa under VirtualBox

Post by daferra »

wwolkers wrote:How are the permissions set on /dev/ttyUSB0 ?

In my setup, they were set to root,dialout which meant that I had to add the user under which domotiga is running to the dialout group.
Hi wwolkers,

it looks like that my setting are the same. ls -l /dev/tty* gives me this ( I already did a chmod 66 )

crw-rw-rw- 1 root dialout 188, 1 May 29 10:35 /dev/ttyUSB1

Can you help me out with this? I am not good with userright settings.

Br, Ferdi
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: getting plugwise working in DomotiGa under VirtualBox

Post by RDNZL »

Read from left to right, the first 'crw' are for user 'root' the second 'rw' from group dialout, the last 'rw' for 'other'
So you should be able to read and write to it with a user who is not root and a user who is not part of group dialout.

Because of udev, these device are created dynamically, so you manual chmod steps are lost if this usb device is unplugged, system rebooted.
Try to add your user to group dialout for example.

Code: Select all

useradd -G dialout <user>
Regards, Ron.
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

Re: getting plugwise working in DomotiGa under VirtualBox

Post by daferra »

Thanks for this. I understand the rights for 'root' and for 'dialout'. 188 would be 'user i guess.

I added the username that i was using to the group 'dialout' and now the USB stick is correctly detected in DG. I know have a plugwize (zigbee) network and a Z-stick S2 (z-wave). going to find out how I get the rest working.

Br, Ferdi
Post Reply

Return to “DomotiGa Forum”