CN113162913A - Message analysis method and device of mine monitoring system - Google Patents

Message analysis method and device of mine monitoring system Download PDF

Info

Publication number
CN113162913A
CN113162913A CN202110276379.9A CN202110276379A CN113162913A CN 113162913 A CN113162913 A CN 113162913A CN 202110276379 A CN202110276379 A CN 202110276379A CN 113162913 A CN113162913 A CN 113162913A
Authority
CN
China
Prior art keywords
message
target
monitoring system
algorithm
mine monitoring
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.)
Granted
Application number
CN202110276379.9A
Other languages
Chinese (zh)
Other versions
CN113162913B (en
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.)
China Coal Research Institute CCRI
Original Assignee
China Coal Research Institute CCRI
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 China Coal Research Institute CCRI filed Critical China Coal Research Institute CCRI
Priority to CN202110276379.9A priority Critical patent/CN113162913B/en
Publication of CN113162913A publication Critical patent/CN113162913A/en
Application granted granted Critical
Publication of CN113162913B publication Critical patent/CN113162913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a message analysis method of a mine monitoring system. The message analysis method comprises the following steps: acquiring an original message of a mine monitoring system; acquiring first key information of an original message; acquiring a target message from an original message according to the first key information; acquiring an analytical algorithm library of a mine monitoring system; judging whether the analysis algorithm library comprises a target algorithm, wherein the target algorithm is an algorithm matched with second key information of the target message; and if the analysis algorithm library comprises the target algorithm, analyzing the target message according to the target algorithm. The method can acquire the target message from the original message according to the first key information of the original message, thereby avoiding analyzing the non-legal message, saving the computing resources of the mine monitoring system, analyzing the target message according to the target algorithm matched with the second key information of the original message, and improving the flexibility of message analysis because different second key information can correspond to different target algorithms.

Description

Message analysis method and device of mine monitoring system
Technical Field
The invention relates to the technical field of coal mining, in particular to a message analysis method and device for a mine monitoring system, the mine monitoring system, electronic equipment and a storage medium.
Background
At present, in order to improve the safety and reliability of coal mining, the performance of a mine monitoring system needs to be further improved. The mine monitoring system is complex, the information amount of the data of the mine monitoring system is large, for example, a large number of messages can be generated due to the fact that the mine monitoring system comprises a large number of monitoring nodes, and the message analysis efficiency and accuracy of the mine monitoring system in the related art are poor.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, an object of the present invention is to provide a message parsing method for a mine monitoring system, which is capable of obtaining a target message from an original message according to first key information of the original message, so as to avoid parsing a non-legal message, save computing resources of the mine monitoring system, and parse the target message according to a target algorithm matched with second key information of the original message, where different second key information may correspond to different target algorithms, thereby improving flexibility of message parsing.
The second purpose of the invention is to provide a message analysis device of a mine monitoring system.
A third object of the present invention is to provide a mine monitoring system.
A fourth object of the invention is to propose an electronic device.
A fifth object of the present invention is to propose a computer-readable storage medium.
An embodiment of a first aspect of the present invention provides a method for analyzing a message of a mine monitoring system, including: acquiring an original message of a mine monitoring system; acquiring first key information of the original message; acquiring a target message from the original message according to the first key information; acquiring an analytical algorithm library of the mine monitoring system; judging whether a target algorithm is included in the analysis algorithm library, wherein the target algorithm is an algorithm matched with second key information of the target message; and if the target algorithm is included in the analysis algorithm library, analyzing the target message according to the target algorithm.
According to the message analysis method of the mine monitoring system, the target message can be obtained from the original message according to the first key information of the original message, so that the analysis of the non-legal message can be avoided, the computing resources of the mine monitoring system can be saved, the target message can be analyzed according to the target algorithm matched with the second key information of the original message, different second key information can correspond to different target algorithms, and the flexibility of message analysis is improved.
In addition, the message parsing method of the mine monitoring system provided by the embodiment of the invention also has the following additional technical characteristics:
in one embodiment of the present invention, further comprising: acquiring the time of the target message and the current time of the mine monitoring system; and acquiring the type of the target message according to the time of the target message and the current time of the mine monitoring system, wherein the type of the target message comprises a real-time first target message and a non-real-time second target message.
In an embodiment of the present invention, before analyzing the target packet according to the target algorithm, the method further includes: and determining the analysis sequence of the target message.
In one embodiment of the present invention, further comprising: if the target algorithm is not included in the analysis algorithm library, constructing a first algorithm according to the second key information of the target message; storing the first algorithm to the parsing algorithm library; and analyzing the target message according to the first algorithm.
In an embodiment of the present invention, after analyzing the target packet according to the target algorithm, the method further includes: judging whether the type of the target message is an abnormal message or not; if the type of the target message is the abnormal message, importing the target message into a data definition table of the mine monitoring system; generating display data of the target message according to the data definition table and the target message; and sending the display data to a display window of a display platform.
In one embodiment of the present invention, further comprising: and if the type of the target message is a non-abnormal message, storing the target message as a queried message in the display platform.
An embodiment of a second aspect of the present invention provides a message parsing apparatus for a mine monitoring system, including: the first acquisition module is used for acquiring an original message of the mine monitoring system; the second acquisition module is used for acquiring the first key information of the original message; a third obtaining module, configured to obtain a target packet from the original packet according to the first key information; the fourth acquisition module is used for acquiring an analysis algorithm library of the mine monitoring system; the judging module is used for judging whether the analysis algorithm library comprises a target algorithm, wherein the target algorithm is an algorithm matched with second key information of the target message; and the analysis module is used for analyzing the target message according to the target algorithm if the analysis algorithm library comprises the target algorithm.
The message analysis device of the mine monitoring system provided by the embodiment of the invention can acquire the target message from the original message according to the first key information of the original message, so that the analysis of the non-legal message can be avoided, the computing resource of the mine monitoring system can be saved, the target message can be analyzed according to the target algorithm matched with the second key information of the original message, different second key information can correspond to different target algorithms, and the flexibility of message analysis is improved.
In addition, the message parsing device of the mine monitoring system provided by the embodiment of the invention can also have the following additional technical characteristics:
in an embodiment of the present invention, the message parsing apparatus of the mine monitoring system further includes: a fifth obtaining module, configured to: acquiring the time of the target message and the current time of the mine monitoring system; and acquiring the type of the target message according to the time of the target message and the current time of the mine monitoring system, wherein the type of the target message comprises a real-time first target message and a non-real-time second target message.
In an embodiment of the present invention, the parsing module is further configured to: and determining the analysis sequence of the target message before analyzing the target message according to the target algorithm.
In an embodiment of the present invention, the parsing module is further configured to: if the target algorithm is not included in the analysis algorithm library, constructing a first algorithm according to the second key information of the target message; storing the first algorithm to the parsing algorithm library; and analyzing the target message according to the first algorithm.
In an embodiment of the present invention, the message parsing apparatus of the mine monitoring system further includes: a display module for: judging whether the type of the target message is an abnormal message or not; if the type of the target message is the abnormal message, importing the target message into a data definition table of the mine monitoring system; generating display data of the target message according to the data definition table and the target message; and sending the display data to a display window of a display platform.
In an embodiment of the present invention, the display module is further configured to: and if the type of the target message is a non-abnormal message, storing the target message as a queried message in the display platform.
The embodiment of the third aspect of the invention provides a mine monitoring system, which comprises a message analysis device of the mine monitoring system in the embodiment of the second aspect of the invention.
According to the mine monitoring system provided by the embodiment of the invention, the target message can be obtained from the original message according to the first key information of the original message, so that the analysis of the non-legal message can be avoided, the computing resources of the mine monitoring system can be saved, the target message can be analyzed according to the target algorithm matched with the second key information of the original message, different second key information can correspond to different target algorithms, and the flexibility of message analysis is improved.
A fourth aspect of the present invention provides an electronic device, including: the message analysis method of the mine monitoring system comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the message analysis method of the mine monitoring system is realized.
According to the electronic equipment provided by the embodiment of the invention, the processor executes the computer program stored on the memory, and the target message can be obtained from the original message according to the first key information of the original message, so that the analysis of the non-legal message can be avoided, the computing resources of a mine monitoring system can be saved, the target message can be analyzed according to the target algorithm matched with the second key information of the original message, different second key information can correspond to different target algorithms, and the flexibility of message analysis is improved.
In an embodiment of a fifth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method for analyzing messages of the mine monitoring system according to the embodiment of the first aspect of the present invention is implemented.
The computer-readable storage medium of the embodiment of the invention can acquire the target message from the original message according to the first key information of the original message by storing the computer program and executing the computer program by the processor, thereby avoiding analyzing the non-legal message, saving the computing resources of the mine monitoring system, analyzing the target message according to the target algorithm matched with the second key information of the original message, and improving the flexibility of message analysis because different second key information can correspond to different target algorithms.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a message parsing method of a mine monitoring system according to an embodiment of the invention;
fig. 2 is a schematic flow chart illustrating a process after a target message is acquired from an original message in a message parsing method of a mine monitoring system according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a message analysis method of a mine monitoring system according to an embodiment of the present invention after analyzing a target message according to a target algorithm;
fig. 4 is a schematic flow chart of a message parsing method of a mine monitoring system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message parsing apparatus of a mine monitoring system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message analysis device of a mine monitoring system according to another embodiment of the invention; and
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a message parsing method and apparatus, a mine monitoring system, an electronic device, and a storage medium of the mine monitoring system according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a message parsing method of a mine monitoring system according to an embodiment of the present invention.
As shown in fig. 1, the message parsing method of the mine monitoring system according to the embodiment of the present invention includes the following steps:
s101, obtaining an original message of the mine monitoring system.
In the embodiment of the invention, the original message of the mine monitoring system can be obtained. It can be understood that the mine monitoring system may include a large number of monitoring nodes, each monitoring node may correspond to a plurality of original messages, and a large number of original messages corresponding to all the monitoring nodes may be obtained.
Optionally, the original message of the mine monitoring system may be obtained based on a Controller Area Network (CAN) bus.
S102, first key information of the original message is obtained.
In the embodiment of the invention, the first key information of the original message can be acquired. The first key information may be set according to actual conditions, for example, the first key information includes, but is not limited to, a location of the message (such as a temperature sensor, a dust and fog sensor), a type of the message (such as an abnormal message, a non-abnormal message), and the like.
Optionally, the first key information of the original message may be extracted from the original message according to a preset rule. For example, it may be preset that the first key information is displayed at a fixed position of the original message, and then the first key information of the original message may be extracted from the fixed position of the original message.
S103, acquiring the target message from the original message according to the first key information.
It should be noted that the messages can be divided into legitimate messages and non-legitimate messages. Legal messages refer to messages with structures meeting preset requirements, and non-legal messages refer to messages with structures not meeting the preset requirements. The preset requirement can be preset according to the actual situation.
It can be understood that, if an error may occur in the monitoring system, an illegal message may exist in the original message, and in the embodiment of the present invention, the target message may be obtained from the original message according to the first key information, so that a legal target message may be obtained from the original message according to the first key information, and an illegal message may be removed from the original message, so that the analysis of the illegal message may be avoided, and the computing resources of the mine monitoring system may be saved.
Optionally, the obtaining of the target message from the original message according to the first key information may include obtaining a message definition table of the mine monitoring system, and obtaining the target message from the original message according to the message definition table and the first key information. The message definition table includes structure information of legal messages. It can be understood that the first key information may be compared with the message definition table, and if the first key information conforms to the structure information of the legal message in the message definition table, the original message corresponding to the first key information may be used as the target message.
And S104, acquiring an analysis algorithm library of the mine monitoring system.
In the embodiment of the invention, the analysis algorithm library of the mine monitoring system can be obtained. It will be appreciated that the library of parsing algorithms may include one or more parsing algorithms for parsing the message. The analysis algorithm library can be set according to actual conditions and can be stored in a storage space of the mine monitoring system in advance.
And S105, judging whether the analysis algorithm library comprises a target algorithm, wherein the target algorithm is an algorithm matched with the second key information of the target message.
Optionally, before determining whether the target algorithm is included in the analysis algorithm library, second key information of the original message may be obtained. The second key information may be set according to actual conditions, for example, the second key information may be a location of a message (such as a temperature sensor and a dust and fog sensor).
In the embodiment of the invention, different second key information can be matched with different target algorithms, and the flexibility is higher.
Optionally, a mapping relation or a mapping table between the second key information and the target algorithm may be pre-established, and after the second key information is obtained, the mapping relation or the mapping table is queried, so that the target algorithm matched with the second key information can be obtained. It should be noted that the mapping relationship or the mapping table may be set according to actual conditions, and may be preset in a storage space of the mine monitoring system.
And S106, if the analysis algorithm library comprises the target algorithm, analyzing the target message according to the target algorithm.
In the embodiment of the invention, if the analysis algorithm library comprises the target algorithm, the target message can be analyzed according to the target algorithm.
As another possible implementation manner, if the target algorithm is not included in the parsing algorithm library, the first algorithm may be constructed according to the second key information of the target packet, and the first algorithm is stored in the parsing algorithm library, and the target packet is parsed according to the first algorithm. Therefore, when the target algorithm is not included in the analysis algorithm library, the first algorithm can be constructed according to the second key information of the target message, the first algorithm is stored in the analysis algorithm library to update the analysis algorithm library, and the target message can be analyzed according to the first algorithm.
In summary, according to the message parsing method of the mine monitoring system in the embodiment of the present invention, the target message can be obtained from the original message according to the first key information of the original message, so that parsing of a non-legal message can be avoided, computing resources of the mine monitoring system can be saved, the target message can be parsed according to a target algorithm matched with the second key information of the original message, different second key information can correspond to different target algorithms, and flexibility of message parsing is improved.
On the basis of any of the above embodiments, as shown in fig. 2, after acquiring the target packet from the original packet in step S103, the method further includes:
s201, obtaining the time of the target message and the current time of the mine monitoring system.
It should be noted that the time of the target packet refers to the generation time of the target packet.
It is understood that different target messages may correspond to different times.
S202, acquiring the type of the target message according to the time of the target message and the current time of the mine monitoring system, wherein the type of the target message comprises a real-time first target message and a non-real-time second target message.
In the embodiment of the present invention, the types of the target packets may include a real-time first target packet and a non-real-time second target packet. The real-time first target message refers to a target message with better real-time performance, and the non-real-time second target message refers to a target message with poorer real-time performance.
Optionally, the type of the target message is obtained according to the time of the target message and the current time of the mine monitoring system, and may include a time interval between the time of the target message and the current time of the mine monitoring system, if the time interval is less than or equal to a preset threshold, it indicates that the time interval between the time of the target message and the current time of the mine monitoring system is small, and the real-time property of the target message is good, the type of the corresponding target message is a real-time first target message, otherwise, if the time interval is greater than the preset threshold, it indicates that the time interval between the time of the target message and the current time of the mine monitoring system is large, and the real-time property of the target message is poor, the type of the corresponding target message is a non-real-time second target message. The preset threshold value can be set according to actual conditions.
Therefore, the method can acquire the type of the target message according to the time of the target message and the current time of the mine monitoring system, wherein the type of the target message comprises a real-time first target message and a non-real-time second target message.
On the basis of any of the above embodiments, before analyzing the target packet according to the target algorithm in step S106, determining an analysis order of the target packet is further included. It can be understood that the target packets may be parsed according to the parsing order of the target packets. Different target messages may correspond to different parsing orders.
Optionally, the parsing order of the first target packet is earlier than the parsing order of the second packet. Therefore, the real-time analysis sequence of the first target message is earlier than the non-real-time analysis sequence of the second target message, namely, the real-time first target message is analyzed preferentially, and the real-time performance of message analysis is improved.
Optionally, determining the parsing order of the target packet may include obtaining a priority of the second target packet, and obtaining the parsing order of the second target packet according to the priority of the second target packet.
It is understood that the priority of the second target message may be preset, for example, the priority of the second target message may be set according to the second key information, for example, the priority of the second target message corresponding to the dust and fog sensor may be set to be higher than the priority of the second target message corresponding to the temperature sensor.
The obtaining of the parsing order of the second target packet may include sorting the second target packets in a descending order according to the priority, and obtaining the parsing order of the second target packet according to the sorting of the second target packets.
Therefore, the method can acquire the analysis sequence of the second target message according to the priority of the second target message.
On the basis of any of the above embodiments, as shown in fig. 3, after the parsing the target packet according to the target algorithm in step S106, the method further includes:
s301, judging whether the type of the target message is an abnormal message.
The abnormal message can be set according to actual conditions. For example, the exception message includes, but is not limited to, an alarm message, a fault message, and the like.
Optionally, whether the type of the target packet is an abnormal packet may be determined according to the third key information of the target packet. The third key information may be a type of the message (e.g., an abnormal message, a non-abnormal message), and the like.
And S302, if the type of the target message is an abnormal message, importing the abnormal message into a data definition table of the mine monitoring system.
In the embodiment of the invention, if the type of the target message is an abnormal message, the data can be imported into a data definition table of the mine monitoring system. The data definition table of the mine monitoring system comprises structural information of display data corresponding to the abnormal messages, can be set according to actual conditions, and can be stored in a storage space of the mine monitoring system in advance.
S303, generating display data of the target message according to the data definition table and the target message.
It can be understood that the target message may be compared with the data definition table, the structural information of the display data corresponding to the abnormal message is obtained from the data definition table, and then the display data of the target message is generated according to the structural information of the target message and the display data.
In the embodiment of the present invention, the form of the display data is not limited, and may be any kind of visual data.
S304, sending the display data to a display window of the display platform.
In the embodiment of the invention, the display data can be sent to the display window of the display platform, so that the display data is displayed in the display window of the display platform, and a user can timely acquire the display data corresponding to the abnormal message.
Optionally, the display platform may be an upper computer management platform in the mine monitoring system.
Therefore, when the type of the target message is an abnormal message, the method can be introduced into a data definition table of the mine monitoring system, display data of the target message is generated according to the data definition table and the target message, and the display data is sent to a display window of a display platform.
As another possible implementation manner, if the type of the target message is a non-abnormal message, the target message is stored on the display platform as a queried message, so that a user can obtain the non-abnormal message in a querying manner.
Optionally, the query instruction for the target packet may be responded to, and the corresponding target packet may be displayed according to the query instruction. Therefore, the corresponding target message can be displayed according to the query instruction in response to the query instruction aiming at the target message, so that the non-abnormal message can be acquired in a query mode.
To make the present invention more clear to those skilled in the art, fig. 4 is a schematic flow chart of a message parsing method of a mine monitoring system according to an embodiment of the present invention, as shown in fig. 4, the method may include the following steps:
s401, obtaining an original message of the mine monitoring system.
S402, acquiring first key information of the original message.
S403, acquiring the target message from the original message according to the first key information.
S404, obtaining an analysis algorithm library of the mine monitoring system.
S405, judging whether the target algorithm is included in the analysis algorithm library.
If yes, go to step S406; if not, step S407 is executed.
S406, analyzing the target message according to the target algorithm.
S407, a first algorithm is established according to the second key information of the target message, the first algorithm is stored in the analysis algorithm library, and the target message is analyzed according to the first algorithm.
S408, judging whether the type of the target message is an abnormal message.
If yes, go to step S409; if not, step S411 is executed.
And S409, importing a data definition table of the mine monitoring system, and generating display data of the target message according to the data definition table and the target message.
And S410, sending the display data to a display window of the display platform.
S411, the target message is used as the inquired message to be stored in the display platform.
For the specific description of the steps, reference is made to the descriptions of the related contents in the above embodiments, which are not described herein again.
In order to implement the embodiment, the invention further provides a message analysis device of the mine monitoring system.
Fig. 5 is a schematic structural diagram of a message parsing apparatus of a mine monitoring system according to an embodiment of the present invention.
As shown in fig. 5, a message parsing apparatus 100 of a mine monitoring system according to an embodiment of the present invention includes: a first obtaining module 110, a second obtaining module 120, a third obtaining module 130, a fourth obtaining module 140, a judging module 150 and an analyzing module 160.
A first obtaining module 110, configured to obtain an original message of a mine monitoring system;
a second obtaining module 120, configured to obtain first key information of the original packet;
a third obtaining module 130, configured to obtain a target packet from the original packet according to the first key information;
a fourth obtaining module 140, configured to obtain an analysis algorithm library of the mine monitoring system;
the judging module 150 is configured to judge whether the parsing algorithm library includes a target algorithm, where the target algorithm is an algorithm matched with second key information of the target packet;
and the analysis module 160 is configured to analyze the target packet according to the target algorithm if the analysis algorithm library includes the target algorithm.
In an embodiment of the present invention, as shown in fig. 6, the message parsing apparatus 100 of the mine monitoring system further includes: a fifth obtaining module 170, configured to: acquiring the time of the target message and the current time of the mine monitoring system; and acquiring the type of the target message according to the time of the target message and the current time of the mine monitoring system, wherein the type of the target message comprises a real-time first target message and a non-real-time second target message.
In an embodiment of the present invention, the parsing module 160 is further configured to: and determining the analysis sequence of the target message before analyzing the target message according to the target algorithm.
In an embodiment of the present invention, the parsing module 160 is further configured to: if the target algorithm is not included in the analysis algorithm library, constructing a first algorithm according to the second key information of the target message; storing the first algorithm to the parsing algorithm library; and analyzing the target message according to the first algorithm.
In an embodiment of the present invention, as shown in fig. 6, the message parsing apparatus 100 of the mine monitoring system further includes: a display module 180 for: judging whether the type of the target message is an abnormal message or not; if the type of the target message is the abnormal message, importing the target message into a data definition table of the mine monitoring system; generating display data of the target message according to the data definition table and the target message; and sending the display data to a display window of a display platform.
In an embodiment of the present invention, the display module 180 is further configured to: and if the type of the target message is a non-abnormal message, storing the target message as a queried message in the display platform.
To sum up, the message parsing device of the mine monitoring system according to the embodiment of the present invention can obtain the target message from the original message according to the first key information of the original message, so as to avoid parsing the non-legal message, save the computing resources of the mine monitoring system, and parse the target message according to the target algorithm matched with the second key information of the original message, where different second key information may correspond to different target algorithms, thereby improving the flexibility of message parsing.
In order to implement the above embodiment, as shown in fig. 7, an embodiment of the present invention provides an electronic device 200, including: the message analysis method of the mine monitoring system comprises a memory 210, a processor 220 and a computer program which is stored on the memory 210 and can run on the processor 220, wherein when the processor 220 executes the program, the message analysis method of the mine monitoring system is realized.
According to the electronic equipment provided by the embodiment of the invention, the processor executes the computer program stored on the memory, and the target message can be obtained from the original message according to the first key information of the original message, so that the analysis of the non-legal message can be avoided, the computing resources of a mine monitoring system can be saved, the target message can be analyzed according to the target algorithm matched with the second key information of the original message, different second key information can correspond to different target algorithms, and the flexibility of message analysis is improved.
In order to implement the foregoing embodiments, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the message parsing method of the mine monitoring system.
The computer-readable storage medium of the embodiment of the invention can acquire the target message from the original message according to the first key information of the original message by storing the computer program and executing the computer program by the processor, thereby avoiding analyzing the non-legal message, saving the computing resources of the mine monitoring system, analyzing the target message according to the target algorithm matched with the second key information of the original message, and improving the flexibility of message analysis because different second key information can correspond to different target algorithms.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and are not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A message analysis method of a mine monitoring system is characterized by comprising the following steps:
acquiring an original message of a mine monitoring system;
acquiring first key information of the original message;
acquiring a target message from the original message according to the first key information;
acquiring an analytical algorithm library of the mine monitoring system;
judging whether a target algorithm is included in the analysis algorithm library, wherein the target algorithm is an algorithm matched with second key information of the target message;
and if the target algorithm is included in the analysis algorithm library, analyzing the target message according to the target algorithm.
2. The message parsing method of the mine monitoring system according to claim 1, further comprising:
acquiring the time of the target message and the current time of the mine monitoring system;
and acquiring the type of the target message according to the time of the target message and the current time of the mine monitoring system, wherein the type of the target message comprises a real-time first target message and a non-real-time second target message.
3. The message parsing method of the mine monitoring system according to claim 1, wherein before parsing the target message according to the target algorithm, further comprising:
and determining the analysis sequence of the target message.
4. The message parsing method of the mine monitoring system according to claim 1, further comprising:
if the target algorithm is not included in the analysis algorithm library, constructing a first algorithm according to the second key information of the target message;
storing the first algorithm to the parsing algorithm library;
and analyzing the target message according to the first algorithm.
5. The message parsing method of the mine monitoring system according to any one of claims 1 to 4, wherein after parsing the target message according to the target algorithm, further comprising:
judging whether the type of the target message is an abnormal message or not;
if the type of the target message is the abnormal message, importing the target message into a data definition table of the mine monitoring system;
generating display data of the target message according to the data definition table and the target message;
and sending the display data to a display window of a display platform.
6. The message parsing method of the mine monitoring system according to claim 5, further comprising:
and if the type of the target message is a non-abnormal message, storing the target message as a queried message in the display platform.
7. A message analysis device of a mine monitoring system is characterized by comprising:
the first acquisition module is used for acquiring an original message of the mine monitoring system;
the second acquisition module is used for acquiring the first key information of the original message;
a third obtaining module, configured to obtain a target packet from the original packet according to the first key information;
the fourth acquisition module is used for acquiring an analysis algorithm library of the mine monitoring system;
the judging module is used for judging whether the analysis algorithm library comprises a target algorithm, wherein the target algorithm is an algorithm matched with second key information of the target message;
and the analysis module is used for analyzing the target message according to the target algorithm if the analysis algorithm library comprises the target algorithm.
8. A mine monitoring system, comprising: the message parsing device of the mine monitoring system of claim 7.
9. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, when executing the program, implementing the message parsing method of the mine monitoring system of any one of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of message parsing of a mine monitoring system according to any one of claims 1-6.
CN202110276379.9A 2021-03-15 2021-03-15 Message analysis method and device of mine monitoring system Active CN113162913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110276379.9A CN113162913B (en) 2021-03-15 2021-03-15 Message analysis method and device of mine monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110276379.9A CN113162913B (en) 2021-03-15 2021-03-15 Message analysis method and device of mine monitoring system

Publications (2)

Publication Number Publication Date
CN113162913A true CN113162913A (en) 2021-07-23
CN113162913B CN113162913B (en) 2023-04-18

Family

ID=76887117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110276379.9A Active CN113162913B (en) 2021-03-15 2021-03-15 Message analysis method and device of mine monitoring system

Country Status (1)

Country Link
CN (1) CN113162913B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547156A (en) * 2009-05-04 2009-09-30 华为技术有限公司 Message parsing method and device
WO2010139203A1 (en) * 2009-05-31 2010-12-09 北京飞天诚信科技有限公司 Method and system for enhancing network application security
US20140195635A1 (en) * 2011-09-26 2014-07-10 Zte Corporation Method and system for realizing rest interface of cloud cache in nginx
CN106549904A (en) * 2015-09-16 2017-03-29 中兴通讯股份有限公司 The method and device of packet parsing
CN107508827A (en) * 2017-09-15 2017-12-22 通鼎互联信息股份有限公司 A kind of message parsing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547156A (en) * 2009-05-04 2009-09-30 华为技术有限公司 Message parsing method and device
WO2010139203A1 (en) * 2009-05-31 2010-12-09 北京飞天诚信科技有限公司 Method and system for enhancing network application security
US20140195635A1 (en) * 2011-09-26 2014-07-10 Zte Corporation Method and system for realizing rest interface of cloud cache in nginx
CN106549904A (en) * 2015-09-16 2017-03-29 中兴通讯股份有限公司 The method and device of packet parsing
CN107508827A (en) * 2017-09-15 2017-12-22 通鼎互联信息股份有限公司 A kind of message parsing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
索国伟;王金锁;郭荣华;赵盼;: "ADS-B数据报文采集与解析系统的设计与实现" *

Also Published As

Publication number Publication date
CN113162913B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US9347996B2 (en) Remaining life determining system for stationary storage battery, and method of determining remaining life of stationary storage battery
CN108259269A (en) The monitoring method and system of the network equipment
CN112744120B (en) Method for estimating driving range of electric vehicle, cloud server, vehicle and medium
CN105515902A (en) Test method and system of vehicle control unit
US20080144488A1 (en) Method and System for Providing Prioritized Failure Announcements
CN113162913B (en) Message analysis method and device of mine monitoring system
CN112513883A (en) Anomaly detection method and apparatus
CN113452576A (en) Network environment monitoring method and device, storage medium and electronic device
CN114394033B (en) Battery pack detection method, device, equipment and medium
CN110769078B (en) Address allocation method and system
CN115687051A (en) Log analysis system based on point position analysis
CN113824031A (en) Robot inspection method and device based on gateway, gateway equipment and storage medium
US20240319288A1 (en) Method for detecting inconsistency of single cells in vehicle battery, device and medium
CN112306871A (en) Data processing method, device, equipment and storage medium
CN108650134A (en) The method, apparatus and electronic equipment of network failure positioning
CN115545452B (en) Operation and maintenance method, operation and maintenance system, equipment and storage medium
CN117909143A (en) Method and device for processing project data, storage medium and electronic equipment
CN113938844B (en) Network connection monitoring method, system, computer device and storage medium
CN114295998B (en) Method, device, equipment and storage medium for predicting service life of power battery
CN116505648A (en) Fault reporting method, system, ammeter box and storage medium
CN116132326A (en) Comprehensive energy efficiency data management method and system
EP4160494A1 (en) Manufactured object information management device, method, and program
CN115988037A (en) Automobile industrial equipment data acquisition and processing method, system and storage medium
CN110177032B (en) Message routing quality monitoring method and gateway controller
CN112788153A (en) Internet of things equipment upgrade management method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant