UART¶
The xPico 600 gateway provides one UART interface for asynchronous serial communication with the microcontroller. The UART is used for device control, data communication, and debug logging.
The UART interface maps to Line 1 on the gateway. It supports asynchronous data rate up to 4 Mbps, odd/even parity, 1 and 2 stop bits, software flow control (Xon/Xoff), and hardware flow control (RTS, CTS).
Note
Flow control is required to import XML over the UART interface. Hardware flow control is recommended.
In order to set up the UART serial interface, configure the Line 1 settings.
In Web Manager, go to Line > Line 1 > Configuration.
For CLI, see Config Line Level.
For XML, see configgroup Line.
Line Configuration Settings¶
The following table describes the Web Manager Line configuration settings.
Links to the equivalent settings for the CLI and XML reference are listed below.
CLI settings: See Config Line Level
XML settings: See configgroup Line
| Settings | Description |
|---|---|
| Name | Name or short description for the line, if desired. By default, there is no name specified. A name that contains white space must be surrounded by quotations. |
| Interface | Serial Interface. Choices are: RS232, RS485 Half Duplex, and RS485 Full Duplex. |
| State | Operational state of the Line. Can be Enabled or Disabled. The default is Enabled. |
| Protocol | Operational protocol for the Line. Choices are: - BLE Beacon Scanner - BLE Connect - Command Line - LPD - MQTT - Modbus ASCII - Modbus RTU - Modem Emulation - Mux - None - Percepxion Interface - SLIP - Trouble Log - Tunnel See Line Operating Modes |
| Line Authentication | Can be Enabled or Disabled. If Line Authentication is enabled, the serial Line user will be challenged for a username and password prior to entering the CLI. Line authentication settings will take affect after the next reboot or by exiting the line using the "exit" command once connected. It will enable when the region is set to European Union under HTTP Server configuration to comply with EN18031. Otherwise it will disable. |
| Baud Rate | Baud Rate (bits per second) of the Line. The default is 9600. Any standard speed between 9600 and 4000000 may be selected. You may also select a custom baud rate and enter any value between 9600 and 4000000. |
| Parity | Parity of the line. The default is None. Note: Serial lines do not support the following Data Bit/Parity combinations: - 7 Data Bits with No Parity and 1 Stop Bit - 8 Data Bits with 2 Stop Bits. |
| Data Bits | Number of data bits for the Line. The default is 8. Note: Serial lines do not support the following Data Bit/Parity combinations: - 7 Data Bits with No Parity and 1 Stop Bit - 8 Data Bits with 2 Stop Bits. |
| Stop Bits | Number of stop bits for the Line. The default is 1. |
| Flow Control | Flow control for the Line. Choices: None, Hardware, Software. The default is None. Hardware flow control is only supported on Line 1. |
| Gap Timer | Gap timer is the delay in milliseconds to pass from the last character received, before the driver forwards the received serial bytes. By default, the delay is four character periods at the current baud rate (minimum 1 msec). Gap Timer range is 1 to 5000 milliseconds. |
| Threshold | Number of threshold bytes which need to be received in order for the driver to forward received characters. Default value is 56 bytes. |
| Push | If defined, the driver will forward received characters after the Push sequence of characters is received. An example would be <J> |