Disable bluetooth and setup serial on /dev/ttyAMA0
/boot/config.txtmust contain:
enable_uart=1
dtoverlay=pi3-disable-bt
-
Remove
console=serial0,115200entry from/boot/cmdline.txt -
Disable
hciuart
$ sudo systemctl disable hciuart- Reboot
$ sudo systemctl reboot
Note: When setting up a Raspberry Pi 3 I failed to do step 2 which resulted in the port intermittently failing. I could send some commands but after that communication would fail and require re-opening.