Supercharge Your Innovation With Domain-Expert AI Agents!

Data communication framing method based on character escape

A data communication and data group technology, applied in the field of data communication, can solve problems such as abnormal data communication, misjudgment, and technical solutions that are not well resolved, and achieve the effect of ensuring uniqueness and effectiveness

Inactive Publication Date: 2020-03-24
SHANGHAI RADIO EQUIP RES INST
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As the number of communication bytes increases, the frame header or frame tail, as a specific identifier of a complete data frame, is likely to overlap with the data in the data area, which can easily cause misjudgment during data reception, resulting in abnormal data communication The problem
To this situation, the prior art does not have a good solution

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
  • Data communication framing method based on character escape
  • Data communication framing method based on character escape
  • Data communication framing method based on character escape

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0054] like Figure 2 ~ Figure 4 As shown, a data communication framing method based on character escape includes the following steps:

[0055] Step S1, using a ping-pong cache to cache the original data to ensure that the content of the data communication is not lost.

[0056] In the process of data transmission and reception, the ping-pong buffer structure is used as the data input / output buffer. By setting the flag bit, the flag bit of the currently operating buffer area is set to busy, and data rewriting cannot be performed; the flag bit of the other buffer area is set If it is idle, data rewriting can be performed.

[0057] Step S2, according to the determined frame data format, complete the data group frame initialization.

[0058] like figure 2 As shown, a complete data frame includes frame header (0xA5, 0x5A), data communication content, first fixed value (0x00), CRC checksum, second fixed value (0x00), length information, third fixed value ( 0xAA) and end of fram...

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 data communication framing method based on character escape. The data communication framing method comprises the following steps: S1, caching original data; s2, initializingdata framing to obtain a data set with the frame structure; wherein the frame structure is composed of a frame header, data communication content, a fixed value, a CRC checksum, a fixed value, lengthinformation, a fixed value and a frame tail in sequence; S3, verifying the data communication content by adopting a CRC verification mode, and calculating a checksum; S4, traversing the data communication content, and performing character escape processing on the data which is the same as the frame tail; and S5, correcting the length information of the data set, and updating the length informationof the data frame to be sent. According to the data communication framing method based on frame tail character escape, it can be guaranteed that the frame tail is a unique identifier in the whole data frame, the situation that the frame tail is misjudged is avoided, the CRC checksum of the received data is calculated, the effectiveness of the data is verified, and the reliability of data communication can be remarkably improved.

Description

technical field [0001] The invention belongs to the field of data communication and relates to a data communication framing method based on character escape. Background technique [0002] Data communication is a two-way data communication process, which is widely used in various electronic devices. Regardless of the data sending process or the data receiving process, as the number of communication bytes increases, the frame header or frame tail, as a specific identifier of a complete data frame, is likely to overlap with the data in the data area, which can easily cause data reception. Misjudgment in the process, which will cause abnormal data communication. [0003] By searching for relevant public literature on data communication, there are mainly "C language escape character analysis", "Analysis of escape characters", etc. escape character refers to a special expression of character constants in C language Form, used to represent the control characters and format charac...

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): H04L29/06H04L1/00
CPCH04L1/0061H04L69/03H04L69/06H04L69/26
Inventor 王珺张靓郭冬梅
Owner SHANGHAI RADIO EQUIP RES INST
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More