Unlock instant, AI-driven research and patent intelligence for your innovation.

Real-time transceiver method, device and storage medium based on linux platform

A real-time receiving and platform technology, applied in the bus network, data exchange through path configuration, etc., can solve the problems of heavy workload, need to modify the driver, and modify the driver with a large workload, so as to achieve rapid migration, solve risks, and reduce migration. The effect of workload

Active Publication Date: 2021-11-09
ZHUHAI PILOT TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In order to overcome the deficiencies of the prior art, one of the purposes of the present invention is to provide a real-time transceiver method based on the Linux platform, which can solve the technical problems of the prior art with a large workload and the need to modify the driver
[0010] The second object of the present invention is to provide an electronic device, which can solve the technical problems of heavy workload and need to modify the drive in the prior art
[0011] The third object of the present invention is to provide a computer-readable storage medium, which can solve the technical problems of heavy workload and need to modify the driver in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Real-time transceiver method, device and storage medium based on linux platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] The invention provides a real-time sending and receiving method based on a Linux platform, and relates to an electric meter product realized by using a LINUX operating system, and a device for collecting and transmitting data through a serial port RS485.

[0039] The MODBUS RTU protocol specification is an industry standard (De facto) for communication protocols in the industrial field, and is now a common connection method between industrial electronic devices. The main reasons why Modbus is more widely used than other communication protocols are: public publication and no copyright requirements, easy deployment and maintenance; Modbus RTU In data acquisition and supervisory control systems (SCADA), Modbus is usually used to connect monitoring computers and remote terminals Control system (RTU).

[0040] Such as figure 1 As shown, the real-time transceiving method based on Linux platform of the present invention comprises the steps:

[0041] S1: Set the current threa...

Embodiment 2

[0052] Embodiment 2 discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the following steps are implemented:

[0053] Setting step: set the current thread as the state of receiving data in real time, and set the state of receiving data in real time as the highest priority; detection step: detect whether the serial port device has collected data, if so, execute the judgment step, otherwise judge whether it is in the preset Collect the data within the waiting period, if so, execute the judgment step, otherwise re-detect the serial port device; judgment step: judge whether the frame length of the collected data meets the preset byte, if so, execute the matching step, otherwise , continue to collect the remaining bytes of the data; matching step: match each component in the frame format of the data with the corresponding information in th...

Embodiment 3

[0056] Embodiment 3 discloses a readable computer storage medium, which is used to store a program, and when the program is executed by a processor, the real-time sending and receiving method of Embodiment 1 is implemented.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a real-time sending and receiving method based on a Linux platform, which comprises the following steps: setting the current thread to the state of receiving data in real time, when the serial port device collects data, then executes to judge whether the data satisfies the preset byte, and when it is satisfied, the Each component in the frame format of the data is matched with the corresponding information in the cache, and when each component is consistent with the corresponding information in the cache, the data is received; otherwise, the data is discarded and Empty the cache; if the preset byte is not satisfied, then judge whether the data is collected in the preset waiting time, if so, judge whether the preset byte is satisfied, otherwise re-detect the serial port device; the present invention realizes the protocol in the user state The functional modular design can get rid of the dependence on the hardware serial port driver; realize the fast transplantation appeal across hardware platforms, reduce the workload of transplantation, and solve the risks introduced by modifying the driver.

Description

technical field [0001] The invention relates to the technical field of data sending and receiving, in particular to a real-time sending and receiving method, equipment and storage medium based on a Linux platform. Background technique [0002] At present, with the development of the power electronics industry, the product functions are becoming more and more complex, the LINUX-based operating system platform is more and more widely used, the product hardware is constantly updated, and the product application function porting activities are becoming more and more frequent. [0003] Linux is a non-real-time system. The rs485 driver provided by linux adopts a simple delay flow control algorithm. In the field of data acquisition, MODBUS RTU protocol communication needs to be implemented, and the delay time is too long or not real-time, which causes the slave The device cannot split MODBUS RTU protocol data packets, resulting in data loss. [0004] The current solutions are all ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/40
Inventor 范竞昭郭玉娟张民恕彭洁
Owner ZHUHAI PILOT TECH