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 232Supported modes: 232 (RS-232), 422 (RS-422), 485 (RS-485).