当前位置:网站首页>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
边栏推荐
- 网络不通?服务丢包?看这篇就够了
- spark operator-wholeTextFiles operator
- Spark source code-task submission process-6.2-sparkContext initialization-TaskScheduler task scheduler
- TCP/IP four-layer model
- 带你深入了解Cookie
- Tencent greetings function SCF - entry instructions
- 正则表达式小实例--验证邮箱地址
- Insight into the general trend of the Internet, after reading this article, you will have a thorough understanding of Chinese domain names
- 通过反射获取Class对象的四种方式
- The spark operator - repartition operator
猜你喜欢
随机推荐
flink cdc 目前支持Gauss数据库源吗
[Day1] VMware software installation
The Servlet to jump to the JSP page, forwarding and redirection
Take you in-depth understanding of cookies
监控系统的内卷,有什么讲究?
传输层协议
正则表达式小实例--验证邮箱地址
Does flink cdc currently support Gauss database sources?
product learning materials
el-progress实现进度条颜色不同
Disk management and file systems
wc、grep、tar、vi/vim
Apache configure reverse proxy
ROS video tutorial
Small example of regular expression--remove spaces in the middle and on both sides of the string
Billions of IT operations in the market, the product by strength to speak
I/O性能与可靠性
逻辑卷创建
Mongodb query analyzer parsing
Logical volume creation