Seite 1 von 1
EIBD with Raspberry and HS [Tutorial 50%]
Verfasst: 5. Dez 2013, 13:49
von River
Hi!
I'm trying to send messages from Gira HS to Raspberry PI with EIBD to the KNX bus.
Actually I've tried the image from Selfbus wiki and I'm correctly connecting with ETS3 through KNXNET/IP. But unfortunately with HS don't receive any message.
If i do: eibd --trace=5 --listen-local ip:
Then I can see the messages from Gira HS each time I push a button, but the doubt is, how I pass the messages from IP to the bus?
The device is connected though raspberry pi serial port /dev/ttyAMA0
Re: EIBD with Raspberry and HS
Verfasst: 5. Dez 2013, 14:07
von oldcoolman
Hi,
Is there no telegramm, or you only can't see it in the GA Monitor?
Re: EIBD with Raspberry and HS
Verfasst: 5. Dez 2013, 16:31
von River
Hi Oldi!
I can see the telegram from HS when click to a button on quadclient while logged on the raspberry and put in the console the command:
#eibd --trace=5 --listen-local ip:
But no retransmission to /dev/ttyAMA0
By the way, I've formatted the card and now I'm installing plain EIBD (no knxweb) and try again to see if it works.
My raspi local ip is:
192.168.1.158 and i've added
#sudo route add 224.0.23.12 dev eth0
The homeserver EIB Connection config is:
EIBNET/IP routing
Physical Address: 0.0.254
Ip Routing Multicast: 224.0.23.12
Port 3671
iETS deactivated
I will tell my results..
Re: EIBD with Raspberry and HS
Verfasst: 10. Dez 2013, 17:18
von River
Hi Again!
I don't know if this is bad or good news, I've wipped entire raspberry pi SD card and started again, installing only EIBD.
For helping other people I've included my steps to get it working starting from fresh raspbian install (click on Spoiler to show):
► Text anzeigen
First, we need to deactivate the getty to serial port:
Scroll all the way down till you see:
Code: Alles auswählen
#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
COMMENT THIS LAST LINE ADDING A
# BEFORE T0:23
Now open this file:
And remove all /dev/ttyAMA0 things in order to make the file look like this
Code: Alles auswählen
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
The next step is to download pthsem and bcusdk and unzip it:
Code: Alles auswählen
#cd /tmp
#wget http://optimate.dl.sourceforge.net/project/bcusdk/pthsem/pthsem_2.0.8.tar.gz
#wget http://dfn.dl.sourceforge.net/project/bcusdk/bcusdk/bcusdk_0.0.5.tar.gz
#tar xvfz pthsem_2.0.8.tar.gz
#tar xvfz bcusdk_0.0.5.tar.gz
Time to configure pthsem:
Code: Alles auswählen
#cd pthsem-2.0.8
#./configure
#make
#sudo make install
Configure bcusdk:
Code: Alles auswählen
#cd ../bcusdk-0.0.5
#export LD_LIBRARY_PATH=/usr/local/lib
#./configure --with-pth=yes --without-pth-test --enable-onlyeibd --enable-eibnetip --enable-eibnetiptunnel --enable-eibnetipserver --enable-ft12 --enable-usb
#make
#sudo make install
#echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf.d/bcusdk.conf
#sudo ldconfig
Add a route so the raspberry listen to 224.0.24.12 (Broadcast)
Create log files
Code: Alles auswählen
#sudo touch /var/log/eibd.log
#sudo chown $USER /var/log/eibd.log
Start EIBD (later I will add the startup script in order to start EIBD automatically)
Code: Alles auswählen
#eibd -t 1023 -i -D -T -S --eibaddr=0.0.254 ft12:/dev/ttyAMA0
Now my problem... I'm starting EIBD with
Code: Alles auswählen
#eibd -t 1023 -i -D -T -S --eibaddr=0.0.254 ft12:/dev/ttyAMA0
And this is what I see:
So appears to see the messages flowing both directions (from KNX bus and from HS). But can't make the light to work. I'm doing some more tests but maybe someone has it working? Probably I'm starting eibd with the wrong commands?
Regards!
Re: EIBD with Raspberry and HS [Tutorial 50%]
Verfasst: 14. Apr 2014, 00:52
von fehli
Der HS läuft bei mir mit diesen Parametern.. also eigentlich nur -R dazu..
eibd -t 1023 -i -D -T -S -R --eibaddr=1.1.251 ft12:/dev/ttyAMA0
Gruß Fehli