Internet of Things message processing method, electronic equipment, storage medium and computer program product
Obtain user-configured protocol parsing configuration information by generating a configuration page and parse IoT device messages, which solves the problem that existing tools are difficult to parse private fields of IoT terminals, realizes configurable communication protocol processing for IoT devices, and improves management. capabilities and safety.
Patent Information
- Application Number
- CN202411501284.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-10-25
AI Technical Summary
Existing protocol resolution tools are difficult to parse private fields of IoT terminals, resulting in difficulties in centralized management of IoT gateways, increasing operation and maintenance costs and security risks.
By generating the configuration page, obtain the user configuration protocol analysis configuration information, and analyze the messages of IoT devices based on these configuration information, extract IoT device information, thereby realizing the configurable communication protocol processing of IoT devices.
The configurable communication protocol processing of the Internet of Things equipment is realized, which improves the centralized management capabilities of the Internet of Things gateway to the terminal, reduces operation and maintenance costs and security risks, and does not need to be re -coded. sex.
Smart Images

Figure CN119342070A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of message processing, and more specifically, to an Internet of Things message processing method, electronic device, storage medium and computer program product. Background Art
[0002] With the development of IoT network technology, there are more and more types of IoT terminals that can access the network. The increase in the number of IoT terminals has increased the difficulty of maintaining IoT terminals, resulting in a continuous increase in operation and maintenance costs, and the security issues it brings cannot be ignored. Therefore, IoT gateway devices are produced to manage IoT terminals.
[0003] Different types of IoT devices also use different communication protocols, such as http, ftp, smtp, imap, dcerpc, nfs, tftp, dhcp, sip, mqtt, netbios, dicom, etc. When centrally managing IoT terminals, functions such as IoT terminal identification and IoT terminal auditing need to use the content after protocol parsing, such as http.uri, http.header, http.body, ftp.user, ftp.file.name, netbios.ns.questions, dicom.devicename. Existing protocol parsing tools can only parse common and commonly used fields, and some IoT terminal private fields cannot be parsed, which is not conducive to the centralized management of IoT terminals by IoT gateways. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an Internet of Things message processing method, electronic device, storage medium and computer program product, which are used to process Internet of Things messages through the protocol parsing configuration information configured by the user based on the configuration page, thereby realizing configurable communication protocol processing of messages of Internet of Things devices. Compared with the prior art, the present application does not require recoding and has better versatility and maintainability.
[0005] In a first aspect, the present invention provides an Internet of Things message processing method, the method:
[0006] Generate and display a configuration page to obtain protocol parsing configuration information configured by a user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information;
[0007] Parsing a message of the Internet of Things device based on the protocol parsing configuration information to extract first Internet of Things device information from the message of the Internet of Things device;
[0008] The Internet of Things device is processed based on the first Internet of Things device information.
[0009] The method of the first aspect of the present application generates and displays a configuration page, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0010] In an optional implementation, the protocol parsing configuration information includes a target message type, a target field position, and a target field content format;
[0011] And, parsing the message of the Internet of Things device based on the protocol parsing configuration information to extract the first Internet of Things device information from the message of the Internet of Things device, including:
[0012] The first Internet of Things device information is extracted from the message of the Internet of Things device based on the target message type, the target field position and the target field content format.
[0013] This optional implementation manner can extract the first Internet of Things device information from the message of the Internet of Things device based on the target message type, the target field position and the target field content format.
[0014] In an optional embodiment, the method further comprises:
[0015] Parsing the message of the Internet of Things device based on the general field information to extract second Internet of Things device information from the message of the Internet of Things device;
[0016] And, processing the IoT device based on the first IoT device information includes:
[0017] The first IoT device information and the second IoT device information are aggregated to obtain aggregated information, and the IoT device is processed based on the aggregated information.
[0018] This optional implementation can parse the message of the IoT device based on the universal field information to extract the second IoT device information from the message of the IoT device. On the other hand, the first IoT device information and the second IoT device information can be aggregated to obtain aggregated information, and the IoT device can be processed based on the aggregated information.
[0019] In an optional implementation manner, the processing the IoT device based on the summary information includes:
[0020] The Internet of Things device is audited based on the summary information to obtain an audit result.
[0021] This optional implementation manner audits the IoT device based on the summary information to obtain an audit result.
[0022] In an optional implementation manner, the processing the IoT device based on the summary information includes:
[0023] The Internet of Things device is identified based on the summary information to obtain an identification result.
[0024] This optional implementation can identify the Internet of Things device based on the summary information to obtain an identification result.
[0025] In an optional implementation, the target message type includes HTTP protocol type, FTP protocol type, SMTP protocol type, IMAP protocol type, DCERPC protocol type, NFS protocol type, TFTP protocol type, DHCP protocol type, SIP protocol type, MQTT protocol type, NetBIOS protocol type and DICOM protocol type.
[0026] This optional implementation can extract the first Internet of Things device information based on any one of the HTTP protocol type, FTP protocol type, SMTP protocol type, IMAP protocol type, DCERPC protocol type, NFS protocol type, TFTP protocol type, DHCP protocol type, SIP protocol type, MQTT protocol type, NetBIOS protocol type and DICOM protocol type.
[0027] In an optional implementation, the target field content format includes json format, xml format and yaml format.
[0028] This optional implementation can perform format matching based on json format, xml format and yaml format.
[0029] In a second aspect, the present invention provides an electronic device, comprising:
[0030] Processor; and
[0031] A memory configured to store machine-readable instructions, which, when executed by the processor, execute the method described in any one of the aforementioned embodiments.
[0032] The electronic device of the second aspect of the present application can generate and display a configuration page by executing the method of the present application, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0033] In a second aspect, the present invention provides an Internet of Things message processing device, the device comprising:
[0034] A generation module, used to generate and display a configuration page, so as to obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information;
[0035] A parsing module, used to parse the message of the Internet of Things device based on the protocol parsing configuration information to extract the first Internet of Things device information from the message of the Internet of Things device;
[0036] A processing module is used to process the Internet of Things device based on the first Internet of Things device information.
[0037] The device of the present application can generate and display a configuration page by executing the method of the present application, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0038] In a fourth aspect, the present invention provides a storage medium storing a computer program, wherein the computer program is executed by a processor as described in any one of the aforementioned embodiments.
[0039] The storage medium of the present application can generate and display a configuration page by executing the method of the present application, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0040] In a fifth aspect, the present invention provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the method described in any one of the aforementioned embodiments.
[0041] The computer product of the present application can generate and display a configuration page by executing the method of the present application, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is a flowchart of an Internet of Things message processing method disclosed in an embodiment of the present application;
[0044] Figure 2 It is a flowchart of another method for processing Internet of Things messages disclosed in an embodiment of the present application;
[0045] Figure 3 It is a structural diagram of a configurable IoT protocol parsing device;
[0046] Figure 4 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0048] Embodiment 1
[0049] See also Figure 1 , Figure 1 is a flow chart of a method for processing Internet of Things messages disclosed in an embodiment of the present application, such as Figure 1 As shown, the method of the embodiment of the present application includes the following steps:
[0050] 101. Generate and display a configuration page to obtain protocol parsing configuration information configured by a user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information;
[0051] 102. Parse the message of the Internet of Things device based on the protocol parsing configuration information to extract first Internet of Things device information from the message of the Internet of Things device;
[0052] 103. Process the Internet of Things device based on the first Internet of Things device information.
[0053] The method of the embodiment of the present application generates and displays a configuration page, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0054] In an embodiment of the present application, for step 101, the generated configuration page includes a protocol type and a field to be resolved, wherein the field to be resolved is associated with the protocol type, indicating that when an IoT message using the protocol type is obtained, it is necessary to identify the field to be resolved from the IoT message and extract the field value associated with the field to be resolved.
[0055] In the embodiment of the present application, with respect to step 101, the configuration page may refer to a Web page, wherein the Web page may be displayed through a client terminal.
[0056] In an embodiment of the present application, for step 101, the protocol parsing configuration information can be saved on the server. When an IoT message is obtained, the protocol parsing configuration information can be read from the server to process the IoT message based on the protocol parsing configuration information.
[0057] In an embodiment of the present application, the protocol parsing configuration information is the configuration information required for parsing the Internet of Things message.
[0058] In an embodiment of the present application, the result obtained by parsing the Internet of Things message may include fields associated with the general fields in the Internet of Things message and fields associated with the custom fields in the Internet of Things message, wherein the protocol parsing configuration information setting includes the custom fields, based on which the content extracted based on the protocol parsing configuration information is the first Internet of Things device information, and the content extracted based on the general fields is the second Internet of Things device information.
[0059] In an embodiment of the present application, as an optional implementation manner, the protocol parsing configuration information includes a target message type, a target field position, and a target field content format, and the message of the IoT device is parsed based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, including the following sub-steps:
[0060] The first Internet of Things device information is extracted from the message of the Internet of Things device based on the target message type, the target field position and the target field content format.
[0061] This optional implementation can extract the first Internet of Things device information from the message of the Internet of Things device based on the target message type, the target field position and the target field content format.
[0062] In the embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes the following sub-steps:
[0063] Parsing the message of the IoT device based on the general field information to extract the second IoT device information from the message of the IoT device;
[0064] And, processing the IoT device based on the first IoT device information includes the following sub-steps:
[0065] The first IoT device information and the second IoT device information are aggregated to obtain aggregated information, and the IoT device is processed based on the aggregated information.
[0066] This optional implementation can parse the message of the IoT device based on the general field information to extract the second IoT device information from the message of the IoT device. On the other hand, the first IoT device information and the second IoT device information can be aggregated to obtain aggregated information, and the IoT device can be processed based on the aggregated information.
[0067] In the embodiment of the present application, as an optional implementation, processing the IoT device based on the summary information includes the following sub-steps:
[0068] Audit IoT devices based on the summarized information and obtain audit results.
[0069] This optional implementation method audits the IoT devices based on the summary information to obtain audit results.
[0070] In the embodiment of the present application, as an optional implementation, the IoT device is processed based on the summary information, including:
[0071] Identify IoT devices based on the aggregated information and obtain identification results.
[0072] This optional implementation can identify IoT devices based on the aggregated information to obtain an identification result.
[0073] In an optional implementation, the target message type includes HTTP protocol type, FTP protocol type, SMTP protocol type, IMAP protocol type, DCERPC protocol type, NFS protocol type, TFTP protocol type, DHCP protocol type, SIP protocol type, MQTT protocol type, NetBIOS protocol type and DICOM protocol type.
[0074] This optional implementation can extract the first Internet of Things device information based on any one of the HTTP protocol type, FTP protocol type, SMTP protocol type, IMAP protocol type, DCERPC protocol type, NFS protocol type, TFTP protocol type, DHCP protocol type, SIP protocol type, MQTT protocol type, NetBIOS protocol type and DICOM protocol type.
[0075] In the embodiment of the present application, as an optional implementation, the target field content format includes json format, xml format and yaml format.
[0076] This optional implementation can perform format matching based on json format, xml format and yaml format.
[0077] For the embodiments of this application, as an example, please refer to Figure 2 , Figure 2 FIG. 1 is a flow chart of another method for processing Internet of Things messages disclosed in an embodiment of the present application. Figure 2 As shown, the IoT terminal centralized management gateway is deployed in the network environment to receive the traffic reported by the IoT terminals.
[0078] Furthermore, the IoT protocol universal field identification module is used to parse the protocol and universal fields of the message, and the message that complies with the custom field protocol is sent to the IoT protocol configurable field identification module.
[0079] Furthermore, the Internet of Things protocol configurable field identification module is used to filter qualified messages according to the protocol type (http, ftp, smtp, imap, dcerpc, nfs, tftp, dhcp, sip, mqtt, netbios, dicom, etc.) and field position (http.uri, http.header, http.body, ftp.user, ftp.file.name, smtp.field.id.username, field.content, dcerpc.stub.data, nfs.field.extra.body, tftp.file.content, sip.uri.headers, netbios.ns.questions, dicom.devicename, etc.) configured by the configurable field identification module.
[0080] Furthermore, the field content details are parsed according to the field content format (regular fuzzy extraction, expression format, json format, xml format, yaml format, etc.) configured by the configurable field recognition module. For example: In the interaction of IoT devices, the http.header contains a private field private: {"manufacturer":"Manufacturer name","devicetype":"IoT terminal type"}. For this data interaction content, the protocol parsing method can be configured with protocol type: http, field location: http.header, field name: private, content format json, parsing structure {manufacturer string, devicetype string}, parsing the IoT terminal manufacturer and terminal type, facilitating centralized management of the IoT gateway. For another example, in the interaction of IoT video surveillance devices, sip.body contains private content <? xml version="1.0" encoding="UTF-8"? > <cmdtype> 01< / cmdtype> ..., for this data interaction content, you can configure the protocol parsing method protocol type: sip, field location: sip.body, field name: none, content format xml, parsing structure {cmdtype int}, parse out the IoT video surveillance device serious type 01, and realize the IoT signaling audit of the camera.
[0081] Furthermore, the parsing result record summary module is used to summarize the parsing results of the Internet of Things protocol general field identification module and the Internet of Things protocol configurable field identification module, and provide result data to the Internet of Things terminal identification module and the Internet of Things terminal audit module for use.
[0082] Furthermore, IoT terminal identification: the summarized information is used as the fingerprint of this IoT terminal to realize the identification of the IoT terminal type.
[0083] Furthermore, IoT terminal audit: audit the summarized information to realize the IoT terminal audit function, and record alarm information and block processing for audit failed messages.
[0084] In addition, the present application also discloses a configurable Internet of Things protocol parsing device. Figure 3 This is a structural diagram of a configurable IoT protocol parsing device. Figure 3 As shown, the configurable IoT protocol parsing device includes an IoT server and an IoT gateway. The IoT server is used to receive and store IoT data uploaded by IoT terminals; the IoT gateway is used to centrally manage IoT terminals. Figure 3 As shown, the IoT gateway has the following functional modules:
[0085] Web configuration and display module: Access the system through the web page to configure related functions, including configuring custom protocol fields and IoT terminal management.
[0086] Configurable protocol field storage: records the custom protocol fields configured by the user to ensure that the functions can run normally after the system is restarted without reconfiguration;
[0087] Identification of common fields in IoT protocols: parse common fields in message data uploaded by IoT terminals.
[0088] Identification of configurable fields in IoT protocols: Based on the identification of common fields in IoT protocols, continue to parse custom fields configured by users.
[0089] IoT terminal identification: The contents parsed by the two modules "IoT protocol common field identification" and "IoT protocol configurable field identification" are used as terminal fingerprints. IoT terminals are classified according to different terminal fingerprints.
[0090] IoT terminal audit: Summarize the contents parsed from the two modules of "IoT protocol common field identification" and "IoT protocol configurable field identification". Implement the audit function of IoT terminals based on the summarized contents.
[0091] Parsing result recording module: Some terminal information is distributed in multiple interaction processes. It is necessary to parse multiple interaction processes and summarize the field information, and realize the IoT terminal identification and IoT terminal auditing functions based on the summarized information.
[0092] IoT terminal: IoT devices such as face recognition, license plate recognition, and fire recognition installed at the monitoring site in the IoT system.
[0093] Embodiment 2
[0094] The present application provides an IoT message processing device, which includes the following functional modules:
[0095] A generation module, used to generate and display a configuration page, so as to obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information;
[0096] A parsing module, used to parse the message of the Internet of Things device based on the protocol parsing configuration information to extract the first Internet of Things device information from the message of the Internet of Things device;
[0097] A processing module is used to process the Internet of Things device based on the first Internet of Things device information.
[0098] The device of the embodiment of the present application can generate and display a configuration page by executing the method of the present application, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0099] Embodiment 3
[0100] See also Figure 4 , Figure 4 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application, such as Figure 4 As shown, the electronic device of the embodiment of the present application includes:
[0101] Processor 301; and
[0102] The memory 302 is configured to store machine-readable instructions, and when the instructions are executed by the processor 301, the method of any one of the aforementioned embodiments is executed.
[0103] The electronic device of the embodiment of the present application can generate and display a configuration page by executing the method of the present application, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0104] Embodiment 4
[0105] An embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor as in any of the methods described in the foregoing implementations.
[0106] The storage medium of the embodiment of the present application can generate and display a configuration page by executing the method of the present application, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0107] Embodiment 5
[0108] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method of any one of the aforementioned embodiments is implemented.
[0109] The computer product of the embodiment of the present application can generate and display a configuration page by executing the method of the present application, and then can obtain the protocol parsing configuration information configured by the user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information can then parse the message of the IoT device based on the protocol parsing configuration information to extract the first IoT device information from the message of the IoT device, so that the IoT device can be processed based on the first IoT device information, and finally the configurable communication protocol processing of the message of the IoT device is realized. Compared with the prior art, the present application does not need to be re-encoded and has better versatility and maintainability.
[0110] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0111] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0112] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0113] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM) random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0114] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0115] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for processing Internet of Things messages, characterized in that: The method: Generate and display a configuration page to obtain protocol parsing configuration information configured by a user based on the configuration page through the configuration page, and save the protocol parsing configuration information, wherein the protocol parsing configuration information; Parsing a message of the Internet of Things device based on the protocol parsing configuration information to extract first Internet of Things device information from the message of the Internet of Things device; The Internet of Things device is processed based on the first Internet of Things device information.
2. The method according to claim 1, characterized in that The protocol parsing configuration information includes the target message type, target field position and target field content format; And, parsing the message of the Internet of Things device based on the protocol parsing configuration information to extract the first Internet of Things device information from the message of the Internet of Things device, including: The first Internet of Things device information is extracted from the message of the Internet of Things device based on the target message type, the target field position and the target field content format.
3. The method according to claim 1, characterized in that The method further comprises: Parsing the message of the Internet of Things device based on the general field information to extract second Internet of Things device information from the message of the Internet of Things device; And, processing the IoT device based on the first IoT device information includes: The first IoT device information and the second IoT device information are aggregated to obtain aggregated information, and the IoT device is processed based on the aggregated information.
4. The method according to claim 3, characterized in that The processing of the IoT device based on the aggregated information includes: The Internet of Things device is audited based on the summary information to obtain an audit result.
5. The method according to claim 3, characterized in that The processing of the IoT device based on the aggregated information includes: The Internet of Things device is identified based on the summary information to obtain an identification result.
6. The method according to claim 2, characterized in that The target message types include HTTP protocol type, FTP protocol type, SMTP protocol type, IMAP protocol type, DCERPC protocol type, NFS protocol type, TFTP protocol type, DHCP protocol type, SIP protocol type, MQTT protocol type, NetBIOS protocol type and DICOM protocol type.
7. The method according to claim 2, characterized in that The target field content formats include json format, xml format and yaml format.
8. An electronic device, characterized in that: include: processor; as well as A memory configured to store machine-readable instructions, wherein when the instructions are executed by the processor, the method according to any one of claims 1 to 7 is performed.
9. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to perform the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method for conveniently accessing Internet of Things equipment to Internet of Things platform, platform, equipment and medium
CN114466047A
Network interface message data processing method and device, equipment and medium
CN114745455A
Edge soft gateway with data protocol visualized configuration
CN115002236A
Protocol conversion method and device, data transmission method and device, gateway and storage medium
CN115834726A
Custom industrial protocol deep analysis method and system and electronic equipment
CN116455740A