first of all: I’m new to raspberry
I.ve just bought a raspberry PI 4 together with an EnOcean PI 868 module to set up a house automation system. To make it run I’ve tried the steps described on the element14 site and also used sudo stty -F /dev/ttyAMA0 57600 + hexdump -C < /dev/ttyAMA0 to see at least a single byte received .. with no success.
Of course I’ve read about the nessessary setup for PI3 like
- enabling serial
- disabling serial console
- adding
dtoverlay=pi3-miniuart-btto /boot/config.txt
and did so. The only differnece I’ve seen is in /boot/cmdline.txt: tototrials say ‘find a line startiing with wc_otg.lpm_enable=0 and remove console=serial0,115200 but I don’t have such al line.
Edit
some more things I’ve found or tried so far:
- the EnOcean PI 868 uses serial UART gpio 14 &15 and web research always brings me to these points, which are in genereal related to PI 3B but seem to be true for PI4 too:
- /dev/ttyAMA0 is by default used for blutooth, /dev/ttyS0 as ‘miniuart’ for serial
- you can switch devices by adding
dtoverlay=pi3-miniuart-btto /boot/config.txt - /dev/ttyAMA0 is also used for serial if you disable blutooth completely with
dtoverlay=pi3-miniuart-btto /boot/config.txt - the simplest way to see if anything is received is by calling
stty -F /dev/ttyAMA0 (or ttyS0) 57600 (115200 in other posts)+hexdump -C < /dev/ttyXXX
EnOcean From Wikipedia, the free encyclopedia
The EnOcean technology is an energy harvesting wireless technology used primarily in building automation systems, and is also applied to other applications in industry, transportation, logistics and smart homes. Modules based on EnOcean technology combine micro energy converters with ultra low power electronics, and enable wireless communications between batteryless wireless sensors, switches, controllers and gateways.
In March 2012, the EnOcean wireless standard was ratified as the international standard ISO/IEC 14543-3-10.[1] The standard covers the OSI (Open Systems Interconnection) layers 1-3 which are the physical, data link and networking layers.
The energy harvesting wireless modules are manufactured and marketed by the company EnOcean which is based in Oberhaching, Germany. EnOcean offers its technology and licenses for the patented features within the EnOcean Alliance framework.
.END
Categories: Uncategorized

enter at least 15 characters
help
element14: How to use EnOcean Pi with Raspberry Pi
https://www.element14.com/community/docs/DOC-55295/l/element14-how-to-use-enocean-pi-with-raspberry-pi
Version 6
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:
sudo chmod 777 /dev/ttyAMA0
Then you use this define:
#define SER_PORT “/dev/ttyAMA0”
sudo chmod 777 /dev/ttyAMA0
Makefile:
This section will helps you to compile EOLink from the makefile. There are three possibilities:
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.
Average User Rating: No ratings (0 ratings)
Comments
Login or Register to comment
kartbenMay 28, 2014 9:16 PM
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…)
rich.hyde@byu.netJul 15, 2015 9:23 AM
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.
mcb1
Jul 15, 2015 7:14 PM
There is a great deal of very useful information in the “Forget Me Not” challenge.
Forget Me Not Design Challenge
Mark
jlaberMar 5, 2017 11:33 AM
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.
shabaz
Mar 5, 2017 11:52 AM (in response 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
1 of 1 people found this helpful
balearicdynamics
Mar 5, 2017 1:48 PM
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
1 of 1 people found this helpful
Frederick Vandenbosch
Mar 6, 2017 2:19 AM
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
2 of 2 people found this helpful
leo0815Nov 17, 2019 1:02 AM
Is there anything different with Pi 4? I can’t get it working.
shabaz
Nov 17, 2019 3:40 AM (in response 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.
Login or Register to comment
RELATED CONTENT
INCOMING LINKS
https://www.element14.com/community/external-link.jspa?url=http%3A%2F%2Fhertaville.com%2F2012%2F09%2F28%2Fdevelopment-environment-raspberry-pi-cross-compiler%2F
Warning
The following url is not an official site of element14 Community. You are about to leave element14 Community.
http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/
Click here to continue to the external site
http://asddates.info/?utm_source=5d5166dee27eb&s=fErCEfYS&r=http://hertaville.com/&fp=JTVCJTdCJTIya2V5JTIyJTNBJTIydXNlckFnZW50JTIyJTJDJTIydmFsdWUlMjIlM0ElMjJNb3ppbGxhJTJGNS4wJTIwKFdpbmRvd3MlMjBOVCUyMDEwLjAlM0IlMjBXaW42NCUzQiUyMHg2NCklMjBBcHBsZVdlYktpdCUyRjUzNy4zNiUyMChLSFRNTCUyQyUyMGxpa2UlMjBHZWNrbyklMjBDaHJvbWUlMkY3OC4wLjM5MDQuOTclMjBTYWZhcmklMkY1MzcuMzYlMjIlN0QlMkMlN0IlMjJrZXklMjIlM0ElMjJ3ZWJkcml2ZXIlMjIlMkMlMjJ2YWx1ZSUyMiUzQSUyMm5vdCUyMGF2YWlsYWJsZSUyMiU3RCUyQyU3QiUyMmtleSUyMiUzQSUyMmxhbmd1YWdlJTIyJTJDJTIydmFsdWUlMjIlM0ElMjJlbi1VUyUyMiU3RCUyQyU3QiUyMmtleSUyMiUzQSUyMmNvbG9yRGVwdGglMjIlMkMlMjJ2YWx1ZSUyMiUzQTI0JTdEJTJDJTdCJTIya2V5JTIyJTNBJTIyZGV2aWNlTWVtb3J5JTIyJTJDJTIydmFsdWUlMjIlM0ElMjJub3QlMjBhdmFpbGFibGUlMjIlN0QlMkMlN0IlMjJrZXklMjIlM0ElMjJoYXJkd2FyZUNvbmN1cnJlbmN5JTIyJTJDJTIydmFsdWUlMjIlM0E0JTdEJTJDJTdCJTIya2V5JTIyJTNBJTIyc2NyZWVuUmVzb2x1dGlvbiUyMiUyQyUyMnZhbHVlJTIyJTNBJTVCMTkyMCUyQzEwODAlNUQlN0QlMkMlN0IlMjJrZXklMjIlM0ElMjJhdmFpbGFibGVTY3Jl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