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

Dynamic parameter configuration-based general framing and de-framing method for serial port data frames

A technology of dynamic parameters and serial port data, applied in the direction of digital transmission system, electrical components, error prevention, etc. Poor performance and other issues, to achieve the effect of fast frame resolution

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

AI Technical Summary

Problems solved by technology

This method is effective for a single serial interface (such as RS422, RS232, etc.) or a single frame format, but for different serial interfaces or communication methods with multiple frame protocol formats, each communication protocol needs to be individually configured. The analysis of the software code needs to be re-encoded. In view of the fact that this method is not universal, it cannot meet the requirements of general and fast analysis of communication data. The reusability, versatility, and rapidity of the software coding for the analysis frame content of communication data in different formats are poor.

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
  • Dynamic parameter configuration-based general framing and de-framing method for serial port data frames
  • Dynamic parameter configuration-based general framing and de-framing method for serial port data frames
  • Dynamic parameter configuration-based general framing and de-framing method for serial port data frames

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention is implemented by dynamically configuring the frame format and frame content. Before the data is deframed, the frame format and frame content are configured and a configuration file is formed. When deframing, the corresponding parameters are first read from the configuration file, and then configured according to The frame format and frame content require automatic deframing. The configuration file includes the frame format configuration parameters of the present invention.

[0021] The frame format configuration parameters are loaded into the computer memory before deframing, and directly called when deframing, which solves the problem of slow disk operation; at the same time, open up the corresponding memory space to save the deframing results, and directly fetch them from the memory when reading the results Number, the speed is very fast; in the process of deframing, double buffering technology is used to further ensure the rapidity of deframing...

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 dynamic parameter configuration-based general framing and de-framing method for serial port data frames, which comprises the following steps of: 1. performing conversion on data frames to be transmitted in a serial port unit according to frame format configuration parameters; 2. transmitting the converted data frames through the serial port unit; 3. receiving the converted data frames through the other serial port unit; and 4. performing de-framing on the data frames received by the other serial port unit according to the frame format configuration parameters. The data frames to be transmitted in the serial port units are matched in advance according to the preset frame format configuration parameters, the matched data frames to be transmitted are transmitted, and the received data frames are de-framed by the receiving serial port unit according to the preset frame format configuration parameters, therefore, the method can be applied to communication of the serial port units of different types; the invention provides the general method; and the method can also realize quick de-framing.

Description

technical field [0001] The invention relates to a method for framing and deframing of serial port data, in particular to a method for general and rapid framing and deframing of serial port data. Background technique [0002] Traditional serial port data calculation method: when data is sent, the actual physical quantity is converted into the required byte array through different software codes for different communication protocols and frame formats, and then sent out; when data is received, it is used for different communication protocols and frame formats The format receives data from the hardware interface through different software codes and forms a complete frame of data, and then converts the serial port data into actual physical quantities in the way of first high and then low or first low and then high according to the definition of the data frame format. This method is effective for a single serial interface (such as RS422, RS232, etc.) or a single frame format, but ...

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 航天科工惯性技术有限公司