element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Technical Library
  • Products
  • Dev Tools
  • Technical Library
  • More
  • Cancel
Technical Library
Documents element14: How to use EnOcean Pi with Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Technical Library requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Engagement
Author: atomar
Date Created: 20 Aug 2013 5:55 AM
Last Updated: 8 Oct 2021 5:35 AM
Views: 1303
Likes: 2
Comments: 9
Related
Recommended

element14: How to use EnOcean Pi with Raspberry Pi

Overview:

Source: EnOcean Pi

 

EnOcean Pi transforms Raspberry Pi into a gateway, allowing wireless communication with thermostats and switches around your home, thus automating temperature and lighting systems. It provides a bi-directional radio interface and a bi-directional serial interface.

 

This document provide you a step-by-step guide on how to use EnOcean Pi with Raspberry Pi:

 

 

Step-By-Step Guide:

 

If you have an Raspberry Pi and an EnOcean Pi you can use EnOcean Link with Raspberry Pi to compile the code for Raspberry Pi. EnOcean Link is a powerful library for EnOcean Pi to handle packets, telegrams and messages received in an ESP3 Format.

 

First connect the Raspberry Pi and EnOcean Pi with extension board on Raspberry Pi as shown below:


 

To run the EnOcean Link on Raspberry Pi, you need to download the EnOcean Link source code from here: (Download). After downloading the EnOcean Link you can compile it directly on Raspberry Pi or compile it on an PC an deploy it on Raspberry Pi (please refer: How to Compile for Raspberry Pi). Then simply copy the resource or use remote deployment, for the start you can either play with Hello World or one of the tutorials.

 

For your convenience, here's the summary of the steps:

  • Set up your Raspberry Pi (as shown above) and download EnOcean Link (Download).

 

  • Now you need to specify the right serial port of your gateway connected to your Raspberry Pi, please adjust the defines as below:

 

               sudo chmod 777 /dev/ttyAMA0


          Then you use this define:

 

               #define SER_PORT "/dev/ttyAMA0"


  • Cross compile EnOcean Link for Raspberry Pi (please refer: How to Compile for Raspberry Pi).

 

  • Deploy the binaries (please refer: How to Compile for Raspberry Pi or copy.

 

  • When needed set the access rights of your gateway connected to your Raspberry Pi:

 

          sudo chmod 777 /dev/ttyAMA0


  • Run it. Please remember to follow the licensing of EnOcean Link - Trial License Agreement . Enjoy.

 

Makefile:

This section will helps you to compile EOLink from the makefile. There are three possibilities:

 

  • ReleaseLib - EOLink library with release compiler settings
  • DebugLib - EOLink library with debug compiler settings
  • DebugSandbox - Example EOLink application

 

After starting the command prompt, navigate to the directory of the main makefile called makefile. For example to compile ReleaseLib, you should do this:


          #:~/workspace$ cd EOLink/ReleaseLib/


          #:~/workspace/EOLink/ReleaseLib$ make all

 

This compiles EOLink and generates library libEOLink.a in the directory. The DebugSendbox generates EOLink executable.

Attachments:
EnOcean Link (Trial) V1.2.0.0.zip
  • Share
  • History
  • More
  • Cancel
Anonymous

Top Comments

  • balearicdynamics
    balearicdynamics over 5 years ago +2

    Hello,

     

    I hope that the links to the articles I published some times ago may help:

     

    PiIoT - The perfect reading place #16[tech]: Setup the Raspberry PI Cross-compiler for EnOcean

    PiIoT - The perfect reading…

  • fvan
    fvan over 5 years ago +2

    A lot of posts are available on getting it to work on Pi 3.

     

    In addition to the ones from Enrico, here's one of mine: [Pi IoT] Alarm Clock #05: EnOcean Pi and Sensors

  • shabaz
    shabaz over 5 years ago in reply to jlaber +1

    Hi Jeff,

     

    See the discussion at the link below, there were reports that people were able to get it working with Pi 3 by following this thread:

    Raspberry Pi 3 und EnOcean Pi - Kompatibilitätsproblem

  • shabaz
    shabaz over 2 years ago in reply to leo0815

    Hi Ingo,

     

    I commented on your other thread:

    EnOcean PI 868 with raspberry PI4

    In short, it's likely to be serial port related, since there were significant changes between the Pi 1, and the most recent Pi's, relating to serial port speed varying, and the on-board Bluetooth which needs a serial port to function too.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • leo0815
    leo0815 over 2 years ago

    Is there anything different with Pi 4? I can't get it working.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • fvan
    fvan over 5 years ago

    A lot of posts are available on getting it to work on Pi 3.

     

    In addition to the ones from Enrico, here's one of mine: [Pi IoT] Alarm Clock #05: EnOcean Pi and Sensors

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 5 years ago

    Hello,

     

    I hope that the links to the articles I published some times ago may help:

     

    PiIoT - The perfect reading place #16[tech]: Setup the Raspberry PI Cross-compiler for EnOcean

    PiIoT - The perfect reading place #17 [tech]: Compiling the EnOcean Link library for the Raspberry PI

    PiIoT - The perfect reading place #18 [tech]: EnOcean Link library API test and usage

     

    Enrico

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
  • shabaz
    shabaz over 5 years ago in reply to jlaber

    Hi Jeff,

     

    See the discussion at the link below, there were reports that people were able to get it working with Pi 3 by following this thread:

    Raspberry Pi 3 und EnOcean Pi - Kompatibilitätsproblem

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
  • jlaber
    jlaber over 5 years ago

    Has anyone managed to get the enocean pi to work with a pi3? I plugged it into the leftmost pins, which seem to be the same pinout as earlier pi with fewer gpio pins.

    What does the green LED on the enocean pi indicate? Should it blink if there is data present? It just lights solid for me.

    If using FHEM software, is the Link software still required?

    If there is enocean data being transmitted from a device, should I at least see data coming in on the ttyAMA0 port, say, with Node Red? Baud rate is set to 57600.

    If I send data to ttyAMA0, should the green LED blink?

    I disabled the serial console in the pi-config application. Should the serial port still be left enabled for use with enocean pi?

    Any further documentation on the enocean pi module available? Pinout info, LED function, any standard engineering info that any reasonable engineer should expect to find?\

    The link for How to Compile for Raspberry Pi above is dead.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • mcb1
    mcb1 over 6 years ago

    There is a great deal of very useful information in the "Forget Me Not" challenge.

    Forget Me Not Design Challenge

     

    Mark

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • rich.hyde@byu.net
    rich.hyde@byu.net over 6 years ago

    is there a use license for this device?  I am uninterested with only demostrating so if there is no reasonable use license this device is useless.  The evaluation license prohibits using the device beyond evaluation or demos.  Why would anyone accept such terms for a component they might want to build into a device they might want to use?  I am lost here.

     

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • kartben
    kartben over 7 years ago

    It's important to note that the Raspberry Pi uses /dev/ttyAMA0 as a serial console, by default. Therefore you may really want to free the serial port following the instructions here, otherwise any activity received by the Enocean modem will trigger weird behaviors (like applications being killed when pressing a switch ... which is kinda fun but...)

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube