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

Data message general automatic analysis method and storage method

A technology of automatic parsing and data message, applied in electrical components, transmission systems, etc., to achieve the effect of strong versatility, ensuring compatibility, and simple operation

Active Publication Date: 2019-07-12
SOUTHWEST CHINA RES INST OF ELECTRONICS EQUIP
View PDF14 Cites 22 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
  • Data message general automatic analysis method and storage method
  • Data message general automatic analysis method and storage method
  • Data message general automatic analysis method and storage method

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 data message general automatic analysis method and storage method. The analysis method comprises the following steps: pre-configuring a plurality of protocol formats in the LDAP; storing the configured protocol format; matching a corresponding protocol format according to the protocol type to which the message to be analyzed belongs; carrying out integrity judgment on themessage based on the matched protocol format, and after judgment is passed, analyzing the data content of the message through the matched protocol format; and performing format conversion on the analyzed data according to the protocol format corresponding to the message. The storage method comprises the steps of predefining data format content of an equipment data type in an LDAP, storing data into a data table when the corresponding data table is stored according to an equipment identifier, otherwise, constructing the data table, and storing the data. According to the invention, automatic matching of protocol analysis is realized by using the LDAP, and general analysis of multiple types of protocols is realized 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 Applications(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L69/03H04L69/22H04L67/1095H04L63/123
Inventor 刘芳陈刚张聪陈振振曲一萍
Owner SOUTHWEST CHINA RES INST OF ELECTRONICS EQUIP
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