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

Frame identifying method for serial data

An identification method and serial port data technology, applied in digital transmission systems, electrical components, error prevention, etc., can solve the problems of taking up a lot of CPU time, not being able to quickly extract effective frames for general use, and long decoding time, so as to achieve good versatility Effect

Active Publication Date: 2012-06-20
航天科工惯性技术有限公司
View PDF4 Cites 55 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this method is that it takes a long time from receiving a frame of data to decoding. In addition, it takes a lot of CPU time to manage the buffer, so the real-time performance is poor. In view of the fact that the above methods are not universal, they cannot meet the general requirements. , Quickly extract effective frames from data packets, and the software coding for different formats of communication data identification and extraction of frame content has poor reusability, versatility, and rapidity

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
  • Frame identifying method for serial data
  • Frame identifying method for serial data
  • Frame identifying method for serial data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention will be further introduced below in conjunction with the accompanying drawings.

[0032] The frame identification method of the serial port data in the present invention is realized by utilizing the two-level cache technology and the frame structure pattern matching method with frame format preset. Set the frame header, frame tail, data length, and verification method in the frame format before the first-level cache receives data, use the first-level cache to save the serial data frame to be identified, and identify while saving the bytes; the second The level frame structure buffer saves the whole frame data after recognition, including the correct frame structure data recognition, and counting the number of frames. It also includes identifying wrong frame data and statistics on wrong frames.

[0033] The specific implementation of the program:

[0034] The serial data frame format generally includes frame header field, frame tail field, data fi...

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 frame identifying method for serial data. According to the method, data frame identification is carried out on the received serial data by a two-stage buffering mechanism. The frame identifying method comprises the steps of: in the first stage buffering, carrying out data frame identification on the received data by using a frame head, a frame tail, frame length and a verifying and matching section as receiving parameters; and outputting identified correct data frames to the second-stage buffering; and in the second stage buffering, accessing the data frames output by the first stage buffering by adopting a first in first out array. The frame identifying method provided by the invention realizes universality and rapid reception of the serial data on the premise of identifying and extracting the data frames in a serial data packet.

Description

technical field [0001] The invention relates to a frame identification method of serial port data. Background technique [0002] Serial communication is an economical and effective data transmission method commonly used in industrial control applications, such as RS232, RS422 or RS485. Since these hardware protocols are byte-oriented, the basic unit of a sending and receiving is 8-bit data. In order to transmit an 8-bit command and data exceeding 8-bit length at one time, the common method is that the communication parties agree in advance Set of communication protocols. The system uses data packaging for transmission, and edits the data into a frame format: fixed-length or variable-length, and the sending and receiving parties perform framing and unframing according to the agreed format protocol. A frame contains multiple components. A simple frame format includes a frame header field, a data field, and a checksum, including the frame header, frame end, frame type, addre...

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 Applications(China)
IPC IPC(8): H04L1/00H04L29/06
Inventor 权晓蕾杨业明漆小彩陈留涛林渊秦振汉胡广明姜洪雷
Owner 航天科工惯性技术有限公司
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