Author Topic: EIB/KNX configuration  (Read 12802 times)

girlaldo

  • Regular Poster
  • **
  • Posts: 22
    • View Profile
EIB/KNX configuration
« 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



Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB/KNX configuration
« Reply #1 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:
Code: [Select]
/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.

girlaldo

  • Regular Poster
  • **
  • Posts: 22
    • View Profile
Re: EIB/KNX configuration
« Reply #2 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

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB/KNX configuration
« Reply #3 on: December 25, 2016, 09:41:27 pm »
Merry Christmas, good luck, and thanks for the coffee :)

girlaldo

  • Regular Poster
  • **
  • Posts: 22
    • View Profile
Re: EIB/KNX configuration
« Reply #4 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


Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB/KNX configuration
« Reply #5 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

girlaldo

  • Regular Poster
  • **
  • Posts: 22
    • View Profile
Re: EIB/KNX configuration
« Reply #6 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?

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB/KNX configuration
« Reply #7 on: December 26, 2016, 11:32:40 pm »
Hmm...

Please run dpkg -l | grep eib and paste it here.

girlaldo

  • Regular Poster
  • **
  • Posts: 22
    • View Profile
Re: EIB/KNX configuration
« Reply #8 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





Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB/KNX configuration
« Reply #9 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.
Code: [Select]
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

girlaldo

  • Regular Poster
  • **
  • Posts: 22
    • View Profile
Re: EIB/KNX configuration
« Reply #10 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?


 

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB/KNX configuration
« Reply #11 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 :)

girlaldo

  • Regular Poster
  • **
  • Posts: 22
    • View Profile
Re: EIB/KNX configuration
« Reply #12 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

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: EIB/KNX configuration
« Reply #13 on: December 28, 2016, 01:43:57 pm »
What version eibd are you running?

girlaldo

  • Regular Poster
  • **
  • Posts: 22
    • View Profile
Re: EIB/KNX configuration
« Reply #14 on: December 28, 2016, 03:18:45 pm »
lmce-eib-eibd                               2.0.0.47.15121131752                                             i386         <insert up to 60 chars description>