Serial Connections
Last updated
Last updated
The Iron Pi features two industrial serial ports: one RS-485 port, and one RS-232 port. Additionally, there is a intended for diagnostic and recovery use.
The RS-485 port is located on the Iron Pi's main terminal block. It is accessible in the Iron Pi's OS as /dev/ttySC0
. A JCore-provided service called rs485-config
runs at boot time and configures the port for half duplex operation. User applications can then access the port like any other Linux serial port.
RS-485 is a three wire standard. RS-485 A and RS-485 B are a differential signal pair, and a signal ground connection is required between the Iron Pi and all connected RS-485 devices.
The Iron Pi has an internal 130 ohm bus termination resistor, as well as 620 ohm pull-up and pull-down resistors to keep the bus in a known state when no devices are transmitting. You should ensure that the end of the bus opposite the Iron Pi also has a 130 ohm termination resistor. Some devices have a fixed or switchable built-in termination resistor, while other devices require you to connect an external termination resistor.
The RS-232 port is located on the Iron Pi's main terminal block. It is accessible in the Iron Pi OS as /dev/ttySC1
. The RS-232 port supports full duplex operation, meaning the Iron Pi and the remote device can both be transmitting simultaneously.
When connecting a remote device to the Iron Pi's RS-232 port, connect the remote device's transmit terminal to the Iron Pi's receive terminal, and connect the remote device's receive terminal to the Iron Pi's transmit terminal. Connect the remote device's signal ground to the Iron Pi's signal ground.