How to use UART3 on AOSP?


#1

Hi,

Could someone explain how i can use uart 3 in AOSP. Through /dev/ttyAMA3 maybe ? I just want to use it to send messages from c code to a USB serial adapter.


#2

Found it you can directly write to /dev/ttyAMA3 with echo and read with cat. Or from c code use write and read function. Uart3 runs on 9600.


#3

Yes but usually you have to configure your serial link with aligned baudrate, flow control, etc… you can find more information in linux termios man page or athttps://en.wikibooks.org/wiki/Serial_Programming/termios.