RS-232
The Pigeon RB400 has one RS-232 port. By default, the serial port (/dev/ttyRS232-1) is configured for use with the console.
The following parameters are required to connect to the Pigeon console:
- Baud rate: 115200 bps,
- Data Bits: 8,
- Parity: None,
- Stop Bits: 1,
- Flow Control: none.
Useful commands
Check the port settings
$ stty -a -F /dev/ttyRS232-1
Send data to the RS-232 port
$ echo "test" > /dev/ttyRS232-1
Read data from the RS-232 port:
$ cat /dev/ttyRS232-1
Disable RS-232 port console
To use the first RS-232 port for connecting and communicating with other devices, the serial port console login must be disabled. The easiest way to do this is by using raspi-config:
- Run raspi-config,
- Navigate to Interface Options,
- Navigate to Serial,
- Select "No".
Warning! After reboot, the serial console will be unavailable, so the only way to access the login shell will be via SSH or HDMI. If using SSH, you will need to know the Pigeon's IP address. For more details, see the nmap section of the Ethernet documentation.
Serial communication
For serial communication tool usage instructions, see tio.