Edge 2 has one RS485 connector.
Port the USB to RS485 converter to the PC, and connect the cable to the Edge 2 RS485 connector. Refer to the following wire sequence connection diagram:
Open the PC serial port
Taking macOS as an example, the USB to RS485 converter node
tty.usbserial-14310 exists in the system, and the command to open it through the
picocom tool is as follows:
$ picocom -b 9600 /dev/tty.usbserial-14310
The USB to UART converter node exists in the Ubuntu in the form of
/dev/ttyUSB[1, 2, 3.....].
The USB to UART converter node exists in the Windows in the form of
For more details, please refer to the Serial Debugging.
Sending data from Edge 2
The Edge 2 UART5 device file is
/dev/ttyS4. Run the following commands on Edge 2:
echo "edge2 RS485 test..." > /dev/ttyS4
The PC serial terminal (
picocom) should receive the string
“edge2 RS485 test…”.
Receiving data by Edge 2
Run the following command on Edge 2.
Send a string, e.g.
“edge2 RS485 test...”, using the PC serial terminal (
picocom) to test the connection. Edge 2 should see the same string.