Transclusion: IOT-GATE-iMX8: RS485 / RS232

From Compulab Mediawiki
Revision as of 08:20, 14 September 2020 by imported>Uri.mashiach (Created page with "IOT-GATE-iMX8 / SBC-IOT-iMX8 features a half-duplex RS485 port.<br> The RS485 interface is routed to rear panel terminal block connector ([http://192.168.10.106/mediawiki/inde...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

IOT-GATE-iMX8 / SBC-IOT-iMX8 features a half-duplex RS485 port.
The RS485 interface is routed to rear panel terminal block connector (see drawing).
RS485 / RS232 connector pin-out in RS485 mode:

Pin Number RS485 Functionality
1 NEG A/-
2 NEG B/+
3 Ground
6 Ground

Example

Serial terminal emulator application can be used to test the RS485 port.

  • Use the following command to start Minicom with the user space device of the RS485 (/dev/ttymxc0).
root@iot-gate-imx8:~# minicom -D /dev/ttymxc0
  • Follow the following steps to disable hardware flow control
    • Open the menu "Configure Minicom" with CTRL-a followed by the letter 'o'.
    • Select "Serial port setup"
    • Press the letter 'f'.
    • Press the Esc key twice.
  • The characters that are typed in the terminal are transmitted to the RS485 port.
  • The characters that are received from the RS485 port are displayed in the terminal.
  • Press CTRL-a followed by the letter 'x' to exit from Minicom