RS-485
The Pigeon RB700 has two RS-485 ports. The RS-485 ports are available in Linux as '/dev/ttyRS485-1' and '/dev/ttyRS485-2'.
Useful commands
- Check the RS-485 port settings:
$ stty -a -F /dev/ttyRS485-1
- Send data via the RS-485 port:
$ echo "test" > /dev/ttyRS485-1
- Read data from the RS-485 port:
$ cat /dev/ttyRS485-1
Using picocom for Serial Communication
To install picocom, run:
$ sudo apt install picocom
To open a serial connection using picocom, run the following command:
$ picocom -b 115200 /dev/ttyRS485-1
- -b 115200 sets the baud rate to 115200.
- Replace /dev/ttyRS485-1 with the appropriate serial device.
Notes: To exit picocom, press Ctrl-A, then Ctrl-X.