Skip to content
Lieven Hollevoet edited this page Sep 22, 2014 · 1 revision

Table of Contents

Connect to the EIB

If you want to communicate with the EIB, you have two main possibilities.

You can install a BCU1 kernel driver (http://www.auto.tuwien.ac.at/%7Emkoegler/index.php/eibdriver) on your Linux machine and talk directly to that driver. For that you have to set the configuration parameter eib_device to the name of the device file: eib_device = /dev/eib

Or you can install somewhere (in the net) an eibd (http://www.auto.tuwien.ac.at/%7Emkoegler/index.php/eibd) and talk to this deamon via network. Set eib_device = ip:localhost to talk to an eibd on the same machine where MH runs. This way you can also run MH under MS-Windows and eibd on another machine under Linux.

eibd can use several backends, i.e. ways to communicate with the EIB. The most important here is the PEI16 communication which uses the same kernel driver as above or the PEI10 communication which needs a BCU2, but works very reliable.

Please see the documentation on http://www.auto.tuwien.ac.at/%7Emkoegler/index.php/eibd for more information about eibd and its backends.

The protocol "local" is not implemented.

Build eibd

The bcusdk is made to develop software for BCUs. If you only want to use eibd please follow the following guide to create eibd only. Do everything as root.

Start eibd

To start eibd to allow connections via network; using ft12 backend (BCU2 only): eibd -i ft12:/dev/ttyS1 -S -D Be aware that it may be unsecure to allow connections to eibd from the internet!

Define EIB_Items

To define EIB_Items follow the instructions in code/examples/eib_items.mht. You can also add EIB items via the normal item editor http://localhost:8080/bin/items.pl.

Try it from Command Line

You could check the functionallity of your EIB from the command line through the following command:

  • Display any received EIB Messages on Console:
    • vbusmonitor1 ip:127.0.0.1 (IP of the host of your eibd daemon)
  • Set a group address (use one of your actors)
    • groupswrite ip:127.0.0.1 1/2/3 0 (1/2/3 is the Group Address) (0/1is on or off)

Common Problems

  • If you dont get the current status (or any messages) back from the EIB Bus (if you connecting to a USB EIB Interface) the following commands may help to fix it:
    • Stop "eibd" deamon
    • bcuaddrtab -w 0 usb:2:3 (you have to use your USB address of the EIB connection)
    • Start "eibd" daemon
Clone this wiki locally