Self-Decoding Internet of Things System Based on Thing Model Metadata and Device No-Code Access Method

Through a self-decoded IoT system based on object model metadata, code-free access of IoT devices is realized, solving the problems of complex device access process and large development workload, and improving access efficiency and platform scalability.

CN119211298BActive Publication Date: 2025-05-27HUIZHONG INSTR
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411445026.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-05-27
Estimated Expiration
2044-10-16

AI Technical Summary

Technical Problem

The access process of IoT devices is complex, and the development of existing coded access solutions is huge and error-prone, which affects the efficiency of equipment online and the scalability of the platform.

Method used

The self-decoded Internet of Things system based on object model metadata is adopted to automatically analyze the device's data reporting through predefined object model metadata, simplifying the device access process and realizing codeless access.

Benefits of technology

It simplifies the equipment access process, improves access efficiency, reduces human errors, adapts to rapid changes in equipment, and has high versatility, rapid deployment, low maintenance costs and strong scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211298B_ABST
    Figure CN119211298B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of the Internet of Things, and in particular to a self-decoding Internet of Things system based on object model metadata and a method for device code-free access. The technical solution is as follows: An object model is predefined in the system. The object model includes the attributes, events, instructions, and services of the device, and each attribute, event, instruction, and service has a unique metadata ID. When the device reports data, it carries the metadata ID. The system automatically matches the description in the object model according to the metadata ID, parses out the data type, length, and unit information, and completes the automatic parsing and processing of the data. It is not necessary to develop customized parsing code for different device types, realizing the rapid access and code-free of the device. The present invention realizes that the system automatically parses the device-reported data according to the predefined object model metadata, eliminating the need for additional development work, simplifying the device access process, improving the access efficiency, adapting to the rapid changes of the device, and having the advantages of strong generality, easy expansion, and easy maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of the Internet of Things, and particularly to a self-decoding Internet of Things system based on physical model metadata and a method for device code-free access. Background Art

[0002] At present, the access process of Internet of Things devices is complex, and usually, parsing codes need to be customized for each type of private application layer device protocol. With the increase in the types of Internet of Things devices, the formats and contents of the device-reported data protocols are different. The development workload of the existing code-based access solutions is huge and extremely error-prone, which affects the device online efficiency and the scalability of the platform. This situation is particularly obvious in the scenarios of multiple protocols and multiple devices, becoming a bottleneck in the development of the Internet of Things platform. Summary of the Invention

[0003] The purpose of the present invention is to provide a self-decoding Internet of Things system based on physical model metadata and a method for device code-free access to simplify the device access process, enabling the system to automatically parse the device-reported data according to the predefined physical model metadata, simplifying the device access process, improving the access efficiency, reducing human errors, adapting to the rapid changes of devices, and solving the above technical problems existing in the background art.

[0004] The present invention can be achieved through the following technical solutions:

[0005] A self-decoding Internet of Things system based on physical model metadata, the system comprising: products, intelligent services, physical models, protocol parsers, and device management modules; the products are an abstract set of a class of devices in the system, a set of devices with the same function definition; the devices belong to a specific product in the system and need to create a product in the system first; when creating the product, select the transport protocol, data protocol, security level, and data format. After creation, each product will have a product identification code at the system end;

[0006] The intelligent service is a communication service that interacts with the device, used to receive the device-reported data and perform data processing;

[0007] The physical model is the digital identification of the device in the system. After creating the product, the physical model needs to be defined. The physical model includes four aspects: attributes, instructions, events, and services; during the creation of the physical model, first, each attribute of the data reporting and the data items used in the functions, events, and services should be defined in the attributes, so as to allocate metadata IDs; create instructions, events, and services based on the already defined attributes. Each instruction, event, and service will be assigned a corresponding metadata ID, and the data items used are also configured by selecting the content already defined in the attributes, ensuring that the data items used in the instructions, events, and services all have metadata IDs;

[0008] The protocol parser is used for automatic parsing of device data;

[0009] The device management module is used for entry and management of device information.

[0010] Furthermore, the intelligent service can be created by itself or select an intelligent service pre-set by the system; when creating an intelligent service by itself, it is necessary to define the name, service port, transmission protocol, and data protocol of the intelligent service. After the product is created, intelligent service binding is required, and eligible intelligent services are selected and bound according to the transmission protocol and data protocol of the product for device access.

[0011] Furthermore, after the data of the device is reported to the port corresponding to the intelligent service, the protocol parser automatically parses the device-reported data according to the description of the device's physical model metadata; this process is to identify the corresponding metadata based on the device-reported data and complete the parsing process.

[0012] Furthermore, use device management to enter device information into the corresponding product of the system and fill in the corresponding device number, which is unique under the same product, and at the same time, a unique identification code of the device on the system side is automatically generated.

[0013] A method for device code-free access in an Internet of Things system with self-decoding based on physical model metadata. A physical model is predefined in the system, and the physical model includes device attributes, events, instructions, and services. Each attribute, event, instruction, and service has a unique metadata ID; when the device reports data, it carries the metadata ID, and the system automatically matches the description in the physical model according to the metadata ID, parses out the data type, length, and unit information, and completes the automatic parsing and processing of the data; there is no need to develop customized parsing code for different device types, realizing the rapid access and code-free of devices.

[0014] The present invention includes the following specific steps:

[0015] ① Create a product: The system administrator creates a corresponding product on the system according to the device information to be accessed, and configures the access transmission protocol, data protocol, data format, and security level;

[0016] ② Configure the intelligent service: The system administrator selects the corresponding intelligent service for configuration according to the transmission protocol and data protocol of the product for device reporting;

[0017] ③ Physical model definition: The system administrator configures the physical model corresponding to the product before device access, including attributes, events, instructions, and services. Each attribute, event, instruction, and service's data content is assigned a unique metadata ID, and each attribute contains detailed description information, constituting the metadata of the physical model;

[0018] ④ Device login authentication: When the device is first connected, it performs login authentication through the intelligent service. After system verification, the metadata of the physical model corresponding to the product to which the device belongs is automatically loaded.

[0019] ⑤ Device data reporting: The device reports data to the intelligent service in the specified format according to the transmission protocol and data protocol. The data field carries the data ID and the actual data value.

[0020] ⑥ Platform automatic parsing: The protocol parser of the system automatically parses the metadata ID in the data field by loading the metadata of the physical model, and processes the data according to the information described in the physical model.

[0021] ⑦ Data application: The parsed data is applied to various business scenarios. Through the metadata description of the physical model, automatic parsing of the device-reported data is achieved, eliminating the need to write custom code for each device. When a new device is connected or an existing device is changed, the data field is organized according to the metadata in the defined frame format of the system, and the corresponding physical model is defined on the system without any code changes, greatly improving the device connection efficiency.

[0022] Further, in the step ④ device login authentication: When the device performs login authentication, the system determines whether the access information of the device is legal to complete the authentication of the device. The device authentication is divided into three cases: device code, one device one password, and one type one password. For device code authentication, the device is required to carry the device code during authentication; for one device one password, the device is required to carry the device number and the identification code of the device in the system when reporting; for one type one password, the device is required to report the protocol device number and the identification code of the product to which it belongs. Authentication can ensure the legality of device access.

[0023] After the authentication is passed, the system queries the product to which the device belongs according to the device, and associates the product with the metadata of the physical model of the product to provide descriptive information for the subsequent automatic parsing of data.

[0024] Further, in the step ⑤ device data reporting: The protocol adopts a fixed frame format, including a frame header, a message sequence number, a function code, a data field, a check code, and a frame tail. The device reports in the fixed frame format; the data field contains multiple data items, and each data item is composed of a metadata ID and the corresponding data value. When the device reports data, it only needs to carry the metadata ID and the actual data value according to the protocol regulations, without complex processing of the data.

[0025] Furthermore, the automatic parsing of the platform in step ⑥ includes: Data reception: receiving the data packets reported by the intelligent service receiving device of the product and identifying the defined protocol data fields; Metadata ID identification: the protocol parser extracts the metadata ID from the data fields, matches the corresponding physical model according to the product to which the device belongs, and obtains the corresponding metadata; Data parsing: according to the definition of the metadata in the physical model, parsing the reported data into the content described in the physical model to complete the parsing and conversion of the data value; Data storage and application: the parsed data is directly applied to the business logic of the system, including device monitoring, data storage, and instruction issuing operations.

[0026] The data application of the present invention includes monitoring display, alarm handling, remote control, etc.

[0027] Compared with the prior art, the present invention has the following characteristics:

[0028] 1. Highly general: There is no need for additional development for different devices and protocols, achieving unified access to different devices. 2. Fast deployment: For new device access, only the physical model needs to be defined, without writing parsing code, and the access speed is fast. 3. Low maintenance cost: By updating the physical model, it can adapt to device upgrades or protocol changes without modifying the platform code. 4. Strong scalability: It supports different communication protocols and device types, adapting to the complex and changeable Internet of Things environment.

[0029] The beneficial effects of the present invention: The system automatically parses the device-reported data according to the predefined physical model metadata, eliminating the need for additional development work, simplifying the device access process, improving the access efficiency, reducing human errors, adapting to the rapid changes of devices, and having the advantages of strong generality, easy expansion, and easy maintenance. This method can be widely applied to the access and management scenarios of various Internet of Things devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of an embodiment of the present invention;

[0031] Figure 2 It is a system configuration flowchart of an embodiment of the present invention;

[0032] Figure 3 It is an access and self-decoding flowchart of an intelligent ultrasonic water meter in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0033] The present invention will be further described in detail below with reference to the drawings and embodiments.

[0034] Referring to the appendix Figure 1 , this embodiment describes the specific implementation process of the present invention through an intelligent ultrasonic water meter.

[0035] A self-decoding Internet of Things system based on device model metadata, including a system, a device (intelligent ultrasonic water meter), and a protocol. The device (intelligent ultrasonic water meter) reports to the system through the protocol to complete self-decoding and code-free access. The protocol includes a transmission protocol and a data protocol. The transmission protocol is TCP, the data protocol adopts the system protocol, and the data format is uploaded in HEX mode.

[0036] In the existing technology access method for intelligent ultrasonic water meters, the device needs to transparently transmit to the system according to its own protocol, and at the same time, script parsing for the device's own protocol needs to be carried out in the system to complete data reporting. When the functions of the intelligent ultrasonic water meter are updated, both the intelligent ultrasonic water meter and the platform need to be modified, resulting in a huge workload. In this embodiment, the intelligent ultrasonic water meter can avoid the parsing work on the system side and achieve code-free access through the self-decoding Internet of Things system based on device model metadata and the device code-free access method.

[0037] First, the configuration of the system should be completed according to the characteristics of the intelligent ultrasonic water meter:

[0038] Define a product of an intelligent ultrasonic water meter in the system, then configure the corresponding intelligent service for this product to determine the corresponding IP and port, and define the device model according to the characteristics of this ultrasonic water meter to form the corresponding metadata.

[0039] Use the device management module to enter the device information of the intelligent ultrasonic water meter under the corresponding water meter product in the system.

[0040] Device code-free access:

[0041] The intelligent ultrasonic water meter organizes the data domain part of the protocol according to the protocol and in combination with the description of the metadata in the device model, and reports it to the corresponding intelligent service in the system. The data domain is organized and reported in the format of metadata ID plus data value.

[0042] After the intelligent ultrasonic water meter passes the authentication of the intelligent service, the intelligent service obtains the metadata corresponding to the device model of the device according to the product to which the device belongs, and the protocol parser performs HEX parsing on the data domain of the device-reported content according to the metadata to complete data self-decoding.

[0043] The system applies the parsed data to specific business scenarios.

[0044] Applying the above self-decoding Internet of Things system based on device model metadata and the device code-free access method to practice, its system configuration process is as Figure 2 shown, including the following steps:

[0045] ① Product Definition: Before the intelligent ultrasonic water meter is connected, the system administrator defines the water meter product, which describes that the transmission protocol for the connection of the intelligent ultrasonic water meter is TCP, the data protocol is the system protocol, the data format is HEX, and the security level is number authentication, etc.

[0046] ② Service Configuration: According to the product transmission protocol TCP and the data protocol being the system protocol, select the intelligent service that meets the requirements for device reporting under the product to complete the service configuration of the product. After the configuration is completed, the IP and port for the connection of the intelligent ultrasonic water meter can be obtained through the configured intelligent service.

[0047] ③ Physical Model Definition: Define the physical model of the intelligent ultrasonic water meter under the product. The specific instruction definitions are as follows.

[0048] Attributes include: instantaneous flow rate, cumulative flow rate, battery voltage, daily water consumption, and low voltage threshold. The specific content is shown in Table 1.

[0049] Events include: low battery voltage. The event content contains an attribute of battery voltage. The specific content is shown in Table 2.

[0050] Instructions include: setting the low voltage threshold. The instruction contains a parameter attribute of low voltage threshold. The specific content is shown in Table 3.

[0051] Services include: meter information and water meter data. The meter information contains the attribute of battery voltage, and the water meter data contains the attributes of instantaneous flow rate, cumulative flow rate, and daily water consumption. The specific content is shown in Table 4.

[0052] Table 1 Attribute Definition Table

[0053]

[0054] Table 2 Event Definition Table

[0055]

[0056] Table 3 Instruction Definition Table

[0057]

[0058] Table 4 Service Definition Table

[0059]

[0060] ④ Device Entry: Use the device management module of the system to enter the intelligent ultrasonic water meter under the corresponding product to complete the configuration of the system.

[0061] The access and self-decoding process of the intelligent ultrasonic water meter is as Figure 3 shown, including the following steps:

[0062] ⑤ Equipment login authentication: The smart ultrasonic water meter carries its own equipment number for login authentication according to the required protocol content. After authentication, the system will query the metadata information of the smart ultrasonic water meter object model, that is, the definition of attributes, events, services, instructions and other information according to the product to which the device belongs.

[0063] ⑥ Data reporting: After the intelligent ultrasonic water meter is authenticated successfully, data reporting can be performed. The data domain is organized according to the protocol requirements. The data domain consists of metadata ID and data value, and is reported to the intelligent service configured by the product. The specific situation is as follows:

[0064] When the intelligent ultrasonic water meter attributes are reported, the data field carries the attribute ID in Appendix 1 and organizes the data value according to the corresponding parsing method.

[0065] When the battery voltage of the smart ultrasonic water meter is low, the smart ultrasonic water meter reports a low battery voltage event. The data domain event ID is 7001, and the attribute included in the event is battery voltage (6003).

[0066] When reporting the intelligent ultrasonic water meter service, the two services Meter (9001) and WaterMeter (9002) can be reported separately, and the service content is reported according to the corresponding attributes organized according to the definition of the service.

[0067] When the intelligent ultrasonic water meter command is issued, if the system needs to adjust the low voltage threshold of the intelligent ultrasonic water meter, the system organizes the data according to the protocol. The data field should include the low voltage threshold setting command (8001), and the parameters include the attribute low voltage threshold (6005).

[0068] ⑦Data parsing: After the smart ultrasonic water meter is successfully authenticated, the protocol parser will obtain the metadata of the defined object model according to the product to which the smart ultrasonic water meter belongs. The metadata describes how to parse the content of the data field. Therefore, the protocol parser only needs to complete the self-decoding of the data field according to the metadata.

[0069] ⑧Data application: The system applies the parsed water meter data to various business scenarios, such as monitoring display, alarm processing (replacing the battery when the battery voltage is low), remote control (modifying the threshold of low battery voltage), etc.

[0070] The advantages of this application will be illustrated through a practical scenario below.

[0071] During the application process, the customer put forward a new requirement, requiring the smart ultrasonic water meter to report the signal strength attribute. If this system and method are not used, the device needs to add the content of this field, and the platform needs to add the analysis of this field. If the method of this application is used, the signal strength (6006) can be entered in the corresponding object model attribute. The description of signal strength is as follows:

[0072]

[0073] After the device reports the signal strength (6006), the system obtains the latest device model metadata according to the access process. After the protocol parser loads the latest metadata, it can parse the signal strength attribute. It can be seen that with this system and access method, the system can complete the change and access of device functions without code modification, reducing the maintenance cost and improving the scalability.

Claims

1. A self-decoding Internet of Things system based on object model metadata, characterized in that: The system includes: products, intelligent services, object models, protocol parsers and device management; the product is an abstract collection of a type of equipment in the system, which is a group of equipment with the same functional definition; the equipment belongs to a specific product in the system, and the product needs to be created in the system first; when creating the product, the transmission protocol, data protocol, security level and data format are selected, and after the creation is completed, each product will have a product identification code on the system side; The smart service is a communication service that interacts with the device and is used to receive data reported by the device and process the data; The physical model is the digital identification of the device in the system. The physical model definition is required after the product is created. The physical model includes four aspects: attributes, instructions, events, and services. When creating an object model, first, the various attributes of the data reported and the data items used in the functions, events, and services should be defined in the attributes, so as to assign metadata IDs; Create commands, events, and services based on the defined properties. Each command, event, and service will be assigned a corresponding metadata ID. At the same time, the data items used are also configured by selecting the content defined in the properties to ensure that the data items used by commands, events, and services have metadata IDs. The protocol parser is used for automatic parsing of device data; the object model is predefined in the system, and the object model includes the attributes, events, instructions and services of the device, and each attribute, event, instruction and service has a unique metadata ID; the device carries the metadata ID when reporting data, and the system automatically matches the description in the object model according to the metadata ID, parses the data type, length and unit information, and completes the automatic parsing and processing of the data; there is no need to develop customized parsing codes for different device types, so that fast access and code-free devices can be achieved; The device management is used to input and manage device information. The device management is used to input the device information into the product corresponding to the system and fill in the corresponding device number. The device number is unique under the same product and automatically generates a unique identification code for the device on the system side. The device reports to the system through the protocol to complete self-decoding and codeless access; The protocol includes a transmission protocol and a data protocol. The transmission protocol is TCP, the data protocol adopts the system protocol, and the data format is uploaded in HEX mode.

2. The self-decoding Internet of Things system based on object model metadata according to claim 1, characterized in that: The smart service is created by itself. When creating the smart service by itself, it is necessary to define the name, service port, transmission protocol and data protocol of the smart service; after the product is created, the smart service binding needs to be performed, and the qualified smart services are selected according to the transmission protocol and data protocol of the product for binding for device access.

3. A self-decoding Internet of Things system based on object model metadata according to claim 1 or 2, characterized in that: After the data of the device is reported to the port corresponding to the intelligent service, the protocol parser automatically parses the data reported by the device according to the description of the device's object model metadata; This process is to identify the corresponding metadata and complete the analysis based on the data reported by the device.

4. A method for device codeless access to a self-decoding Internet of Things system based on object model metadata according to any one of claims 1 to 3, characterized in that: There is no need to develop customized parsing code for different device types. The following specific steps are required to achieve fast device access and code-free operation: ① Create products: The system administrator creates corresponding products on the system according to the device information to be accessed, and configures the access transmission protocol, data protocol, data format and security level; ②Configure intelligent services: The system administrator selects the corresponding intelligent services for configuration according to the product's transmission protocol and data protocol for device reporting; ③Object model definition: Before the device is connected, the system administrator configures the object model corresponding to the product, including attributes, events, instructions and services. The data content of each attribute, event, instruction and service is assigned a unique metadata ID. Each attribute contains detailed description information, which constitutes the metadata of the object model. ④Device login authentication: When a device is connected for the first time, it will be authenticated through intelligent service login. After verification, the system will automatically load the metadata of the object model corresponding to the product to which the device belongs; ⑤ Device data reporting: The device reports data to the smart service in the format specified by the transmission protocol and data protocol. The data field carries the metadata ID and actual data value. ⑥ Platform automatic parsing: The protocol parser automatically parses the metadata ID in the data domain by loading the metadata of the object model, and performs data processing according to the information described in the object model; ⑦Data application: The parsed data is applied to various business scenarios. Through the metadata description of the object model, automatic parsing of the data reported by the device is realized, without the need to write custom code for each device; When a new device is connected or an existing device is changed, the data domain is organized according to the metadata in the frame format defined by the system, and the corresponding object model is defined on the system without any code changes.

Citation Information

Patent Citations

  • Internet of Things platform based on visual static script engine

    CN113805867A

  • Method for easily expanding integrated driver under Internet of Things

    CN115665181A

  • Data access method and system of data integration platform

    CN117527568A