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

General multiple serial port communication protocol detection and identification method

A technology of serial port communication and communication protocol, which is applied in the direction of digital transmission system, electrical components, transmission system, etc. It can solve problems such as non-execution, system failure, and frame loss, so as to improve reliability, improve software reliability, and improve work efficiency. Effect

Active Publication Date: 2016-06-15
XIAN AEROSPACE PROPULSION TECH INST
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In the above two cases, the usual detection and identification algorithms will mistake these bytes for the real frame header and then delete a few useful bytes, resulting in frame loss, unable to perform the required action or fail to monitor the key state , may cause system failure

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
  • General multiple serial port communication protocol detection and identification method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Embodiment 1, a kind of general multiple serial port communication protocol detection identification method, is characterized in that, comprises the steps:

[0039] Step 1. For n types of serial communication protocols, write the serial communication protocols into the ins configuration file, and configure the sequence 1 to n for each serial communication protocol in the ins configuration file.

[0040] The second step is to read the bytes in the serial port receiving buffer into the ring buffer.

[0041] The third step is to detect the first type of communication protocol data frame from the effective data in the ring buffer, and use the first address of the first type of communication protocol data frame as the most front first address. The initial value of the detection order i is set to 2.

[0042] The fourth step is to detect the i-th communication protocol data frame from the valid data in the ring buffer, if detected, enter the fifth step, otherwise judge whethe...

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 general multiple serial port communication protocol detection and identification method, and relates to the digital communication field. The method comprises the following steps: writing n serial port communication protocols into an ins configuration file; reading bytes in a serial port reception buffer area to an annular buffer area; detecting a front-most data frame start address in the annular buffer area; judging whether the number of detected data frames meeting a communication protocol is not 0, and if so, copying the content of the detected data frames to a target array, carrying out analysis and deleting the detected data frames from the valid data in the annular buffer area; judging whether the length of the valid data in the annular buffer area is larger than or equal to frame length maxprolen of the communication protocol, the frame length of which is the longest, and if so, keeping the newly-written maxprolen-1 bytes in the valid data in the annular buffer area and deleting other bytes; or otherwise, reading quit identification, and if the quit identification is effective, quitting the method. The method can detect, identify and analyze all of the data frames meeting the communication protocol under the condition of having various abnormities.

Description

technical field [0001] The invention relates to the field of digital communication, in particular to a method for detecting and identifying various serial port communication protocols of various electrical components in various missile weapon systems and industrial control systems. Background technique [0002] Serial communication, such as RS-232, RS-422, RS-485, as a digital communication method with high stability and convenient construction, is most widely used in missile weapon systems and industrial control systems. The data frame of the communication protocol is used to complete a specific function or to monitor the status of other components. [0003] The information interaction between the electrical components in the missile weapon system is intricate, and the communication protocols are often quite different. At present, the common method for detecting and identifying different communication protocols is to write specific communication protocols in the software c...

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
IPC IPC(8): H04L12/26
CPCH04L43/08H04L43/18
Inventor 李晖刘晓燕王芳王巧明许哲
Owner XIAN AEROSPACE PROPULSION TECH INST
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