raspberry-enocean

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
raspberry-enocean [2015/03/27 14:46]
Stéphane Lavirotte [Compile EnOcean Link Library]
raspberry-enocean [2015/03/27 15:56]
Stéphane Lavirotte [Headline]
Line 41: Line 41:
 </​code>​ </​code>​
  
-==== 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://​www.enocean.com/​fr/​download/​|EnOcean Development Tools]]. 
 + 
 +{{:​public_namespace:​dolphin_view.jpg?​400|}} 
 + 
 +=== Configure Fhem to test on Raspberry Pi ===
  
 Go to ''​Edit files''​ and select ''​fhem.cfg''​ Go to ''​Edit files''​ and select ''​fhem.cfg''​
Line 58: Line 66:
 So now you know that everything is functional without programming anything. So now you know that everything is functional without programming anything.
  
-<note warning>​Be careful: you must stop the Fhem server before trying to communicate with another program to listen to events, else you will notice some problems like not receiving all events (some of them may be cacthed by Fhem).</​note>​+<note warning>​Be careful: you must stop and/or uninstall ​the Fhem server before trying to communicate with another program to listen to events, else you will notice some problems like not receiving all events (some of them may be cacthed by Fhem).</​note>​
  
 ===== Compile EnOcean Link Library ===== ===== Compile EnOcean Link Library =====
Line 89: Line 97:
 ./Tutorial1 ./Tutorial1
 </​code>​ </​code>​
 +
 +===== 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 ''​myGateway.TeachInModule->​SetRPS(0x02,​0x01);''​. So you only are listening to RPS modules categorized with 0x02 function and of type 0x01. This is the categorized profiles of the different equipments. ​
 +Here is the list of defined [[https://​www.google.fr/​url?​sa=t&​rct=j&​q=&​esrc=s&​source=web&​cd=1&​cad=rja&​uact=8&​ved=0CCUQFjAA&​url=https%3A%2F%2Fwww.enocean.com%2Ffileadmin%2Fredaktion%2Fenocean_alliance%2Fpdf%2FEnOcean_Equipment_Profiles_EEP_V2.6.2_public.pdf&​ei=FmgVVc22A42saffLgMgD&​usg=AFQjCNGABhOdpm_vLy4krYXBxMX5gV6rQA&​sig2=pHiyKIxjs17L5uLf2xyw_g&​bvm=bv.89381419,​d.d2s|EnOcean Equipment Profiles EEP 2.6]]
 +
 +So to be able to detect different kind of sensors, you will have to add them to the TeachInModule like this:
 +<​code>​
 +        myGateway.TeachInModule->​SetRPS(0x02,​0x01);​
 +        myGateway.TeachInModule->​Set1BS(0x00,​0x01);​
 +        myGateway.TeachInModule->​Set4BS(0x02,​0x20);​
 +</​code>​
 + 
 +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
 + 
  
  • raspberry-enocean.txt
  • Last modified: 2015/03/27 15:56
  • by Stéphane Lavirotte