
Vantron
|
Embedded in your success, Embedded in your better life
World-leading provider of embedded/IoT products and solutions
IBOX3588 | User Manual
25
4.1
Serial connectors
IBOX3588 offers two RS232/RS485 multiplex connectors on the Phoenix terminal, named
as UART4 and UART7, corresponding to node /dev/ttyS7 and ttyS4, respectively.
There are four additional built-in RS232/RS485 multiplex connectors, corresponding to
node /dev/ttyS8, ttyS0, ttyS3, and ttyS1, respectively.
To test if the serial connectors function properly, use a USB to serial adapter to connect a
serial connector of the Device and the host computer first, then use a serial tool for the
serial debugging.
Or, you can short the two serial connectors and use one connector for transmitting data
and the other for receiving data. This approach saves your efforts of connecting the Device
and the host computer, instead, you can use the Terminal on the Device for all the
operations, specifically:
1.
Short the serial connectors as shown below;
2.
Open a terminal and use UART4 to transmit data;
# gpioset gpiochip7 4=0
# gpioset gpiochip7 5=1
# echo "
Test string
" > /dev/ttyS4
UART7 (ttyS7)
UART4 (ttyS4)