![USB To RS232 Male CH340/PL2303](/upload/wiki/202406/17/17186912245188321579.jpg)
![USB To RS232 Male FT232](/upload/wiki/202406/17/17186912474562867786.jpg)
Product Overview
This product features a black PVC cable jacket, aluminum connectors, and DB9 interface with anti-slip fixing screws. It has a wide range of applications, suitable for devices such as scanners, touch screens, and industrial control computers. It is compatible with Windows, Mac OS, and Linux systems. The product comes with built-in CH340/PL2303/FT232 driver chips, making it plug-and-play.
![USB-To-RS232-Male Dimensional Diagram](/upload/wiki/202406/13/17183349041596349739.jpg)
Resource overview is as shown in the following figure:
![USB-To-RS232-Male Resource Overview Diagram](/upload/wiki/202406/13/17183349045034744081.jpg)
1. RS232 DB9 Male
2. Anti-slip fixing screws
3. USB Type A connector
Product Parameters
Model | USB-To-RS232 Male-CH340 | USB-To-RS232 Male-PL2303 | USB-To-RS232 Male-FT232 |
---|---|---|---|
Driver Chip | CH340C | PL2303GT | FT232RL |
Baud Rate | 50bps—2Mbps | 75bps—1Mbps | 300bps—1Mbps |
Driver Support | Windows, Linux, Mac OS | ||
Host Interface | USB Type A Connector | ||
Device Interface | USB-To-RS232-Male-Cable: RS232 DB9 Male head | ||
Dimensions | 1500mm (Length) * 5mm (Width) | ||
Cable Specifications | Black, PVC Outer Jacket, VW-1 | ||
Cable Rated Temperature/Voltage | 80℃ / 30V |
Usage
Connect the USB Type A connector of the product to the host,and use a serial assistant on the host to send data to devices connected to RS232 DB9 Male. This routine takes raspberry pie as an example,Use the Uartassist.exe serial assistant on your computer to configure the same baud rate as Raspberry Pi minicom,Using a serial assistant to send data to Raspberry Pi, The minicom window on the Raspberry Pi will display the data sent by the computer.
Windows Driver Installation
Download the relevant drivers
PL2303 | |
FT232 | Windows64:https://FT232_Driver_win64.rar Windows32:https://FT232_Driver_win32.rar |
CH340 |
PL2303 Driver Installation Steps:
Open the download driver file, click the PL23XX-M_LogoDriver...file.
![](/upload/wiki/202406/18/17187744210638704943.jpg)
Click to start the installation of the PL2303 driver, click Next, wait for the installation to complete, and click Finish.
![Installing PL2303 Driver 1](/upload/wiki/202406/18/17187744210308413946.png)
![Installing PL2303 Driver 2](/upload/wiki/202406/18/17187744211258625750.png)
![Installing PL2303 Driver 3](/upload/wiki/202406/18/17187744222699217313.jpg)
![Installing PL2303 Driver 4](/upload/wiki/202406/18/1718774422514298997.jpg)
FT232 Driver Installation Steps:
The FT232 driver download link is only for distinguishing between 32-bit and 64-bit systems, but the installation steps remain the same. Below are the steps to install the FT232 driver using a 64-bit system as an example:
![Installing FT232 Driver 1](/upload/wiki/202406/18/17187745712632571733.jpg)
![Installing FT232 Driver 2](/upload/wiki/202406/18/17187745714624490385.png)
![Installing FT232 Driver 3](/upload/wiki/202406/18/17187745715823804316.png)
![Installing FT232 Driver 4](/upload/wiki/202406/18/17187745716601351169.png)
![Installing FT232 Driver 5](/upload/wiki/202406/18/17187745719359681309.png)
CH340 Driver Installation Steps:
Open the downloaded driver file and double-click the SETUP.EXE file.
![Installing CH340 Driver 1](/upload/wiki/202406/18/17187745720299146405.png)
Select install, then wait for the installation to complete.
![Installing CH340 Driver 2](/upload/wiki/202406/18/17187748699763290483.png)
![Installing CH340 Driver 3](/upload/wiki/202406/18/17187748707549762268.png)
Device Connection (Using Raspberry Pi as an Example):
RS232 DB9 Male Connector Pin Definitions
![RS232 DB9 Male Connector Pinout Diagram](/upload/wiki/202406/18/17187748699781426735.jpg)
PIN | Name | Function |
---|---|---|
1 | DCD | Data Carrier Detect |
2 | RXD | Receive Data |
3 | TXD | Transmit Data |
4 | DTR | Data Terminal Ready |
5 | GND | Ground |
6 | DSR | Data Set Ready |
7 | RTS | Request To Send |
8 | CTS | Clear To Send |
9 | RI | Ring Indicator |
Connection Steps:
1.Check Device Usability
Ensure that the Raspberry Pi is connected to a display, mouse, and keyboard. Due to the voltage level structure, we cannot directly connect the RS232 signal to the Raspberry Pi platform, as it may damage the Raspberry Pi. In this case, an alternative method is needed for connection. One method is to use a USB to RS232 converter to assist in connecting to the Raspberry Pi. This converter can convert the RS232 baud rate to a USB-compatible baud rate and convert the output voltage level to the standard USB logic level of 5V.
RS232 Serial Cable | raspberry pi | |
Logic Level | ±3V——±15V | 3.3V |
Note:
When connecting the RS232 serial cable to other devices for communication, consider whether the device's voltage level structure is suitable for the RS232 serial cable.
2.Connecting DuPont Wires:
Cross-connect the TXD and RXD pins of the RS232 serial cable to the DB9 port of the USB to RS232 converter, and connect the GND pins to each other.
3.Once the connections are completed, refer to the diagram below:
![Connection Diagram](/upload/wiki/202406/19/17187850912115715228.png)
Testing
Initialization Configuration
Install the serial assistant on the Raspberry Pi. Open the terminal on the Raspberry Pi and enter the following command:
sudo apt-get install minicom
The result of the installation completion is displayed as shown in the following figure:
![Initialization Configuration](/upload/wiki/202406/18/17187748739325421147.jpg)
Device Recognition (Using FT232 as an Example):
1. Open the terminal on the Raspberry Pi. After connecting the device, run the following command to detect whether the device is recognized. If the content displayed in the red box below appears as shown in the figure, it indicates that the device has been recognized.
Enter the command:
lsusb
![Terminal Detection](/upload/wiki/202406/18/17187759243342101915.jpg)
2. Then enter the command to view the recognized serial port number.
ls -l /dev/tty*
Because the USB-To-RS232-Male-FT232 belongs to the USB serial converter device, the content highlighted in the red box in the figure is the serial port number we need to recognize.
![View Recognized Serial Port Number](/upload/wiki/202406/18/17187748750157975311.jpg)
3. Execute the command to view the serial port baud rate.
stty -F /dev/ttyUSB0
The terminal displays the following content:
![View Serial Port Baud Rate](/upload/wiki/202406/18/17187762096241728959.jpg)
4. Enter the command to view the serial port connection information. You will see the relevant information of the latest connected USB device.
dmesg | grep ttyUSB0
After entering the command, the terminal displays the content as shown in Figure below.
![](/upload/wiki/202406/18/17187762097025296068.jpg)
Configuring minicom
1.Enter the following command in the terminal to open minicom:
minicom -D /dev/ttyUSB0 -b 115200
Here, -D /dev/ttyUSB0 points to the serial port number we opened, and -b 115200 configures the baud rate. We can enter Ctrl+A in minicom to view it below. For our baud rate, if -b is not set, the baud rate defaults to 115200. After executing the command, the Raspberry Pi terminal displays as follows:
![Opening minicom window](/upload/wiki/202406/18/17187762096712705697.jpg)
2.Enter the command
sudo minicom -s
To open minicom, then press "Ctrl+A" and then press "Z" to open the serial port menu - select Serial port setup to set up the serial port.
![Open minicom configuration window](/upload/wiki/202406/18/17187762101232749016.jpg)
Continue by pressing "O" to open the serial port initialization configuration - follow the window prompts to set the serial port number and baud rate. Set the baud rate to 115200, and the detected serial port number is USB0.
![Minicom Configuration Window](/upload/wiki/202406/18/17187762102678417555.jpg)
PC Serial Port Initialization
On the PC side, also open the serial assistant (UartAssist.exe) and configure the same baud rate. Choose the appropriate port number. The port number of the serial module may change. You can configure it to the specified COM port through the following steps:
Right-click on the Windows icon/shortcut win+x in the lower left corner of the computer, and then left-click on Device Manager (M).
![Open PC Device Manager](/upload/wiki/202406/18/17187762103667113236.jpg)
1. Right-click on the corresponding COM port and select Properties:
![Open COM Port Properties](/upload/wiki/202406/18/1718776482922538039.jpg)
2. Click "Port Settings" in the window, then click "Advanced", choose the appropriate COM port number in the COM port number (except in use), and finally click OK.
![Set COM Port](/upload/wiki/202406/18/17187764847059119319.png)
Serial Port Detection
On the PC side, send data for detection. Check whether the minicom on the Raspberry Pi terminal receives the data. Observe whether the serial assistant on the Raspberry Pi displays normal data. The ideal results are as follows:
![PC Serial Assistant Sending Data](/upload/wiki/202406/18/17187764822044115517.png)
![Raspberry Pi Minicom Receiving Data](/upload/wiki/202406/18/17187766027997215684.jpg)
Note: When using the minicom serial assistant, you may sometimes find that keyboard input does not respond. This may be because the echo function of minicom is not enabled. You can follow these steps to solve this problem: Press the Ctrl + A key combination to enter minicom's command mode; Then press the E key to enable the echo function. If your keyboard input is displayed normally, you do not need to perform these operations.
Resources
Software Downloads
Serial Debugging Assistant Windows
Serial Debugging Assistant Android