CH34X class
Overview
Many devices formerly connected via UART have been equipped with USB interfaces using serial to UART converters such as the CH34X USB-to-UART Bridges from WCH. emUSB-Host is capable of easily addressing such devices.
Key features
- Compatibility with different CH34X devices
- Ability to send and receive data
- Ability to set various parameters, such as baud rate, number of stop bits, parity
- Handling of multiple CH34X devices at the same time
- Notifications about CH34X connection status
- Ability to query the CH34X line and modem status
- Small footprint
Application Samples emUSB-Host CH34X

CH34X USB to UART Bridge
Compatibility
The following devices were tested with the current CH34X driver:
- CH340B
- CH340C
- CH340E
- CH340G
- CH340K
- CH340N
- CH340T
- CH340A
Example Code Included
An example application which uses the API is provided with any shipment or eval software including emUSB-Host. This example displays information about the CH34X device in the I/O terminal of the debugger. In addition the application then starts a simple echo server, sending back the received data. Several application samples can also be found on the emUSB-Host sample page.
Requirements
Components required to use emUSB-Host CP210x:
- emUSB-Host CH34X
- emUSB-Host core (Included in emUSB-Host PRO package)
- emUSB-Host target driver (One driver is included in emUSB-Host PRO package)
- Real-time operating system (embOS or other)