Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
raspberry-enocean [2015/03/26 13:43] – created Stéphane Lavirotte | raspberry-enocean [2015/03/27 14:56] (current) – [Headline] Stéphane Lavirotte | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{: | {{: | ||
- | ====== Install | + | ====== Install |
+ | |||
+ | ===== Connecting EnOcean Pi with 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). To achieve this, you have to do the following commands: | ||
+ | |||
+ | < | ||
+ | wget https:// | ||
+ | chmod +x rpi-serial-console | ||
+ | sudo ./ | ||
+ | </ | ||
+ | |||
+ | If the returned message is '' | ||
+ | < | ||
+ | sudo ./ | ||
+ | </ | ||
+ | |||
+ | ===== 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 well configured. | ||
+ | |||
+ | ==== Install Fhem for testing purposes ==== | ||
+ | |||
+ | As an example, to be able to test if your environment is well configured, you can install Fhem. Do the following to achieve this. | ||
+ | |||
+ | < | ||
+ | sudo apt-get install perl libdevice-serialport-perl libio-socket-ssl-perl libwww-perl | ||
+ | sudo apt-get install -f | ||
+ | wget http:// | ||
+ | sudo dpkg -u fhem-5.6.deb | ||
+ | </ | ||
+ | |||
+ | To display the web interface of fhem, you can connect to the Raspberry on 8083 port. | ||
+ | < | ||
+ | http://< | ||
+ | </ | ||
+ | |||
+ | ==== 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 '' | ||
+ | Add the following lines if then OceanPi is not automatically recognized: | ||
+ | < | ||
+ | define TCM_ESP3_0 TCM ESP3 / | ||
+ | </ | ||
+ | |||
+ | The go to '' | ||
+ | < | ||
+ | set TCP_ESP3_0 teach 600 | ||
+ | </ | ||
+ | |||
+ | 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 ../ | ||
+ | chmod +x Tutorial.sh | ||
+ | mv depcomp depcom.sav | ||
+ | mv missing missing.sav | ||
+ | ln -s ../ | ||
+ | ln -s ../ | ||
+ | ./ | ||
+ | cd Tutorials | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | ===== 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 | ||
+ | |||