On a Pi 5 the main serial port is on the dedicated debug UART pins - that's ttyAMA10, and /dev/serial0 is a symlink to it. What you have enabled using raspi-config should be UART0, a.k.a. /dev/ttyAMA0, on GPIOs 14 & 15.
Check the following is in config.txt:And be sure to use /dev/ttyAMA0 in your commands.
Check the following is in config.txt:
Code:
dtparam=uart0
Statistics: Posted by PhilE — Tue Apr 23, 2024 7:17 pm