Jump to content

Mini-DCE eibd: Difference between revisions

From LinuxMCE
Rages (talk | contribs)
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Install on Pandaboard =
[[Category: EIB/KNX]]
[[category: Automation]]


I installed the Standalone DCE in a pandaboard with Ubuntu 11.04, these are the steps I followed:
= Install eibd =


* Install apache2 php5 and mysql, option phpmyadmin
I compiled eibd from source:
        ° sudo apt-get install apache2
        ° sudo apt-get install php5 libapache2-mod-php5
        ° sudo apt-get install mysql-server mysql-client
        ° sudo apt-get install libapache2-mod-auth-mysql php5-mysql
        ° in option sudo apt-get install phpmyadmin, sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin,
          You will need to edit /etc/phpmyadmin/config.inc.php and delete "//" from:
          // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;


* Install build requirements
Prerequisites (from README BCU SDK)
        ° sudo apt-get install build-essential g++ libmysqlclient15-dev libattr1-dev libxml2-dev


* Download the source
The BCU SDK needs the following software to be installed:
        ° mkdir -p /home/public/arm-pandaboard
* A reasonably recent Linux system (e.g. Fedora Core 2 or Debian Sarge)
        ° cd /home/public/arm-pandaboard
* GCC and G++ in version 3.3 or higher
        ° svn co http://svn.linuxmce.org/svn/people/hari/mini/ 
* 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.


* Make
Compile Pthsem
        ° cd /home/public/arm-pandaboard/mini/src/
        ° edit Makefile and delete AEt_EMC2000. I needed a bin file of EIB-eibd and I added this to the makefile,
          but we must have installed eibd.
        ° make
        ° now copy the bin directory in /usr/pluto/bin and in /opt/pluto/bin


* Import the database
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


        ° go in /home/public/arm-pandaboard/mini/dumps and run ./import.sh
Compile EIBD from BCU SDK


* Run mini-install.sh
wget http://sourceforge.net/projects/bcusdk/files/bcusdk/bcusdk_0.0.5.tar.gz
        ° go in /home/public/arm-pandaboard/mini/installer and run ./mini-install.sh
./configure --without-pth-test --enable-onlyeibd --enable-eibnetiptunnel
make
make install


* Install lmce_admin
Now modify rc.local
        ° download the source, go in /var/www/ and sudo svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/web/lmce-admin
        ° now for simplicity we can use phpMyAdmin, and see in the database pluto_main the table Users and
          Installers and insert the data of our users, your password should be md5, then (thanks Possy)
          in mysql:


          "update Users set password = md5 ('your-password) where PK_Users = 1;"
/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


        ° in Installers_Users modifiy userCanModifyInstallation at 1 and you check that FK_users and
= Compile EIB_eibd =
          FK_Installation match PK_Users and PK_Installetion in tables Users and Installetion.
 
I modify the Makefile in src:
 
DCEDEVS=ZWave EIB-eibd Tongdy_RS485 # EnOcean_TCM120

Latest revision as of 00: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