当前位置:网站首页>Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive
Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive
2022-08-05 06:21:00 【hongke_iiot】
Foreword
Industrial Raspberry Pi series products do not have direct RS232 interface. Therefore, for some devices with only RS232 interface, Industrial Raspberry Pi cannot directly connect and communicate with them.In this regard, Hongke recommends using an RS232 to serial converter to realize the communication between the industrial Raspberry Pi and the RS232 device.
However, most of the RS232 to USB converters on the market only support Windows system without driver, not Linux system, which requires us to install the corresponding driver version for the industrial Raspberry Pi.However, due to the different paths, the installers provided by the RS232 to USB converter manufacturers are not fully applicable to the industrial Raspberry Pi, and some modifications are required.This article will share a solution for driver installation using Greenlink RS232 to USB converter.
I. Tools required
1. A laptop
2. An industrial Raspberry Pi core module/controller module
3. A Greenlink S232 to USB converter
Second, operating steps
1. Install the corresponding version of the kernel-headers, and the content of the following picture is displayed, indicating that the installation is successful.
sudo apt install raspberrypi-kernel-headers

2. During the installation process, apt may report an error, indicating that the installation failed, but a URL will also be exposed at this time, which needs to be copied and placed in the PC browser to download the deb file.After the download is successful, import the file to the industrial Raspberry Pi through the file transfer tool, and execute the following command:
sudo apt install ./xxxx.deb
3. After the installation is successful, try to execute the following command to enter the corresponding folder.If you can enter, it means the installation is successful.
cd /lib/modules/`uname -r`/build

4. Check the kernel version of the industrial Raspberry Pi.
uname -r
5. Use the file transfer tool to transfer the driver corresponding to the kernel version provided by GreenLink to 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 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. The installation was successful.
Three, Summary
The method shared in this article is only for the RS232 to USB converter of Greenlink. Most of other brand converters can also use this operation step, but some special cases are not excluded, which is for reference only.Through the above methods, the industrial Raspberry Pi can easily collect the data of the RS232 device through the serial port/Modbus RTU and other communication methods, and process it in the industrial Raspberry Pi.
Four. Introduction to the scheme
The Raspberry Pi products of Hongke Industrial have a real-time Raspbian system, and the built-in Broadco multi-core processor has the ability to process complex tasks such as image processing.

In addition, it is small and flexible, with low power consumption, supports development with Python/Java/C/C++/C#, Node-RED visual programming tools, and can also implement CPDESYS soft PLC functions, which can be used in data acquisition and small control scenarios.It can help users to quickly create applications, realize the industrial Internet of things and digital production.

More information: Hohuln Industrial Internet of Things——Your Industrial IoT Expert
边栏推荐
- wc、grep、tar、vi/vim
- LinkSLA insists that users come first and creates a sustainable operation and maintenance service plan
- VRRP principle and command
- Browser Storage WebStorage
- spark source code - task submission process - 2-YarnClusterApplication
- I217-V network disconnection problem in large traffic under openwrt soft routing
- VLAN details and experiments
- 618,你也许可以清醒亿点点
- TCP/IP four-layer model
- Mongodb查询分析器解析
猜你喜欢
随机推荐
RAID磁盘阵列
618, you may be able to wake up a little bit
Growth: IT Operations Trends Report
Spark source code-task submission process-6.1-sparkContext initialization-create spark driver side execution environment SparkEnv
LeetCode面试题
Introduction to Network Layer Protocols
I217-V network disconnection problem in large traffic under openwrt soft routing
In-depth Zabbix user guide - from the green boy
用户和用户组管理、文件权限管理
正则表达式小实例--去掉字符串中间和两边的空格
Tencent greetings function SCF - entry instructions
Tencent Cloud Message Queue CMQ
Regular expression small example - get number character and repeated the most
selenium模块的操作之拉钩
5分钟完成mysql离线安装
带你深入了解Cookie
网络布线与数制转换
[问题已处理]-jenkins流水线checkout超时
[Day1] VMware software installation
Into the pre-service, thought they play so flowers


![[Day6] File system permission management, file special permissions, hidden attributes](/img/ec/7fb3fa671fac8abf389844c0f4fbe7.png)






