CN110324356A - A kind of blended data packet processing method of multiclass bus data - Google Patents

A kind of blended data packet processing method of multiclass bus data Download PDF

Info

Publication number
CN110324356A
CN110324356A CN201910647635.3A CN201910647635A CN110324356A CN 110324356 A CN110324356 A CN 110324356A CN 201910647635 A CN201910647635 A CN 201910647635A CN 110324356 A CN110324356 A CN 110324356A
Authority
CN
China
Prior art keywords
data
packet
message
bus
processing method
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.)
Granted
Application number
CN201910647635.3A
Other languages
Chinese (zh)
Other versions
CN110324356B (en
Inventor
朱晨晨
李申
许中冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Qianshan Avionics Co Ltd
Original Assignee
Shaanxi Qianshan Avionics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shaanxi Qianshan Avionics Co Ltd filed Critical Shaanxi Qianshan Avionics Co Ltd
Priority to CN201910647635.3A priority Critical patent/CN110324356B/en
Publication of CN110324356A publication Critical patent/CN110324356A/en
Application granted granted Critical
Publication of CN110324356B publication Critical patent/CN110324356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to avionics fields, especially relate to a kind of blended data packet processing method of multiclass bus data.Different bus datas, it is had differences between its record format, this method is the format for unifying format according to specific regular splitting and reorganizing by every packet initial data to record, the unification of single packet format of different type bus data is realized, convenient for the second development and utilization of bus data.

Description

A kind of blended data packet processing method of multiclass bus data
Technical field
The invention belongs to avionics field, at the blended data packet for especially relating to a kind of multiclass bus data Reason method.
Background technique
With the continuous development of technology, bus data using more and more, in order to save record space, exist multiclass Bus data is packaged record, and the case where include multiple bus message in a bag data, but different bus data record lattice Formula has differences, and needs to do specially treated for different bus data types, and data parsing maintenance is inconvenient, is unfavorable for data Secondary development application.
Summary of the invention
Goal of the invention: the object of the present invention is to provide a kind of blended data packet processing methods of multiclass bus data, solve Multiclass bus data is due to format differences, processing method disunity, inflexible problem.
Technical solution: a kind of blended data packet processing method of multiclass bus data, described method includes following steps:
S1: configuration processing message file;
S2: reading the processing message file in S1, obtains the relevant information in table;
S3: reading the initial data of record, carries out recombination of unpacking to data;
S4: the data packet of same type in S3 is sequentially ranked up from small to large according to embedded packet timestamp;
S5: reading the combined information after splitting in single bag data, is formed only with certain table information in processing message file One corresponding relationship, packet-by-packet reads data, completes the parsing reduction of bus data.
Further, the blended data packet of a variety of bus datas includes packet synchronisation word, data type, packet message It counts and the message data of every kind of data embeds packet timestamp, message data length, message flag, message data, every packet is former The essential elements that beginning bus data need to have is shown in Table 1:
The indispensable element that 1 original bus data packet of table need to include:
Packet synchronisation word
Data type
Packet message count
Message data 1 embeds packet timestamp
1 length of message data
Message flag
Message data 1
……
Message data n embeds packet timestamp
Message data n length
Message flag
Message data n
The meaning of division name is as follows in table:
Packet synchronisation word: being made of stationary digital, as the mark for judging data packet starting.
Data type: it is corresponded by the numerical value and bus data type of agreement.
Packet message count: the message sum for including in a bag data.
Length: refer to byte number total in message.
Message flag: the key message of corresponding design parameter in message is determined.
Further, the processing Information File Formats in the step S1 are Excel table, in an Excel table, people Work configures multiple tables, and of a sort message corresponds to a unique table, the naming rule of table name be " Data Labels+data type+ Sample frequency ", content should include restoring method, unit, data start bit, data length and the extreme value range needed for reduction in table Deng.
Further, the step S3 includes:
S3.1: retrieval " packet synchronisation word " is read " data type ";
S3.2: " packet message sum " N is read, is the single bag data of N packet by a bag data splitting and reorganizing;
The key element of the list bag data includes: packet synchronisation word, data type, Data Labels, the embedded packet of data i Timestamp, message data length and message data;
In application process, appropriate adjustment can be carried out according to sequence of the reality to key element, but guarantees that every packet singly wraps The key element position of data is consistent, single packet format such as the following table 2 after splitting and reorganizing:
Single packet format after 2 splitting and reorganizing of table
Packet synchronisation word
Data type
Message flag
Message data i embeds packet timestamp
Message data i length
Message data i
Further, the step S5 includes:
S5.1: it is successively read one second data flow of single bag data APMB package;
S5.2: it resolves one second data and engineering value file is written;
S5.3: judging whether data packet runs through, and does not run through the step of then repeating S5.1~S5.2;
The resolving engineering value file processes: from acquisition key element in one second data flow of single bag data APMB package with from Table name is matched in reason message file.
The utility model has the advantages that the present invention carries out splitting and reorganizing by the blended data packet to multibus data, format is variant Different types of bus data splitting and reorganizing be unified data format, the table shape after recombination in single bag data and configuration file At one-to-one relationship, this processing mode is highly convenient for being uniformly processed for polymorphic type bus data, and is convenient for subsequent newly-increased number According to flexible addition.
Detailed description of the invention
Fig. 1 is the blended data packet processing flow schematic diagram of multiclass bus data of the present invention.
Specific embodiment
A kind of embodiment of invention is described in further detail below, please refers to Fig. 1.
The present invention is illustrated processing method by taking the blended data packet of 1553B bus and FC bus data as an example.Wherein 1553B bus data packet format is as shown in table 3, and FC bus data packet format is as shown in table 4.
3 1553B original bus data packet format of table
The meaning of division name in table 3:
Channel characteristics data: including information such as message counts in packet.
Length: refer to byte number total in message.
Message data: being made of command word, data word, status word, and wherein command word is included parameter in determining message Key message, can be used as " message flag ".
4 FC original bus data packet format of table
The meaning of division name in table 4:
Channel characteristics data: including information such as FC data frame numbers complete in packet.
Frame ID word: being included parameter in determining message comprising information such as frame length, frame starting, frame end, frame mistakes Key message can be used as " message flag ".
In conjunction with the data structure of table 3 and table 4, it can be seen that different types of bus data record format has differences, needle To such situation, data handling procedure of the present invention:
Step (1) configures reduction treatment message file.Configuration file format is Excel table, in an Excel table, Multiple tables of human configuration, of a sort message correspond to a unique table, and the naming rule of 1553B bus type table name is " life Enable word+data type+sample frequency ", the naming rule of FC bus type table name is " frame ID word+data type+sampling frequency Rate " ", content should include restoring method, unit, data start bit, data length, extreme value range needed for data convert etc. in table Relevant information;
Step (2), the configuration file in read step (1) obtain the relevant information in table;
Step (3), reads the initial data of record, carries out recombination of unpacking to data.With a packet bus data instance, explanation Its splitting and reorganizing mode.Packet synchronisation word is retrieved, data type is read, is determined in packet by reading " channel characteristics data " One packet 1553B data splitting and reorganizing is that N packet format list as shown in table 5 wraps by 1553B message sum or FC data frame sum N FC data splitting and reorganizing is N packet single bag data as shown in table 6 by data.By this step, by different types of bus data It is reassembled as unified data format, is convenient for secondary development application.
5 1553B data of table singly wrap composition format after splitting
6 FC data of table singly wrap composition format after splitting
Step (4) sequentially arranges the data packet of same type in step (3) according to embedded packet timestamp from small to large Sequence;
Step (5) reads the combined information after splitting in single bag data, and " message flag+data type " can be with configuration Certain table information in file forms unique corresponding relation, packet-by-packet reads data, can fast complete the parsing of bus data also It is former.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (5)

1. a kind of blended data packet processing method of multiclass bus data, which is characterized in that described method includes following steps:
S1: configuration processing message file;
S2: reading the processing message file in S1, obtains the relevant information in table;
S3: reading the initial data of record, carries out recombination of unpacking to data;
S4: the data packet of same type in S3 is sequentially ranked up from small to large according to embedded packet timestamp;
S5: reading the combined information after splitting in single bag data, and it is unique right to be formed with certain table information in processing message file It should be related to, packet-by-packet read data, complete the parsing reduction of bus data.
2. data package processing method according to claim 1, which is characterized in that the blended data of a variety of bus datas Packet includes that the message data of packet synchronisation word, data type, packet message count and every kind of data embeds packet timestamp, disappears Cease data length, message flag, message data.
3. data package processing method according to claim 1, which is characterized in that the processing message file in the step S1 Format is Excel table, and in an Excel table, multiple tables of human configuration, of a sort message corresponds to a unique table, The naming rule of table name is " Data Labels+data type+sample frequency ", and content should include the reduction side needed for reduction in table Method, unit, data start bit, data length and extreme value range etc..
4. data package processing method according to claim 1, which is characterized in that the step S3 includes:
S3.1: retrieval " packet synchronisation word " is read " data type ";
S3.2: " packet message sum " N is read, is the single bag data of N packet by a bag data splitting and reorganizing;
The key element of the list bag data includes: packet synchronisation word, data type, Data Labels, data i embedded packet time Stamp, message data length and message data;
Every key element position for wrapping single bag data is consistent.
5. data package processing method according to claim 1, which is characterized in that the step S5 includes:
S5.1: it is successively read one second data flow of single bag data APMB package;
S5.2: it resolves one second data and engineering value file is written;
S5.3: judging whether data packet runs through, and does not run through the step of then repeating S5.1~S5.2;
The resolving engineering value file processes: obtaining key element from one second data flow of single bag data APMB package and processing is believed Table name is matched in breath file.
CN201910647635.3A 2019-07-17 2019-07-17 Mixed data packet processing method for multi-class bus data Active CN110324356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910647635.3A CN110324356B (en) 2019-07-17 2019-07-17 Mixed data packet processing method for multi-class bus data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910647635.3A CN110324356B (en) 2019-07-17 2019-07-17 Mixed data packet processing method for multi-class bus data

Publications (2)

Publication Number Publication Date
CN110324356A true CN110324356A (en) 2019-10-11
CN110324356B CN110324356B (en) 2023-03-31

Family

ID=68123855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910647635.3A Active CN110324356B (en) 2019-07-17 2019-07-17 Mixed data packet processing method for multi-class bus data

Country Status (1)

Country Link
CN (1) CN110324356B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221777A (en) * 2020-01-02 2020-06-02 中国银行股份有限公司 Data record matching method and device
CN114465966A (en) * 2022-01-23 2022-05-10 山东云海国创云计算装备产业创新中心有限公司 Data packet recombination control system and data packet recombination method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136802A (en) * 2007-04-06 2008-03-05 中兴通讯股份有限公司 Method for recording and diagnosing data
CN101917322A (en) * 2010-08-10 2010-12-15 西安电子科技大学 Self-adaptive multibus fusion method
CN103678498A (en) * 2013-11-18 2014-03-26 航天东方红卫星有限公司 General analysis method for effective load data of satellites
US20140149599A1 (en) * 2012-11-29 2014-05-29 Ricoh Co., Ltd. Unified Application Programming Interface for Communicating with Devices and Their Clouds
CN106027308A (en) * 2016-06-06 2016-10-12 西北工业大学 Satellite-borne 1553B bus communication optimization method
CN106454365A (en) * 2016-11-22 2017-02-22 包磊 Multimedia data coding and decoding method and multimedia data coding and decoding device
CN106817366A (en) * 2016-12-31 2017-06-09 惠州市蓝微新源技术有限公司 A kind of CAN document analysis and again store method
CN107066243A (en) * 2016-12-06 2017-08-18 西安航空学院 A kind of parsing of general airborne-bus interface control document and packaging method
CN109981599A (en) * 2019-03-06 2019-07-05 南京理工大学 A kind of the general-purpose data parsing platform and method of communication data stream

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136802A (en) * 2007-04-06 2008-03-05 中兴通讯股份有限公司 Method for recording and diagnosing data
CN101917322A (en) * 2010-08-10 2010-12-15 西安电子科技大学 Self-adaptive multibus fusion method
US20140149599A1 (en) * 2012-11-29 2014-05-29 Ricoh Co., Ltd. Unified Application Programming Interface for Communicating with Devices and Their Clouds
CN103678498A (en) * 2013-11-18 2014-03-26 航天东方红卫星有限公司 General analysis method for effective load data of satellites
CN106027308A (en) * 2016-06-06 2016-10-12 西北工业大学 Satellite-borne 1553B bus communication optimization method
CN106454365A (en) * 2016-11-22 2017-02-22 包磊 Multimedia data coding and decoding method and multimedia data coding and decoding device
CN107066243A (en) * 2016-12-06 2017-08-18 西安航空学院 A kind of parsing of general airborne-bus interface control document and packaging method
CN106817366A (en) * 2016-12-31 2017-06-09 惠州市蓝微新源技术有限公司 A kind of CAN document analysis and again store method
CN109981599A (en) * 2019-03-06 2019-07-05 南京理工大学 A kind of the general-purpose data parsing platform and method of communication data stream

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221777A (en) * 2020-01-02 2020-06-02 中国银行股份有限公司 Data record matching method and device
CN111221777B (en) * 2020-01-02 2024-01-30 中国银行股份有限公司 Data record matching method and device
CN114465966A (en) * 2022-01-23 2022-05-10 山东云海国创云计算装备产业创新中心有限公司 Data packet recombination control system and data packet recombination method

Also Published As

Publication number Publication date
CN110324356B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CA2445300C (en) Method for compressing/decompressing a structured document
CN109325009A (en) The method and device of log parsing
CN106973332A (en) A kind of barrage message treatment method, analytic method and system
CN110324356A (en) A kind of blended data packet processing method of multiclass bus data
CN106202292B (en) Standard information analysis method based on structured data model
CN103593440B (en) The reading/writing method and device of journal file
CN109388523B (en) Method for recovering MySQL database based on binary log file
CN102799592B (en) The parsing method and system of rich text document
CN111090417B (en) Binary file analysis method, binary file analysis device, binary file analysis equipment and binary file analysis medium
CN104281601A (en) Method and device for constructing huge character library and method and device for displaying characters
CN107025125B (en) A kind of source code flow coding/decoding method and system
CN103440272A (en) Database maintenance method and device
CN101986311B (en) Method for buffering node elements when rapidly processing large-scale XML file
CN115801922A (en) Analytic rule generation method based on serial communication byte code protocol
CN111767436B (en) HASH index data storage and reading method and system
CN107992561A (en) A kind of method of long field in parsing EDB database source files
CN107729451A (en) A kind of method of data in lookup EDB database source files
CN103605777B (en) database index processing method and device
CN1945579A (en) Technology for realizing data synchronization between Oracle data base lists by using PL/SQL trigger
CN103631667A (en) Method for verifying consistency of intelligent device ICD and virtual terminal list
CN113157626A (en) Data cache region, serial port communication data frame analysis method based on data cache region and automobile
CN109474582B (en) Processing method and device for simulating data communication protocol of embedded system
CN111797596A (en) Method and device for compressing and decompressing extensible markup language (XML) document
CN111782882A (en) TCP message conversion method, device, system and computer storage medium
CN102270194B (en) Character processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant