Swapping the Serial Ports on Raspberry Pi 3
If you don’t want to use the Bluetooth and you want that high performance /dev/ttyAMA0 back on the GPIO, you can do this via a device overlay called “pi3-miniuart-bt” i.e. use the mini-uart (/dev/ttyS0) for Bluetooth.
To use add the following line to the /boot/config.txt
sudo nano /boot/config.txt
and add (at the end of the file):
dtoverlay=pi3-miniuart-bt
Save and reboot for changes to take effect.
sudo reboot
You can check that it has worked by:
ls -l /dev
and you’ll see something like this:
Swapped Raspberry PI 3 serial port aliases
Another options:
If you want to disable the bluetooth all together, another overlay is available:
dtoverlay=pi3-disable-bt
ประเภทเนื้อหาของ article
Raspberry Pi Zero