Uncategorized

EnOcean PI 868 with raspberry PI4

Asked 
Viewed 24 times
1

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-bt to /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-bt to /boot/config.txt
  • /dev/ttyAMA0 is also used for serial if you disable blutooth completely with dtoverlay=pi3-miniuart-bt to /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
 New contributor
  • Hi @Ingo Leonhardt, Welcome. Ah, let me see. So my dear Rpi newbie, you have a new 2019 Rpi4 and you are following a 2012, ie, 6 years old tutorial for Rpi2? My suggestion is the following: If you have found two cockroaches in any very outdated tutorial, I mean more than 2 years old, remember what the wise guy Warren Buffett says: cnbc.com/2017/08/30/…. – tlfong01 21 hours ago
  • @tlfong01 thanks for reading my question but unfortunaltely your comment isn’t very helpful. In the comments to he tutorial are several comments mentioning concering serial on P3B and from everyting I have found so far this should all york with PI4 as well. – Ingo Leonhardt 13 hours ago
  • I am sorry that I have not been helpful. If beside the problems you mentioned, the seemingly old tutorial can still be good, I need to look at it again, and make an apology to your and Element14. Actually I have been a huge fan of Element14 Hongkong since the Rpi1 days, and so far I have no complaints, except I always tell them that I am just a poor hobbyist doing Micky Mouse projects, therefore cannot afford their a bit expensive industrial grade products. Happy UART programming and cheers. – tlfong01 12 hours ago
 Ingo Leonhardt is a new contributor. Be nice, and check out our Code of Conduct.

enter at least 15 characters

Add Comment
help
.END

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:

EnOcean_RPi.png

 

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”

 

 

  • 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.

Average User Rating: No ratings (0 ratings)

Average User Rating
No ratings
(0 ratings)

Comments

Login or Register to comment

Login or Register to comment

 


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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: