Difference between revisions of "RSB-4680 How to use UART."

From ESS-WIKI
Jump to: navigation, search
 
Line 12: Line 12:
 
== RSB4680 Borad ==
 
== RSB4680 Borad ==
  
{| style="width:500px; border:undefined"
+
{| border="1" cellpadding="1" cellspacing="1" style="width: 511px;"
 
|-
 
|-
| style="width:119px" | <span style="color:#ff0000">'''COM Name'''</span>
+
| style="width: 108px;" | '''COM Name'''
| style="width:123px" | <span style="color:#ff0000">'''Device Node'''</span>
+
| style="width: 159px;" | '''Device Node'''
| style="width:240px" | <span style="color:#ff0000">'''Remark'''</span>
+
| style="width: 228px;" | '''Remark'''
 
|-
 
|-
| style="width:119px" | COM0
+
| style="width: 108px;" | COM0
| style="width:123px" | /dev/ttyS0
+
| style="width: 159px;" | /dev/ttyS0
| style="width:240px" | for BT Data
+
| style="width: 228px;" | for BT Data
 
|-
 
|-
| style="width:119px" | COM1
+
| style="width: 108px;" | COM1
| style="width:123px" | /dev/ttyS1
+
| style="width: 159px;" | /dev/ttyS1
| style="width:240px" | &nbsp;
+
| style="width: 228px;" | &nbsp;
 
|-
 
|-
| style="width:119px" | COM2
+
| style="width: 108px;" | COM2
| style="width:123px" | /dev/ttyS2
+
| style="width: 159px;" | /dev/ttyS2
| style="width:240px" | Debug Port
+
| style="width: 228px;" | Debug Port
 
|-
 
|-
| style="width:119px" | COM3
+
| style="width: 108px;" | COM3
| style="width:123px" | /dev/ttyS3
+
| style="width: 159px;" | /dev/ttyS3
| style="width:240px" | &nbsp;
+
| style="width: 228px;" | &nbsp;
 
|-
 
|-
| style="width:119px" | COM4
+
| style="width: 108px;" | COM4
| style="width:123px" | /dev/ttyS4
+
| style="width: 159px;" | /dev/ttyS4
| style="width:240px" | Supprot RSB485
+
| style="width: 228px;" | Supprot RSB485
 
|-
 
|-
| style="width:119px" | COM5
+
| style="width: 108px;" | COM5
| style="width:123px" | /dev/ttyUSB0
+
| style="width: 159px;" | /dev/ttyUSB0
| style="width:240px" | Usb to Uart
+
| style="width: 228px;" | Usb to Uart
 
|-
 
|-
| style="width:119px" | COM6
+
| style="width: 108px;" | COM6
| style="width:123px" | /dev/ttyUSB1
+
| style="width: 159px;" | /dev/ttyUSB1
| style="width:240px" | Usb to Uart
+
| style="width: 228px;" | Usb to Uart
 
|}
 
|}
  

Latest revision as of 04:27, 16 January 2024

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 Device Node Remark
COM0 /dev/ttyS0 for BT Data
COM1 /dev/ttyS1  
COM2 /dev/ttyS2 Debug Port
COM3 /dev/ttyS3  
COM4 /dev/ttyS4 Supprot RSB485
COM5 /dev/ttyUSB0 Usb to Uart
COM6 /dev/ttyUSB1 Usb to Uart

Note :

1. Only COM1、COM2、COM3、COM4、COM5 and COM6 are designed for custom using.

2. Only COM4 support RSB485.

3. COM2 is designed as debug port default.