UART Entity¶
API Documentation: [cpp] [python] [.NET] [CCA] [REST]
The UART entity is a class which allows a user to configure and control an arbitrary stream of serial data. These streams can represent a number of different transports, including a RS232 external interface, a virtual COM port, and onboard UART interfaces from system components. This entity allows each transport to be configured as either an endpoint, or as a passthrough between transports, similar to a switchboard of a telephone operator.
UART Control¶
USB-C-Switch Pro has the ability to be controlled via RS-232 on the RX and TX pins of the Expansion Connector. The USB-C-Switch Pro also supports VCOM (Virtual COM port) channels for USB-based serial communication. For additional information about the serial protocol, reference USB-C-Switch Pro Serial Communication Feature
UART Entity Indices¶
The USB-C-Switch Pro provides the following UART entity indices:
Index |
Description |
|---|---|
0 |
Hardware RS232 (Expansion Connector) |
1 |
VCOM_0 (Virtual COM port channel) |
UART Protocols¶
USB-C-Switch Pro has four protocol values enumerated.
Value |
Name |
Description |
|---|---|---|
0 |
Undefined |
Disabled/Undefined protocol |
1 |
Extron Responder |
Extron Compatible Protocol (backward compatibility) |
2 |
Brainstem Transport |
Brainstem Transport protocol |
3 |
Extron Initiator |
Extron initiator protocol |
4 |
Debug Shell |
Debug shell |
5 |
Valens Control Protocol |
Valens control protocol |
6 |
Loopback |
Loopback mode for testing |
7 |
REST Serial |
REST serial API (get/set api/v1/brainstem/…) |
UART APIs¶
UARTs are controlled through the following APIs: