
Get more IIoT insights
Click the blue text
Follow us


HongKe
IIoT
HongKe teaches you how to easily install RS232 to USB driver on industrial Raspberry Pi
Correctly install RS232 to USB driver
Introduction
The industrial Raspberry Pi series does not provide a direct RS232 interface, so devices that only have RS232 interfaces cannot be directly connected and communicated with the industrial Raspberry Pi. Therefore, HongKe recommends using an RS232 to serial converter to achieve communication between the industrial Raspberry Pi and RS232 devices.
However, most RS232 to USB converters on the market only support driver-free installation for Windows systems and do not support driver-free installation for Linux systems, which requires us to install the corresponding driver version for the industrial Raspberry Pi. However, due to the different paths, the installation program provided by the RS232 to USB converter manufacturer cannot be fully applicable to the industrial Raspberry Pi and requires some modifications. This article will share a solution for installing the driver using the Ugreen RS232 to USB converter.
HongKe Technology
Hong
/
Ke
/
Fang
/
An
01
Required Tools
1. A laptop
2. An industrial Raspberry Pi core module/controller module
3. A Ugreen RS232 to USB converter

02
Operation Steps
1. Install the corresponding version of kernel-headers. If the content shown in the following image appears, it indicates that the installation was successful.
sudo apt install raspberrypi-kernel-headers

2. During the installation process, there may be an apt error indicating a failed installation, but at this time, a URL will also be exposed. You need to copy this URL and paste it into your PC browser to download the deb file. After successful download, use a file transfer tool to import the file into the industrial Raspberry Pi and execute the following command:
sudo apt install ./xxxx.deb
3. After successful installation, try to execute the following command to enter the corresponding folder. If you can enter, it indicates that the installation was successful.
cd /lib/modules/`uname -r`/build

4. Check the kernel version of the industrial Raspberry Pi.
uname -r
5. Use a file transfer tool to transfer the driver corresponding to the kernel version provided by Ugreen into the industrial Raspberry Pi and run the following command to enter the driver folder:
cd PL2303G_Linux_Driver_v1.0.6/4.19_ok/

6. Execute the following command to install the driver file:
make all

7. Copy the new driver program to the kernel.
sudo cp pl2303.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial

8. Edit the modules file and add the following information:
sudo nano /etc/modules


9. Restart the industrial Raspberry Pi.
reboot
10. Installation successful.

03
Conclusion
The method shared in this article is only applicable to Ugreen’s RS232 to USB converter. Most other brand converters can also use this operation step, but there may be individual exceptions, for reference only. Through the above method, the industrial Raspberry Pi can easily collect data from RS232 devices via serial/Modbus RTU communication and process it within the industrial Raspberry Pi.

04
Solution Introduction
The HongKe industrial Raspberry Pi product features a real-time Raspbian system, built-in Broadcom multi-core processor capable of handling complex tasks such as image processing.

In addition, it is compact and flexible, low power consumption, supports development using Python/Java/C/C++/C#, Node-RED visual programming tools, and can achieve CPDESYS soft PLC function, helping users quickly create applications in data collection and small control scenarios, realizing industrial IoT and digital production.



HongKe–Industrial IoT
HongKe is a high-tech company with over 3 years of experience in the industrial IoT IIoT industry. HongKe collaborates with top companies in the world, including EXOR, Eurotech, Unitronics, Matrikon, KUNBUS, etc., providing advanced high-end industrial 4.0 industrial touch screens, high-end edge computers, IoT development frameworks, PLC and HMI integrated machines, OPC UA, industrial Raspberry Pi, SCADA and other solutions. All members of the IoT division are professionally trained and certified, with an average of 3+ years of technical experience, consistently earning excellent reputations from customers. We actively participate in industry associations, making significant contributions to the promotion of advanced technology. To date, HongKe has provided various solutions from hardware to software for numerous users in the industry and has participated in and assisted many OEM device research and development and migration projects, as well as smart factory and industrial 4.0 upgrade projects for end users.

Follow HongKe for more cutting-edge IIoT knowledge
Previous Issues
Highlights
RevPi Application Case · Here
● Quickly get sensor data to the cloud in just 4 steps using CloudRai.Box
● How to achieve industrial protocol and MQTT conversion in low-code/no-code manner?
● Five possible uses of industrial Raspberry Pi as a soft PLC
● How industrial Raspberry Pi easily solves three major challenges facing IIOT with CODESYS
Edge Computing · What You Should Know
● Want to realize device servitization? You need a powerful edge device!
● What is the machine-as-a-service model?
● What characteristics should HMI for the food & pharmaceutical industry have?
● Application of smart industrial control screen eX707 in underwater remote-controlled robots
What You Want to Know · OPC UA
● How to solve the headache of DCOM configuration
● A step-by-step guide to mastering all your UA servers using the OPC UA data platform
Powerful Data Acquisition and Monitoring System · mySCADA
● Example of myBOX wastewater treatment automation and control upgrade
● Example of remote monitoring for smart buildings/homes
MQTT Broker · HiveMQ
● Helping AGV vehicles communicate with control systems
● IAV uses HiveMQ and automotive data to build a city flood warning system
● BMW car-sharing application relies on powerful HiveMQ for reliable connectivity