I'd like to use Raspberry pi onboard bluetooth as a serial port.
My understanding is UART0(ttyAMA0) is allocated to the bluetooth in Rasp 3 or 4.
So, does this mean i can use the bluetooth as any other serial devices for serial communication?
I edited "/etc/CODESYSControl_User.cfg" as below and I would use SysCom library for serial communication.
You didn't exactly mention which RASP variant you are using, but from RPI3 onwards UART0 is exclusive to the Bluetooth and UART1 is general purpose, so you could not use UART0 as you want. Note that UART0 is an implementation based on the INTEL 16550 chipset whereas UART1 is a simplified version, implemented almost in softcore, but still works well.
Thanks for your reply.
I have Raspi 3b and 4.
if the bluetooth is UART0(ttyAMA0), could it be used as a serial com port?
i've read a post regarding "cmpCharDevice" library. do i have to use the library for the bluetooth or just Syscom library is enough?
Log in to post a comment.