Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A modbus serial port data processing method

A processing method and serial port data technology, applied in the direction of electrical digital data processing, multi-channel program device, inter-program communication, etc., can solve the problems of inefficient and accurate presentation of substation data, and achieve efficient data processing and high utilization rate , the effect of improving monitoring efficiency

Active Publication Date: 2020-09-25
HENAN PINGGAO ELECTRIC +2
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a Modbus serial port data processing method, which is used to solve the problem that the method of the prior art cannot present the substation data to the user in a timely, efficient and accurate manner

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
  • A modbus serial port data processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The specific embodiment of the present invention will be further described below in conjunction with accompanying drawing:

[0019] Generally, when processing serial communication data, the usual method is to put the acquisition thread and analysis thread in the main thread, which is no problem for x86 architecture machines with high CPU frequency, but for ARM architecture machine is very difficult. ARM-based machines have their own advantages and disadvantages compared to x86-based machines. In engineering applications, flexible configuration of machines according to actual engineering needs can optimize engineering solutions and achieve maximum benefits. This method is based on the Qt application program development framework, supports most mainstream operating systems, and has good portability; the algorithm adopts multithreading, separates data storage and data analysis, and can be easily transplanted on ARM architecture and x86 architecture machines, making The co...

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 provides a Modbus serial-port data processing method. A main thread parses a serial-port configuration file. A serial-port thread is used to be started according to commands of the mainthread, and enters event message cycles. A protocol thread is started, determines serial-port numbers according to serial-port configuration information, and stores Modbus commands, which are stored in a Modbus list of the serial-port thread, into a QModbusComList list of the protocol thread. A data thread is started, parses response information, detects, in real time, whether the QComDataList list stores data, and carries out processing when it is detected that the data exist. According to the method, multiple parallel serial ports are adopted on the basis of a Qt application program framework, a utilization rate on hardware is higher, resources consumed by a system are lesser, long-time collection, analysis and storage of an application program on Modbus data of the multiple serial portscan be guaranteed, and timely, highly efficient and accurate presentation of substation main-equipment status information to a user can be ensured.

Description

technical field [0001] The invention belongs to the technical field of on-line monitoring of substation primary equipment, and in particular relates to a Modbus serial port data processing method. Background technique [0002] The serial interface is referred to as serial port for short, also known as serial communication interface or serial communication interface (commonly referred to as COM interface), which is an extended interface using serial communication. Its characteristic is that the communication line is simple, as long as a pair of transmission lines can realize two-way communication, thus greatly reducing the cost, especially suitable for long-distance communication, serial port communication is an important research topic of substation intelligent component products, such as in ARM-based embedded systems In the development and application, for the debugging of the system program and the communication between the upper computer and the lower computer, serial por...

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): G06F9/54G06F9/4401G06F13/10G06F13/42
CPCG06F9/4411G06F9/546G06F13/102G06F13/4282
Inventor 张旭刘逸凡陈富国尹军华寇新民秦晓焕周瑞敏
Owner HENAN PINGGAO ELECTRIC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products