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
-
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 10 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 2 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 1 hour ago
Categories: Uncategorized