33
RSB-3710 User Manual
C
ha
pte
r 3
So
ftw
are
F
un
ctio
na
lity
Set GPIO value 0/1 if GPIO pin define is output.
Unexport GPIO1.
GPIO 1 and GPIO 2 are taken as examples:
Connect GPIO 1 and GPIO 2
Export GPIO 1 and GPIO 2
Set GPIO 1 to output.
Set GPIO 2 to input.
Change GPIO 1 to 1 and read GPIO 2 value.
Change GPIO 1 to 0 and read GPIO 2 value.
3.4
UART
The Android/Linux user UART/serial port access is facilitated through the tty-devices.
The tty-devices have different names depending on the UART drivers of different
boards.
RS-485 uses half-duplex communication, meaning one medium is shared for trans
-
mitting and receiving data. Therefore, the system needs to control the RS-485 trans
-
ceiver's transmit mode. Usually the UART RTS signal is used to switch the
transmitter on and off.
3.4.1
RSB-3710 Uart
$ echo 1 > /sys/class/gpio/gpio504/value
$ echo 504 > /sys/class/gpio/unexport
$ echo 504 > /sys/class/gpio/export
$ echo 505 > /sys/class/gpio/export
$ echo "out" > /sys/class/gpio/gpio504/direction
$ echo "in" > /sys/class/gpio/gpio505/direction
$ echo 1 > /sys/class/gpio/gpio504/value
$ cat /sys/class/gpio/gpio505/value
1
echo 0 > /sys/class/gpio/gpio504/value
$ cat /sys/class/gpio/gpio505/value
0
COM Name
Device Node
Remark
COM0
/dev/ttyS0
support RS232, no flow control
COM2
/dev/ttyS2
Debug Port
COM4
/dev/ttyS4
support RS232, no flow control
Summary of Contents for RSB-3710
Page 1: ...User Manual RSB 3710 Rockchip ARM Cortex A72 2 5 SBC...
Page 6: ...RSB 3710 User Manual vi...
Page 9: ...Chapter 1 1 General Information...
Page 12: ...RSB 3710 User Manual 4...
Page 21: ...13 RSB 3710 User Manual Chapter 2 H W Installation Figure 2 4 LVDS Connector...
Page 25: ...17 RSB 3710 User Manual Chapter 2 H W Installation Figure 2 7 Mini PCIE Connector...
Page 36: ...RSB 3710 User Manual 28...
Page 42: ...RSB 3710 User Manual 34 3 5 Audio Launch Sound Recorder for MIC Launch Video for Audio...
Page 59: ...51 RSB 3710 User Manual Chapter 4 Advantech Services...