Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Configurable protocol analysis method and device, equipment and storage medium

A protocol analysis and configuration file technology, applied in the field of communication data analysis, can solve problems such as re-modification, and achieve the effect of improving work efficiency

Pending Publication Date: 2022-05-06
SHENZHEN CHANGLONG RAILWAY ELECTRONICS ENGCO
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a configurable protocol analysis method, device, equipment and storage medium to solve the problem of re-modifying the source code in the analysis software due to changes in the protocol for different projects or projects in different periods in the prior art The problem

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
  • Configurable protocol analysis method and device, equipment and storage medium
  • Configurable protocol analysis method and device, equipment and storage medium
  • Configurable protocol analysis method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] see figure 1 , figure 1 It is a schematic flowchart of a configurable protocol analysis method provided by Embodiment 1 of the present invention. The method can be applied to an electronic device, and the electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus, which is not specifically limited in the present invention. Specifically, as figure 1 As shown, the method includes the following steps S101-S104.

[0053] S101, acquiring input data and a communication protocol.

[0054]Specifically, the processor acquires input data and a communication protocol, the input data is data to be parsed, and the communication protocol is a protocol formulated according to user requirements.

[0055] S102. Convert the communication protocol into a protocol configuration file.

[0056] Specifically, th...

Embodiment 2

[0114] Such as figure 2 As shown, the embodiment of the present invention also provides a configurable protocol analysis device 400, the configurable protocol analysis device 400 includes a first acquisition unit 401, a first conversion unit 402, a first loading unit 403, a first An analysis unit 404 .

[0115] A first acquiring unit 401, configured to acquire input data and a communication protocol;

[0116] The first conversion unit 402 is configured to convert the communication protocol into a protocol configuration file;

[0117] The first loading unit 403 is configured to use preset software to load the protocol configuration file, and store the protocol configuration file in an object variable, where the object variable is a variable in the code of the software;

[0118] The first parsing unit 404 is configured to parse the input data according to the software and the protocol configuration file to obtain output data.

[0119] In an embodiment, the converting the com...

Embodiment 3

[0144] see image 3 The embodiment of the present invention also provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114 .

[0145] Memory 113, used to store computer programs;

[0146] The processor 111 is configured to execute the program stored in the memory 113 to implement the configurable protocol analysis method provided in Embodiment 1.

[0147] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor 111 , the steps of the configurable protocol analysis method provided in Embodiment 1 are implemented.

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 relates to a configurable protocol analysis method, device and equipment and a storage medium, and relates to the technical field of communication data analysis, and the method comprises the steps: obtaining input data and a communication protocol; converting the communication protocol into a protocol configuration file; preset software is utilized to load the protocol configuration file, the protocol configuration file is stored in an object variable, and the object variable is a variable in a code of the software; and analyzing the input data according to the software and the protocol configuration file to obtain output data. The communication protocol is converted into the protocol configuration file, so that the protocol configuration file can be changed according to modification, and input data can be analyzed to obtain output data only by modifying the protocol configuration file without modifying a source code in the preset software; and the working efficiency of analyzing the data is improved.

Description

technical field [0001] The present invention relates to the technical field of communication data analysis, in particular to a configurable protocol analysis method, device, equipment and storage medium. Background technique [0002] The current communication data analysis is usually to write the corresponding analysis code separately for each protocol, and match the protocol corresponding to the data through the judgment statement. At this time, for different projects, or because the protocol has changed in different periods of the project, the analysis software needs to re-modify the source code. [0003] Defect: Parsing code for the same content in different protocols is difficult to reuse. For example, when two protocols have basically the same content, but the structure and organization of the protocols have changed greatly, the protocol parsing sequence is very different at this time, resulting in the need for two pieces of code that are roughly the same but difficult...

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): H04L69/22
CPCH04L69/22
Inventor 吴法利刘涛罗勇唐武罗辉
Owner SHENZHEN CHANGLONG RAILWAY ELECTRONICS ENGCO
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products