CN116232938A - Visual method supporting arbitrary communication protocol field - Google Patents
Visual method supporting arbitrary communication protocol field Download PDFInfo
- Publication number
- CN116232938A CN116232938A CN202310075591.8A CN202310075591A CN116232938A CN 116232938 A CN116232938 A CN 116232938A CN 202310075591 A CN202310075591 A CN 202310075591A CN 116232938 A CN116232938 A CN 116232938A
- Authority
- CN
- China
- Prior art keywords
- communication
- field
- data
- configuration file
- communication protocol
- 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
- 230000006854 communication Effects 0.000 title claims abstract description 110
- 238000004891 communication Methods 0.000 title claims abstract description 102
- 238000000034 method Methods 0.000 title claims abstract description 11
- 230000000007 visual effect Effects 0.000 title abstract description 5
- 238000007405 data analysis Methods 0.000 claims abstract description 20
- 238000012800 visualization Methods 0.000 claims abstract description 20
- 238000006243 chemical reaction Methods 0.000 claims abstract description 12
- 238000004458 analytical method Methods 0.000 claims abstract description 9
- 238000010223 real-time analysis Methods 0.000 abstract description 4
- 238000007794 visualization technique Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
- H04L43/045—Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
Abstract
The invention discloses a visual method supporting any communication protocol field, which comprises the following steps: filling the content into a communication configuration file with a specified template format according to the communication protocol definition which is required to be visualized, and storing the content; the communication data analysis module analyzes basic information of a communication protocol field in the communication configuration file according to the designated communication configuration file path; in the communication process, the received data is recorded and stored and transmitted to a communication data analysis module in real time, and the communication data analysis module analyzes field data and performs type conversion according to the basic information of the communication protocol field of the communication configuration file; the visual module receives the field data after the analysis and conversion are completed, presents the field data in a digital display mode and a graphical display mode and regularly refreshes the field data; the invention adapts to the self-defined communication protocol on the basis of offline analysis and real-time analysis, and can effectively solve the problem of visualization of any communication field.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a field visualization method supporting any communication protocol.
Background
Data communication is the basis for interconnection of devices. Currently, for communication data field analysis, the existing solutions are divided into two types: one is to use offline analysis to prepare a data record before the communication starts, record the data to a file during the communication, stop the data record after the communication ends, and open the data file for viewing by using a text editing tool. The method can only check ASCII and hexadecimal data, and when the analysis of the same field of a plurality of frames is carried out, the position of each frame of the field in a file needs to be calculated, and the hexadecimal data can also involve type conversion and other works, so that the problems of large workload, high error probability and the like occur. The other is real-time analysis, and communication data is converted and drawn into a graph in real time according to information such as communication field types through communication protocol content customization software. However, because the mode has strong customization, the communication protocol is slightly changed, so that real-time analysis cannot be performed, and the mode is not suitable for any communication protocol. Neither of the last two approaches contemplate visualization techniques that support arbitrary communication fields.
Disclosure of Invention
In order to solve the problems in the prior art, the invention aims to provide a field visualization method supporting any communication protocol, and the method is adaptive to a custom communication protocol on the basis of offline analysis and real-time analysis, so that the problem of visualization of any communication field can be effectively solved.
In order to achieve the above purpose, the invention adopts the following technical scheme: a method for supporting arbitrary communication protocol field visualization, comprising the steps of:
s1, according to communication protocol definition of visualization as required, filling content into a communication configuration file with a specified template format and storing the content;
s2, the communication data analysis module analyzes basic information of a communication protocol field in the communication configuration file according to the designated communication configuration file path;
s3, in the communication process, the received data are recorded and stored and transmitted to a communication data analysis module in real time, and the communication data analysis module analyzes field data and performs type conversion according to the basic information of the communication protocol field of the communication configuration file;
and S4, the visualization module presents the field data after receiving the field data after the analysis and conversion are completed in a digital display mode and a graphical display mode, and refreshes the field data at regular time.
As a further improvement of the invention, the method further comprises the following steps:
s5, when the communication is finished, if the previous communication process is required to be analyzed in an off-line mode, the communication data record file and the communication configuration file path are transmitted to a communication data analysis module, and the communication data analysis module analyzes field data and performs type conversion according to the basic information of the communication protocol field of the communication configuration file;
and S6, the visualization module performs one-time digital and graphical display according to all data of the fields after analyzing and converting.
As a further improvement of the invention, the digital display mode comprises specific field value display and splitting each bit value display; the graphical display mode comprises a pie chart, a bar chart, a histogram and a line chart.
The invention supports any communication field visualization method, through outputting the communication protocol definition to the configuration file of the appointed format, analyze the communication field data according to the configuration file in real time in the course of receiving the communication data, and transmit the analysis data to the visualization module such as data display and graphic display synchronously, stop the data recording when the communication is finished, and recall the visualization module to reproduce the communication process data by importing the data recording file.
The beneficial effects of the invention are as follows:
1. the invention can support real-time and off-line data analysis of any communication protocol, can effectively solve the universality of functions, and avoid repeatedly making wheels when new communication data fields need to be analyzed;
2. the invention can support the digitization and graphic display of the communication field, and can effectively solve the difficulties of manual conversion and statistics.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention;
FIG. 2 is a schematic diagram of a communication configuration file according to an embodiment of the present invention;
FIG. 3 is a schematic view of a visualization in an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Examples
As shown in fig. 1, a method for supporting any communication protocol field visualization specifically includes the following steps:
s101, loading a communication configuration file:
as shown in fig. 2, fig. 2 is a schematic format diagram of a communication configuration file in the present embodiment, and according to a communication protocol definition, contents are filled into the communication configuration file with a specified template format and stored; and the communication data analysis module loads basic information of a communication protocol field in the communication configuration file according to the designated communication configuration file path.
S102, refreshing data communication content:
and establishing communication connection with other communication equipment and programs, transmitting the received data to a communication data analysis module in real time in the communication process, and analyzing field data and performing type conversion by the communication data analysis module according to the basic information of the communication protocol field of the communication configuration file.
S103, recording data communication content:
and in the communication process, the received data is transmitted to the communication data analysis module in real time, and meanwhile, the transmitted data is recorded and transmitted to the file.
S104, transmitting the data to a visualization module:
the communication data analysis module intercepts the data segment according to the basic information of the communication protocol field in the loading communication configuration file and performs type conversion to obtain the field value information, and transmits the field value information to the visualization module for real-time updating, and fig. 3 is a visualization schematic diagram in the embodiment, and the visualization module performs two display modes according to the field value information: one is graphic display, mainly comprising a chart mode, which can support a pie chart, a bar chart, a column chart and a line chart. The other is digital display, mainly comprising specific field value display and splitting each bit value display.
S105, analyzing the data record file:
and loading each frame of communication data content according to a communication configuration file format by importing a data record file path into a communication data analysis module, analyzing specific field content, and caching the same fields of each frame of data packet into an array set.
S106, transferring the analyzed offline field information array:
and the visual display module receives the field information array to be displayed, completes graphical display once, and displays specific value information according to the position of the selected area of the mouse.
The foregoing examples merely illustrate specific embodiments of the invention, which are described in greater detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention.
Claims (3)
1. A method for supporting visualization of arbitrary communication protocol fields, comprising the steps of:
s1, according to communication protocol definition of visualization as required, filling content into a communication configuration file with a specified template format and storing the content;
s2, the communication data analysis module analyzes basic information of a communication protocol field in the communication configuration file according to the designated communication configuration file path;
s3, in the communication process, the received data are recorded and stored and transmitted to a communication data analysis module in real time, and the communication data analysis module analyzes field data and performs type conversion according to the basic information of the communication protocol field of the communication configuration file;
and S4, the visualization module presents the field data after receiving the field data after the analysis and conversion are completed in a digital display mode and a graphical display mode, and refreshes the field data at regular time.
2. The method for supporting arbitrary communication protocol field visualization as claimed in claim 1, further comprising the steps of:
s5, when the communication is finished, if the previous communication process is required to be analyzed in an off-line mode, the communication data record file and the communication configuration file path are transmitted to a communication data analysis module, and the communication data analysis module analyzes field data and performs type conversion according to the basic information of the communication protocol field of the communication configuration file;
and S6, the visualization module performs one-time digital and graphical display according to all data of the fields after analyzing and converting.
3. The method for supporting field visualization of any communication protocol according to claim 1 or 2, wherein the digital display mode comprises specific field value display and splitting each bit value display; the graphical display mode comprises a pie chart, a bar chart, a histogram and a line chart.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310075591.8A CN116232938A (en) | 2023-02-01 | 2023-02-01 | Visual method supporting arbitrary communication protocol field |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310075591.8A CN116232938A (en) | 2023-02-01 | 2023-02-01 | Visual method supporting arbitrary communication protocol field |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116232938A true CN116232938A (en) | 2023-06-06 |
Family
ID=86581869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310075591.8A Pending CN116232938A (en) | 2023-02-01 | 2023-02-01 | Visual method supporting arbitrary communication protocol field |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116232938A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116800868A (en) * | 2023-08-29 | 2023-09-22 | 南京天创电子技术有限公司 | Visual communication protocol analysis method and system based on XML |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150295796A1 (en) * | 2014-04-15 | 2015-10-15 | Splunk Inc. | Adjusting network data storage based on event stream statistics |
CN109885689A (en) * | 2019-03-25 | 2019-06-14 | 山东浪潮云信息技术有限公司 | A kind of method and system of the real-time grading statistical log of rule-based engine |
CN111541697A (en) * | 2020-04-24 | 2020-08-14 | 卡斯柯信号有限公司 | On-line communication method based on protocol configuration |
CN114567498A (en) * | 2022-03-04 | 2022-05-31 | 科来网络技术股份有限公司 | Metadata extraction and processing method and system for network behavior visualization |
-
2023
- 2023-02-01 CN CN202310075591.8A patent/CN116232938A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150295796A1 (en) * | 2014-04-15 | 2015-10-15 | Splunk Inc. | Adjusting network data storage based on event stream statistics |
CN109885689A (en) * | 2019-03-25 | 2019-06-14 | 山东浪潮云信息技术有限公司 | A kind of method and system of the real-time grading statistical log of rule-based engine |
CN111541697A (en) * | 2020-04-24 | 2020-08-14 | 卡斯柯信号有限公司 | On-line communication method based on protocol configuration |
CN114567498A (en) * | 2022-03-04 | 2022-05-31 | 科来网络技术股份有限公司 | Metadata extraction and processing method and system for network behavior visualization |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116800868A (en) * | 2023-08-29 | 2023-09-22 | 南京天创电子技术有限公司 | Visual communication protocol analysis method and system based on XML |
CN116800868B (en) * | 2023-08-29 | 2023-11-07 | 南京天创电子技术有限公司 | Visual communication protocol analysis method and system based on XML |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116232938A (en) | Visual method supporting arbitrary communication protocol field | |
CN109032390A (en) | Handwriting data caching method, device, equipment and storage medium | |
CN104268113B (en) | The lcd controller of DPI interfaces and the method for its adaptive bandwidth | |
CN102096945B (en) | Progressive transmission of spatial data and device | |
CN102611869A (en) | Output-oriented network transmission technique of multi-screen splicing system | |
CN114020848A (en) | Data analysis system for industrial field edge cloud cooperation and implementation method | |
CN103593568A (en) | On-line monitoring data model mapping method based on IEC 61850 | |
CN105701730A (en) | Method for real-time data uploading of transformer station remote browsing through JSON technology | |
CN103747191B (en) | Network interaction high-definition character superimposition system | |
CN103577496A (en) | Method and device for displaying E-mail | |
CN112543235A (en) | Remote control system for space material high-temperature cabinet foundation matching experiment | |
CN107483629A (en) | A kind of high in the clouds monitoring method and its system based on industrial large-sized equipment non-intruding | |
CN105204799B (en) | A kind of raising method of multichannel storage logic analyser display refresh rates deeply | |
CN110222100B (en) | Processing method, system and storage medium based on big data display process timing diagram | |
CN107767447A (en) | The design method of configuration map symbol | |
CN114003022B (en) | Equipment monitoring platform based on data stream | |
CN103414595B (en) | Power dispatch data network link monitoring system topological drawing generating method | |
CN113157644B (en) | Real-time evaluation system for note effect of class and meeting based on paper handwriting | |
CN202617284U (en) | VGA encoder for long-distance transmission | |
CN115238659A (en) | Report data processing method and device | |
CN115422189A (en) | Data storage management method for aircraft test | |
CN112057832B (en) | Live-action riding training system based on mobile streaming media technology | |
CN111897420A (en) | Visual exhibit system and method based on VR technology | |
CN106933982A (en) | Boss station informix methods of exhibiting based on power system generic service agreement | |
CN114862112A (en) | Intelligent group control method and system for industrial manufacturing unit and electronic equipment |
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 |