Serial port connection guide
This document describes how to set up a serial connection between RTE and another device.
Prerequisites
- Prepared RTE
- Two jumpers
- Choose one of the following cables depending on the connectivity to your
platform:
- RS232<->RJ45 cable,
- RS232<->RS232 cable,
- USB<->RS232 cable,
- micro-USB<->USB cable,
- 3-wire cable.
Setting serial connection
-
Put the two jumpers on RTE J16 Header:
- For the RS232 port, they join COM and RS232 rows both on RX and TX columns.
- For the UART port (only during using a 3-wire cable), they join COM and EXT rows both on RX and TX columns.
- For the micro-USB-USB cable, jumpers aren't required.
-
Connect the RTE header (J14 or J18) with the device serial port. Use the cable according to the DUT specification:
- DUT has a serial port -> needs to use an RS232<->RS232 cable.
- DUT has the debug port in the form of the RJ45 -> needs to use an RS232<->RJ45 cable.
- DUT has the debug port in the form of the USB -> needs to use an RS232<->USB cable.
- DUT has the debug port in the form of the micro-USB -> needs to use a micro-USB<->USB cable.
- DUT doesn't have a port but has pins for serial connection on the board -> need to use a 3-wire cable.
-
Connect with RTE via
ssh
orminicom
. To connect viassh
is required to know RTE IP and connection to the internet on both sides. While using aminicom
there is a need to use the USB-UART converter. -
There are two ways to open a serial connection:
-
Telnet - by executing the following command:
telnet 192.168.X.X 13541
To configure telnet connections, update the file
/etc/ser2net.conf
usingvim
. Then reboot the RTE to apply the changes. Thedmesg
command allows to identify the latest connected devices. -
Minicom - by executing the following command:
minicom -D /dev/ttyS1 -o -b 115200
Replace
ttyS1
withttyUSB0
while using micro-USB-USB cable.
-