Install EIB

From xPL
Revision as of 12:30, 23 March 2014 by Fcorthay (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The EIB / KNX bus can be accessed in multiple ways. I use a Tapko EIB/KNX to RS232 converter. It requires following connections: RxD (pin 2), TxD (pin 3), DTR (pin 4, powers the device), Gnd (pin 5).

Before all,make sure you have installed an xPL hub and an xPL serial port device.

Install xPL EIB bridge

Download the Tapko EIB bridge script.

Move the script to xPL scripts directory:

SCRIPTS_BASE_DIR=/home/control/Documents/Controls
mv xpl-eib-Tapko.pl $SCRIPTS_BASE_DIR
chown control:users $SCRIPTS_BASE_DIR/*.pl
chmod 775 $SCRIPTS_BASE_DIR/*.pl

Test xPL EIB bridge

The test is shown here on a Linux machine such as a BeagleBone. It has to be slightly adapted on Mac OS.

Open a first terminal window (on any machine with xPL installed) and monitor the xPL protocol:

SCRIPTS_BASE_DIR=/home/control/Documents/Controls
$SCRIPTS_BASE_DIR/xpl-monitor.pl -vf

If the xPL serial port device isn't running, launch it in a second window:

su control
SCRIPTS_BASE_DIR=/home/control/Documents/Controls
ll /dev/ttyO*
$SCRIPTS_BASE_DIR/xpl-serial_port.pl -h
$SCRIPTS_BASE_DIR/xpl-serial_port.pl -v -n eib -e '\x0A\x0D' /dev/ttyO1 baudrate 9600 databits 8 parity none stopbits 1 handshake none

Open a further terminal window and start the xPL EIB bridge:

SCRIPTS_BASE_DIR=/home/control/Documents/Controls
$SCRIPTS_BASE_DIR/xpl-eib-Tapko.pl -v -n home -s dspc-serPort.eib -v

Open yet another terminal and send a message to the EIB bridge:

su control
SCRIPTS_BASE_DIR=/home/control/Documents/Controls
$SCRIPTS_BASE_DIR/xpl-send.pl -v -t cmnd -d dspc-eib.home -c eib.basic group='1/1/1' data=0x01

This should turn on EIB device 1/1/1. The monitor window should show how the EIB budge message triggered a serial port message for the Tapko EIB/KNX to RS232 converter.

Launch the xPL serial port device at startup

The EIB bridge is to be launched after the xPL serial port device which in turn is to be launched after the xPL hub.

Installing the serial port device to launch at system boot is described in the xPL serial port page.

Ubuntu

Mac OS