Difference between revisions of "Flasher Hub - UART Port"

From SEGGER Wiki
Jump to: navigation, search
(Connection)
(Connection)
Line 58: Line 58:
 
* Number of stop bits
 
* Number of stop bits
   
= Connection =
+
= IP Connection =
   
 
[[File: FH_UART_Port_PuTTY.png | 400 | thumb | An example configuration for connecting to Flasher Hub's UART Port using PuTTY as TCP/IP client application]]
 
[[File: FH_UART_Port_PuTTY.png | 400 | thumb | An example configuration for connecting to Flasher Hub's UART Port using PuTTY as TCP/IP client application]]

Revision as of 16:20, 2 May 2024

Example setup using Flasher Hub's 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.

  1. Running tests on the target after it was programmed
  2. Writing and reading calibration data on the target after it was programmed
  3. ...

A typical workflow that uses the UART Port looks as follows:

  1. Make sure the UART Port feature is active
  2. 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
  3. Open a TCP/IP connection to the UART Port
  4. Data sent to the UART Port via TCP/IP is forwarded to the target UART
  5. Data sent by the target UART is forwarded via TC/IP to the connected client

Configuration

Flasher Hub web interface UART page

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

IP Connection

An example configuration for connecting to Flasher Hub's UART Port using PuTTY as TCP/IP client application

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.