Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
raspberry-enocean [2015/03/26 15:40] – [Install the Fhem.de building automation server for testing purposes] Stéphane Lavirotte | raspberry-enocean [2015/03/27 13:46] – [Compile EnOcean Link Library] Stéphane Lavirotte | ||
---|---|---|---|
Line 8: | Line 8: | ||
First of all you have to connect the EnOcean Pi to the Raspberry. Do this before powering up the Raspberry Pi. | First of all you have to connect the EnOcean Pi to the Raspberry. Do this before powering up the Raspberry Pi. | ||
- | The serial port of the GPIO must be disable (it's normally used for console debugging in standard configuration). | + | The serial port of the GPIO must be disable (it's normally used for console debugging in standard configuration). |
< | < | ||
Line 23: | Line 23: | ||
===== Install the Fhem.de building automation server for testing purposes ===== | ===== Install the Fhem.de building automation server for testing purposes ===== | ||
- | Fhem is a building automation server . We will use it to verify that everything is weel configured. | + | Fhem is a building automation server . We will use it to verify that everything is well configured. |
==== Install Fhem for testing purposes ==== | ==== Install Fhem for testing purposes ==== | ||
Line 55: | Line 55: | ||
Then take all your EnOcean devices and click on them: click on switches to send an event and click on the learn button to send a datagram to discover the equipment. Then you can go the '' | Then take all your EnOcean devices and click on them: click on switches to send an event and click on the learn button to send a datagram to discover the equipment. Then you can go the '' | ||
+ | |||
+ | So now you know that everything is functional without programming anything. | ||
+ | |||
+ | <note warning> | ||
+ | |||
+ | ===== Compile EnOcean Link Library ===== | ||
+ | |||
+ | To be able to develop your own program with EnOcean protocol, you will have to get and compile the library. | ||
+ | |||
+ | - Download [[https:// | ||
+ | - Instruction to [[https:// | ||
+ | * Modify '' | ||
+ | * To compile the library on the Raspberry Pi (not using cross-compilation) | ||
+ | < | ||
+ | sudo apt-get install autoconf automake autotools-dev m4 libtool | ||
+ | cd EOLink | ||
+ | chmod +x configure | ||
+ | ./configure CPPFLAGS=" | ||
+ | make | ||
+ | </ | ||
+ | * Libraries are compiled in the '' | ||
+ | |||
+ | To test the library you have multiple programs in '' | ||
+ | < | ||
+ | cd ../Tutorial | ||
+ | chmod +x Tutorial.sh | ||
+ | mv depcomp depcom.sav | ||
+ | mv missing missing.sav | ||
+ | ln -s ../ | ||
+ | ln -s ../ | ||
+ | ./ | ||
+ | cd Tutorials | ||
+ | ./Tutorial1 | ||
+ | </ | ||
+ |