Flasher Hub - UART Port
UART Port, formerly known as "UART Transceiver", is a feature of Flasher Hub-12 that makes it possible to communicate with a target UART.
Usage
The UART Port can be used to communicate with a target UART for e.g.
- Running tests on the target after it was programmed
- Writing and reading calibration data on the target after it was programmed
- ...
A typical workflow that uses the UART Port looks as follows:
- Make sure the UART Port feature is active
- Configure and enable the UART Port for the desired module position
- This can be done via the terminal (see #TERMINAL command) or the web interface
- Open a TCP/IP connection to the UART Port
- Data sent to the UART Port via TCP/IP is forwarded to the target UART
- Data sent by the target UART is forwarded via TC/IP to the connected client
Configuration
The UART Port feature can be activated using the Config → Flasher Hub page of the web interface. The base port setting determines the port numbers that Flasher Hub will open for its modules:
Module UART Port number = Base port + Module position
For the default base port (2000), the following ports result:
Module position | UART Port number |
---|---|
1 | 2001 |
2 | 2002 |
3 | 2001 |
[...] | [...] |
24 | 2024 |
Once the UART Port feature is active, UART Ports for selected modules can be enabled using
- the UART page of the web interface or
- the terminal command #TERMINAL
UART Settings
The following list of parameters can be configured for a module's UART Port:
- Baudrate
- Number of data bits
- Parity
- Number of stop bits
UART connection
With the UART Port enabled, the target interface of the respective Flasher Compact module looks as follows:
Pin | Signal | Type | Description |
---|---|---|---|
1 | VTref | Input | Target reference voltage. It is used to create the logic-level reference for the input comparators and to control the output logic levels to the target. |
5 | Flasher Tx | Output | Flasher → Target |
17 | Flasher Rx | Input | Target → Flasher |
19 | V5-Supply | Output | This pin can be used to supply power to the target board. |
IP Connection
Once a modules' UART Port is enabled, a TCP/IP client can connect to it by opening a raw connection to Flasher Hub's IP address and the respective UART Port number.
Both are displayed on the UART page of the web interface for convenience.
After connecting, data sent by the client is output on the modules' UART. In the same data that is sent by the target UART is sent to the client.