当前位置:网站首页>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 - map vs mapPartitions operator
- The idea of commonly used shortcut key
- Disk management and file systems
- [ingress]-ingress exposes services using tcp port
- spark source code-RPC communication mechanism
- el-progress实现进度条颜色不同
- Autoware--Beike Tianhui rfans lidar uses the camera & lidar joint calibration file to verify the fusion effect of point cloud images
- 交换机原理
- 千亿IT运维市场,产品要凭实力说话
- Cloud computing - osi seven layers and TCP\IP protocol
猜你喜欢

Transport layer protocol (TCP 3-way handshake)

错误类型:反射。ReflectionException:无法设置属性“xxx”的“类”xxx”与价值“xxx”

RAID disk array

Mina's long and short connections

spark operator - map vs mapPartitions operator

Operation and maintenance engineer, come and pick up the wool

Configuration of TensorFlow ObjecDetectionAPI under Anaconda3 of win10 system

运维的高光时刻,从智能化开始

单臂路由实验和三层交换机实验

NIO works is analysed
随机推荐
[ingress]-ingress exposes services using tcp port
Growth: IT Operations Trends Report
Four ways to obtain Class objects through reflection
el-autocomplete使用
深度 Zabbix 使用指南——来自惨绿少年
The problem of calling ds18b20 through a single bus
el-progress实现进度条颜色不同
Xiaodu Xiaodu is here!
Introduction to Network Layer Protocols
时间复杂度和空间复杂度
技术分享杂七杂八技术
NIO works is analysed
网络不通?服务丢包?看这篇就够了
Does flink cdc currently support Gauss database sources?
Servlet跳转到JSP页面,转发和重定向
May I ask how to read the binlog of the two tables of hologres through flink sql, and then how to join?
Network wiring and digital-to-system conversion
Quick question and quick answer - FAQ of Tencent Cloud Server
监控系统的内卷,有什么讲究?
flink cdc 目前支持Gauss数据库源吗