Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5278

Device Tree • Re: Configuring Bluetooth from UART0 to UART2

$
0
0
The good news is that you should be able to run the GPS receiver using UART1/ttyS0. Run raspi-config as described in the video, disable the console on the serial port but enable the interface. You may want to reboot at this point.

On a current image you will find that /dev/ttyS0 exists, but you won't find /dev/ttyAMA0 because the kernel has reserved it for Bluetooth. The miniuart-bt overlay will swap the two over - you will find /dev/ttyAMA0 but not ttyS0 - but that shouldn't be necessary. Whichever way round you end up - and I recommend using ttyS0 for GPS because the datarate is so low - /dev/serial0 will point to the UART on pins 8 & 10 (GPIOs 14 & 15).

Depending on how the script has been configured you may have to change a reference to ttyAMA0 - if you do, make it serial0 instead, not ttyS0, so if you change your mind you don't need to change the code again.

Good luck.

Statistics: Posted by PhilE — Mon Mar 11, 2024 7:47 pm



Viewing all articles
Browse latest Browse all 5278

Trending Articles