Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous 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 14:56] (current) – [Headline] 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 41: | Line 41: | ||
</ | </ | ||
- | ==== Configure Fhem ==== | + | ==== Headline ==== |
+ | |||
+ | === Install Dolphin View Advance to test on Windows === | ||
+ | |||
+ | To be able to test your hardware and discover it under Windows, you will need to install Dolphin View (or Dolphin View Advanced). You can download this software after registration on [[https:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | === Configure Fhem to test on Raspberry Pi === | ||
Go to '' | Go to '' | ||
Line 55: | Line 63: | ||
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 | ||
+ | </ | ||
+ | |||
+ | ===== Configure to TeachIn sensors ===== | ||
+ | |||
+ | When you try the Tutorial1 program, you will only recognize the switches. This is due to the fact the you will only recognize this type of sensor. Teaching is defined using '' | ||
+ | Here is the list of defined [[https:// | ||
+ | |||
+ | So to be able to detect different kind of sensors, you will have to add them to the TeachInModule like this: | ||
+ | < | ||
+ | myGateway.TeachInModule-> | ||
+ | myGateway.TeachInModule-> | ||
+ | myGateway.TeachInModule-> | ||
+ | </ | ||
+ | |||
+ | This code will allow you to detect the following type of devices: | ||
+ | * RPS Telegram: F6-02-01: Light and Blink Control - Application Style 01 | ||
+ | * 1BS Telegram: D5-00-01: Single Input Contact | ||
+ | * 4BS Telegram: A5-02-20: 10 bit Temperature Sensor Range -10°C to +41.2°C | ||
+ | |||
+ |