Users Guide

RS-422FD\RS-485FD
To configure the RS-422/RS-485 port, run the following commands:
1. Set RS-422/RS-485 FD from the pre-installed DCC application.
dcc.cctk -h --serial1
dcc.cctk --serial1
dcc.cctk --serial1=rs422
2. Set serial port mode.
$ sudo stty -F /dev/ttyXRUSB0 ispeed 115200 ospeed 115200 -echo -onlcr -ixon -ixoff
$ sudo stty -F /dev/ttyXRUSB1 ispeed 115200 ospeed 115200 -echo -onlcr -ixon -ixoff
3. Transfer or receive data between two ports—for example, a wired RS-422/RS-485FD between two serial ports on the device.
$ sudo su
$ echo abcdefg > /dev/ttyXRUSB0
Repeat the command to send data.
4. Receive data from another terminal by ssh from your computer.
$ ssh admin@<IP address of Edge Gateway>
(passwd: admin)
$ sudo su
$ cat /dev/ttyXRUSB1
Verify that the string is received correctly.
RS-485HD
To configure the RS-485HD port, run the following commands:
1. Set RS-485HD from the pre-installed DCC application.
dcc.cctk -h --serial1
dcc.cctk --serial1
dcc.cctk --serial1=rs485
2. Set serial port mode.
$ sudo stty -F /dev/ttyXRUSB0 ispeed 115200 ospeed 115200 -echo -onlcr -ixon -ixoff
$ sudo stty -F /dev/ttyXRUSB1 ispeed 115200 ospeed 115200 -echo -onlcr -ixon -ixoff
3. Transfer or receive data between two ports—for example, a wired RS-485HD between two serial ports on the device.
$ sudo su
$ echo abcdefg > /dev/ttyXRUSB0
Repeat the command to send data.
4. Receive data from another terminal by ssh from your computer.
$ ssh admin@<IP address of Edge Gateway>
(passwd: admin)
$ sudo su
$ cat /dev/ttyXRUSB1
Verify that the string is received correctly.
Minicom
Minicom is a terminal emulation program which allows the host machine to communicate with and debug the serial port on headless
systems, such as the Edge Gateway. The following steps help you to setup Minicom.
1. Install Minicom.
$ sudo snap install classic --devmode --beta
$ sudo classic.create
$ sudo classic
$ (classic) sudo apt-get update
$ (classic) sudo apt-get install minicom
2. Set Minicom.
$ sudo minicom -s
56