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
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog Cam-e-lot - Round 2 - Man vs EnOcean Pi board
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: amgalbu
  • Date Created: 7 Aug 2014 4:13 PM Date Created
  • Views 453 views
  • Likes 2 likes
  • Comments 1 comment
  • forget_me_not
  • iot_cam-e-lot
Related
Recommended

Cam-e-lot - Round 2 - Man vs EnOcean Pi board

amgalbu
amgalbu
7 Aug 2014

Next step in the ForgetMeNot project is to make the EnOcean PI board work.

As I said, my purpose is to write a C++ application, so I need the be able to cross-compile the source code to control the EnOcean Pi board and embed it into my application. Fortunately, EnOcean provides a valid library to use as a starting point

 

So, these are the steps for this round

  1. I downloaded the EnOcean link library from http://www.element14.com/community/servlet/JiveServlet/download/55295-6-118009/EnOcean+Link+%28Trial%29+V1.2.0.0.zip
  2. I extracted all the files in a directory of the host system (/home/gpavoni/rpi/EnOcean)
  3. I launched Eclipse and imported the three projects in the directory /home/gpavoni/rpi/EnOcean (namely EOLink, examples and tutorials)
  4. All the three projects does not compile out-of-the-zip. Some changes in the configurations were required. For each project, I had to open the Project Properties window and change the following settings (make the changes to all the build configuration you want to use - I'm going to use ReleaseLib)
    • C/C++ Build -> Toolchain Editor
      • Set "Cross GCC" in the "Current toolchain"

 

image

 

    • C/C++ Build -> Settings -> Tools Settings
      • Set Prefix to arm-linux-gnueabihf-
      • Set Path to the full path of the toolchain (/home/gpavoni/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/)

 

image

 

    • Only for EOLink project, C/C++ Build -> Settings -> Build Artifact
      • Set Artifact type to "Shared library"
      • Set Artifact extension to "a"
      • Set Output prefix to "lib"
  1. Build the EOLink library
  2. Copy libEOLink.a in /usr/lib
  3. In the "examples" project, open the Gateway_example.cpp file and change the #define SER_PORT to "/dev/ttyAMA0"

 

image

 

  1. In the "examples" project, open the sandbox.cpp file and uncomment the "gatewayExample()" line and comment the "ptmExample();" line

 

image

 

  1. Build the "examples" project
  2. Now you can copy the libEOLink.a file (located in /home/gpavoni/rpi/EnOcean/EOLink/ReleaseLib or /usr/lib) to usr/lib on the Raspberry board and grant execution permissions (sudo chmod +x libEOLink.a)
  3. Copy the examples executable (located in /home/gpavoni/rpi/EnOcean/examples/Release) in your home directory on the Raspberry board and grant execution permissions (sudo chmod +x examples)
  4. Next step is to free the serial port on the Raspberry board. Follow this exceptionally clear tutorial: Free Your Raspberry Pi Serial Port | Raspberry Pi Spy
  5. Now launch ./examples from you home directory
  6. Press buttons on the EnOcean sensors and you should see telegrams coming through

 

image

  • Sign in to reply
  • mcb1
    mcb1 over 11 years ago

    Nice work.

    Releasing yourself from some of the overhead of existing applications allows so much more of this technology.

     

    Hopefully you'll be contributing it as OSS.

     

    Mark

    • 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