CN105049281A - Message parsing method and equipment - Google Patents

Message parsing method and equipment Download PDF

Info

Publication number
CN105049281A
CN105049281A CN201510358580.6A CN201510358580A CN105049281A CN 105049281 A CN105049281 A CN 105049281A CN 201510358580 A CN201510358580 A CN 201510358580A CN 105049281 A CN105049281 A CN 105049281A
Authority
CN
China
Prior art keywords
message
allocation models
configuration information
preset format
meeting preset
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
Application number
CN201510358580.6A
Other languages
Chinese (zh)
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510358580.6A priority Critical patent/CN105049281A/en
Publication of CN105049281A publication Critical patent/CN105049281A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message parsing method and equipment. The method comprises the following steps that configuration information is acquired, and a configuration model is generated according to the configuration information; and messages meeting the preset format are parsed according to the configuration model so that message field detailed description information is generated, and the message field detailed description information is displayed. A configuration template is generated according to the configuration information, and the messages are parsed by using the configuration module so that data carried in the messages can be rapidly and accurately identified and thus message parsing speed and accuracy can be enhanced.

Description

A kind of message parsing method and equipment
Technical field
The present invention relates to communication technical field, be specifically related to a kind of message parsing method and equipment.
Background technology
Along with developing rapidly of integrated circuit technique, complexity and the scale of chip design are growing, and cause the bug hidden in chip design to get more and more, the depth of recess of bug is also more and more darker.Because chip is very high to the requirement of reliability, make the time needed for chip checking more and more longer, human cost is increasing, has occupied for 70% in the construction cycle even more.
In prior art, usual use multiprocessor FPGA platform carries out testing authentication to chip, by the message information of FPGA platform transmitting-receiving magnanimity between each processor, tester needs to use related tool gather the particular data comprising various control signal and packet and check, above-mentioned related tool can be the debugging acid Chipscope that XilinxFPGA software I SE carries, and also can be logic analyzer etc.The width of the packet that tester gathers and checks can reach the even hundreds of position of tens place, and, the difference of the information factor data Packet type carried in packet and present multiple distribution, therefore, hexadecimal data bag is converted into binary data by testing authentication personnel usually, particular data is extracted from binary data, the definition list item of association message type is checked again according to particular data, the very numerous and diverse poor efficiency of process, and due to data bit width very large, pure manual type very easily occurs processing mistake, brings misleading to testing authentication work.
In addition, can also mark particular data in prior art, and according to corresponding mark, from message information, gather particular data.But, because different messages has different forms, need constantly to adjust the combination of signal in code combined process, increase the workload of testing authentication and designer.
Summary of the invention
The invention provides a kind of message parsing method and equipment, to solve the loaded down with trivial details and defect of poor efficiency of existing packet parsing process.
The invention provides a kind of message parsing method, comprise the following steps:
Obtain configuration information, generate allocation models according to described configuration information;
According to described allocation models, the message meeting preset format is resolved, generate message field (MFLD) and describe information in detail, and described message field (MFLD) detailed description information is shown.
Alternatively, described acquisition configuration information, generates allocation models according to described configuration information, is specially:
Obtain the config option of user at manual configuration interface modification and the configuration information of correspondence, generate allocation models according to described configuration information;
Or,
From the configuration file that user selects, read configuration information, generate allocation models according to described configuration information.
Alternatively, described according to described allocation models, before the message meeting preset format is resolved, also comprise:
Obtain the message to be resolved of user's input, described message to be resolved is converted to the message meeting preset format;
Or,
Obtain the wave file that user selects, from described wave file, extract corresponding signal message according to described allocation models, and the signal message extracted is converted to the message meeting preset format.
Alternatively, the wave file that described acquisition user selects, extracts corresponding signal message according to described allocation models, and the signal message extracted is converted to the message meeting preset format, be specially from described wave file:
Obtain the wave file that user selects, according to the parameter comprised in described allocation models, according to the file format of described wave file, from described wave file, extract the signal value corresponding with described parameter, and the signal value extracted is converted to the message meeting preset format.
Alternatively, described according to described allocation models, the message meeting preset format is resolved, generates message field (MFLD) and describe information in detail, be specially:
According to the parsing masterplate that described allocation models provides, the recursion resolution operation circulating multi-level is carried out to the described message meeting preset format, and obtain the implication information of carrying in the segmentation field of described message by inquiry key-value pair, generate message field (MFLD) and describe information in detail.
Present invention also offers a kind of packet parsing equipment, comprising:
Generation module, for obtaining configuration information, generates allocation models according to described configuration information;
Parsing module, for the described allocation models generated according to described generation module, resolves the message meeting preset format, generates message field (MFLD) and describes information in detail;
Display module, resolves to described parsing module the described message field (MFLD) detailed description information obtained and shows.
Alternatively, described generation module, specifically for obtaining the config option of user at manual configuration interface modification and the configuration information of correspondence, generates allocation models according to described configuration information;
Or,
From the configuration file that user selects, read configuration information, generate allocation models according to described configuration information.
Alternatively, described equipment, also comprises:
Modular converter, for obtaining the message to be resolved of user's input, is converted to described message to be resolved the message meeting preset format;
Or,
Obtain the wave file that user selects, from described wave file, extract corresponding signal message according to described allocation models, and the signal message extracted is converted to the message meeting preset format.
Alternatively, described modular converter, specifically for obtaining the wave file that user selects, according to the parameter comprised in described allocation models, according to the file format of described wave file, from described wave file, extract the signal value corresponding with described parameter, and the signal value extracted is converted to the message meeting preset format.
Alternatively, described parsing module, specifically for the parsing masterplate provided according to described allocation models, the recursion resolution operation circulating multi-level is carried out to the described message meeting preset format, and obtain the implication information of carrying in the segmentation field of described message by inquiry key-value pair, generate message field (MFLD) and describe information in detail.
The present invention generates configuration template according to configuration information, and uses this configuration module analytic message, quick and precisely can identify data entrained in message, improve speed and the accuracy of packet parsing.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of message parsing method in the embodiment of the present invention;
Fig. 2 is the schematic diagram of the user interface in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of packet parsing equipment in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, if do not conflicted, each feature in the embodiment of the present invention and embodiment can be combined with each other, all within protection scope of the present invention.In addition, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
Embodiments provide a kind of message parsing method, as shown in Figure 1, comprise the following steps:
Step 101, loads and shows user interface.
Wherein, user interface is the unified graphic interface for user operation, as shown in Figure 2, comprises configuration block, input frame and display box.
Step 102, detects the configuration mode that user selects in user interface, if the configuration mode that user selects is manual configuration, then performs step 103; If the configuration mode that user selects is loading configuration file, then perform step 104.
Particularly, when detecting that the configuration block in user interface is as shown in Figure 2 triggered, obtaining the configuration mode that user selects, and this configuration mode is judged.
Step 103, display manual configuration interface, obtains the config option of user at manual configuration interface modification and the configuration information of correspondence, generates allocation models, and perform step 105 according to this configuration information.
Wherein, allocation models comprises the mapping relations of multilayered structure, for follow-up parse operation provides parsing module.
Step 104, reads configuration information, generates allocation models, and perform step 105 according to this configuration information from the configuration file that user selects.
Wherein, configuration file is the file of user-defined format, edits by the text edit tool.
Step 105, detects the input mode that user selects in user interface, if the input mode that user selects is manually input, then performs step 106; If the input mode that user selects is wave file input, then perform step 107.
Particularly, when detecting that the input frame in user interface is as shown in Figure 2 triggered, obtaining the input mode that user selects, and this input mode is judged.
Step 106, obtains the message to be resolved of user's input, message to be resolved is converted to the message meeting preset format, and performs step 108.
Wherein, message to be resolved is the full message of 16 system of the manual input of user.
Step 107, obtains the wave file that user selects, and extracts corresponding signal message, and the signal message extracted is converted to the message meeting preset format, and perform step 108 according to allocation models from wave file.
Particularly, according to the parameter comprised in allocation models, according to the file format of wave file, the signal value corresponding with above-mentioned parameter can be extracted from wave file, and the signal value extracted be converted to the message meeting preset format.
Wherein, wave file be chipscope end or logic analyzer end according to the file of Waveform storage, in allocation models, parameter comprises range of signal etc.
Step 108, according to allocation models, resolves the message meeting preset format, generate message field (MFLD) and describe information in detail, and explicit message field describes information in detail.
Particularly, the parsing masterplate that can provide according to allocation models, the recursion resolution operation circulating multi-level is carried out to the message meeting preset format, and obtain the implication information of carrying in the segmentation field of above-mentioned message by inquiry key-value pair, generate message field (MFLD) and describe information in detail, and insert explicit message field detailed description information in the bottom of display box as shown in Figure 2.
Wherein, message field (MFLD) describes information in detail is the key-value pair comprising signal value and descriptor.
Step 109, judges whether that parsing is complete, if so, then performs step 110; Otherwise, return step 102.
Step 110, describes information in detail to message field (MFLD) and preserves, process ends.
The embodiment of the present invention generates configuration template according to configuration information, and uses this configuration module analytic message, quick and precisely can identify data entrained in message, improve speed and the accuracy of packet parsing.
Based on above-mentioned message parsing method, the embodiment of the present invention additionally provides a kind of packet parsing equipment, as shown in Figure 3, comprising:
Generation module 310, for obtaining configuration information, generates allocation models according to described configuration information;
Particularly, generation module 310, specifically for obtaining the config option of user at manual configuration interface modification and the configuration information of correspondence, generates allocation models according to described configuration information;
Or,
From the configuration file that user selects, read configuration information, generate allocation models according to described configuration information.
Parsing module 320, for the described allocation models generated according to generation module 310, resolves the message meeting preset format, generates message field (MFLD) and describes information in detail;
Particularly, parsing module 320, specifically for the parsing masterplate provided according to described allocation models, the recursion resolution operation circulating multi-level is carried out to the described message meeting preset format, and obtain the implication information of carrying in the segmentation field of described message by inquiry key-value pair, generate message field (MFLD) and describe information in detail.
Display module 330, resolves to parsing module 320 the described message field (MFLD) detailed description information obtained and shows.
Further, the said equipment, also comprises:
Modular converter 340, for obtaining the message to be resolved of user's input, is converted to described message to be resolved the message meeting preset format;
Or,
Obtain the wave file that user selects, from described wave file, extract corresponding signal message according to described allocation models, and the signal message extracted is converted to the message meeting preset format.
Particularly, modular converter 340, specifically for obtaining the wave file that user selects, according to the parameter comprised in described allocation models, according to the file format of described wave file, from described wave file, extract the signal value corresponding with described parameter, and the signal value extracted is converted to the message meeting preset format.
The embodiment of the present invention generates configuration template according to configuration information, and uses this configuration module analytic message, quick and precisely can identify data entrained in message, improve speed and the accuracy of packet parsing.
In conjunction with the software module that the step in the method that embodiment disclosed herein describes can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (10)

1. a message parsing method, is characterized in that, comprises the following steps:
Obtain configuration information, generate allocation models according to described configuration information;
According to described allocation models, the message meeting preset format is resolved, generate message field (MFLD) and describe information in detail, and described message field (MFLD) detailed description information is shown.
2. the method for claim 1, is characterized in that, described acquisition configuration information, generates allocation models, be specially according to described configuration information:
Obtain the config option of user at manual configuration interface modification and the configuration information of correspondence, generate allocation models according to described configuration information;
Or,
From the configuration file that user selects, read configuration information, generate allocation models according to described configuration information.
3. the method for claim 1, is characterized in that, described according to described allocation models, before resolving, also comprises the message meeting preset format:
Obtain the message to be resolved of user's input, described message to be resolved is converted to the message meeting preset format;
Or,
Obtain the wave file that user selects, from described wave file, extract corresponding signal message according to described allocation models, and the signal message extracted is converted to the message meeting preset format.
4. method as claimed in claim 3, it is characterized in that the wave file that described acquisition user selects extracts corresponding signal message according to described allocation models from described wave file, and the signal message extracted is converted to the message meeting preset format, be specially:
Obtain the wave file that user selects, according to the parameter comprised in described allocation models, according to the file format of described wave file, from described wave file, extract the signal value corresponding with described parameter, and the signal value extracted is converted to the message meeting preset format.
5. the method for claim 1, is characterized in that, described according to described allocation models, resolves the message meeting preset format, generates message field (MFLD) and describes information in detail, be specially:
According to the parsing masterplate that described allocation models provides, the recursion resolution operation circulating multi-level is carried out to the described message meeting preset format, and obtain the implication information of carrying in the segmentation field of described message by inquiry key-value pair, generate message field (MFLD) and describe information in detail.
6. a packet parsing equipment, is characterized in that, comprising:
Generation module, for obtaining configuration information, generates allocation models according to described configuration information;
Parsing module, for the described allocation models generated according to described generation module, resolves the message meeting preset format, generates message field (MFLD) and describes information in detail;
Display module, resolves to described parsing module the described message field (MFLD) detailed description information obtained and shows.
7. equipment as claimed in claim 6, is characterized in that,
Described generation module, specifically for obtaining the config option of user at manual configuration interface modification and the configuration information of correspondence, generates allocation models according to described configuration information;
Or,
From the configuration file that user selects, read configuration information, generate allocation models according to described configuration information.
8. equipment as claimed in claim 6, is characterized in that, also comprise:
Modular converter, for obtaining the message to be resolved of user's input, is converted to described message to be resolved the message meeting preset format;
Or,
Obtain the wave file that user selects, from described wave file, extract corresponding signal message according to described allocation models, and the signal message extracted is converted to the message meeting preset format.
9. equipment as claimed in claim 8, is characterized in that,
Described modular converter, specifically for obtaining the wave file that user selects, according to the parameter comprised in described allocation models, according to the file format of described wave file, from described wave file, extract the signal value corresponding with described parameter, and the signal value extracted is converted to the message meeting preset format.
10. equipment as claimed in claim 6, is characterized in that,
Described parsing module, specifically for the parsing masterplate provided according to described allocation models, the recursion resolution operation circulating multi-level is carried out to the described message meeting preset format, and obtain the implication information of carrying in the segmentation field of described message by inquiry key-value pair, generate message field (MFLD) and describe information in detail.
CN201510358580.6A 2015-06-25 2015-06-25 Message parsing method and equipment Pending CN105049281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510358580.6A CN105049281A (en) 2015-06-25 2015-06-25 Message parsing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510358580.6A CN105049281A (en) 2015-06-25 2015-06-25 Message parsing method and equipment

Publications (1)

Publication Number Publication Date
CN105049281A true CN105049281A (en) 2015-11-11

Family

ID=54455502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510358580.6A Pending CN105049281A (en) 2015-06-25 2015-06-25 Message parsing method and equipment

Country Status (1)

Country Link
CN (1) CN105049281A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279032A (en) * 2015-11-24 2016-01-27 浪潮(北京)电子信息产业有限公司 Method and apparatus for synchronizing interface message and javaBean
CN105511910A (en) * 2015-11-30 2016-04-20 北京新能源汽车股份有限公司 Interface configuration method and device
CN106790683A (en) * 2017-02-10 2017-05-31 合网络技术(北京)有限公司 Network data display methods and device based on mobile terminal
CN107168866A (en) * 2016-03-08 2017-09-15 阿里巴巴集团控股有限公司 A kind of Parameter analysis of electrochemical method and device of configuration file
CN107231279A (en) * 2016-03-26 2017-10-03 深圳市沃特玛电池有限公司 A kind of message parsing method based on CAN communication
CN108628634A (en) * 2018-05-09 2018-10-09 平安普惠企业管理有限公司 Message configuration method, device, computer equipment and storage medium
CN108881172A (en) * 2018-05-22 2018-11-23 阿里巴巴集团控股有限公司 The analysis method and device of message
CN110381056A (en) * 2019-07-17 2019-10-25 钛马信息网络技术有限公司 Proprietary protocol decoding method and device based on Netty
CN114422592A (en) * 2022-01-21 2022-04-29 深圳壹账通智能科技有限公司 Message conversion method and device, computer equipment and computer readable storage medium
CN114500691A (en) * 2022-02-16 2022-05-13 支付宝实验室(新加坡)有限公司 Information configuration method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188561A (en) * 2007-12-20 2008-05-28 北京大学 Communication method and system for universal service data based on self-defined template
CN101272376A (en) * 2008-05-06 2008-09-24 中兴通讯股份有限公司 Message resolution method
CN103138877A (en) * 2011-11-29 2013-06-05 中国商用飞机有限责任公司 Message decoding method and device for plane communication addressing and reporting system
CN103200051A (en) * 2013-04-27 2013-07-10 国家电网公司 Intelligent substation message simulation testing and association message analysis system and method
US8964542B1 (en) * 2007-04-26 2015-02-24 Marvell Israel (M.I.S.L) Ltd. Method and apparatus for packet processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8964542B1 (en) * 2007-04-26 2015-02-24 Marvell Israel (M.I.S.L) Ltd. Method and apparatus for packet processing
CN101188561A (en) * 2007-12-20 2008-05-28 北京大学 Communication method and system for universal service data based on self-defined template
CN101272376A (en) * 2008-05-06 2008-09-24 中兴通讯股份有限公司 Message resolution method
CN103138877A (en) * 2011-11-29 2013-06-05 中国商用飞机有限责任公司 Message decoding method and device for plane communication addressing and reporting system
CN103200051A (en) * 2013-04-27 2013-07-10 国家电网公司 Intelligent substation message simulation testing and association message analysis system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
樊燕红,赵立军: "信息交换报文动态解析器的设计与实现", 《信息技术与信息化》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279032B (en) * 2015-11-24 2019-06-28 浪潮(北京)电子信息产业有限公司 A kind of method and device of sync cap message and javaBean
CN105279032A (en) * 2015-11-24 2016-01-27 浪潮(北京)电子信息产业有限公司 Method and apparatus for synchronizing interface message and javaBean
CN105511910A (en) * 2015-11-30 2016-04-20 北京新能源汽车股份有限公司 Interface configuration method and device
CN107168866B (en) * 2016-03-08 2021-02-02 阿里巴巴集团控股有限公司 Parameter analysis method and device for configuration file
CN107168866A (en) * 2016-03-08 2017-09-15 阿里巴巴集团控股有限公司 A kind of Parameter analysis of electrochemical method and device of configuration file
CN107231279A (en) * 2016-03-26 2017-10-03 深圳市沃特玛电池有限公司 A kind of message parsing method based on CAN communication
CN106790683B (en) * 2017-02-10 2019-12-17 合一网络技术(北京)有限公司 Network data display method and device based on mobile terminal
CN106790683A (en) * 2017-02-10 2017-05-31 合网络技术(北京)有限公司 Network data display methods and device based on mobile terminal
CN108628634A (en) * 2018-05-09 2018-10-09 平安普惠企业管理有限公司 Message configuration method, device, computer equipment and storage medium
CN108881172A (en) * 2018-05-22 2018-11-23 阿里巴巴集团控股有限公司 The analysis method and device of message
CN110381056A (en) * 2019-07-17 2019-10-25 钛马信息网络技术有限公司 Proprietary protocol decoding method and device based on Netty
CN110381056B (en) * 2019-07-17 2021-08-03 钛马信息网络技术有限公司 Netty-based private protocol coding and decoding method and apparatus
CN114422592A (en) * 2022-01-21 2022-04-29 深圳壹账通智能科技有限公司 Message conversion method and device, computer equipment and computer readable storage medium
CN114500691A (en) * 2022-02-16 2022-05-13 支付宝实验室(新加坡)有限公司 Information configuration method and device

Similar Documents

Publication Publication Date Title
CN105049281A (en) Message parsing method and equipment
CN101996131A (en) Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
US11726899B2 (en) Waveform based reconstruction for emulation
EP3185027B1 (en) Information processing method and device and computer storage medium
CN111027266A (en) Method, system, storage medium and terminal for designing and dividing multiple FPGAs
CN103605606B (en) A kind of embedded software test use-case batch execution method that can automatically change
US10997332B1 (en) System and method for computing electrical over-stress of devices associated with an electronic design
Bavota et al. Supporting extract class refactoring in eclipse: The aries project
CN106294128B (en) A kind of automated testing method and device exporting report data
CN104462979A (en) Automatic dynamic detection method and device of application program
CN102054100A (en) Static analysis-based method and system for detecting RTL (Resistor Transistor Logic) design errors
CN112597062B (en) Military software structured quality data extraction method and device and software testing device
CN115964975B (en) Static time sequence analysis method and system and computer readable medium
CN108255702A (en) A kind of test case creation method, apparatus, equipment and storage medium
CN116029239B (en) Static time sequence analysis method and system and computer readable medium
CN115630036A (en) Error information processing method, apparatus, device, storage medium and program product
EP2511841A2 (en) System and method for generation of cim-based power system circuit models
US20190094300A1 (en) Ensuring completeness of interface signal checking in functional verification
CN111400169A (en) Method and system for automatically generating netlist file for testing software and hardware
CN106557419B (en) Program testing method and device
CN104021075A (en) Method and device for evaluating program codes
CN103150445B (en) The method for decomposing of a kind of MATLAB model variable and device
CN111611176A (en) Automatic generation method, system and medium for universal interface coverage rate model verification environment
CN106407122A (en) Testing method used for software automatic generation system
CN116595934A (en) Automatic generation method for configuration of gluing system, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151111