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
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.
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
- /dev/ttyAMA0 is also used for serial if you disable blutooth completely with
- 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. 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.