IoTGateway/BSP/Android/Gettingstarted/How to use UART for rk

From ESS-WIKI
Revision as of 10:11, 11 June 2024 by Wei.zeng (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

The Android/Linux UART/serial port access from user is through the tty-devices. The tty-devices have different names depending on UART driver on different board.

RS-485

RS-485 uses half-duplex communication, which means that one medium is shared for transmitting and receiving data. Therefore the system needs to control the RS-485 transceiver's transmit mode. Usually the UART RTS signal is used to switch the transmitter on and off.

Boards

RSB4680 Borad

COM Name

(EPC-R4680)

HW Schematic

(RSB-4680)

Device Node

Remark

N/A UART0 /dev/ttyS0 for BT Data
COM5 COM1 /dev/ttyS1 RS232
COM1 COM2 /dev/ttyS2 Debug Port/RS232
COM6 COM3 /dev/ttyS3 RS232
COM2 COM4 /dev/ttyS4 Supprot RSB485
COM3 COM6 /dev/ttyUSB0 Usb to Uart
COM4 COM7 /dev/ttyUSB1 Usb to Uart

 

 

 

 

 

 

 

 

 

 

 

 

 

RTENOTITLE