Board indexPortal
Last visit was: It is currently 6. Dec 2019 05:02


All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
FollowersFollowers: 1
BookmarksBookmarks: 0
Views: 2502

AuthorMessage
 Post subject: EIBD with Raspberry and HS [Tutorial 50%]
PostPosted: 5. Dec 2013 13:49 

Joined: 12.2013
Posts: 3
Gender: None specified
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


Last edited by River on 10. Dec 2013 17:19, edited 1 time in total.

Top
Offline Profile  
 
 Post subject: Re: EIBD with Raspberry and HS
PostPosted: 5. Dec 2013 14:07 

Joined: 05.2013
Posts: 645
Gender: None specified
Hi,
Is there no telegramm, or you only can't see it in the GA Monitor?

_________________
liebe Grüße
Andreas


Top
Offline Profile  
 
 Post subject: Re: EIBD with Raspberry and HS
PostPosted: 5. Dec 2013 16:31 

Joined: 12.2013
Posts: 3
Gender: None specified
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..


Top
Offline Profile  
 
 Post subject: Re: EIBD with Raspberry and HS
PostPosted: 10. Dec 2013 17:18 

Joined: 12.2013
Posts: 3
Gender: None specified
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):

First, we need to deactivate the getty to serial port:
Code:
#sudo nano /etc/inittab

Scroll all the way down till you see:
Code:
#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:
Code:
#sudo nano /boot/cmdline.txt

And remove all /dev/ttyAMA0 things in order to make the file look like this
Code:
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:
#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:
#cd pthsem-2.0.8
#./configure
#make
#sudo make install

Configure bcusdk:
Code:
#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)
Code:
#sudo route add 224.0.23.12 dev eth0

Create log files
Code:
#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:
#eibd -t 1023 -i -D -T -S --eibaddr=0.0.254 ft12:/dev/ttyAMA0


Now my problem... I'm starting EIBD with
Code:
#eibd -t 1023 -i -D -T -S --eibaddr=0.0.254 ft12:/dev/ttyAMA0


And this is what I see:
Image

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!


Top
Offline Profile  
 
 Post subject: Re: EIBD with Raspberry and HS [Tutorial 50%]
PostPosted: 13. Apr 2014 23:52 

Joined: 04.2014
Posts: 5
Gender: None specified
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


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group | Theme created StylerBB.net
phpBB3 free Forum by UserBoard.org | All Rights Reserved.
» Contact & Abuse Support-Forum Gooof Webdesign free forum Dein Forumo Forum web tracker