RS-485
Pigeon has one RS-485 port. RS-485 port is available under Linux as '/dev/ttyRS485' (udev rule with such device name has been added in the Raspbian image since 7 November 2016). In earlier versions, you can use the '/dev/ttyUSB0'. In this case, when you use another USB/UART device there is no guarantee that the RS-485 will be '/dev/ttyUSB0'.
Useful commands
-
Check the RS-485 port settings
stty -a -F /dev/ttyRS485
-
Send data to the RS-485 port
echo "test" > /dev/ttyRS485
- Read data from the RS-485 port
cat /dev/ttyRS485