IoT data model management system

By designing the IoT data model management system in the IoT system, the problem of inconvenient device protocol modification and expansion in the existing technology is solved, flexible access to device status data and low-code development are realized, hot loading is supported, and the system is improved. scalability and ease of use.

CN114710517BActive Publication Date: 2024-09-24TRAFFIC CONTROL TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210157142.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-21
Publication Date
2024-09-24
Estimated Expiration
2042-02-21

AI Technical Summary

Technical Problem

The existing urban rail IoT integrated management platform fails to fully consider the later modification and expansion of device protocols when defining metadata, resulting in inconvenient binding processing of devices and protocols and the inability to achieve low-code development and hot loading.

Method used

An IoT data model management system is designed. The mapping of device status data and collection protocols is established through the metadata processing service module. The data routing service module generates device data addresses in the memory database and is implemented through the data model subscription and push service modules. Real-time access and push of device status data, supporting device protocol switching and hot loading.

Benefits of technology

It realizes flexible access and modification of device status data without affecting the access of device status data, supports low-code development, and implements modified hot loading through the data routing service module, which improves the scalability and ease of use of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114710517B
    Figure CN114710517B
Patent Text Reader

Abstract

The present application relates to the field of intelligent management and control technology, and provides an Internet of Things data model management system, which includes: a metadata processing service module, a data model subscription service module, a data routing service module and a data model push service module; the metadata processing service module is used to establish a binding relationship with the data acquisition service module to establish a mapping between each type of device status data and the device acquisition protocol; the data routing service module is used to load and generate data addresses based on metadata information; the data model subscription service module is used to generate a subscription mapping table for each type of device model data, and open a push interface; the data model push service module is used to receive each type of device model data. The Internet of Things data model management system provided in the embodiment of the present application binds the device status data to the device acquisition protocol, and switching the data acquisition protocol does not affect the access to the device status data. At the same time, the data address of each device is found through the data routing service module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent management and control technology, and in particular to an Internet of Things data model management system. Background Art

[0002] In the development of IoT device integrated management, in order to facilitate the expansion of devices and low-code development, it is necessary to establish a device data model for each type of device. The definition and management of IoT device data models are very important and directly affect the ease of use and expansion capabilities of the overall IoT management and control platform.

[0003] The existing urban rail IoT integrated management platform does not fully consider the subsequent modification and expansion of device protocols when defining metadata. It is limited to defining the attribute status of the device itself, and does not achieve linkage with the data collection microservice module. It ignores the binding and unbinding processing of the physical device protocol, which is not convenient for subsequent expansion of devices and modification of protocols, and cannot achieve low-code development of related IoT applications. In addition, the memory address of the physical device is obtained by loading the configuration file during the addressing process, and hot loading after modification cannot be achieved. Summary of the invention

[0004] The present application provides an Internet of Things data model management system, which realizes that switching data collection protocols does not affect the access of device status data, and at the same time can find the data address of each device through the data routing service module.

[0005] In a first aspect, the present application provides an Internet of Things data model management system, the Internet of Things data model management system comprising a metadata processing service module, a data model subscription service module, a data routing service module connected to the metadata processing service module, and a data model push service module connected to the data model subscription service module;

[0006] The metadata processing service module is used to establish a binding relationship with the data acquisition service module to establish a mapping between each type of device status data and the device acquisition protocol;

[0007] The data routing service module is used to load the metadata information in the metadata processing service module and generate a data address in the memory database according to the metadata information;

[0008] The data model subscription service module is used to generate a subscription mapping table for each type of device model data and open a push interface to the data model push service module;

[0009] The data model push service module is used to receive each type of device model data pushed by the data model subscription service module through the push interface.

[0010] According to an Internet of Things data model management system provided by the present application, the data routing service module is also used to obtain the device status of each device connected to the data routing service module in the data acquisition service module.

[0011] According to an Internet of Things data model management system provided by the present application, the data routing service module is also used to determine the memory address space of each of the device states in the memory database, and write the status data of each of the device states into the memory address space of each of the device states.

[0012] According to an Internet of Things data model management system provided by the present application, the data routing service module is also used to open various access interfaces for accessing the real-time status data of the device, so that various external microservices can obtain the real-time status data of the device in the data routing service module through the various access interfaces, wherein the various microservices refer to various services that can perform various functions, and the various microservices include industrial management microservices and station management microservices.

[0013] According to an Internet of Things data model management system provided by the present application, the Internet of Things data model management system includes a metadata configuration module;

[0014] The metadata configuration module is used to provide an editing interface for device model data, provide an acquisition protocol option configuration interface, and support configuration mode loading for the Internet of Things protocol.

[0015] According to an Internet of Things data model management system provided by the present application, the Internet of Things data model management system includes a metadata processing service module;

[0016] The metadata processing service module is used to respond to the front-end data configuration triggered by the metadata configuration module, and generate metadata information according to the front-end data configuration and the input data of the metadata configuration module.

[0017] According to an Internet of Things data model management system provided by the present application, the Internet of Things data model management system includes a model data viewing module;

[0018] The model data viewing module is used to view various types of device model data that have been defined and deployed online, as well as to modify, import and export various types of device model data.

[0019] According to an Internet of Things data model management system provided by the present application, the Internet of Things data model management system includes a model data subscription configuration module;

[0020] The model data subscription configuration module is used to respond to subscription operations triggered by various microservices that require model data.

[0021] According to an Internet of Things data model management system provided by the present application, the Internet of Things data model management system includes a data model subscription service module;

[0022] The data model subscription service module is used to detect whether the model data subscription configuration module responds to the subscription operation;

[0023] If the subscription operation is responded to, a subscription mapping table for each type of device model data is generated, and a push interface is opened to the data model push service module.

[0024] In a second aspect, the present application provides a method for managing an IoT data model, comprising:

[0025] Determine each type of device model data received by the data model push service module through the push interface opened by the data model subscription service module;

[0026] Reviewing the model data of each type of equipment to obtain review results;

[0027] If the audit result is that the model data of each type of device has passed the audit, the model data of each type of device will be pushed to each type of microservice.

[0028] In a third aspect, the present application provides an IoT data model management device, comprising:

[0029] A determination module, used to determine each type of device model data received by the data model push service module through the push interface opened by the data model subscription service module;

[0030] The audit module is used to audit the model data of each type of equipment and obtain the audit results;

[0031] The push module is used to push the model data of each type of device to various microservices if the audit result is that the model data of each type of device has passed the audit.

[0032] In a fourth aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for managing the IoT data model described in the second aspect is implemented.

[0033] In a fifth aspect, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by the processor, it implements the IoT data model management method described in the second aspect.

[0034] In a sixth aspect, the present application further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium includes a computer program, and when the computer program is executed by the processor, the method for managing the IoT data model described in the second aspect is implemented.

[0035] The IoT data model management system provided by this application binds the device status data to the device acquisition protocol, establishes a mapping between each type of device status data and the device acquisition protocol, realizes that switching the data acquisition protocol does not affect the access of the device status data, and realizes low-code development of IoT data models. At the same time, the metadata information of various types of equipment is loaded through the data routing service module, and the data address of each device is generated in the memory database according to each metadata information. Therefore, the data address of each device can be directly found through the data routing service module, realizing the modified hot loading. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 It is one of the schematic diagrams of the IoT data model management system provided by this application;

[0038] Figure 2 This is the second schematic diagram of the IoT data model management system provided by this application;

[0039] Figure 3 This is the third schematic diagram of the IoT data model management system provided by this application;

[0040] Figure 4 It is a flow chart of the IoT data model management method provided in this application. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0042] Combine the following Figures 1 to 4 Describe the IoT data model management system provided by this application. Figure 1 It is one of the schematic diagrams of the IoT data model management system provided by this application; Figure 2 This is the second schematic diagram of the IoT data model management system provided by this application; Figure 3 This is the third schematic diagram of the IoT data model management system provided by this application; Figure 4 It is a flow chart of the IoT data model management method provided in this application.

[0043] The embodiments of the present application provide an embodiment of the Internet of Things data model management system. It should be noted that although the logical order is shown in the flow chart, under certain data, the steps shown or described can be completed in an order different from that here.

[0044] Reference Figure 1 , Figure 1 It is one of the schematic diagrams of the IoT data model management system provided by the present application. The IoT data model management system provided by the embodiment of the present application includes a metadata processing service module, a data model subscription service module, a data routing service module connected to the metadata processing service module, and a data model push service module connected to the data model subscription service module;

[0045] The metadata processing service module is used to establish a binding relationship with the data acquisition service module to establish a mapping between each type of device status data and the device acquisition protocol;

[0046] The data routing service module is used to load the metadata information in the metadata processing service module and generate a data address in the memory database according to the metadata information;

[0047] The data model subscription service module is used to generate a subscription mapping table for each type of device model data and open a push interface to the data model push service module;

[0048] The data model push service module is used to receive each type of device model data pushed by the data model subscription service module through the push interface.

[0049] In this embodiment, the IoT data model management system is not only applicable to but not limited to station management scenarios and industrial management scenarios. The IoT data model management system includes a front-end module and a back-end module, wherein the front-end module includes but is not limited to a metadata configuration module, a model data viewing module, and a model data subscription configuration module, and the back-end module includes but is not limited to a metadata processing service module, a data model subscription service module, a data routing service module, and a data model push service module, wherein the data routing service module is connected to the metadata processing service module, and the data model push service module is connected to the data model subscription service module. The front-end module and the back-end module are based on the B / S architecture, and the back-end module uses a microservice approach to decouple each type of main function, facilitating the expansion of each main function. Furthermore, the metadata processing service module establishes a binding relationship with the data acquisition service module, thereby establishing a mapping between each type of device status data and the device acquisition protocol, realizing that switching the data acquisition protocol does not affect the access of the device status data, and low-code development of IoT applications.

[0050] Furthermore, the data routing service module loads the metadata information in the metadata processing service module, and generates the data address of each device in the memory database according to the metadata information, so that the data address of each device can be directly found through the data routing service module, thereby realizing the modified hot loading, wherein the hot loading does not need to obtain the memory address of each physical device by loading the configuration file, but directly finds the data address of each physical device through the data routing service module.

[0051] Furthermore, after receiving the user's subscription operation in the front-end module, the data model subscription service module generates a subscription mapping table for each type of device model data. At the same time, the data model subscription service module determines the required subscription service according to the subscription operation, and opens a push interface to the data model push service module according to the required subscription service.

[0052] Furthermore, the data model subscription service module opens a push interface according to the subscription service, and the data model push service module receives each type of device model data pushed by the data model subscription service module through the push interface.

[0053] The IoT data model management system provided in this embodiment supports building metadata information of devices based on the attribute data of each type of device in combination with the acquisition protocol of the device. After the metadata information is built, the data routing service module loads metadata of various types of devices, and based on this, generates a memory address space for each physical device in the memory database. The real-time status attributes of each device can be addressed and searched through data routing, that is, the device status data is bound to the device acquisition protocol, and a mapping between each type of device status data and the device acquisition protocol is established, so that switching the data acquisition protocol does not affect the access of the device status data, and low-code development of IoT data models is realized. At the same time, the metadata information of various types of devices is loaded through the data routing service module, and the data address of each device is generated in the memory database according to each metadata information. Therefore, the data address of each device can be directly found through the data routing service module, realizing the modified hot loading.

[0054] Reference Figure 2 , Figure 2 This is the second schematic diagram of the IoT data model management system provided by this application. The data routing service module in the IoT data model management system provided by this application is connected to the external data collection service module; the IoT data model management system is connected to the external metadata relationship library; the IoT data model management system is connected to the external memory database; the IoT data model management system is connected to various external microservices. Figure 2 It can be seen that in addition to being connected to the data routing service module, various external microservices are also connected to the data model subscription service module and the data model push service module. Among them, the metadata relationship library and the memory database are independent of the IoT data model management system. Figure 2 It can be seen that the metadata configuration module is connected to the external metadata relationship library, and the data routing service module is connected to the external data collection service module through the external memory database.

[0055] Furthermore, microservices can be understood as a software development technology - a variant of the service-oriented architecture (SOA) architecture style. Microservices contain several independently deployed small services, each of which can complete the corresponding functions, and each small service uses a lightweight protocol to transmit data. At the same time, each small service is loosely coupled. It can be further understood that various types of microservices are various types of services that can complete various functions.

[0056] Furthermore, various types of microservices include but are not limited to industrial management microservices and station management microservices. In one embodiment, the industrial management microservice A includes a small service A1 and a small service A2, wherein the small service A1 is a real-time equipment status monitoring service, and the small service A2 is a real-time equipment status analysis service. Therefore, the real-time equipment status monitoring service A1 can complete the monitoring function of the real-time equipment status data, and the real-time equipment status analysis service A2 can complete the analysis function of the real-time equipment status data. It can be further understood that the industrial management microservice A can complete the monitoring function and the analysis function of the real-time equipment status data.

[0057] Furthermore, in another embodiment, the station management microservice B includes a small service B1 and a small service B2, wherein the small service B1 is a real-time equipment status warning service, and the small service B2 is a real-time equipment status evaluation service. Therefore, the real-time equipment status warning service B1 can complete the warning function of the real-time equipment status data, and the real-time equipment status evaluation service B2 can complete the evaluation function of the real-time equipment status data. It can be further understood that the station management microservice B can complete the warning function and the evaluation function of the real-time equipment status data.

[0058] Furthermore, after the data routing service module detects that the data collection service module is connected, it obtains the device status of each device in the data collection service module that is connected to the data routing service module. It can be further understood that the data routing service module obtains the real device status of each device in the data collection service module that is connected to the data routing service module.

[0059] Furthermore, after the data routing service module obtains the device status of each device in the data acquisition service module, it determines the memory address space of the device status of each device in the memory database. Then, the data routing service module writes the status data of each device status into the memory address space of each device status.

[0060] Furthermore, after the data routing service module writes the status data of each device status into the memory address space of each device status, it opens various access interfaces for accessing the real-time status data of the device to various microservices that have the need to obtain the real-time status data of the device. After various microservices that have the need to obtain the real-time status data of the device determine that the data routing service module opens various access interfaces, they obtain the real-time status data of the device in the data routing service module through various access interfaces according to the acquisition requirements.

[0061] The IoT data model management system provided in this embodiment loads metadata information of each type of device through a data routing service module, and generates a data address of each physical device in a memory database based on the device model object loaded by the user. Various microservices can directly search for the data address of each device through the data routing service module to achieve modified hot loading.

[0062] Reference Figure 3 , Figure 3 This is the third schematic diagram of the IoT data model management system provided by this application. The IoT data model management system provided by this application includes a metadata configuration module, a model data viewing module, and a model data subscription configuration module. Among them, the metadata configuration module is connected to the metadata processing service module, the model data viewing module is connected to the metadata processing service module and the data model subscription service module respectively, and the model data subscription configuration module is connected to the data model subscription service module.

[0063] Furthermore, the metadata configuration module provides an editing interface for device model data, provides an acquisition protocol option configuration interface, and supports configuration loading for commonly used IoT protocols, thereby eliminating the need to repeatedly develop common protocols. Therefore, users can trigger front-end data configuration through the metadata configuration module.

[0064] Furthermore, the metadata processing service module detects whether there is a front-end data configuration. If it is determined that there is a front-end data configuration, the metadata processing service module responds to the front-end data configuration triggered by the metadata configuration module, and generates metadata information based on the front-end data configuration and the user's input data in the metadata configuration module. At the same time, the metadata processing service module stores the generated metadata information in the associated metadata relationship library.

[0065] Furthermore, the model data viewing module can view various types of device model data that have been defined and deployed online, as well as modify, import and export various types of device model data.

[0066] Furthermore, the model data subscription configuration module can detect whether it has received subscription operations triggered by various microservices that require model data. If it is determined that subscription operations triggered by various microservices that require model data have been received, the model data subscription configuration module will respond to subscription operations triggered by various microservices that require model data.

[0067] Furthermore, the data model subscription service module detects whether the model data subscription configuration module responds to the subscription operation. If it is determined that the model data subscription configuration module responds to the subscription operation, the data model subscription service module generates a subscription mapping table for each type of device model data and opens a push interface to the data model push service module.

[0068] Furthermore, after the data model push service module determines that the data model subscription service module has opened a push interface, it receives each type of device model data pushed by the data model subscription service module through the push interface, and audits each type of device model data to obtain the audit results of each type of device model data, where the audit results include audit passed and audit failed. If it is determined that each type of device model data has passed the audit, the data model push service module will push each type of device model data to each type of microservice. If it is determined that each type of device model data has failed the audit, the data model push service module will return the error information to each type of microservice

[0069] The IoT data model management system provided in this embodiment provides visual configuration management of data models, and pushes each type of device model data to various microservices through a push interface. That is, in the visual management of data models, it supports configuration and modification management of metadata for each type of device. In configuration management, it supports pushing device metadata information to various microservices that have metadata subscription requirements.

[0070] Reference Figure 4 , Figure 4 : is a flowchart of the IoT data model management method provided by this application. The IoT data model management method provided by this application includes:

[0071] Step S10, determining each type of device model data received by the data model push service module through the push interface opened by the data model subscription service module;

[0072] Step S20, reviewing the model data of each type of equipment to obtain a review result;

[0073] Step S30: If the audit result is that the model data of each type of device has passed the audit, the model data of each type of device is pushed to each type of microservice.

[0074] After the data model push service module determines that the data model subscription service module has opened the push interface, it receives each type of device model data pushed by the data model subscription service module through the push interface. Next, the data model push service module reviews each type of device model data and obtains the review results of each type of device model data, which include passed and failed. If it is determined that each type of device model data has passed the review, the data model push service module pushes each type of device model data to each type of microservice. If it is determined that each type of device model data has failed the review, the data model push service module returns error information to each type of microservice.

[0075] The IoT data model management method provided in this embodiment provides visual configuration management of the data model, and pushes each type of device model data to various microservices through a push interface. That is, in the visual management of the data model, it supports configuration and modification management of the metadata of each type of device. In the configuration management, it supports pushing the metadata information of the device to various microservices that have metadata subscription requirements.

[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An IoT data model management system, It is characterized in that The IoT data model management system includes a metadata processing service module, a data model subscription service module, a data routing service module connected to the metadata processing service module, and a data model push service module connected to the data model subscription service module; The metadata processing service module is used to establish a binding relationship with the data acquisition service module to establish a mapping between each type of device status data and the device acquisition protocol; The data routing service module is used to load the metadata information in the metadata processing service module and generate a data address in the memory database according to the metadata information; The data model subscription service module is used to generate a subscription mapping table for each type of device model data and open a push interface to the data model push service module; The data model push service module is used to receive each type of device model data pushed by the data model subscription service module through the push interface; The data routing service module is further used to obtain the device status of each device connected to the data routing service module in the data collection service module; The data routing service module is also used to determine the memory address space of each of the device states in the memory database, and write the state data of each of the device states into the memory address space of each of the device states; The data routing service module is also used to open various access interfaces for accessing the real-time status data of the device, so that various external microservices can obtain the real-time status data of the device in the data routing service module through the various access interfaces; The IoT data model management system includes a model data subscription configuration module; The model data subscription configuration module is used to respond to subscription operations triggered by various microservices that require model data; The IoT data model management system includes a data model subscription service module; The data model subscription service module is used to detect whether the model data subscription configuration module responds to the subscription operation; If the subscription operation is responded to, a subscription mapping table for each type of device model data is generated, and a push interface is opened to the data model push service module.

2. The IoT data model management system according to claim 1, It is characterized in that The IoT data model management system includes a metadata configuration module; The metadata configuration module is used to provide an editing interface for device model data, provide an acquisition protocol option configuration interface, and support configuration mode loading for the Internet of Things protocol.

3. The IoT data model management system according to claim 2, It is characterized in that The IoT data model management system includes a metadata processing service module; The metadata processing service module is used to respond to the front-end data configuration triggered by the metadata configuration module, and generate metadata information according to the front-end data configuration and the input data of the metadata configuration module.

4. The IoT data model management system according to claim 1, It is characterized in that The IoT data model management system includes a model data viewing module; The model data viewing module is used to view various types of device model data that have been defined and deployed online, as well as to modify, import and export various types of device model data.

5. A method for managing an Internet of Things data model, applied to the Internet of Things data model management system according to any one of claims 1 to 4, It is characterized in that include: Determine each type of device model data received by the data model push service module through the push interface opened by the data model subscription service module; Reviewing the model data of each type of equipment to obtain review results; If the audit result is that the model data of each type of device has passed the audit, the model data of each type of device will be pushed to each type of microservice.