当前位置:网站首页>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
边栏推荐
猜你喜欢
监控系统的内卷,有什么讲究?
网络布线与数制转换
disabledDate 日期选择器 datePicker
The problem come from line screening process
Take you in-depth understanding of cookies
Complete mysql offline installation in 5 minutes
单臂路由实验和三层交换机实验
RAID disk array
What are some things that you only know when you do operation and maintenance?
错误类型:反射。ReflectionException:无法设置属性“xxx”的“类”xxx”与价值“xxx”
随机推荐
spark source code - task submission process - 3-ApplicationMaster
The problem come from line screening process
link 和@improt的区别
CIPU, what impact does it have on the cloud computing industry?
云计算——osi七层与TCP\IP协议
Disk management and file systems
运维工程师,快来薅羊毛
Technology Sharing Miscellaneous Technologies
正则表达式小实例--去掉字符串中间和两边的空格
static routing
增长:IT运维发展趋势报告
Take you in-depth understanding of cookies
Growth: IT Operations Trends Report
用户和用户组管理、文件权限管理
May I ask how to read the binlog of the two tables of hologres through flink sql, and then how to join?
Programmers should understand I/O this way
Mongodb查询分析器解析
spark operator-textFile operator
sql server 重复值在后面计数
Spark source code - task submission process - 4-container to start executor