Unlock instant, AI-driven research and patent intelligence for your innovation.

Universal automatic parsing method and storage method for data message

An automatic analysis and message technology, applied in the direction of digital transmission system, safety communication device, electrical components, etc., to achieve the effect of good versatility, easy operation and convenient duplication

Active Publication Date: 2022-03-08
SOUTHWEST CHINA RES INST OF ELECTRONICS EQUIP
View PDF14 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Solve the problem of automatic parsing and storage of messages collected by sensors applying multi-type data protocols

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
  • Universal automatic parsing method and storage method for data message
  • Universal automatic parsing method and storage method for data message
  • Universal automatic parsing method and storage method for data message

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] The general automatic parsing method of the data message comprises the following steps:

[0062] S1: In LDAP, several protocol formats are pre-configured.

[0063] The configured protocol format is the definition of each protocol field. Including protocol type, protocol header, data item content, protocol tail, etc.

[0064] S2: Obtain all the configured data protocols, obtain the data protocol content information of each protocol, and store them in the corresponding protocol structure to form a protocol data list.

[0065] The data protocol content information is the field information configured for each protocol. The complete protocol structure can be obtained by collating the field information and defining the format.

[0066] S3: Extract the message to be parsed from the cached data, and match the corresponding protocol structure in the protocol data list according to the protocol type to which the message belongs.

[0067] The data cached in the cache space is t...

Embodiment 2

[0083] A general storage method for message data, comprising the following steps:

[0084] A. In LDAP, the user adds or modifies the data format content of the device type data according to the agreed format, specifically including the name, type and data length of each data item, and the data format content corresponds to the configured protocol format;

[0085] B. According to the input device identification (such as device ID), judge whether there is a data table corresponding to the device, if it exists, choose to execute D, otherwise, execute C;

[0086] C. Build the data table:

[0087] C1: Obtain the corresponding data format content in LDAP according to the data type of the device corresponding to the input device identifier;

[0088] C2: Analyze the content of the acquired data format, obtain the information contained in each data item, and form an array of data item information; the information contained in the data item includes the data item name, type, and data l...

Embodiment 3

[0093] This embodiment specifically discloses the above-mentioned process of storing the analyzed data into the data table:

[0094] D1: Retrieve whether there is a data item to be stored in the device in the real-time table, if it exists, update each data item corresponding to the device in the real-time table to the latest data (data that is planned to be stored); if it does not exist, The data stored in the plan is directly inserted into the real-time table.

[0095] D2: In the history table, match the data items of the equipment, and insert the data to be stored into the matched data items.

[0096] In one embodiment, during the process of storing data into the data table, if writing (updating or inserting) data fails, an error handling step is performed. If the real-time table is deleted, execute B again after backing up the history table.

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 discloses a general automatic parsing method and a storage method for data messages. The parsing method includes: pre-configuring several protocol formats in LDAP; storing the configured protocol formats; matching the corresponding protocol formats according to the protocol type of the message to be parsed; The integrity of the message is judged, and after the judgment is passed, the data content of the message is analyzed by using the matched protocol format; according to the protocol format corresponding to the message, the format conversion of the parsed data is performed . The storage method includes: predefining the data format content of the equipment data type in LDAP, according to the equipment identification, when storing the corresponding data table, storing the data into the data table, otherwise, constructing the data table and storing the data. The invention utilizes LDAP to realize automatic matching of protocol analysis, and realizes general analysis of multiple types of protocols through simple configuration and operation.

Description

technical field [0001] The invention relates to the field of sensor communication protocol analysis, in particular to a general method for automatic message analysis and device data storage based on an LDAP-based self-defined protocol. Background technique [0002] In recent years, with the widespread use of sensors, various sensor-based application systems such as the Internet of Things, smart cities, and smart oceans have sprung up, but the problem that follows is that the system needs to access a large amount of sensor data for data analysis and sensor processing. Automatic storage of device data. Most of the protocol analysis adopts the method of formulating a corresponding protocol analysis program for each type of data protocol, which is not only time-consuming and laborious, but also has a lot of repetitive work. At present, there are also some computer-based general protocol analysis software, but the analysis method is not only complicated but also some methods hav...

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 Patents(China)
IPC IPC(8): H04L69/00H04L69/22H04L67/1095H04L9/40
CPCH04L69/03H04L69/22H04L67/1095H04L63/123
Inventor 刘芳陈刚张聪陈振振曲一萍
Owner SOUTHWEST CHINA RES INST OF ELECTRONICS EQUIP