Difference between revisions of "Mini-DCE eibd"

From LinuxMCE
Jump to: navigation, search
(Install eibd)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
[[Category: EIB/KNX]]
 +
[[category: Automation]]
 +
 
= Install eibd =
 
= Install eibd =
  
Line 5: Line 8:
 
Prerequisites (from README BCU SDK)
 
Prerequisites (from README BCU SDK)
  
        The BCU SDK needs the following software to be installed:
+
The BCU SDK needs the following software to be installed:
        • A reasonably recent Linux system (e.g. Fedora Core 2 or Debian Sarge)
+
* A reasonably recent Linux system (e.g. Fedora Core 2 or Debian Sarge)
        • GCC and G++ in version 3.3 or higher
+
* GCC and G++ in version 3.3 or higher
        • libxml2 (plus development files) 2.6.16 or higher
+
* libxml2 (plus development files) 2.6.16 or higher
        • flex (Debian users must install flex-old, if it is present, instead of flex)
+
* flex (Debian users must install flex-old, if it is present, instead of flex)
        • bison
+
* bison
        • GNU make
+
* GNU make
        • xsltproc (part of libxslt)
+
* xsltproc (part of libxslt)
        • xmllint (part of libxml2 sources)
+
* xmllint (part of libxml2 sources)
        • indent (if you want a readable source code for the PHP and Java clients)
+
* indent (if you want a readable source code for the PHP and Java clients)
        • A java compiler and a jar tool, if you want to build the Java library.
+
* A java compiler and a jar tool, if you want to build the Java library.
 
+
  
 
Compile Pthsem
 
Compile Pthsem
  
        ° wget http://sourceforge.net/projects/bcusdk/files/pthsem/pthsem_2.0.8.tar.gz
+
wget http://sourceforge.net/projects/bcusdk/files/pthsem/pthsem_2.0.8.tar.gz
        ° ./configure (''I add -D_FORTIFY_SOURCE=0 to the CFLAGS while compiling pthsem. There seems to be a  
+
./configure # (''I add -D_FORTIFY_SOURCE=0 to the CFLAGS while compiling pthsem. There seems to be a problem with FORTIFY_SOURCE on some archtiectures.'').
                      problem with FORTIFY_SOURCE on some archtiectures.'').
+
make
        ° make
+
make install
        ° make install
+
 
+
  
 
Compile EIBD from BCU SDK
 
Compile EIBD from BCU SDK
  
        ° wget http://sourceforge.net/projects/bcusdk/files/bcusdk/bcusdk_0.0.5.tar.gz
+
wget http://sourceforge.net/projects/bcusdk/files/bcusdk/bcusdk_0.0.5.tar.gz
        ° ./configure --without-pth-test --enable-onlyeibd --enable-eibnetiptunnel
+
./configure --without-pth-test --enable-onlyeibd --enable-eibnetiptunnel
        ° make
+
make
        ° make install
+
make install
  
 
Now modify rc.local  
 
Now modify rc.local  
  
        /sbin/route add 224.0.23.12 dev eth0
+
/sbin/route add 224.0.23.12 dev eth0
        /usr/bin/eibd -i -u --eibaddr=0.0.1 --daemon=/var/log/eibd.log ipt:your_gateway_ip
+
/usr/bin/eibd -i -u --eibaddr=0.0.1 --daemon=/var/log/eibd.log ipt:your_gateway_ip
 
+
  
 
= Compile EIB_eibd =
 
= Compile EIB_eibd =
Line 44: Line 43:
 
I modify the Makefile in src:
 
I modify the Makefile in src:
  
        ° DCEDEVS=ZWave EIB-eibd Tongdy_RS485 # EnOcean_TCM120
+
DCEDEVS=ZWave EIB-eibd Tongdy_RS485 # EnOcean_TCM120

Latest revision as of 01:20, 28 September 2015


Install eibd

I compiled eibd from source:

Prerequisites (from README BCU SDK)

The BCU SDK needs the following software to be installed:

  • A reasonably recent Linux system (e.g. Fedora Core 2 or Debian Sarge)
  • GCC and G++ in version 3.3 or higher
  • libxml2 (plus development files) 2.6.16 or higher
  • flex (Debian users must install flex-old, if it is present, instead of flex)
  • bison
  • GNU make
  • xsltproc (part of libxslt)
  • xmllint (part of libxml2 sources)
  • indent (if you want a readable source code for the PHP and Java clients)
  • A java compiler and a jar tool, if you want to build the Java library.

Compile Pthsem

wget http://sourceforge.net/projects/bcusdk/files/pthsem/pthsem_2.0.8.tar.gz
./configure  # (I add -D_FORTIFY_SOURCE=0 to the CFLAGS while compiling pthsem. There seems to be a problem with FORTIFY_SOURCE on some archtiectures.).
make
make install

Compile EIBD from BCU SDK

wget http://sourceforge.net/projects/bcusdk/files/bcusdk/bcusdk_0.0.5.tar.gz
./configure --without-pth-test --enable-onlyeibd --enable-eibnetiptunnel
make
make install

Now modify rc.local

/sbin/route add 224.0.23.12 dev eth0
/usr/bin/eibd -i -u --eibaddr=0.0.1 --daemon=/var/log/eibd.log ipt:your_gateway_ip

Compile EIB_eibd

I modify the Makefile in src:

DCEDEVS=ZWave EIB-eibd Tongdy_RS485 # EnOcean_TCM120