element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Technical Library
  • Products
  • Dev Tools
  • Technical Library
  • More
  • Cancel
Technical Library
Documents element14: How to use EnOcean Pi with Raspberry Pi
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Technical Library to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: atomar
  • Date Created: 20 Aug 2013 5:55 AM Date Created
  • Last Updated Last Updated: 8 Oct 2021 5:35 AM
  • Views 8706 views
  • Likes 2 likes
  • Comments 10 comments
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:


image

 

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
  • Sign in to reply

Top Comments

  • balearicdynamics
    balearicdynamics over 8 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 8 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 8 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
  • MarkP58
    MarkP58 over 1 year ago

    Re: EnOcean USB 300:  I am a novice here and not fluid in LInux or programming but have set up a Raspberry Pi with Homebridge for use with Apple Homekit. I use some EnOcean switches to directly control Casambi lighting which via a plug-in can also work with Homekit (HB).  I purchased the EnOcean USB dongle in the hope I could use it to control devices in the home and have plugged it in to the RPi but have no idea how to get it to work.  It seems like there is SW for RPi but I am unclear on IF it can be installed on current HB RPi or if it needs its own platform? If the former any pointers on steps to install so that HB can interwork via plugins would be appreciate. However I am keen not to polute or destroy the HB environment currently working. Thanks 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 5 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
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • leo0815
    leo0815 over 5 years ago

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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fvan
    fvan over 8 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
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 8 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
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 8 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
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jlaber
    jlaber over 8 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
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago

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

    Forget Me Not Design Challenge

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rich.hyde@byu.net
    rich.hyde@byu.net over 10 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.

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kartben
    kartben over 11 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
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

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 © 2025 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

  • X
  • Facebook
  • linkedin
  • YouTube