A method, device, computer readable storage medium and Internet of Things management platform for realizing self-adaptive analysis of interaction data of heterogeneous devices
Patent Information
- Application Number
- CN202310783009.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2043-06-29
AI Technical Summary
[0003]本发明的目的是提供一种实现异种设备交互数据自适配解析的方法,用于不同智能终端设备或者第三方物联网平台发送的JSON格式的外来报文在物联管理平台上实现自解析,解决异种设备不能快速接入的技术问题
[0031]The beneficial effects of this invention are as follows: By configuring the configuration database of the IoT management platform with a smart terminal northbound message type ID, a corresponding identifier, a smart terminal ID, a southbound command category, and configuration data corresponding to southbound pseudo-messages, different receiving entry programs are pre-set for different users. When interacting with northbound data, the northbound message type ID and the corresponding identifier in the configuration database are extracted using a standard JSON parsing tool and a unified JSON protocol parsing program. This allows the northbound message to be directly converted into a general format message that the IoT management platform's business processing program can recognize. When interacting with southbound data, the smart terminal ID and southbound command category are queried and judged in the configuration database. The successfully matched data is converted into a message that the smart terminal can recognize using pre-set pseudo-messages. By setting different configuration rules for northbound and southbound data interactions, the IoT management platform can self-parse JSON format external messages pushed by smart terminal devices or third-party IoT platforms. This reduces the need to repeatedly develop message parsing programs for JSON format protocols each time, thus improving the access efficiency of smart terminals.
Smart Images

Figure CN116996597B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of Internet of Things (IoT) data processing technology, specifically relating to a method, apparatus, computer-readable storage medium, and IoT management platform for realizing self-adaptive parsing of interactive data between heterogeneous devices. Background Technology
[0002] In the current technology, with the rapid development of IoT technology and the diversification of application scenarios in the networking field, the types of smart terminal devices are becoming increasingly rich. The data formats used by smart terminal devices produced by different manufacturers are also very different, and even different products from the same manufacturer have different data formats. This means that the IoT management platform has to familiarize itself with the data format of each new product and redevelop the parsing and docking program accordingly, which brings great trouble to the device selection and access work. How to quickly access different smart terminal devices has become a technical problem that urgently needs to be solved. Summary of the Invention
[0003] The purpose of this invention is to provide a method for self-adaptive parsing of interactive data between different devices, which enables the self-parsing of JSON-formatted external messages sent by different smart terminal devices or third-party IoT platforms on the IoT management platform, thereby solving the technical problem of the inability of different devices to quickly access each other.
[0004] Another objective of this invention is to provide a device for self-adaptive parsing of interactive data between different devices.
[0005] Another objective of this invention is to provide a computer-readable storage medium.
[0006] The present invention also aims to provide an IoT management platform that enables self-adaptive parsing of interactive data between different types of devices.
[0007] The technical solution of this invention to solve its technical problem is as follows:
[0008] A method for achieving self-adaptive parsing of heterogeneous device interaction data includes northbound interaction data self-adaptive parsing and southbound interaction data self-adaptive parsing. The method involves configuring a configuration database on an IoT management platform with a smart terminal's northbound message type ID, a corresponding identifier, a smart terminal ID, a southbound command category, and configuration data corresponding to southbound pseudo-messages. Different receiving entry programs are pre-set for smart terminals using different data formats, each receiving entry program marked with an identifier corresponding to a northbound message type. The southbound pseudo-messages are assigned a predetermined number at a predetermined location.
[0009] The northbound interactive data self-adaptive parsing includes the following steps:
[0010] N1: The receiving entry program receives northbound messages;
[0011] N2: Use a standard JSON parsing tool to extract the northbound message type ID of the northbound message based on the identifier corresponding to the northbound message type;
[0012] N3: The extracted northbound message type ID and message are passed to the JSON protocol unified parsing program. The JSON protocol unified parsing program queries the configuration database based on the extracted northbound message type ID and determines whether there is a corresponding northbound message type ID. If yes, proceed to N4; otherwise, end the parsing process.
[0013] N4: The JSON protocol unified parsing program parses the northbound message according to the identifier corresponding to the northbound message type ID in the configuration database, and converts the received northbound message into a general format message that can be recognized by the IoT management platform business processing program;
[0014] In step N4, the specific steps of the JSON protocol unified parsing program are as follows:
[0015] N41: Parse the entire JSON message into key-value pairs;
[0016] N42: Query all identifiers corresponding to the northbound message type ID in the configuration database, replace the keys in the northbound message with the identifiers in the configuration database according to the correspondence, and assemble all the replaced key-value pairs into a general message of the IoT management platform business processing program according to the general message specification.
[0017] The southbound interactive data self-adaptive parsing includes the following steps:
[0018] S1: Query the configuration database to determine if there is a smart terminal ID and southbound command type that the IoT management platform wants to send a southbound message to. If yes, proceed to S2; otherwise, end the parsing process.
[0019] S2: Based on the predetermined number set at the predetermined location in the pseudo message, query the configuration data corresponding to the predetermined number in the configuration database, replace the predetermined number with the configuration data corresponding to the predetermined number, and convert the southbound pseudo message into a message that the smart terminal can recognize.
[0020] In step S2, after replacing all the predetermined numbers in the pseudo message with the configuration data corresponding to the predetermined number, the predetermined numbers that have not been replaced are deleted.
[0021] An apparatus for realizing self-adaptive parsing of interactive data between different devices includes: a data configuration module, used to configure in a configuration database a smart terminal northbound message type ID, an identifier corresponding to the northbound message type ID, a smart terminal ID, a southbound instruction category, and configuration data corresponding to a southbound pseudo-message;
[0022] The northbound interactive data self-adaptive parsing module is used to parse the received northbound messages into a general format message that can be recognized by the IoT management platform's business processing program;
[0023] The southbound interactive data self-adaptive parsing module is used to parse southbound messages into messages that can be recognized by smart terminals.
[0024] The northbound interactive data self-adaptive parsing module includes: a receiving entry program module, used to receive northbound messages;
[0025] The Northbound Message Type ID Extraction Module is used to extract the Northbound Message Type ID of Northbound messages using standard JSON parsing tools;
[0026] The JSON protocol unified parsing module is used to parse northbound messages based on the identifier corresponding to the northbound message type ID in the configuration database, and convert the received northbound messages into a general format message that can be recognized by the IoT management platform business processing program. The JSON protocol unified parsing module includes a first query and judgment module, which is used to query the configuration database based on the extracted northbound message type ID and determine whether there is a corresponding northbound message type ID.
[0027] The southbound interactive data self-adaptive parsing module includes: a second query and judgment module, used to query and judge in the configuration database whether there is a smart terminal ID and southbound command type pointed to by the southbound message to be sent by the IoT management platform;
[0028] The pseudo-message conversion module is used to query the configuration data corresponding to the predetermined number set at a predetermined location in the configuration database according to the predetermined number of the pseudo-message, replace the predetermined number with the configuration data corresponding to the predetermined number, and convert the southbound pseudo-message into a message that can be recognized by the smart terminal.
[0029] A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the device containing the computer-readable storage medium to perform a method for implementing self-adaptive parsing of data exchanged between heterogeneous devices.
[0030] An IoT management platform for devices that enable self-adaptive parsing of interactive data between different devices.
[0031] The beneficial effects of this invention are as follows: By configuring the configuration database of the IoT management platform with a smart terminal northbound message type ID, a corresponding identifier, a smart terminal ID, a southbound command category, and configuration data corresponding to southbound pseudo-messages, different receiving entry programs are pre-set for different users. When interacting with northbound data, the northbound message type ID and the corresponding identifier in the configuration database are extracted using a standard JSON parsing tool and a unified JSON protocol parsing program. This allows the northbound message to be directly converted into a general format message that the IoT management platform's business processing program can recognize. When interacting with southbound data, the smart terminal ID and southbound command category are queried and judged in the configuration database. The successfully matched data is converted into a message that the smart terminal can recognize using pre-set pseudo-messages. By setting different configuration rules for northbound and southbound data interactions, the IoT management platform can self-parse JSON format external messages pushed by smart terminal devices or third-party IoT platforms. This reduces the need to repeatedly develop message parsing programs for JSON format protocols each time, thus improving the access efficiency of smart terminals. Attached Figure Description
[0032] Figure 1 This is a flowchart of the northbound interactive data parsing of the present invention;
[0033] Figure 2 This is a flowchart of the southbound interactive data parsing of the present invention;
[0034] Figure 3 This is an overall schematic diagram of the device of the present invention;
[0035] Figure 4 This is the northbound interactive data self-adaptive parsing module of the device of the present invention;
[0036] Figure 5 This is the southbound interactive data self-adaptive parsing module of the device of the present invention. Detailed Implementation
[0037] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0038] This invention provides a method for self-adaptive parsing of heterogeneous device interaction data, including northbound and southbound self-adaptive parsing. The aim is to parse northbound messages of different formats received by the IoT management platform from different smart terminals into the platform's own universal format, enabling the platform's corresponding business processing programs to handle the data. This invention also aims to parse southbound commands sent by the IoT management platform to smart terminals into a format recognizable by the smart terminals. The IoT management platform described in this invention refers to an IoT platform providing smart agriculture, smart fire protection, and smart power services to users, excluding telecom operator IoT platforms providing NB-IoT services. For example, the applicant's IoT platform primarily provides smart fire protection and smart power services. In smart fire protection services, data reported by user smoke detectors and combustible gas detectors can be parsed, allowing users to view the data on the platform. If an event occurs, such as a combustible gas alarm, the platform will notify the user via SMS or voice notification to ensure timely attention and action to prevent accidents. The northbound message refers to the uplink interactive data sent by the smart terminal to the IoT management platform. This uplink interactive data includes basic information, real-time data, and event data of the smart terminal, such as: monitoring values or alarm events from smoke sensors in a smart fire protection system; gas concentration and events reported by combustible gas detection devices; real-time data and water level / pressure exceeding limits reported by water level / pressure devices; and real-time data and exceeding limits for current, voltage, and leakage current. The southbound message refers to the downlink interactive data sent by the IoT management platform to the smart terminal. This downlink interactive data mainly consists of instructions sent to the smart terminal, such as: silencing instructions sent to alarm devices in smart fire protection and smart power systems; setting alarm thresholds by configuring parameters on the smart terminal; controlling the smart terminal to restart; and issuing upgrade instructions to the smart terminal. The intelligent terminal described in this invention includes various intelligent devices that communicate directly with the IoT management platform via a network, such as combustible gas detectors, smoke detectors, water level detectors, water pressure detectors, air switches, cameras, gateways, etc. When the terminal is an NB terminal, the NB terminal must forward data through a third-party platform such as Huawei-OceanConnect IoT platform, China Communications Services-CCS Open IoT platform, China Mobile-OneNET IoT Open platform, etc., and the third-party platform is regarded as the intelligent terminal described in this invention.
[0039] To achieve self-adaptive parsing of data exchanged between different devices, this invention requires pre-configuring the configuration database of the IoT management platform with the smart terminal's northbound message type ID, the identifier corresponding to the northbound message type ID, the smart terminal ID, the southbound command category, and the configuration data corresponding to the southbound pseudo-message. Different receiving entry programs are pre-set for smart terminals using different data formats. These receiving entry programs are marked with identifiers corresponding to the northbound message type; that is, the standard set by the receiving entry program is the data format of the messages sent by the smart terminal, with each data format corresponding to one receiving entry program. The southbound pseudo-message is assigned a predetermined number at a predetermined location.
[0040] The specific storage structure of the database is as follows:
[0041]
[0042]
[0043]
[0044] like Figure 1 As shown, the northbound interactive data self-adaptive parsing includes the following steps:
[0045] N1: The receiving entry program receives northbound messages;
[0046] N2: Use a standard JSON parsing tool to extract the Northbound Message Type ID of the Northbound message based on the identifier corresponding to the Northbound Message Type. Alibaba's FastJson can be used as a standard JSON parsing tool. The main purpose is to extract the Northbound Message Type ID, that is, the unique identifier of the Northbound message, from the Northbound message.
[0047] N3: The extracted northbound message type ID and message are passed to the JSON protocol unified parsing program. The JSON protocol unified parsing program queries the configuration database based on the extracted northbound message type ID and determines whether there is a corresponding northbound message type ID. If yes, proceed to N4; otherwise, end the parsing process.
[0048] N4: The JSON protocol unified parsing program parses the northbound message according to the identifier corresponding to the northbound message type ID in the configuration database, and converts the received northbound message into a general format message that can be recognized by the IoT management platform business processing program.
[0049] The specific steps for parsing using the JSON protocol unified parser are as follows:
[0050] N41: Parse the entire JSON message into key-value pairs;
[0051] N42: Query all identifiers corresponding to the northbound message type ID in the configuration database, replace the key in the northbound message with the identifier in the configuration database according to the correspondence, and assemble all the replaced key-value pairs into a general message of the IoT management platform business processing program according to the general message specification.
[0052] Based on the northbound message type ID, the converted general format message is pushed to the corresponding IoT management platform business processing program to complete the northbound operation.
[0053] like Figure 2 As shown, the southbound interactive data self-adaptive parsing includes the following steps:
[0054] S1: Query the configuration database to determine if there is a smart terminal ID and southbound command type that the IoT management platform wants to send a southbound message to. If yes, proceed to S2; otherwise, end the parsing process.
[0055] S2: Based on the predetermined number set at the predetermined location in the pseudo message, query the configuration data corresponding to the predetermined number in the configuration database, replace the predetermined number with the configuration data corresponding to the predetermined number, convert the southbound pseudo message into a message that the smart terminal can recognize, replace all predetermined numbers in the pseudo message with the configuration data corresponding to the predetermined number, and delete the predetermined numbers that have not been replaced. This step is set because the JSON format of different manufacturers varies greatly, and the JSON format has many or few hierarchical structures. By setting a pseudo message and then replacing the main data part, the assembly of the message will be greatly simplified, and the conversion difficulty will be greatly reduced.
[0056] The converted southbound message is pushed to the smart terminal to complete the southbound operation.
[0057] The following detailed explanations, using specific examples, illustrate the results of northbound and southbound interactive data self-adaptive parsing.
[0058] Taking a specific smoke detector as an example, the northbound message for reporting an event is as follows:
[0059] {"timestamp":1684202547316,
[0060] "tid":"10445606",
[0061] "sid":1001,
[0062] "protocol":"lwm2m",
[0063] "pid":"15056544",
[0064] "messageType":"eventReport",
[0065] "eventType":2,
[0066] "eventContent":{"tx_Power":-128,"tamper_alarm":1,"snr":110,"signalPower":-820,"cell_ID":125820242,"battery_value":100},
[0067] "deviceSn":"",
[0068] "did":"37e7e4626dab402d87bc21b7e2b3b8f6",
[0069] "IMSI":"undefined",
[0070] "IMEI":"866574050356978"}
[0071] Where: timestamp: timestamp; tid: tenant ID; sid: service identifier; protocol: protocol; pid: product ID; messageType: message type; eventType: event type;
[0072] eventContent: Event content; deviceSn: Device serial number; did: Device number; IMSI: International Mobile Subscriber Identity; IMEI: International Mobile Equipment Identity.
[0073] The fields required for the applicant company's IoT management platform are: timestamp, sid, messageType, eventType, did, IMEI, and most importantly, eventContent, which corresponds to specific event information. Other identifiers correspond to additional event information, which the platform does not need for the time being and do not need to be configured.
[0074] When the receiving entry program receives a northbound message, it identifies the identifier sid and then extracts 1001, which is the northbound message type ID, using a standard JSON parsing tool. 1001 and the message are then passed to the unified JSON protocol parsing program. Based on 1001, the program queries the message_id field of the configuration main table in the configuration database to determine if a corresponding northbound message type ID exists. If so, the unified JSON protocol parsing program parses the northbound message based on the identifier corresponding to the northbound message type ID in the configuration database, converting the received northbound message into a common format message that the IoT management platform's business processing program can recognize. If not, the parsing process ends.
[0075] The conversion relationship between the fields required in the northbound messages pre-configured in the IoT platform configuration database and the field identifiers in the platform's general messages is as follows: sid → serviceId, pid → productId. These configuration items are stored in the main table; timestamp → messageTime, messageType →
[0076] messageType, tamper_alarm (corresponding enumeration type) → identifier, eventType (corresponding enumeration type) → eventType, IMEI → imei, did → deviceId, eventContent → dataValue. eventContent is second-level data and requires detailed configuration tamper_alarm → alarmType. The above configurations are stored in the configuration details table.
[0077] The final message format converted to the company's IoT management platform is as follows:
[0078] {"timestamp":1684202547316,
[0079] "deviceId":"37e7e4626dab402d87bc21b7e2b3b8f6",
[0080] "messageType":"eventReport",
[0081] "eventSource":"1",
[0082] "serviceId":1001,
[0083] "identifier":"alm_ds",
[0084] "eventType":1,
[0085] "dataValue":{"alarmType":1},
[0086] "messageTime":"1684202547316",
[0087] "IMEI":"866574050356978"}
[0088] Taking a specific smoke detector as an example, the southbound message for silencing control is as follows:
[0089] {"pid":"16687498",
[0090] "did":"69c4b18cdd0243e5a696b8a6dbedb56d",
[0091] "ttl":180,
[0092] "operator":"hnlack",
[0093] "command":{"method":"CustomCmd","paras":"{\"Length\":10,\"Option\":0,\"Serial\":1,\"Command\":5122, \"Protocol_Number\":1,\"Downlink_Cmd_Length\":1,\"Downlink_Cmd\":\"1\"}","serviceId":"CmdDownlink"}}
[0094] Configure the above message as a pseudo message as follows:
[0095] {${1},${2},"ttl":180,"operator":"hnlack","command":{"method":"CustomCmd","paras":"{\"Lengt h\":10,\"Option\":0,\"Serial\":1,\"Command\":5122,\"Protocol_Number\":1,\"Downlink_Cmd_Length\":1,\"Downlink_Cmd\":\"1\"}","serviceId":"CmdDownlink"}}
[0096] Where ${1} and ${2} are the reservation numbers set at the reservation locations, and the corresponding conversion relationships are configured: 1: productId→pid, 2: deviceId→did. According to the configured field conversion relationships, the required fields are converted and the whole is replaced according to the index. For example, in ${1}, the 1 in the curly braces is the index. The pseudo message is converted into the official message to be sent, and then it can be sent to the smart terminal.
[0097] First, query the configuration database to determine if there is a smart terminal ID and southbound command type that the IoT management platform wants to send in a southbound message. If so, according to the ${1} and ${2} set in the predetermined position of the pseudo message, query the configuration data corresponding to the predetermined number in the configuration database, and replace the predetermined number with the configuration data corresponding to the predetermined number, i.e., 1: productId→pid, 2: deviceId→did, to convert the southbound pseudo message into a message that the smart terminal can recognize. If not, end the parsing process.
[0098] Ultimately, the fake message was converted into the official message as follows:
[0099] {"pid":"16687498","did":"69c4b18cdd0243e5a696b8a6dbedb56d","ttl":180,"operator":"hnlack","command":{"method":"CustomCmd","paras":"{\"Length\":10 ,\"Option\":0,\"Serial\":1,\"Command\":5122,\"Protocol_Number\":1,\"Downlink_Cmd_Length\":1,\"Downlink_Cmd\":\"1\"}","serviceId":"CmdDownlink"}}
[0100] like Figure 3 As shown, an apparatus for realizing self-adaptive parsing of interactive data between different devices includes: a data configuration module, used to configure the smart terminal northbound message type ID, the identifier corresponding to the northbound message type ID, the smart terminal ID, the southbound instruction category, and the configuration data corresponding to the southbound pseudo-message in the configuration database;
[0101] The northbound interactive data self-adaptive parsing module is used to parse the received northbound messages into a general format message that can be recognized by the IoT management platform's business processing program;
[0102] The southbound interactive data self-adaptive parsing module is used to parse southbound messages into messages that can be recognized by smart terminals.
[0103] like Figure 4 As shown, the northbound interactive data self-adaptive parsing module includes: a receiving entry program module, used to receive northbound messages;
[0104] The Northbound Message Type ID Extraction Module is used to extract the Northbound Message Type ID of Northbound messages using standard JSON parsing tools;
[0105] The JSON protocol unified parsing module is used to parse northbound messages based on the identifier corresponding to the northbound message type ID in the configuration database, and convert the received northbound messages into a general format message that can be recognized by the IoT management platform business processing program. The JSON protocol unified parsing module includes a first query and judgment module, which is used to query the configuration database based on the extracted northbound message type ID and determine whether there is a corresponding northbound message type ID.
[0106] like Figure 5 As shown, the southbound interactive data self-adaptive parsing module includes: a second query and judgment module, used to query and judge in the configuration database whether there is a smart terminal ID and southbound command type pointed to by the southbound message to be sent by the IoT management platform;
[0107] The pseudo-message conversion module is used to query the configuration data corresponding to the predetermined number set at a predetermined location in the configuration database according to the predetermined number of the pseudo-message, replace the predetermined number with the configuration data corresponding to the predetermined number, and convert the southbound pseudo-message into a message that can be recognized by the smart terminal.
[0108] A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the device containing the computer-readable storage medium to perform a method for implementing self-adaptive parsing of data exchanged between heterogeneous devices.
[0109] An IoT management platform for devices that enable self-adaptive parsing of interactive data from heterogeneous devices processes the interactive data.
[0110] Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
Claims
1. A method for implementing self-adaptive parsing of heterogeneous device interaction data, comprising northbound interaction data self-adaptive parsing and southbound interaction data self-adaptive parsing, characterized in that: Configure the smart terminal northbound message type ID, the identifier corresponding to the northbound message type ID, the smart terminal ID, the southbound command category, and the configuration data corresponding to the southbound message in the configuration database of the IoT management platform; pre-set different receiving entry programs for smart terminals using different data formats, wherein the receiving entry program is marked with an identifier corresponding to the northbound message type; the southbound message is set with a predetermined number at a predetermined position; The northbound interactive data self-adaptive parsing includes the following steps: N1: The receiving entry program receives northbound messages; N2: Use a standard JSON parsing tool to extract the northbound message type ID of the northbound message based on the identifier corresponding to the northbound message type; N3: The extracted northbound message type ID and message are passed to the JSON protocol unified parsing program. The JSON protocol unified parsing program queries the configuration database based on the extracted northbound message type ID and determines whether there is a corresponding northbound message type ID. If yes, proceed to N4; otherwise, end the parsing process. N4: The JSON protocol unified parsing program parses the northbound message according to the identifier corresponding to the northbound message type ID in the configuration database, and converts the received northbound message into a general format message that can be recognized by the IoT management platform business processing program; The southbound interactive data self-adaptive parsing includes the following steps: S1: Query the configuration database to determine if there is a smart terminal ID and southbound command type that the IoT management platform wants to send a southbound message to. If yes, proceed to S2; otherwise, end the parsing process. S2: Based on the reservation number set at the predetermined location in the southbound message, query the configuration data corresponding to the reservation number in the configuration database, replace the reservation number with the configuration data corresponding to the reservation number, and convert the southbound message into a message that the smart terminal can recognize.
2. The method for realizing self-adaptive parsing of interactive data between different devices according to claim 1, characterized in that: In step N4, the specific steps of the JSON protocol unified parsing program are as follows: N41: Parse the entire JSON message into key-value pairs; N42: Query all identifiers corresponding to the northbound message type ID in the configuration database, replace the keys in the northbound message with the identifiers in the configuration database according to the correspondence, and assemble all the replaced key-value pairs into a general message of the IoT management platform business processing program according to the general message specification.
3. The method for realizing self-adaptive parsing of interactive data between different devices according to claim 1, characterized in that: In step S2, after replacing all the predetermined numbers in the southbound message with the configuration data corresponding to the predetermined number, the predetermined numbers that have not been replaced are deleted.
4. A heterogeneous device interaction data self-adaptive parsing device for implementing the method of claim 1, characterized in that: include: The data configuration module is used to configure the smart terminal northbound message type ID, the identifier corresponding to the northbound message type ID, the smart terminal ID, the southbound instruction type, and the configuration data corresponding to the southbound message in the configuration database; The northbound interactive data self-adaptive parsing module is used to parse the received northbound messages into a general format message that can be recognized by the IoT management platform's business processing program; The southbound interactive data self-adaptive parsing module is used to parse southbound messages into messages that can be recognized by smart terminals.
5. The heterogeneous device interactive data self-adaptive parsing device according to claim 4, characterized in that: The northbound interactive data self-adaptive parsing module includes: The receiving entry program module is used to receive northbound messages; The Northbound Message Type ID Extraction Module is used to extract the Northbound Message Type ID of the Northbound message using a standard JSON parsing tool; the JSON Protocol Unified Parsing Module is used to parse the Northbound message based on the identifier corresponding to the Northbound Message Type ID in the configuration database, and convert the received Northbound message into a general format message that can be recognized by the IoT management platform's business processing program.
6. The heterogeneous device interactive data self-adaptive parsing device according to claim 5, characterized in that: The JSON protocol unified parsing module includes a first query and judgment module, which is used to query the configuration database based on the extracted northbound message type ID and determine whether there is a corresponding northbound message type ID.
7. The heterogeneous device interactive data self-adaptive parsing device according to claim 4, characterized in that: The southbound interactive data self-adaptive parsing module includes: The second query and judgment module is used to query and determine whether there is a smart terminal ID and southbound command type pointed to by the southbound message to be sent by the IoT management platform in the configuration database. The message conversion module is used to query the configuration data corresponding to the predetermined number set at a predetermined location in the configuration database according to the predetermined number of the southbound message, replace the predetermined number with the configuration data corresponding to the predetermined number, and convert the southbound message into a message that can be recognized by the smart terminal.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the device containing the computer-readable storage medium to perform the method described in any one of claims 1-3.
Citation Information
Patent Citations
Gateway adaptive to intelligent terminal equipment protocol and use method
CN113422717A
Internet of things gateway southbound equipment interface proxy device and implementation method
CN113810271A