How to switch the EC5000’s serial port (COM1/COM2) between RS-232/RS-422/RS-485 modes?

How to switch the EC5000’s serial port (COM1/COM2) between RS-232/RS-422/RS-485 modes?

Use the uart_mode command in Terminal: 1. COM1 maps to /dev/ttyCOM1, COM2 to /dev/ttyCOM2. 2. Example commands:
  • Set COM1 to RS-485: sudo uart_mode COM1 485
  • Set COM2 to RS-232: sudo uart_mode COM2 232
    Supported modes: 232 (RS-232), 422 (RS-422), 485 (RS-485).