Difference between revisions of "How to use UART"

From ESS-WIKI
Jump to: navigation, search
Line 11: Line 11:
 
== RSB4680 Borad ==
 
== RSB4680 Borad ==
  
{| cellspacing="1" cellpadding="1" border="1" align="left"
+
{| border="1" cellspacing="1" cellpadding="1" style="width:500px;"
 
|-
 
|-
! scope="col" | '''COM Name'''
+
| style="width: 119px;" | <span style="color:#FF0000;">'''COM Name'''</span>
! scope="col" | '''Device Node'''<br/>
+
| style="width: 123px;" | <span style="color:#FF0000;">'''Device Node'''</span>
! scope="col" |  
+
| style="width: 240px;" | <span style="color:#FF0000;">'''Remark'''</span>
'''Remark'''
 
 
 
 
|-
 
|-
| COM0<br/>
+
| style="width: 119px;" | COM0
| /dev/ttyS0<br/>
+
| style="width: 123px;" | /dev/ttyS0<br/>
| for BT Data<br/>
+
| style="width: 240px;" | for BT Data<br/>
 
|-
 
|-
| COM1<br/>
+
| style="width: 119px;" | COM1<br/>
| /dev/ttyS1<br/>
+
| style="width: 123px;" | /dev/ttyS1<br/>
| <br/>
+
| style="width: 240px;" | <br/>
 
|-
 
|-
| COM2<br/>
+
| style="width: 119px;" | COM2<br/>
| /dev/ttyS2<br/>
+
| style="width: 123px;" | /dev/ttyS2<br/>
| Debug Port<br/>
+
| style="width: 240px;" | Debug Port<br/>
 
|-
 
|-
| COM3<br/>
+
| style="width: 119px;" | COM3<br/>
| /dev/ttyS3<br/>
+
| style="width: 123px;" | /dev/ttyS3<br/>
| <br/>
+
| style="width: 240px;" | <br/>
 
|-
 
|-
| COM4<br/>
+
| style="width: 119px;" | COM4<br/>
| /dev/ttyS4<br/>
+
| style="width: 123px;" | /dev/ttyS4<br/>
| Supprot RSB485<br/>
+
| style="width: 240px;" | Supprot RSB485<br/>
 
|-
 
|-
| COM5<br/>
+
| style="width: 119px;" | COM5<br/>
| /dev/ttyUSB0<br/>
+
| style="width: 123px;" | /dev/ttyUSB0<br/>
| Usb to Uart<br/>
+
| style="width: 240px;" | Usb to Uart<br/>
 
|-
 
|-
| COM6<br/>
+
| style="width: 119px;" | COM6<br/>
| /dev/ttyUSB1<br/>
+
| style="width: 123px;" | /dev/ttyUSB1<br/>
| Usb to Uart<br/>
+
| style="width: 240px;" |
 +
Usb to Uart
 +
 
 
|}
 
|}
  
Line 72: Line 72:
 
=  =
 
=  =
  
<span style="color:#FF0000;">'''Note :&nbsp;'''</span>
+
<span style="color:#FF0000;">'''Note&nbsp;:&nbsp;'''</span>
  
 
1. COM1、COM2、COM3、COM4、COM5 and COM6 are designed for custom using.
 
1. COM1、COM2、COM3、COM4、COM5 and COM6 are designed for custom using.

Revision as of 10:23, 25 March 2019

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. COM1、COM2、COM3、COM4、COM5 and COM6 are designed for custom using.

2. 

Test uart

TBD