Data access method, system, terminal device and storage medium for IoT device

Through the combination of multi-running environment adapters and rule engine models, the problem of low data docking efficiency between traditional IoT devices and IoT platforms is solved, rapid adaptation and efficient data transmission are achieved, and labor costs and system complexity are reduced.

CN117579713BActive Publication Date: 2024-10-18SHIYUN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311417352.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2024-10-18
Estimated Expiration
2043-10-27

AI Technical Summary

Technical Problem

The data docking efficiency between traditional IoT devices and IoT platforms is inefficient, resulting in high labor costs and bloated system logic, which cannot quickly adapt to protocol changes.

Method used

Use multi-running environment adapters to connect to IoT devices and IoT platforms, perform protocol adaptation and conversion by building a preset rule engine model, obtain universal adaptation protocols, and send IoT data to the IoT platform to implement structured services Data parsing and processing.

Benefits of technology

It improves the efficiency of data docking between IoT devices and IoT platforms, reduces coding requirements, enables convenient access in multi-business application scenarios, and reduces labor costs and system complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117579713B_ABST
    Figure CN117579713B_ABST
Patent Text Reader

Abstract

The present application relates to the field of Internet of Things technology, and in particular to a data access method, system, terminal device and storage medium for an IoT device. The present application is based on various complex environments of IoT devices, and uses the multi-operation environment adapter to build data interaction between IoT devices and IoT platforms, that is, the multi-operation environment adapter designed by the present application can be compatible with IoT devices to communicate directly with IoT platforms; after the IoT platform receives the IoT data uploaded by the multi-operation environment adapter, the IoT platform parses the IoT data according to the preset rule engine model to obtain the structured business data of the IoT device. That is, after being configured through the rule engine model, the data communication of IoT devices and the IoT platform to which they are connected can be supported without code, thereby effectively improving the data connection efficiency between IoT devices and IoT platforms in a coding-free manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a data access method, system, terminal device and storage medium for an Internet of Things device. Background Art

[0002] With the continuous development of IoT technology, users are paying more and more attention to the efficiency of data connection between IoT devices and IoT platforms.

[0003] Traditional IoT device docking uses secondary coding development based on the open protocol of the device, that is, devices with different protocols need to be coded to achieve device docking, and if the protocol changes, the encoding and decoding code needs to be modified again. Not only is the manpower cost extremely high, but the logic within the system is bloated, which leads to low efficiency in data docking between IoT devices and IoT platforms. In other words, how to improve the efficiency of data docking between IoT devices and IoT platforms is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The main purpose of this application is to provide a data access method, system, terminal device and storage medium for an IoT device, aiming to improve the data connection efficiency between the IoT device and the IoT platform.

[0005] To achieve the above-mentioned purpose, the present application provides a data access method for an IoT device, wherein the data access method for the IoT device is applied to a multi-operating environment adapter, wherein the multi-operating environment adapter is connected to the IoT device and the IoT platform respectively, and the multi-operating environment adapter is an independent operating component, or the multi-operating environment adapter is integrated in the IoT platform;

[0006] The data access method of the IoT device includes:

[0007] Constructing a preset rule engine model through the IoT platform;

[0008] Acquire the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol that matches the IoT platform, wherein the IoT data is a message code stream uploaded according to the device protocol;

[0009] The IoT data is sent to the IoT platform according to the universal adaptation protocol, so that the IoT platform can parse the IoT data according to the rule engine model to obtain structured business data of the IoT device.

[0010] Optionally, the multi-operating environment adapter includes a data receiving module, a data acquisition module and a protocol adapter, and the step of acquiring the IoT data of the IoT device includes:

[0011] Responding to the access request of the IoT device through the data receiving module, obtaining IoT data of the IoT device; or / and,

[0012] Accessing the target device acquisition instruction sent by the protocol adapter through the data acquisition module, and obtaining the IoT data of the IoT device according to the response of the IoT device to the target device acquisition instruction;

[0013] The multi-operating environment adapter further includes an instruction sending module, and the data access method of the IoT device further includes:

[0014] The device control instruction sent by the IoT platform is accessed through the instruction sending module, and the device status and parameters of the IoT device are adjusted according to the device control instruction.

[0015] Optionally, the step of sending the IoT data to the IoT platform according to the universal adaptation protocol includes:

[0016] Determining a device transmission protocol corresponding to the IoT data according to a port element of the device protocol;

[0017] After converting the device transmission protocol into the universal adaptation protocol, the IoT data is transparently transmitted to the IoT platform through the protocol conversion port of the universal adaptation protocol.

[0018] In addition, the present application also provides a data access method for an IoT device, and the data access method for the IoT device is also applied to an IoT platform, wherein the IoT platform is connected to the IoT device through a multi-operating environment adapter, and the multi-operating environment adapter is an independent operating component, or the multi-operating environment adapter is integrated in the IoT platform;

[0019] The data access method of the IoT device includes:

[0020] Build a preset rule engine model;

[0021] After receiving the IoT data uploaded by the multi-operating environment adapter according to the universal adaptation protocol, parsing the IoT data according to the rule engine model to obtain structured business data of the IoT device;

[0022] Among them, the multi-operating environment adapter is configured to obtain the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol matching the IoT platform, and send the IoT data to the IoT platform according to the universal adaptation protocol; the IoT data is a message code stream uploaded according to the device protocol.

[0023] Optionally, the IoT platform includes a call parsing module and a rule engine module, the call parsing module is connected to the multi-operating environment adapter and the rule engine module respectively, and the rule engine module is provided with the rule engine model;

[0024] The step of parsing the IoT data according to the rule engine model to obtain the structured business data of the IoT device includes:

[0025] When the calling parsing module receives the IoT data, the calling parsing module is triggered to call the rule engine model according to the data format of the IoT data, and the structured business data of the IoT device is determined according to the rule engine model and the IoT data.

[0026] Optionally, the rule engine model is provided with a plurality of business rules, each business rule comprising a set of message communication attributes and a communication protocol followed by a message code stream having the set of message communication attributes;

[0027] The step of determining the structured business data of the IoT device according to the rule engine model and the IoT data includes:

[0028] Parsing the IoT data to obtain target message communication attributes and target communication protocols of the IoT data;

[0029] Determine whether the target message communication attribute and the target communication protocol match any of the business rules;

[0030] If any of the business rules is matched, the target message communication attribute and the target communication protocol are identified according to the matched business rule to obtain the device type of the IoT device;

[0031] The structured business data of the IoT device is determined according to the device type and the IoT data.

[0032] Optionally, the step of constructing a preset rule engine model includes:

[0033] Acquire the object model metadata and rule metadata of the IoT device, wherein the object model metadata is a definition description element of a monitoring indicator of the IoT device, and the rule metadata is an addressing parameter corresponding to the monitoring indicator, wherein the addressing parameter includes at least an identifier, a byte length, and a data type;

[0034] The object model metadata and the rule metadata are associated and bound to obtain a preset rule engine model.

[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a data access system for an IoT device, the data access system for the IoT device comprising an IoT device, a multi-operating environment adapter and an IoT platform;

[0036] The multi-operating environment adapter is used to obtain the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol matching the IoT platform, and send the IoT data to the IoT platform according to the universal adaptation protocol; the IoT data is a message code stream uploaded according to the device protocol;

[0037] The IoT platform is used to build a preset rule engine model

[0038] The IoT platform is also used to receive IoT data sent by the multi-operating environment adapter according to the universal adaptation protocol, and parse the IoT data according to the rule engine model to obtain structured business data of the IoT device.

[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a terminal device, which includes a memory, a processor, and a data access program for an Internet of Things device stored on the memory and run on the processor. When the data access program for the Internet of Things device is executed by the processor, the steps of the data access method for the above-mentioned Internet of Things device are implemented.

[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a data access program for an Internet of Things device is stored. When the data access program for an Internet of Things device is executed by a processor, the steps of the above-mentioned data access method for an Internet of Things device are implemented.

[0041] The present application designs a multi-operating environment adapter to build a communication link between the IoT device and the IoT platform, thereby achieving the purpose of quickly connecting the IoT device to the IoT platform. Then, the IoT data of the IoT device can be obtained in time through the multi-operating environment adapter of the present application. The IoT data is the message code stream uploaded by the IoT device according to its own device protocol, and the device protocol is adapted and converted to obtain a general adaptation protocol matching the IoT platform. Then, the IoT data is stably sent to the IoT platform according to the general adaptation protocol. In other words, the present application performs protocol adaptation and conversion on the device protocol through the multi-operating environment adapter, thereby meeting the needs of convenient access to the IoT platform for multiple business application scenarios of the IoT device. Then, a preset rule engine model is constructed through the IoT platform, so that the IoT platform calls the rule engine model to parse the IoT data based on the received IoT data to obtain the structured business data of the IoT device. That is, the present application parses the IoT data by calling the preset rule engine model, thereby effectively improving the data docking efficiency between the IoT device and the IoT platform in a coding-free manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flowchart of the first embodiment of the data access method of the IoT device of the present application;

[0043] Figure 2 It is a structural diagram of a multi-operating environment adapter and an Internet of Things platform involved in the embodiment of the present application;

[0044] Figure 3 It is a schematic diagram of visual restoration of a rule engine model involved in the embodiment of the present application;

[0045] Figure 4 It is a structural diagram of a data access system of an Internet of Things device involved in an embodiment of the present application;

[0046] Figure 5 This is a schematic diagram of the structure of the terminal device involved in the embodiment of the present application.

[0047] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] The present application embodiment provides a data access method for an IoT device, referring to Figure 1 As shown, Figure 1 It is a flow chart of the first embodiment of the data access method for the IoT device of the present application.

[0049] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0050] In this embodiment, the data access method of the Internet of Things device of the present application is applied to a multi-operating environment adapter, and the multi-operating environment adapter is connected to the Internet of Things device and the Internet of Things platform respectively. The multi-operating environment adapter is an independent operating component, or the multi-operating environment adapter is integrated in the Internet of Things platform.

[0051] In this embodiment, the multi-operating environment adapter designed by the present application can be run independently in the device intranet environment, or it can be integrated on the Internet of Things platform to run. Its function is to be compatible with the Internet of Things devices and can communicate directly with the Internet of Things platform. It can also be used for multi-operating environment adapter communication, thereby meeting the needs of convenient access to the Internet of Things platform for multiple business application scenarios of Internet of Things devices.

[0052] The data access method of the IoT device in this application includes:

[0053] Step S10: constructing a preset rule engine model through the IoT platform.

[0054] In this embodiment, the IoT platform accesses the object model metadata and rule metadata of several IoT devices based on a preset human-computer interaction interface, and constructs a preset rule engine model based on the several object model metadata and the several rule metadata, so that after the IoT platform accesses the IoT data of the physical device sent by the multi-operating environment adapter, it can promptly call the preset rule engine model to adaptively match the corresponding business rules to parse the IoT data. In other words, the preset rule engine model is called to perform data analysis on the IoT data, so that the calling parsing module (i.e., the unstructured data parsing module) in the IoT platform can recognize the message structure and meaning of the IoT data through the preset rule engine model, and then generate structured business data of the IoT device.

[0055] In another embodiment, the IoT platform also involves the configuration of a rule engine, that is, the messages communicated between the IoT device and the IoT platform are visually restored through the elements defined by the engine. After the engine restores the messages with the elements defined by the engine, the process of building the rule engine model can be optimized.

[0056] It should be noted that IoT data is the message code stream uploaded by IoT devices according to their own device protocols. There are multiple IoT devices in this application, and IoT devices include but are not limited to environmental monitoring equipment, distribution box monitoring equipment, smart water and electricity meter equipment, lighting electromechanical sensors, and fire monitoring sensors.

[0057] The device protocols of the IoT devices themselves include but are not limited to the device manufacturer's TCP / UDP private protocols, modbus, BACnet, SNMP, MQTT, http, webSocket and SDK protocols, and each IoT device has multiple device protocols.

[0058] Structured business data refers to business data stored in a fixed format and structure, usually organized and managed in a tabular form. Business data is related to the device type and device application scenario of the IoT device and is used to support business system applications.

[0059] Step S20: Acquire the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol matching the IoT platform, wherein the IoT data is a message code stream uploaded according to the device protocol.

[0060] In this embodiment, the IoT platform is connected to the IoT device through a multi-operation environment adapter, that is, the multi-operation environment adapter designed by this application can be compatible with the IoT device to communicate directly with the IoT platform. Specifically, after the multi-operation environment adapter receives the message code stream (i.e., IoT data) uploaded by the IoT device in accordance with the device protocol, the device protocol of the IoT data is converted through the protocol adapter to obtain a universal adaptation protocol that matches the IoT platform.

[0061] In a specific embodiment, refer to Figure 2 , Figure 2 It is a structural diagram of a multi-operation environment adapter and an Internet of Things platform involved in the embodiment of the present application. The multi-operation environment adapter is also called a multi-operation environment adaptation module, which at least includes a data receiving module, a data acquisition module, an instruction sending module and a protocol adapter, wherein the data receiving module, the data acquisition module and the instruction sending module are respectively connected to the protocol adapter, and the data receiving module corresponds to the first communication mode of the Internet of Things device, the data acquisition module corresponds to the second communication mode of the Internet of Things device, and the instruction sending module corresponds to the third communication mode of the Internet of Things device.

[0062] In a specific embodiment, the multi-operating environment adapter first obtains the communication transmission mode of the IoT device. When the communication transmission mode is the first communication mode of the IoT device, the protocol adapter accesses the message code stream uploaded by the IoT device according to its own device protocol through the data receiving module.

[0063] When the communication transmission mode is the second communication mode of the IoT device, the target device acquisition instruction sent by the data acquisition module access protocol adapter is used, and the IoT data of the IoT device is obtained based on the response of the IoT device to the target device acquisition instruction. Specifically, after the data acquisition module receives the target device acquisition instruction, the target device acquisition instruction is sent to each IoT device connected to the data acquisition module; then the message code stream (i.e., IoT data) uploaded by the IoT device that responds to the target device acquisition instruction according to its own device protocol is collected.

[0064] When the communication transmission mode is the third communication mode of the IoT device, the instruction receiving module receives the device control instruction issued by the IoT platform through the protocol adapter, and adjusts the device state and parameters of the IoT device according to the device control instruction.

[0065] It should be noted that the first communication mode can be understood as the process in which the IoT device actively communicates and interacts with the protocol adapter; the second communication mode can be understood as the process in which the IoT device passively communicates and interacts with the protocol adapter based on the target device acquisition instructions output by the protocol adapter; the third communication mode can be understood as the process in which the device status and parameters of the IoT device are adjusted based on the device control instructions issued by the IoT platform.

[0066] In this embodiment, the multi-operating environment adapter designed by the present application searches for a communication module that is compatible with the communication transmission mode from the data receiving module, the data acquisition module, and the instruction sending module based on the communication transmission mode of the IoT device, and then uses the adapted communication module to be compatible with the business application scenarios of different IoT devices. Thus, in the business application scenarios corresponding to each IoT device, the IoT data corresponding to each IoT device can be quickly accessed, meeting the needs of convenient access of multiple business application scenarios of IoT devices to the IoT platform.

[0067] Furthermore, in yet another embodiment, before the above step S20: obtaining the IoT data of the IoT device, the data access method of the IoT device further includes the following implementation steps:

[0068] Step A10: Determine whether the docking mode of the IoT device is an IP communication mode. When the docking mode of the IoT device is an IP communication mode, the multi-operating environment adapter can directly build a communication link between the IoT device and the IoT platform; when the docking mode of the IoT device is not an IP communication mode (that is, when the docking mode of the IoT device is a non-IP communication mode), communicate with the IoT device based on the serial port connection channel in the multi-operating environment adapter. After the communication connection is successful, adjust the docking mode of the IoT device from the non-IP communication mode to the IP communication mode according to the protocol conversion module in the multi-operating environment adapter, and execute the step of building a communication link between the IoT device and the IoT platform.

[0069] It should be noted that the serial port connection channel includes but is not limited to RS485 or RS232, and the serial port connection channel can cascade serial port gateways or connect multiple serial port peers at the same time; the wireless communication module in the multi-operating environment adapter includes but is not limited to Bluetooth and RFID radio frequency, etc.

[0070] In this embodiment, after the multi-operating environment adapter designed by the present application cascades the IoT devices in the non-IP communication mode through the serial port connection channel, the protocol conversion module in the multi-operating environment adapter is used to achieve the purpose of the IoT device communicating and interacting with the IoT platform in the IP communication mode. When the IoT platform only supports the IP communication protocol for data transmission, it effectively avoids the traditional docking method that requires targeted selection of IoT devices in the non-IP communication mode, which is time-consuming, and further improves the efficiency of IoT devices accessing the IoT platform.

[0071] Step S30: sending the IoT data to the IoT platform according to the universal adaptation protocol, so that the IoT platform can parse the IoT data according to the rule engine model to obtain structured business data of the IoT device.

[0072] In this embodiment, the device transmission protocol corresponding to the IoT data can be accurately obtained based on the port element of the device protocol. After converting the device transmission protocol to the universal adaptation protocol, each IoT data is uniformly transparently transmitted to the IoT platform through the protocol conversion port of the universal adaptation protocol. At this time, the IoT platform parses the IoT data according to the preset rule engine model to obtain the structured business data of the IoT device. That is, after configuration through the rule engine model, the data communication of the IoT device and the IoT platform connected can be supported without code, thereby effectively improving the data docking efficiency between the IoT device and the IoT platform in a coding-free manner.

[0073] In summary, this application designs a multi-operating environment adapter based on various complex environments of IoT devices, and uses the multi-operating environment adapter to build data interaction between IoT devices and IoT platforms, thereby achieving the purpose of IoT devices being able to quickly access IoT platforms. Specifically, the IoT platform is connected to the IoT device through the multi-operating environment adapter, that is, the multi-operating environment adapter designed by this application can be compatible with IoT devices to communicate directly with the IoT platform; after the IoT platform receives the IoT data uploaded by the multi-operating environment adapter, the IoT platform parses the IoT data according to the preset rule engine model to obtain the structured business data of the IoT device. That is, after being configured through the rule engine model, the data communication of the IoT device and the connected IoT platform can be supported without code, thereby effectively improving the data docking efficiency between the IoT device and the IoT platform in a coding-free manner.

[0074] Furthermore, based on the first embodiment of the data access method of the Internet of Things device of the present application, a second embodiment of the data access method of the Internet of Things device of the present application is proposed.

[0075] Further, in some feasible embodiments, the multi-operating environment adapter includes a protocol adapter, and the above step S10: obtaining the IoT data of the IoT device may also include the following implementation steps:

[0076] Step S101: Respond to the access request of the IoT device through the data receiving module to obtain the IoT data of the IoT device; or / and, access the target device acquisition instruction sent by the protocol adapter through the data acquisition module, and obtain the IoT data of the IoT device based on the response of the IoT device to the target device acquisition instruction.

[0077] In this embodiment, the data receiving module will respond to the access request of the IoT device, obtain the IoT data of the IoT device, and then send the IoT data to the protocol adapter through the data receiving module, and then the IoT data can be transparently transmitted to the IoT platform through the protocol adapter. Alternatively, / and, the target device acquisition instruction sent by the access protocol adapter is received through the data acquisition module, and the IoT data of the IoT device is obtained according to the response of the IoT device to the target device acquisition instruction. Specifically, after the data acquisition module receives the target device acquisition instruction, it sends the target device acquisition instruction to each IoT device connected to the data acquisition module; then the IoT device that responds to the target device acquisition instruction uploads the message code stream (i.e., IoT data) according to its own device protocol.

[0078] Furthermore, in some other feasible embodiments, the multi-operating environment adapter further includes an instruction sending module, and the data access method of the IoT device further includes:

[0079] Step B10: Access the device control instruction sent by the IoT platform through the instruction sending module, and adjust the device status and parameters of the IoT device according to the device control instruction.

[0080] In this embodiment, the IoT platform transmits the issued device control instructions to the protocol adapter, and then the instruction receiving module receives the device control instructions issued by the IoT platform through the protocol adapter, and adjusts the device status and parameters of the IoT device according to the device control instructions.

[0081] It should be noted that the device control instructions include but are not limited to the adjustment instructions of the humidity monitoring threshold in the environmental monitoring device. The device status and parameters can be understood as the device status and device parameters, where the device status refers to the state of the IoT device during operation, which is used to reflect the device's operating status, performance, and usage information, and the device status includes but is not limited to the power-on state, standby state, power-off state, fault state, and update state.

[0082] Device parameters are important indicators for measuring the performance of IoT devices. Device parameters are usually divided into several categories, including electrical parameters, mechanical parameters, and physical parameters. Electrical parameters include but are not limited to voltage, current, power, etc. Mechanical parameters include but are not limited to speed, torque, mass, etc. Physical parameters include but are not limited to temperature, humidity, pressure, etc.

[0083] In a specific embodiment, when the environmental monitoring device receives the humidity monitoring threshold adjustment instruction issued by the Internet of Things platform through the instruction receiving module, the environmental monitoring device adaptively adjusts its original humidity threshold to the humidity monitoring threshold carried by the adjustment instruction according to the adjustment instruction.

[0084] Furthermore, in another embodiment, the data receiving module, data acquisition module, and instruction sending module designed in the present application realize mutual synchronization between modules. For example, when there are multiple IoT devices, the communication modules compatible with the communication transmission mode of each IoT device are searched from the data receiving module, data acquisition module, and instruction sending module according to the communication transmission mode corresponding to each IoT device, and the IoT data of each IoT device are received respectively through their respective adapted communication modules, thereby meeting the needs of convenient access of IoT devices to the IoT platform for multiple business application scenarios.

[0085] In this embodiment, the data receiving module and data acquisition module designed in this application support extension, and each different type of communication protocol is an independent protocol communication processing object. Some roles are suitable for running on the local side, and some roles are suitable for running on the cloud. In this way, the automatic adaptation effect of scenarios compatible with different operating environments is achieved.

[0086] Furthermore, in some other feasible embodiments, the above step S30: sending the IoT data to the IoT platform according to the universal adaptation protocol may also include the following implementation steps:

[0087] Step S301: determining the device transmission protocol corresponding to the IoT data according to the port element of the device protocol;

[0088] Step S302: after converting the device transmission protocol into the universal adaptation protocol, transparently transmitting the IoT data to the IoT platform through the protocol conversion port of the universal adaptation protocol.

[0089] In this embodiment, refer to Figure 2 The protocol adapter in the multi-operating environment adapter determines the device transmission protocol carrying the IoT data based on the port element of the device protocol of the IoT device, and then converts the transmission protocol carrying the IoT data into a universal adaptation protocol. After encapsulating the IoT data and the corresponding device transmission protocol, the encapsulated IoT data is transparently transmitted to the calling parsing module (i.e., unstructured data parsing module) in the IoT platform according to the protocol conversion port of the universal adaptation protocol, so that the unstructured data parsing module can parse the unstructured message code stream (i.e., IoT data) into structured business data of the IoT device by calling a preset rule engine model, thereby improving the data docking efficiency between the IoT device and the IoT platform.

[0090] Furthermore, based on the first embodiment and / or the second embodiment of the data access method of the Internet of Things device of the present application, a third embodiment of the data access method of the Internet of Things device of the present application is proposed.

[0091] The data access method of the IoT device of the present application is also applied to the IoT platform, wherein the IoT platform is connected to the IoT device through a multi-operating environment adapter, wherein the multi-operating environment adapter is an independent operating component, or the multi-operating environment adapter is integrated into the IoT platform;

[0092] The data access method of the IoT device also includes the following implementation steps:

[0093] Step C10: Build a preset rule engine model.

[0094] In this embodiment, the IoT platform accesses the object model metadata and rule metadata of several IoT devices based on a preset human-computer interaction interface, and constructs a preset rule engine model based on the several object model metadata and the several rule metadata, so that after the IoT platform accesses the IoT data of the physical device sent by the multi-operating environment adapter, it can promptly call the preset rule engine model to adaptively match the corresponding business rules to parse the IoT data. In other words, the preset rule engine model is called to perform data analysis on the IoT data, so that the calling parsing module (i.e., the unstructured data parsing module) in the IoT platform can recognize the message structure and meaning of the IoT data through the preset rule engine model, and then generate structured business data of the IoT device.

[0095] In another embodiment, the IoT platform also involves the configuration of a rule engine, that is, the messages communicated between the IoT device and the IoT platform are visually restored through the elements defined by the engine. After the engine restores the messages with the elements defined by the engine, the process of building the rule engine model can be optimized.

[0096] Step C20: After receiving the IoT data uploaded by the multi-operating environment adapter according to the universal adaptation protocol, the IoT data is parsed according to the rule engine model to obtain the structured business data of the IoT device; wherein the multi-operating environment adapter is configured to obtain the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol matching the IoT platform, and send the IoT data to the IoT platform according to the universal adaptation protocol; the IoT data is a message code stream uploaded according to the device protocol.

[0097] In this embodiment, after the multi-operating environment adapter receives the message code stream (i.e., IoT data) uploaded by the IoT device in accordance with the device protocol, the device protocol of the IoT data is then adapted and converted through the protocol adapter to obtain a universal adaptation protocol that matches the IoT platform. Then, the device transmission protocol corresponding to the IoT data can be accurately obtained based on the port element of the device protocol. After the device protocol is converted into the universal adaptation protocol, each IoT data is uniformly transparently transmitted to the IoT platform through the protocol conversion port of the universal adaptation protocol. At this time, the IoT platform parses the IoT data according to the preset rule engine model to obtain the structured business data of the IoT device. That is, after being configured through the rule engine model, the data communication of the IoT device and the connected IoT platform can be supported without code, thereby effectively improving the data docking efficiency between the IoT device and the IoT platform in a coding-free manner.

[0098] Furthermore, in another embodiment, after the structured business data of the IoT device is stored in the data structuring & business module in an efficient time sequence, high-performance data services are provided through the data structuring & business module to facilitate the consumption and application of data by the application party.

[0099] Further, in some feasible embodiments, the IoT platform includes a call parsing module and a rule engine module (i.e., a rule engine framework), the call parsing module is connected to the multi-operating environment adapter and the rule engine module respectively, the rule engine module is provided with a preset rule engine model, and the above step C20: parsing the IoT data according to the rule engine model to obtain the structured business data of the IoT device also includes the following implementation steps:

[0100] Step C201: When the calling parsing module receives the IoT data, the calling parsing module is triggered to call the rule engine model according to the data format of the IoT data, and the structured business data of the IoT device is determined according to the rule engine model and the IoT data.

[0101] In this embodiment, when the parsing module is called to receive IoT data sent by the multi-operating environment adapter, the parsing module is triggered to call the rule engine module so that the preset rule engine model adaptively matches the corresponding business rules to parse the IoT data and obtain the structured business data of the IoT device.

[0102] It should be noted that there are multiple business rules set in the preset rule engine model. Figure 2 The preset rule engine model includes but is not limited to json business rules, XML business rules, private protocol business rules and special protocol business rules, among which the data format of json business rules is json format, the data format of XML business rules is XML format, the data format of private protocol business rules includes but is not limited to json format, support for specifying address offset + length, separator and type + length + data (i.e. Type + Lenght + Value, referred to as TLV); special protocol business rules include but are not limited to modbus, BACnet and SNMP, and the data format of special protocol business rules is determined according to the protocol characteristics of the special protocol rules themselves.

[0103] In addition, it should be noted that, referring to Figure 3 , Figure 3 This is a schematic diagram of visual restoration of the rule engine model involved in the embodiment of the present application. The rule engine model is to visualize the message between the IoT device and the IoT platform through the elements defined by the engine. After the engine restores the IoT data with the elements defined by the engine, it can recognize the message structure and meaning in the IoT data, and thus parse it.

[0104] In a specific embodiment, when the parsing module is called to receive IoT data sent by a multi-operating environment adapter, the data format of the IoT data is first determined. When the data format of the IoT data is in json format, the parsing module is triggered to call the json rule engine model in the rule engine module that matches the json format, and then the IoT data is parsed according to the json rule engine model to obtain the structured business data of the IoT device.

[0105] Further, in some other feasible embodiments, the rule engine model is provided with a plurality of business rules, each business rule includes a set of message communication attributes, and a communication protocol followed by a message code stream having the set of message communication attributes, and the above step C201: determining the structured business data of the IoT device based on the rule engine model and the IoT data, further includes the following implementation steps:

[0106] Step C2011: parsing the IoT data to obtain target message communication attributes and target communication protocol of the IoT data;

[0107] In this embodiment, the IoT data is parsed by calling a parsing module to obtain the target message communication attribute and target communication protocol of the IoT data.

[0108] It should be noted that the preset rule engine model is set with multiple business rules, each business rule includes a set of message communication attributes, and the communication protocol followed by the message code stream with this set of message communication attributes; the target message communication attributes include the message IP address and message port of the IoT data.

[0109] Step C2012: Determine whether the target message communication attribute and the target communication protocol match any of the business rules;

[0110] In this embodiment, the parsing module is called to determine whether the target message communication attribute and the target communication protocol match any business rule in the rule engine model.

[0111] Step C2013: If any of the business rules is matched, the target message communication attribute and the target communication protocol are identified according to the matched business rule to obtain the device type of the IoT device;

[0112] In this embodiment, if any business rule is matched, the target message communication attribute and the target communication protocol are identified according to the matched business rule to obtain the device type of the IoT device.

[0113] Step C2014: Determine the structured business data of the IoT device based on the device type and the IoT data.

[0114] In this embodiment, the device monitoring attributes corresponding to the device type are obtained, and then the IoT data is configured according to the device monitoring attributes through the preset rule engine model, so that the message structure and meaning in the IoT data can be recognized, and then it can be parsed to obtain the structured business data of the IoT device. In other words, after the application is configured through the rule engine model, it can support the data communication of the IoT device and the IoT platform to which it is connected without code, thereby effectively improving the data connection efficiency between the IoT device and the IoT platform in a coding-free manner.

[0115] Furthermore, in some feasible embodiments, the above step C10: constructing a preset rule engine model, further includes the following implementation steps:

[0116] Step C101: Acquire the object model metadata and rule metadata of the IoT device, wherein the object model metadata is a definition description element of the monitoring indicator of the IoT device, and the rule metadata is an addressing parameter corresponding to the monitoring indicator, and the addressing parameter includes at least an identifier, a byte length, and a data type;

[0117] In this embodiment, the object model metadata and rule metadata of the Internet of Things device are obtained through a preset human-computer interaction interface. The object model metadata is the definition description element of the monitoring indicators of the Internet of Things device, and the rule metadata is the addressing parameter corresponding to the monitoring indicator. The addressing parameter includes at least an identifier, byte length and data type corresponding to the monitoring indicator.

[0118] It should be noted that the monitoring indicators of the IoT device are associated with the functional type of the IoT device. For example, when the IoT device is an environmental monitoring device, the monitoring indicators of the environmental monitoring device include at least sulfur dioxide, nitrogen oxides, ozone, particulate matter, atmospheric temperature, humidity, wind speed and wind direction, etc. In addition, the monitoring indicators of the environmental monitoring device can also be customized according to the needs of the user, and this application does not impose any restrictions here. There are multiple definition description elements for monitoring indicators, and the definition description element can be understood as defining the specific meaning of a monitoring indicator representation in machine language.

[0119] In addition, it should be noted that each addressing parameter corresponds to a monitoring indicator of an IoT device, and the addressing parameter includes at least the identifier, byte length and data type specified by the monitoring indicator. Specifically, when the monitoring indicator of the environmental monitoring device is temperature, the temperature identifier is "temperature", the byte length of the temperature is the bytes occupied by the custom temperature, and the temperature data type is customized according to user needs, and the data type includes but is not limited to float (single-precision floating point type) and int32 (integer type). In addition, the addressing parameters of this application can be customized according to user needs, and this application does not impose any restrictions here.

[0120] Furthermore, in another embodiment, the protocol analysis method is divided into two categories. Public protocols use public data formats to abstract and refine their common formats; while private protocols are analyzed based on the message formats of private protocols of multiple different manufacturers, and the common characteristics of their formats are refined for configuration encapsulation; among them, the data format carried by the public protocol is basically based on the json format, that is, the analysis of the public protocol, in addition to the base of protocol communication, adopts the method of parsing the json format in data analysis, and parses the unstructured message into a structured business data object (that is, structured business data). That is, the key of each field in json, as well as its corresponding data type and business field, is configured on the rule engine interface; the private protocol supports TCP and UDP transmission protocols at the transport layer, and adopts a variety of data formats to support the analysis of message data from the transport layer upwards. In addition to the json format, the data format of the current private protocol supports the specified address offset + length, separator, type + length + data (i.e. Type + Lenght + Value, abbreviated as TLV) and other formats. These four types of data formats can cover more than 80% of the existing private protocol devices; in addition, for less common protocols (such as modbus, BACnet, SNMP, etc.), the rule model is built according to the characteristics of its own protocols.

[0121] Step C102: Associating and binding the object model metadata and the rule metadata to obtain a preset rule engine model.

[0122] In this embodiment, refer to Figure 2 , through the rule engine metadata generation model generation module of the Internet of Things platform, the object model metadata and the rule metadata are associated and bound to obtain the preset rule engine model.

[0123] In summary, this application embodies the configurability of multiple protocols and rules, and improves the compatibility and scalability of the solution; at the same time, it adopts a hybrid operating environment of platform cloud and local modules, and the local side solves the bottleneck of the original IoT engine in traditional industrial equipment, thereby improving the multi-scenario and convenient access effect of platform access devices.

[0124] In addition, this application also provides a data access system for IoT devices, please refer to Figure 4 , Figure 4 It is a structural diagram of a data access system for an IoT device involved in an embodiment of the present application.

[0125] The data access system of the IoT device of the present application includes an IoT device H10, a multi-operating environment adapter H20 and an IoT platform H30;

[0126] The multi-operating environment adapter H20 is used to obtain the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol matching the IoT platform H30, and send the IoT data to the IoT platform H30 according to the universal adaptation protocol; the IoT data is a message code stream uploaded according to the device protocol,

[0127] The IoT platform H30 is used to build a preset rule engine model;

[0128] The IoT platform H30 is also used to receive IoT data sent by the multi-operating environment adapter H20 according to the universal adaptation protocol, and parse the IoT data according to the rule engine model to obtain structured business data of the IoT device.

[0129] Optionally, the multi-operating environment adapter H20 is also used to respond to the access request of the IoT device through the data receiving module to obtain the IoT data of the IoT device; or / and, access the target device acquisition instruction sent by the protocol adapter through the data acquisition module, and obtain the IoT data of the IoT device based on the response of the IoT device to the target device acquisition instruction.

[0130] Optionally, the multi-operating environment adapter H20 is also used to access the device control instructions sent by the Internet of Things platform through the instruction sending module, and adjust the device status and parameters of the Internet of Things device according to the device control instructions.

[0131] Optionally, the multi-operating environment adapter H20 is also used to determine the device protocol corresponding to the IoT data according to the port element of the device protocol; after converting the device protocol to the universal adaptation protocol, the IoT data is transparently transmitted to the IoT platform through the adaptation protocol conversion port.

[0132] Optionally, the IoT platform H30 is also used to build a preset rule engine model; after receiving the IoT data uploaded by the multi-operating environment adapter according to the universal adaptation protocol, the IoT data is parsed according to the rule engine model to obtain the structured business data of the IoT device; wherein the multi-operating environment adapter is configured to obtain the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol matching the IoT platform, and send the IoT data to the IoT platform according to the universal adaptation protocol; the IoT data is a message code stream uploaded according to the device protocol.

[0133] Optionally, the IoT platform H30 is also used to trigger the calling parsing module to call the rule engine model according to the data format of the IoT data when the calling parsing module receives the IoT data, and determine the structured business data of the IoT device based on the rule engine model and the IoT data.

[0134] Optionally, the IoT platform H30 is also used to parse the IoT data to obtain the target message communication attributes and target communication protocol of the IoT data; determine whether the target message communication attributes and the target communication protocol hit any of the business rules; if any of the business rules are hit, identify the target message communication attributes and the target communication protocol according to the hit business rules to obtain the device type of the IoT device; determine the structured business data of the IoT device based on the device type and the IoT data.

[0135] Optionally, the IoT platform H30 is also used to obtain the IoT model metadata and rule metadata of the IoT device, where the IoT model metadata is a definition description element of the monitoring indicators of the IoT device, and the rule metadata is an addressing parameter corresponding to the monitoring indicator, and the addressing parameter includes at least an identifier, a byte length, and a data type; the IoT model metadata and the rule metadata are associated and bound to obtain a preset rule engine model.

[0136] In addition, this application also provides a terminal device. Figure 5 , Figure 5 The terminal device of the embodiment of the present application may be a device for locally running the data access method of the IoT device.

[0137] like Figure 5 As shown, the terminal device of the embodiment of the present application may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface).

[0138] The memory 1005 is arranged on the terminal device body, and a program is stored on the memory 1005, and the program implements the corresponding operation when it is executed by the processor 1001. The memory 1005 is also used to store parameters for use by the terminal device. The memory 1005 can be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.

[0139] Those skilled in the art will understand that Figure 5 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0140] like Figure 5 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a data access program for the IoT device of the terminal device.

[0141] exist Figure 5 In the terminal device shown, the processor 1001 can be used to call the data access program of the Internet of Things device of the terminal device stored in the memory 1005, and execute the steps of the data access method of the above-mentioned Internet of Things device.

[0142] In addition, the present application provides a computer-readable storage medium on which a data access program for an IoT device is stored, and when the data access program for the IoT device is executed by a processor, the steps of the above-mentioned method for data access for the IoT device are implemented.

[0143] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0144] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0146] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A data access method for an IoT device, characterized in that: The data access method of the IoT device is applied to a multi-operating environment adapter, the multi-operating environment adapter is connected to the IoT device and the IoT platform respectively, the multi-operating environment adapter is an independent operating component, or the multi-operating environment adapter is integrated in the IoT platform; The data access method of the IoT device includes: Constructing a preset rule engine model through the IoT platform; Acquire the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol that matches the IoT platform, wherein the IoT data is a message code stream uploaded according to the device protocol; Sending the IoT data to the IoT platform according to the universal adaptation protocol, so that the IoT platform can parse the IoT data according to the rule engine model to obtain structured business data of the IoT device; Before the step of acquiring the IoT data of the IoT device, the data access method of the IoT device includes: Determine whether the connection mode of the IoT device is an IP communication mode; When the connection mode of the IoT device is an IP communication mode, a communication link between the IoT device and the IoT platform is established; When the docking mode of the IoT device is not an IP communication mode, a communication connection is established with the IoT device according to the serial port connection channel in the multi-operating environment adapter, and after the communication connection is successful, the docking mode of the IoT device is adjusted from a non-IP communication mode to an IP communication mode according to a protocol conversion module in the multi-operating environment adapter, and then the step of establishing a communication link between the IoT device and the IoT platform is performed; The step of obtaining the IoT data of the IoT device comprises: After the communication link between the IoT device and the IoT platform is established, obtaining the communication transmission mode of the IoT device; When the communication transmission mode is the first communication mode, the protocol adapter in the multi-operation environment adapter accesses the IoT data of the IoT device through the data receiving module, and the first communication mode is the process in which the IoT device actively communicates with the protocol adapter; When the communication transmission mode is the second communication mode, the data acquisition module in the multi-operating environment adapter accesses the target device acquisition instruction sent by the protocol adapter, and obtains the Internet of Things data of the Internet of Things device based on the response of the Internet of Things device to the target device acquisition instruction. The second communication mode is the process in which the Internet of Things device passively communicates and interacts with the protocol adapter based on the target device acquisition instruction output by the protocol adapter.

2. The data access method of the IoT device according to claim 1, characterized in that: The multi-operating environment adapter further includes an instruction sending module, and the data access method of the IoT device further includes: The device control instruction sent by the IoT platform is accessed through the instruction sending module, and the device status and parameters of the IoT device are adjusted according to the device control instruction.

3. The data access method of the IoT device according to claim 1, characterized in that: The step of sending the IoT data to the IoT platform according to the universal adaptation protocol includes: Determining a device transmission protocol corresponding to the IoT data according to a port element of the device protocol; After converting the device transmission protocol into the universal adaptation protocol, the IoT data is transparently transmitted to the IoT platform through the protocol conversion port of the universal adaptation protocol.

4. A data access method for an IoT device, characterized in that: The data access method of the IoT device is also applied to the IoT platform, the IoT platform is connected to the IoT device through a multi-operating environment adapter, the multi-operating environment adapter is an independent operating component, or the multi-operating environment adapter is integrated in the IoT platform; The data access method of the IoT device includes: Build a preset rule engine model; After receiving the IoT data uploaded by the multi-operating environment adapter according to the universal adaptation protocol, parsing the IoT data according to the rule engine model to obtain structured business data of the IoT device; The multi-operating environment adapter is configured to obtain the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol matching the IoT platform, and send the IoT data to the IoT platform according to the universal adaptation protocol; the IoT data is a message code stream uploaded according to the device protocol; The multi-operating environment adapter is also configured to determine whether the docking mode of the IoT device is an IP communication mode; when the docking mode of the IoT device is an IP communication mode, a communication link between the IoT device and the IoT platform is established; when the docking mode of the IoT device is not an IP communication mode, a communication connection is established with the IoT device according to a serial port connection channel in the multi-operating environment adapter, and after the communication connection is successful, the docking mode of the IoT device is adjusted from a non-IP communication mode to an IP communication mode according to a protocol conversion module in the multi-operating environment adapter, and then the step of establishing a communication link between the IoT device and the IoT platform is performed; The multi-operating environment adapter is also configured to obtain the communication transmission mode of the IoT device after the communication link between the IoT device and the IoT platform is established; when the communication transmission mode is the first communication mode, the protocol adapter in the multi-operating environment adapter accesses the IoT data of the IoT device through the data receiving module, and the first communication mode is the process in which the IoT device actively communicates with the protocol adapter; when the communication transmission mode is the second communication mode, the data acquisition module in the multi-operating environment adapter accesses the target device acquisition instruction sent by the protocol adapter, and obtains the IoT data of the IoT device based on the response of the IoT device to the target device acquisition instruction, and the second communication mode is the process in which the IoT device passively communicates with the protocol adapter based on the target device acquisition instruction output by the protocol adapter.

5. The data access method of the IoT device as claimed in claim 4, characterized in that: The IoT platform includes a call parsing module and a rule engine module, wherein the call parsing module is connected to the multi-operation environment adapter and the rule engine module respectively, and the rule engine module is provided with the rule engine model; The step of parsing the IoT data according to the rule engine model to obtain the structured business data of the IoT device includes: When the calling parsing module receives the IoT data, the calling parsing module is triggered to call the rule engine model according to the data format of the IoT data, and the structured business data of the IoT device is determined according to the rule engine model and the IoT data.

6. The data access method of the IoT device as claimed in claim 5, characterized in that: The rule engine model is provided with a plurality of business rules, each of which includes a set of message communication attributes and a communication protocol followed by a message code stream having the set of message communication attributes; The step of determining the structured business data of the IoT device according to the rule engine model and the IoT data includes: Parsing the IoT data to obtain target message communication attributes and target communication protocols of the IoT data; Determine whether the target message communication attribute and the target communication protocol match any of the business rules; If any of the business rules is matched, the target message communication attribute and the target communication protocol are identified according to the matched business rule to obtain the device type of the IoT device; The structured business data of the IoT device is determined according to the device type and the IoT data.

7. The data access method of the IoT device as claimed in claim 4, characterized in that: The step of constructing a preset rule engine model includes: Acquire the object model metadata and rule metadata of the IoT device, wherein the object model metadata is a definition description element of a monitoring indicator of the IoT device, and the rule metadata is an addressing parameter corresponding to the monitoring indicator, wherein the addressing parameter includes at least an identifier, a byte length, and a data type; The object model metadata and the rule metadata are associated and bound to obtain a preset rule engine model.

8. A data access system for an IoT device, characterized in that: The data access system of the IoT device includes an IoT device, a multi-operating environment adapter and an IoT platform; The multi-operating environment adapter is used to obtain the IoT data of the IoT device, and perform protocol adaptation conversion on the device protocol of the IoT device to obtain a universal adaptation protocol matching the IoT platform, and send the IoT data to the IoT platform according to the universal adaptation protocol; the IoT data is a message code stream uploaded according to the device protocol; The IoT platform is used to build a preset rule engine model; The IoT platform is also used to receive IoT data sent by the multi-operating environment adapter according to the universal adaptation protocol, and parse the IoT data according to the rule engine model to obtain structured business data of the IoT device; The multi-operating environment adapter is also used to determine whether the docking mode of the IoT device is an IP communication mode; when the docking mode of the IoT device is an IP communication mode, a communication link between the IoT device and the IoT platform is established; when the docking mode of the IoT device is not an IP communication mode, a communication connection is established with the IoT device according to the serial port connection channel in the multi-operating environment adapter, and after the communication connection is successfully established, the docking mode of the IoT device is adjusted from a non-IP communication mode to an IP communication mode according to a protocol conversion module in the multi-operating environment adapter, and then a step of establishing a communication link between the IoT device and the IoT platform is performed; The multi-operation environment adapter is also used to obtain the communication transmission mode of the IoT device after the communication link between the IoT device and the IoT platform is built; when the communication transmission mode is the first communication mode, the protocol adapter in the multi-operation environment adapter accesses the IoT data of the IoT device through the data receiving module, and the first communication mode is the process in which the IoT device actively communicates with the protocol adapter; When the communication transmission mode is the second communication mode, the data acquisition module in the multi-operating environment adapter accesses the target device acquisition instruction sent by the protocol adapter, and obtains the Internet of Things data of the Internet of Things device based on the response of the Internet of Things device to the target device acquisition instruction. The second communication mode is the process in which the Internet of Things device passively communicates and interacts with the protocol adapter based on the target device acquisition instruction output by the protocol adapter.

9. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a data access program for the Internet of Things device stored in the memory and executable on the processor. When the processor executes the data access program for the Internet of Things device, the steps of the data access method for the Internet of Things device as described in any one of claims 1 to 3, or / and claims 4 to 7 are implemented.

10. A storage medium, the storage medium being a computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data access program for an Internet of Things device, and when the data access program for the Internet of Things device is executed by a processor, the steps of the data access method for an Internet of Things device as described in any one of claims 1 to 3, or / and claims 4 to 7 are implemented.

Citation Information

Patent Citations

  • Method for custom configuration of IoT data analysis based on CIM platform

    CN114422555A

  • Multi-source heterogeneous Internet of Things data processing method

    CN116488985A