LinuxMCE Forums

General => Users => Topic started by: girlaldo on December 24, 2016, 09:12:03 AM

Title: EIB/KNX configuration
Post by: girlaldo on December 24, 2016, 09:12:03 AM
Hi all,
I have got IPS/S2.1 IP Interface,MDRC from ABB.
and Linuxmce 14.04 running on a vbox vm
I read this wiki page
http://wiki.linuxmce.org/index.php/EIB/KNX_with_eibd
that states
installing eibd, only if LinuxMCE < 10.04
farther more on http://www.auto.tuwien.ac.at/~mkoegler/index.php/eibdeb
I have found this statement
Note, that they can be older than the released sources.
...
To install all packages, use the command
apt-get install bcusdk

My question is:
is there anybody that did manage to have EIB/IP interface working?
Please tell me what to do!
Thank you so much


Title: Re: EIB/KNX configuration
Post by: Marie.O on December 24, 2016, 09:57:46 PM
I am running KNX in my home, with a KNX/IP interface between the LinuxMCE and the KNX world.

Install lmce-eib-eibd, which should install the required dependencies.

I have the following code in /etc/rc.local on my core:

/sbin/route add 224.0.23.12 dev eth0
/usr/bin/eibd --no-tunnel-client-queuing -D -T -R -S -i -u --eibaddr=0.0.1 --daemon=/var/log/eibd.log ipt:192.168.80.201


Not sure if the route is needed (eth0 is my outside interface). I can't remember what it was for.

See if the above helps.
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 25, 2016, 07:49:50 PM
Thank you posde,
I'm glade you have knx so may be i'll disturb you again.
I'll try next days to put up the interface following your instructions and when finished I buy you a coffee.
bye
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 25, 2016, 09:41:27 PM
Merry Christmas, good luck, and thanks for the coffee :)
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 26, 2016, 05:58:27 PM
May be my /etc/apt/sources.list is not ready for the eibd package?
Here is the output of

aldo@dcerouter:~$ sudo apt-get install lmce-eib-eibd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libeibclient0 libmath-basecnv-perl
The following NEW packages will be installed:
  libeibclient0 libmath-basecnv-perl lmce-eib-eibd
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/404 kB of archives.
After this operation, 1.675 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  libeibclient0 lmce-eib-eibd
Authentication warning overridden.
Selecting previously unselected package libmath-basecnv-perl.
(Reading database ... 198567 files and directories currently installed.)
Preparing to unpack .../libmath-basecnv-perl_1.8.B59BrZX-1_all.deb ...
Unpacking libmath-basecnv-perl (1.8.B59BrZX-1) ...
Selecting previously unselected package libeibclient0.
Preparing to unpack .../libeibclient0_0.0.5-1~lmce0~trusty1_i386.deb ...
Unpacking libeibclient0 (0.0.5-1~lmce0~trusty1) ...
Selecting previously unselected package lmce-eib-eibd.
Preparing to unpack .../lmce-eib-eibd_2.0.0.47.15121131752_i386.deb ...
Leaving 'diversion of /usr/pluto/bin/EIB to /usr/pluto/bin/EIB.pluto-eib by lmce-eib-eibd'
Unpacking lmce-eib-eibd (2.0.0.47.15121131752) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libmath-basecnv-perl (1.8.B59BrZX-1) ...
Setting up libeibclient0 (0.0.5-1~lmce0~trusty1) ...
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
Warning: The home dir /var/run/eib you specified already exists.
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Errors were encountered while processing:
lmce-eib-eibd
E: Sub-process /usr/bin/dpkg returned an error code (1

what shall I do? please!
thanks

Title: Re: EIB/KNX configuration
Post by: Marie.O on December 26, 2016, 06:16:23 PM
apt-get remove --purge whatever *eib* package you might have installed, and redo the install of lmce-eib-eibd
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 26, 2016, 06:50:48 PM
Everything seems to be removed right?

aldo@dcerouter:~$ sudo apt-get remove --purge lmce-eib-eibd
[sudo] password for aldo:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libeibclient0 libmath-basecnv-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  lmce-eib-eibd*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1.521 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 198580 files and directories currently installed.)
Removing lmce-eib-eibd (2.0.0.47.15121131752) ...
aldo@dcerouter:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libeibclient0 libmath-basecnv-perl
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 155 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 198575 files and directories currently installed.)
Removing libeibclient0 (0.0.5-1~lmce0~trusty1) ...
Removing libmath-basecnv-perl (1.8.B59BrZX-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1)

And that is what happen  when installing:

aldo@dcerouter:~$ sudo apt-get install lmce-eib-eibd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libeibclient0 libmath-basecnv-perl
The following NEW packages will be installed:
  libeibclient0 libmath-basecnv-perl lmce-eib-eibd
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/404 kB of archives.
After this operation, 1.675 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  libeibclient0 lmce-eib-eibd
Authentication warning overridden.
Selecting previously unselected package libmath-basecnv-perl.
(Reading database ... 198567 files and directories currently installed.)
Preparing to unpack .../libmath-basecnv-perl_1.8.B59BrZX-1_all.deb ...
Unpacking libmath-basecnv-perl (1.8.B59BrZX-1) ...
Selecting previously unselected package libeibclient0.
Preparing to unpack .../libeibclient0_0.0.5-1~lmce0~trusty1_i386.deb ...
Unpacking libeibclient0 (0.0.5-1~lmce0~trusty1) ...
Selecting previously unselected package lmce-eib-eibd.
Preparing to unpack .../lmce-eib-eibd_2.0.0.47.15121131752_i386.deb ...
Leaving 'diversion of /usr/pluto/bin/EIB to /usr/pluto/bin/EIB.pluto-eib by lmce-eib-eibd'
Unpacking lmce-eib-eibd (2.0.0.47.15121131752) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libmath-basecnv-perl (1.8.B59BrZX-1) ...
Setting up libeibclient0 (0.0.5-1~lmce0~trusty1) ...
Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
Warning: The home dir /var/run/eib you specified already exists.
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Errors were encountered while processing:
lmce-eib-eibd
E: Sub-process /usr/bin/dpkg returned an error code (1)

what is wrong with it?
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 26, 2016, 11:32:40 PM
Hmm...

Please run dpkg -l | grep eib and paste it here.
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 27, 2016, 09:47:31 AM
Here is the paste after last installation:

aldo@dcerouter:~$ dpkg -l | grep eib
ii  libeibclient0                               0.0.5-1~lmce0~trusty1                                            i386         eibd client library
iF  lmce-eib-eibd                               2.0.0.47.15121131752                                             i386         <insert up to 60 chars description>

and nothing to paste after
sudo apt-get remove --purge libeibclient0
and
sudo apt-get autoremove

aldo@dcerouter:~$ dpkg -l | grep eib
aldo@dcerouter:~$

and since installation says

The system user `eib' already exists. Exiting.
eibd: unrecognized service

I also did

aldo@dcerouter:~$ sudo userdel eib
aldo@dcerouter:~$

and I made a new installation but still get:

Adding system user `eib' (UID 128) ...
Adding new user `eib' (UID 128) with group `nogroup' ...
Creating home directory `/var/run/eib' ...
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Errors were encountered while processing:
lmce-eib-eibd
E: Sub-process /usr/bin/dpkg returned an error code (1)

I thank you posde and I really appreciate very much your help




Title: Re: EIB/KNX configuration
Post by: Marie.O on December 27, 2016, 01:18:41 PM
The problem is that the bcusdk eib client and server package doesn't seem to get installed.
ddcerouter_112602:~# dpkg -l | grep eib
ii  eibd-client-sources                         0.0.5                                                      all          Sources of the eibd client programs
ii  eibd-clients                                0.0.5                                                      i386         eibd clients
ii  eibd-server                                 0.0.5                                                      i386         eibd server
ii  libeibclient-dev                            0.0.5                                                      i386         eibd client library
ii  libeibclient0                               0.0.5                                                      i386         eibd client library
ii  lmce-eib-eibd                               2.0.0.47.15121131752                                       i386         <insert up to 60 chars description>
dcerouter_112602:~# apt-cache policy eibd-server
eibd-server:
  Installed: 0.0.5
  Candidate: 0.0.5
  Version table:
     0.0.5-1~lmce0~trusty1 0
        500 http://deb.linuxmce.org/ubuntu/ trusty/unstable i386 Packages
        500 http://deb.linuxmce.org/ubuntu/ trusty/main i386 Packages
dcerouter_112602:~# apt-cache policy eibd-clients
eibd-clients:
  Installed: 0.0.5
  Candidate: 0.0.5
  Version table:
     0.0.5-1~lmce0~trusty1 0
        500 http://deb.linuxmce.org/ubuntu/ trusty/unstable i386 Packages
        500 http://deb.linuxmce.org/ubuntu/ trusty/main i386 Packages

Title: Re: EIB/KNX configuration
Post by: girlaldo on December 27, 2016, 04:38:37 PM
I tried two installations: the one I am working on that was done on a vbox vm kubuntu 14.04 installed by the network process and another that I made as a vbox vm starting from scratch by LMCE-1404-20161119175532-i386.iso.
Both of them didn't have eibd pakages.
The network one didn't even had in the sources.list this record

http://deb.linuxmce.org/ubuntu/ trusty/unstable i386 Packages

By the way I managed, thanks to your help, in both cases to get this situation:

aldo@dcerouter:~$ sudo dpkg -l | grep eib
ii  eibd-client-sources                         0.0.5-1~lmce0~trusty1                                            all          Sources of the eibd client programs
ii  eibd-clients                                0.0.5-1~lmce0~trusty1                                            i386         eibd clients
ii  eibd-server                                 0.0.5-1~lmce0~trusty1                                            i386         eibd server
ii  libeibclient-dev                            0.0.5-1~lmce0~trusty1                                            i386         eibd client library
ii  libeibclient0                               0.0.5-1~lmce0~trusty1                                            i386         eibd client library

but installing lmce-eib-eibd
I always get the same error:

Setting up lmce-eib-eibd (2.0.0.47.15121131752) ...
Warning: The home dir /var/run/eib you specified already exists.
The system user `eib' already exists. Exiting.
eibd: unrecognized service
dpkg: error processing package lmce-eib-eibd (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libeibclient-dev (0.0.5-1~lmce0~trusty1) ...
Errors were encountered while processing:
lmce-eib-eibd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Could you show me your
etc/init/eibd.conf
if it exist. Do you think that I could try to edit it myself?
many thanks

PS I explained you my installation story because if I understand you can signal the situation to whom that prepare the iso files.
Do you?



Title: Re: EIB/KNX configuration
Post by: Marie.O on December 27, 2016, 11:28:43 PM
I am not using the eibd service as a service, but starting it "manually" from rc.local as outlined in a post earlier.

Check /var/lib/dpkg/info/lmce-eib-eibd.postinst and put a

|| :

pipe pipe colon, behind the the eibd start / restart lines. That way, it will get installed. And the eibd startup line that I quoted earlier to rc.local, restart your system, and see what happens.

And yes, phenigma and I are currently taking care of the builds, I started it at one point, l3mce continued it, phenigma works on it, and everybody hopes things work out :)
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 28, 2016, 01:27:52 PM
If I remove lmce-eib-eibd even the postinst disappear
so I made the install without a previous remove with the postinst as follow

# start eibd daemon if not running, else restart
if pidof eibd > /dev/null; then
        service eibd restart ||:
else
        service eibd start ||:
fi

aldo@dcerouter:~$ sudo apt-get install lmce-eib-eibd                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lmce-eib-eibd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

after rebooting with rc.local as you wrote I checked

aldo@dcerouter:~$ ps -aux | grep eib
aldo      3221  0.0  0.0   4696  2028 pts/24   S+   13:01   0:00 grep --color=auto eib

then I gave the command as below and I got the the segmentation fault

aldo@dcerouter:~$ /usr/bin/eibd --no-tunnel-client-queuing -D -T -R -S -i -u --eibaddr=1.1.225 --daemon=/var/log/eibd.log ipt:192.168.80.137
Segmentation fault

thank you for your patientness
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 28, 2016, 01:43:57 PM
What version eibd are you running?
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 28, 2016, 03:18:45 PM
lmce-eib-eibd                               2.0.0.47.15121131752                                             i386         <insert up to 60 chars description>
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 28, 2016, 07:47:52 PM
not the device template, but the bcusdk version, ie.

dpkg -l | grep eib
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 29, 2016, 12:44:09 AM
ldo@dcerouter:~$ dpkg -l | grep eib
ii  eibd-client-sources                         0.0.5-1~lmce0~trusty1                                            all          Sources of the eibd client programs
ii  eibd-clients                                0.0.5-1~lmce0~trusty1                                            i386         eibd clients
ii  eibd-server                                 0.0.5-1~lmce0~trusty1                                            i386         eibd server
ii  libeibclient-dev                            0.0.5-1~lmce0~trusty1                                            i386         eibd client library
ii  libeibclient0                               0.0.5-1~lmce0~trusty1                                            i386         eibd client library
ii  lmce-eib-eibd                               2.0.0.47.15121131752                                             i386         <insert up to 60 chars description>
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 29, 2016, 01:29:30 PM
Hmm, that looks good, and identical to my packages.

Did you follow the wiki, specifically these two paragraphs:

Add a multicast route: route add 224.0.23.12 dev eth0 (eth0 is the network the KNX/IP interface is connected to
Start eibd with /usr/bin/eibd -D -T -R -S -i -u --daemon=/var/log/eibd.log ipt:10.1.2.179 (10.1.2.179 is the IP address of the KNX/IP interface

I did add the group address later as well, but first make sure the above is working
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 29, 2016, 02:23:22 PM
I always get Segmentation fault

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.0.2.2        0.0.0.0         UG    0      0        0 eth0
10.0.2.0        *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth1
192.168.80.0    *               255.255.255.0   U     0      0        0 eth1
224.0.23.12     *               255.255.255.255 UH    0      0        0 eth0
aldo@dcerouter:~$ /usr/bin/eibd -D -T -R -S -i -u --daemon=/var/log/eibd.log ipt:192.168.80.137
Segmentation fault
aldo@dcerouter:~$
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 29, 2016, 02:36:49 PM
The route should be to the network where you KNX/IP device is, ie. eth1 in your case.
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 29, 2016, 04:04:49 PM
eth0 is connected to the external network where 224.0.23.12 is, while eth1 is connected to my internal network where the subnet 192.168.80.0 is.
I can't ping 224.0.23.12 but I think nobody can while I can ping google dns
aldo@dcerouter:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=63 time=115 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=63 time=56.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=63 time=55.0 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=63 time=53.3 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=63 time=54.3 ms

and I can ping my knx/ip device:
aldo@dcerouter:~$ ping 192.168.80.137
PING 192.168.80.137 (192.168.80.137) 56(84) bytes of data.
64 bytes from 192.168.80.137: icmp_seq=1 ttl=128 time=2.84 ms
64 bytes from 192.168.80.137: icmp_seq=2 ttl=128 time=1.75 ms
64 bytes from 192.168.80.137: icmp_seq=3 ttl=128 time=1.79 ms
64 bytes from 192.168.80.137: icmp_seq=4 ttl=128 time=1.70 ms
64 bytes from 192.168.80.137: icmp_seq=5 ttl=128 time=1.74 ms

here are the interfaces
aldo@dcerouter:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:9c:bb:97 
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:963527 errors:0 dropped:0 overruns:0 frame:0
          TX packets:530814 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:744585766 (744.5 MB)  TX bytes:80129911 (80.1 MB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:78:71:f1 
          inet addr:192.168.80.1  Bcast:192.168.80.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:522962 errors:0 dropped:0 overruns:0 frame:0
          TX packets:941368 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:62990564 (62.9 MB)  TX bytes:1320045366 (1.3 GB
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 29, 2016, 04:11:39 PM
The route is a broadcast route that is needed for KNX/IP to work.
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 29, 2016, 04:27:50 PM
I can't understand why 224.0.23.12 should be searched inside my network.
Anyway I changed the routing table and I restarted eibd but the result was the same:
Segmentation fault

aldo@dcerouter:~$ sudo route delete 224.0.23.12 dev eth0
aldo@dcerouter:~$ sudo route add 224.0.23.12 dev eth1
aldo@dcerouter:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.0.2.2        0.0.0.0         UG    0      0        0 eth0
10.0.2.0        *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth1
192.168.80.0    *               255.255.255.0   U     0      0        0 eth1
224.0.23.12     *               255.255.255.255 UH    0      0        0 eth1
aldo@dcerouter:~$ /usr/bin/eibd --no-tunnel-client-queuing -D -T -R -S -i -u --eibaddr=1.1.255 --daemon=/var/log/eibd.log ipt:192.168.80.137
Segmentation fault
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 29, 2016, 05:24:31 PM
Does the logfile  /var/log/eibd.log  show anything of interest?
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 29, 2016, 05:25:44 PM
Oh, one more thing: execute eibd as root, ie. sudo eibd...
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 29, 2016, 05:58:04 PM
If I run it as root it doesn't reply nothing but the process does not run

aldo@dcerouter:~$ sudo /usr/bin/eibd --no-tunnel-client-queuing -D -T -R -S -i -u --eibaddr=1.1.255 --daemon=/var/log/eibd.log ipt:192.168.80.137
[sudo] password for aldo:
aldo@dcerouter:~$ ps -aux | grep eib
aldo     10347  0.0  0.0   4696  2040 pts/21   S+   17:52   0:00 grep --color=auto eib
aldo@dcerouter:~$ cat /var/log/eibd.log
cat: /var/log/eibd.log: No such file or directory
aldo@dcerouter:~$

anyway it is executable by anybody

aldo@dcerouter:~$ ls -al /usr/bin/eib*
-rwxr-xr-x 1 root root 397148 dic 11  2015 /usr/bin/eibd
-rwxr-xr-x 1 root root  38416 dic 11  2015 /usr/bin/eibnetdescribe
-rwxr-xr-x 1 root root  38420 dic 11  2015 /usr/bin/eibnetsearch

Title: Re: EIB/KNX configuration
Post by: Marie.O on December 29, 2016, 06:42:55 PM
I am really a bit at a loss here. Could you, just for giggles, please change your GA to 0.0.1, please, and see if that does make a difference. And please continue to run eibd via sudo, or as root.
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 29, 2016, 11:54:18 PM
I did the change of eibaddr to 0.0.1 but nothing changed as a result.
The eib address from ETS4 of my IP interface is 1.1.255 (if as eibaddr is meant the knx address of the IPS/S2.1 IP Interface,MDRC device that let me to connect to knx network with ETS4).
You have been so kind and you spent a lot of time trying helping me.
I'll buy you a coffee anyway and as last thing I 'd like you to do for me is to put a post reply when a new " lmce 14.04 i386 iso " file completed with eibd package will be ready and working.
Thank you so much
Title: Re: EIB/KNX configuration
Post by: Marie.O on December 30, 2016, 12:18:34 AM
It is not about the coffee.

It is about getting something working that usually works very straight forward. Let's get the stuff one by one:

* eibd must be run as root ie. sudo
* The --eib-address is not the address of the target KNX/IP gate, but our own
* run without --daemon= so you might be able to see additional notes
* remove one parameter after the other, until you get it to at least run

If outside ssh access is possible, let me know, and I'll get you a public key to put on your system, and maybe come into Freenode #linuxmce chat - I'm connected 24/7 but will be at the keyboard around 10 am CET
Title: Re: EIB/KNX configuration
Post by: girlaldo on December 30, 2016, 04:09:52 PM
GOOD NEWS:
I did the installation again starting from LMCE-1404-20161119175532-i386.iso and I realized that probably I didn't fill in the right place the 2195 core profile. In fact it isn't immediately so clear where to put it (at least for a newbie).
So I finally I managed to get the eibd running.
But new problems are coming. here they are
What are they?
========== NEW LOG SECTION ==========
1   12/30/16 14:41:48   40 (spawning-device)   Starting... 24
1   12/30/16 14:41:48   40 (spawning-device)   Found /usr/pluto/bin/EIB
10   12/30/16 14:41:48.366      Device: 40 starting.  Connecting to: localhost <0xb7265700>
10   12/30/16 14:41:48.366      Getting Config and Connect <0xb7265700>
10   12/30/16 14:41:48.368      Setting timeout for socket 4 to 20 <0xb7265700>
10   12/30/16 14:41:48.444      EIB GetConfig done <0xb7265700>
10   12/30/16 14:41:48.444      EIB populating <0xb7265700>
10   12/30/16 14:41:48.444        EIB populating done <0xb7265700>
10   12/30/16 14:41:48.444      EIB threadspawning done <0xb7265700>
10   12/30/16 14:41:48.445        Config and Connect OK <0xb7265700>
10   12/30/16 14:41:48.445      Requesthandler 0x9f797c0 (device: 40) runThread now running <0xb6261b40>
21   12/30/16 14:41:48.445      lock(0x9f7990c) (>94) MessageQueue: Command_Impl.cpp:852  <0xb6a62b40>
21   12/30/16 14:41:48.445      acquired(0x9f7990c) #0 (>94) MessageQueue Command_Impl.cpp:852  <0xb6a62b40>
21   12/30/16 14:41:48.445      start cond wait Command_Impl.cpp:852 (0x9f7990c)  <0xb6a62b40>
10   12/30/16 14:41:48.445      starting listening thread <0xb7263b40>
10   12/30/16 14:41:48.445      regenerating the connection <0xb7263b40>
05   12/30/16 14:41:53.446        error while opening eibd port, error count: <0xb7263b40>
05   12/30/16 14:41:58.446        error while opening eibd port, error count: <0xb7263b40>
05   12/30/16 14:42:03.446        error while opening eibd port, error count: <0xb7263b40>
....

....

10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40>
10   12/30/16 15:08:55.741      regenerating the connection <0xb7291b40


Title: Re: EIB/KNX configuration
Post by: Marie.O on December 30, 2016, 04:14:40 PM
I put it under the core, after all, that's where the eibd runs as well. But I do not think it really matters.

So, you now have the eibd running? That's good. Please paste

ps ax|grep eib -i

from the core, so I can have a look.
Title: Re: EIB/KNX configuration
Post by: girlaldo on January 04, 2017, 11:52:53 AM
Happy new year all,
I'm back again with my problems.
I do not know if after trying to configure my EIB/KNX interface of the new vm or after an autoremove, I got millions of log messages like those that I finally posted.
So I went back to the earlier lmce vbox vm that gave me the message segmentation fault when installing lmce-eib-eibd and without trying to add the 2195 profile I checked if eibd was running and I got this:

aldo@dcerouter:~$ ps ax | grep eib -i                                                                         
5646 pts/25   Sl+    0:00 /usr/pluto/bin/EIB -d 36 -r localhost -l /var/log/pluto/36_EIB.log
6091 pts/0    S+     0:00 grep --color=auto eib -i
19021 ?        Ss     0:00 /usr/bin/SCREEN -d -m -S KNX_via_eibd36 /usr/pluto/bin/Spawn_Device.sh 36 localhost EIB
19024 pts/25   Ss+    0:00 /bin/bash /usr/pluto/bin/Spawn_Device.sh 36 localhost EIB

looking at it my questions are:
is the eibd running ok?
If yes, how can I check it by the web admin interface?
And how can I test it switching one light on/of
And how can I configure lmce so that I can access my EIB/KNX from both lmce and ETS4 at the same time?
Thank you so much

Title: Re: EIB/KNX configuration
Post by: Marie.O on January 04, 2017, 02:43:12 PM
eibd is not running.

run it manually with the known commandline. if it works manually, run it from rc.local. Don't forget the route, and make sure that the VM environment has correctly setup networking.
Title: Re: EIB/KNX configuration
Post by: girlaldo on January 04, 2017, 05:51:20 PM
here is what happens

aldo@dcerouter:~$ sudo /usr/bin/eibd --no-tunnel-client-queuing -D -T -R -S -i -u --eibaddr=0.0.1 --daemon=/var/log/eibd.log ipt:192.168.80.137
aldo@dcerouter:~$ ps -ax | grep eib -i
16822 ?        Ss     0:00 /usr/bin/SCREEN -d -m -S KNX_via_eibd36 /usr/pluto/bin/Spawn_Device.sh 36 localhost EIB
16830 pts/25   Ss+    0:00 /bin/bash /usr/pluto/bin/Spawn_Device.sh 36 localhost EIB
30050 pts/4    S+     0:00 grep --color=auto eib -i
aldo@dcerouter:~$ cat /var/log/syslog | grep eibd]
Jan  4 17:37:03 dcerouter kernel: [ 1295.081957] eibd[29901]: segfault at bf1c2ffc ip b770eac3 sp bf1c3000 error 6 in libpthsem.so.20.0.28[b770c000+11000]

I try to reinstall the entire vm again
Title: Re: EIB/KNX configuration
Post by: Marie.O on January 04, 2017, 06:04:55 PM
You did setup the route, didn't you? Are you able to try an install on a real machine?
Title: Re: EIB/KNX configuration
Post by: Marie.O on January 04, 2017, 06:33:05 PM
One more thing, try the original version from Austria:

deb http://www.auto.tuwien.ac.at/~mkoegler/debian/ eib main


and

dcerouter_112602:~# cat /etc/apt/preferences
Package: *
Pin: origin "www.auto.tuwien.ac.at"
Pin-Priority: 1000