CN106160945A - Communication data packets method for packing and system for vehicle satellite alignment system - Google Patents
Communication data packets method for packing and system for vehicle satellite alignment system Download PDFInfo
- Publication number
- CN106160945A CN106160945A CN201610657530.2A CN201610657530A CN106160945A CN 106160945 A CN106160945 A CN 106160945A CN 201610657530 A CN201610657530 A CN 201610657530A CN 106160945 A CN106160945 A CN 106160945A
- Authority
- CN
- China
- Prior art keywords
- identifier
- tail
- data packets
- communication data
- alignment system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0006—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
- H04L1/0007—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
- H04L1/0008—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length by supplementing frame payload, e.g. with padding bits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0078—Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
- H04L1/0079—Formats for control data
Abstract
The present invention provides a kind of communication data packets method for packing for vehicle satellite alignment system, it would be desirable to the head that the data of transmission are added adds a first identifier, and the afterbody in described data adds a tail identifier;In this packet, add check code, complete data encapsulation;Described first identifier differs with tail identifier, and the present invention also provides for a kind of communication data packets package system for vehicle satellite alignment system, uses different beginning identifiers and end identifier can quickly, intuitively split every a piece of news.
Description
Technical field
The present invention relates to a kind of communication data packets method for packing for vehicle satellite alignment system and system.
Background technology
Message knot in " road transport vehicle satellite alignment system Big Dipper compatibility car-mounted terminal communications protocol technical specification "
Structure is closed identifier formed by identifier, message header, message body, check code.Flag uses 0x7e to represent, if check code, message
There is 0x7e in head and message body, escape process to be carried out, escape rule is defined as follows:
Afterwards immediately following a 0x02;
Afterwards immediately following a 0x01.
Start to 0x7e to terminate to be considered a piece of news from 0x7e theoretically, but if the data received are as follows:
Wherein be difficult to judge message A to, or message B to, it may be possible to above a piece of news terminates mark
Know position to make mistakes or loss of data, it is also possible to the beginning flag corrupt data of a piece of news or loss below.
Assume that end identifier uses 0x7c, then 0x7c occur in message header and message body, escape process to be carried out
(as 0x7e escape processes similar), can realize distinguishing message header and message ending in theory.But so need 2 escapes to process such as
0x7e, 0x7c escape, can affect program feature.
Summary of the invention
The technical problem to be solved in the present invention, is to provide a kind of communication data for vehicle satellite alignment system to encapsulate
Dress method and system, use different beginning identifiers and end identifier can quickly, intuitively split every a piece of news.
One of present invention is achieved in that a kind of communication data packets method for packing for vehicle satellite alignment system,
Comprise the steps:
The head that the data needing to send are added is added a first identifier;
Afterbody in described data adds a tail identifier;
In this packet, add check code, complete data encapsulation;Described first identifier differs with tail identifier.
Further, described first identifier and a length of two bytes of tail identifier.
The two of the present invention are achieved in that a kind of communication data packets package system for vehicle satellite alignment system,
Including such as lower module:
Add first identifier module, it would be desirable to the head that the data of transmission are added adds a first identifier;
Adding tail identifier module, the afterbody in described data adds a tail identifier;
Package module, adds check code in this packet, completes data encapsulation;Described first identifier is with tail identifier not
Identical.
Further, described first identifier and a length of two bytes of tail identifier.
Present invention have the advantage that a kind of communication data packets method for packing for vehicle satellite alignment system of the present invention
And system, use different beginning identifiers and end identifier can quickly, intuitively split every a piece of news.
Accompanying drawing explanation
The present invention is further illustrated the most in conjunction with the embodiments.
Fig. 1 is the execution flow chart of a kind of communication data packets method for packing for vehicle satellite alignment system of the present invention.
Detailed description of the invention
As it is shown in figure 1, the present invention is for the communication data packets method for packing of vehicle satellite alignment system, including walking as follows
Rapid:
The head that the data needing to send are added is added a first identifier;
Afterbody in described data adds a tail identifier;
In this packet, add check code, complete data encapsulation;Described first identifier differs with tail identifier, described
First identifier and a length of two bytes of tail identifier.
The present invention is for the communication data packets package system of vehicle satellite alignment system, including such as lower module:
Add first identifier module, it would be desirable to the head that the data of transmission are added adds a first identifier;
Adding tail identifier module, the afterbody in described data adds a tail identifier;
Package module, adds check code in this packet, completes data encapsulation;Described first identifier is with tail identifier not
Identical, described first identifier and a length of two bytes of tail identifier.
As long as by former head and the tail identifier extension to 2 bytes (Byte) it is achieved that if 0x7e 0xnn is the beginning of message
Identifier, 0x7e 0xmm is the end identifier of message.The span of nn, mm: 0x00~0xff (except 0x7e, 0x7d)
And nn ≠ mm.
Assuming that nn is 00, mm is ff, analysis below the most various situation message recognition effect.
1、
Analyze: message 1 is not over identifier;Message 2 is considered a complete message, and whether transmission has abnormal needs
Check code checks.
2、
Analyze: message 3 is not over identifier;Message 4 is considered a complete message, and whether transmission has abnormal needs
Check code checks.
3、
Analyze: message 5 does not starts to identifier;Message 6 is considered a complete message, and whether transmission has abnormal needs
Check code checks.
4、
Analyze: being not over identifier in message 7, wherein 0x7e 0x01 is invalid data, engage use at present with 0x7e
Only 0x7e 0x00 or 0x7e 0xff;Message 8 is considered a complete message, and whether transmission has needs check code extremely
Check.
5、Do not receive 0x7e character
Analyze: message 9 is not over identifier, it is believed that do not collect message content, continue waiting for receiving data, treat
Judge.
In sum, different beginning identifiers and end identifier is used can quickly, intuitively to split every a piece of news.
Although the foregoing describing the detailed description of the invention of the present invention, but those familiar with the art should managing
Solving, our described specific embodiment is merely exemplary rather than for the restriction to the scope of the present invention, is familiar with this
The technical staff in field, in the equivalent modification made according to the spirit of the present invention and change, should be contained the present invention's
In scope of the claimed protection.
Claims (4)
1. the communication data packets method for packing for vehicle satellite alignment system, it is characterised in that: comprise the steps:
The head that the data needing to send are added is added a first identifier;
Afterbody in described data adds a tail identifier;
In this packet, add check code, complete data encapsulation;Described first identifier differs with tail identifier.
A kind of communication data packets method for packing for vehicle satellite alignment system the most according to claim 1, its feature
It is: described first identifier and a length of two bytes of tail identifier.
3. the communication data packets package system for vehicle satellite alignment system, it is characterised in that: include such as lower module:
Add first identifier module, it would be desirable to the head that the data of transmission are added adds a first identifier;
Adding tail identifier module, the afterbody in described data adds a tail identifier;
Package module, adds check code in this packet, completes data encapsulation;Described first identifier and tail identifier not phase
With.
A kind of communication data packets package system for vehicle satellite alignment system the most according to claim 3, its feature
It is: described first identifier and a length of two bytes of tail identifier.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610657530.2A CN106160945A (en) | 2016-08-12 | 2016-08-12 | Communication data packets method for packing and system for vehicle satellite alignment system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610657530.2A CN106160945A (en) | 2016-08-12 | 2016-08-12 | Communication data packets method for packing and system for vehicle satellite alignment system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106160945A true CN106160945A (en) | 2016-11-23 |
Family
ID=57329915
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610657530.2A Pending CN106160945A (en) | 2016-08-12 | 2016-08-12 | Communication data packets method for packing and system for vehicle satellite alignment system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106160945A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108282219A (en) * | 2018-01-31 | 2018-07-13 | 中电福富信息科技有限公司 | The long link switching handling method of data communication for vehicle satellite positioning system |
CN110992069A (en) * | 2019-12-25 | 2020-04-10 | 杭州百代信息工程有限公司 | Traceable product detection data acquisition method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105759291A (en) * | 2016-05-05 | 2016-07-13 | 北京东方联星科技有限公司 | Difference positioning testing method and device for satellite-navigation ground-based augmentation system |
-
2016
- 2016-08-12 CN CN201610657530.2A patent/CN106160945A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105759291A (en) * | 2016-05-05 | 2016-07-13 | 北京东方联星科技有限公司 | Difference positioning testing method and device for satellite-navigation ground-based augmentation system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108282219A (en) * | 2018-01-31 | 2018-07-13 | 中电福富信息科技有限公司 | The long link switching handling method of data communication for vehicle satellite positioning system |
CN108282219B (en) * | 2018-01-31 | 2021-06-29 | 中电福富信息科技有限公司 | Long link switching processing method for data communication of vehicle satellite positioning system |
CN110992069A (en) * | 2019-12-25 | 2020-04-10 | 杭州百代信息工程有限公司 | Traceable product detection data acquisition method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110083088B (en) | Signal control conversion device and signal control conversion method | |
CN100594690C (en) | Method and device for safety strategy uniformly treatment in safety gateway | |
US9294302B2 (en) | Non-fragmented IP packet tunneling in a network | |
US8594098B2 (en) | Method, apparatus and system for transmitting data | |
CN103414538B (en) | A kind of packet method for sorting of distributed environment lower network data communication | |
US20090249059A1 (en) | Packet encryption method, packet decryption method and decryption device | |
CN106160945A (en) | Communication data packets method for packing and system for vehicle satellite alignment system | |
EP1225749A3 (en) | Methods and systems for creating an Ethernet upstream and a DOCSIS downstream packet by appending/extracting packet tags for support of remote network functions/packet classification | |
CN109450895B (en) | Traffic identification method, traffic identification device, server and storage medium | |
US11588665B2 (en) | VXLAN packet encapsulation and policy execution method, and VXLAN device and system | |
CN109525566A (en) | A kind of LoRaWan method for interchanging data based on enhanced MQTT message mechanism | |
CN101360090B (en) | Application protocol recognition method | |
CN104333549A (en) | Data package filtering method applied to distributive firewall system | |
WO2017193732A1 (en) | Method for encapsulating and decapsulating pseudo-wire data message, and relevant apparatus | |
CN106844275A (en) | Data transmission method and device | |
CN107517225B (en) | Protocol conversion method, gateway equipment and storage medium | |
CN115225734A (en) | Message processing method and network equipment | |
CN103220188B (en) | A kind of HTTP data acquisition equipment | |
CN108989175B (en) | Communication method and device | |
CN104410724A (en) | Method for realizing device type recognition in intelligent gateway based on HTTP protocol | |
CN105100246A (en) | Network flow management and control method based on downloaded resource name | |
WO2013075475A1 (en) | Method, device and system for carrying message service type to an based on gre extension | |
CN105676248B (en) | A kind of safe Beidou navigation chip and its application method | |
US11464057B2 (en) | Method and apparatus for high speed processing of GTP-U packet in a mobile network | |
CN105721402A (en) | Method and apparatus for analyzing SITA message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161123 |
|
WD01 | Invention patent application deemed withdrawn after publication |