An Internet of Things modeling method, device, equipment and medium based on digital twinning

By using the digital twin IoT modeling method, basic, extended, and reusable class models are constructed, which solves the problem of data fragmentation between hardware systems, realizes multi-level digital integration and data linkage, and improves the data communication capabilities between systems.

CN116756996BActive Publication Date: 2026-11-24GUANGZHOU DEFENDER INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310908763.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-21
Publication Date
2026-11-24
Estimated Expiration
2043-07-21

AI Technical Summary

Technical Problem

Existing IoT modeling methods cannot effectively achieve digital integration between multiple hardware systems, resulting in data fragmentation and functional overload, failing to meet the actual implementation needs between systems.

Method used

The Internet of Things (IoT) modeling method based on digital twins is adopted. By acquiring public attribute data of hardware systems, a basic class model is constructed, data inheritance and mapping are performed, capability interfaces are defined, functional logic is analyzed, extended class models and reusable class models are constructed, and a consumption scenario model is constructed by combining business data to achieve multi-level digital twin modeling.

Benefits of technology

It improves the digital integration capabilities among multiple hardware system models, enhances the data linkage and communication capabilities between models and business scenarios, and achieves the goal of the Internet of Everything.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116756996B_ABST
    Figure CN116756996B_ABST
Patent Text Reader

Abstract

This application relates to an IoT modeling method, apparatus, device, and medium based on digital twins. The method includes acquiring common attribute data of each hardware system and constructing a basic class model corresponding to each hardware system. For each basic class model, data inheritance is performed on all common attribute data, and an extended class model is constructed that maps each common attribute data to its corresponding attribute definition. Capability interface definitions are defined on the extended class model, and the functional logic of each capability interface is analyzed. A reusable class model is then constructed that calls the data structures corresponding to the functional logic. By acquiring business data corresponding to each hardware system, the relevant data structures in the reusable class model are called to reuse business functional logic. A corresponding consumption scenario model is constructed based on the business functional logic. This application improves the data linkage between the model and business scenarios and enhances the digital integration capabilities between multiple systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of digital twin modeling, and in particular to a method, apparatus, device and medium for Internet of Things modeling based on digital twins. Background Technology

[0002] Currently, with the rapid development of IoT technology, various hardware devices are connected through IoT technology and controlled through a centralized control center, such as smart homes, which have provided great convenience for people's daily lives. Therefore, people's requirements for using IoT technology to digitally integrate multiple systems and hardware are also increasing.

[0003] Existing IoT modeling methods are typically based on a unified data processing center. This center integrates the control systems of multiple hardware devices for independent modeling, and sets the operating parameters of each hardware control system according to user needs. This allows the multiple hardware systems to operate in coordination with each other based on the preset parameters. However, the data of each integrated hardware control system remains independent due to data silos. Simply piling on functions cannot achieve digital integration between systems, resulting in a data disconnect between the hardware model and the actual implementation of business scenarios. Summary of the Invention

[0004] To improve the data linkage between models and business scenarios and enhance the digital integration capabilities among multiple systems, this application provides an IoT modeling method, device, equipment, and medium based on digital twins.

[0005] The above-mentioned objective of this application is achieved through the following technical solution: A digital twin-based IoT modeling method includes: Obtain common attribute data for each hardware system, and construct a basic class model corresponding to each hardware system based on the common attribute data; For each of the basic class models, data inheritance is performed on all common attribute data. Based on the data inheritance results, an extended class model is constructed that maps each of the common attribute data to its corresponding attribute definition. The extended class model is processed to define capability interfaces, and the functional logic corresponding to each capability interface is analyzed. Based on the functional logic analysis results, a reusable class model is constructed to call the data structure corresponding to the functional logic. Obtain business data corresponding to each hardware system, call the relevant data structure in the reuse class model to reuse business function logic based on the business data, and construct the corresponding consumption scenario model based on the business function logic.

[0006] By adopting the above technical solution, the entire digital twin modeling method is divided into multiple levels, including basic class models, extended class models, reusable class models, and scenario class models. This facilitates orderly and hierarchical digital twin modeling. By abstracting the common attributes of IoT objects, the common attributes in the hardware system are extracted and redefined, and corresponding basic class models are constructed. Each hardware system is digitized using the basic class model. Combining the table inheritance characteristics of relational databases, all common attribute data in the basic class model are inherited and mapped with the corresponding attribute definitions to obtain the extended class model. Based on the data mapping relationship, the basic class model and the extended class model are solidified, improving the stability between attribute extension and data mapping. Furthermore, by defining the functions of each capability interface... This application achieves the goal of functional attribute capability expansion through logical redefinition, enabling repeated calls to the data structure of each function. This reduces the impact of differences in consumption levels on changes in the underlying data logic. Combined with the corresponding consumption business, it calls the relevant data structure in the reuse class model to reuse the business function logic. Based on the business function logic corresponding to the reused consumption business, it calls the corresponding function's data structure to construct a consumption scenario model, improving the data linkage between the model and the business scenario. Through data reuse of data structures in different consumption scenarios, it achieves the goal of the Internet of Things. This application realizes the digital twin and data expansion of IoT objects through multi-level modeling, realizes the capability expansion of common functions of multiple attributes and the Internet of Things on the digital twin model, thereby improving the digital integration capability between multiple hardware system models.

[0007] In a preferred embodiment, this application can be further configured as follows: obtaining business data corresponding to each hardware system, reusing business function logic by calling relevant data structures in the reuse class model based on the business data, and constructing a corresponding consumption scenario model based on the business function logic, specifically includes: Acquire business data for each hardware system, perform data orchestration on the business data, and generate a business instance corresponding to each hardware system; The business instance calls the data structure of the relevant business in the reuse class model, and reconnects the associated IoT objects according to the data structure to obtain the reconnected IoT object relationship; Based on the IoT object relationships, the basic class model data corresponding to each IoT object is mapped to the corresponding extended class model to obtain the business capability interface corresponding to the business instance. For each of the business capability interfaces, the business function logic is redefined, and a consumption scenario model related to the business capability is constructed based on the redefined business function logic.

[0008] By adopting the above technical solution, during the construction of consumption scenarios, the business data that may exist in each hardware system is orchestrated. Based on the orchestration results, corresponding business instances are obtained, which helps to quickly guide the construction of business consumption scenarios based on business instances. By calling the relevant business data structures in the reuse class model, the association relationships of IoT objects in the business data structures are reconnected, making the IoT object relationships compatible with the current business data structure. Combined with the redefined IoT object relationships, the basic class model data is mapped to the corresponding extended class model, and the business capability interfaces corresponding to the business instances are constructed. This facilitates the rapid data call based on the business capability interfaces and redefines the business functional logic related to each business capability interface, thereby constructing a consumption scenario model related to business capabilities. The consumption scenario model realizes the digital model presentation of the current consumption business. Based on the dimension of consumption scenarios, digital twins are created between multiple IoT systems, further improving the correlation between the digital twin model and the actual consumption business scenario.

[0009] In a preferred embodiment, this application can be further configured as follows: the step of redefining the business function logic related to each business capability interface and constructing a consumption scenario model related to the business capability based on the redefined business function logic further includes: Obtain the running status data of the IoT objects associated in each of the aforementioned consumption scenario models; Based on the operational status data, the data flow relationship of each IoT object in the corresponding consumption scenario is redefined to obtain the consumption data flow relationship of the current consumption scenario; Based on the consumption data flow relationship, the data flow direction in the current consumption scenario is marked to obtain the object association relationship between IoT objects corresponding to the current consumption scenario; The business function logic is associated with the object through a control object association, and the control flow relationship of each IoT object in the current consumption scenario is constructed. Based on the control flow relationship, a configuration model of all IoT objects is built.

[0010] By adopting the above technical solution, the operational status data of each associated IoT object is acquired in each consumption scenario, and the data consumption status of each IoT object in the consumption scenario is monitored in real time. The operational data flow of each IoT object is redefined based on the current operational status, so that the consumption data flow relationship of each IoT object corresponds to the current consumption scenario, thereby improving the correlation between the consumption scenario and the IoT object data flow. Furthermore, by marking the flow direction of the data flow in the current consumption scenario, the object association relationship between IoT objects is constructed based on the marked data flow direction. Combined with the corresponding business function logic, the control flow relationship of each IoT object in the current consumption scenario is constructed, thereby building a configuration model of all IoT objects in the current consumption scenario. This helps to improve the data correlation between the IoT object configuration and the business consumption scenario, and enhance the data communication capability between the digital twin object of the IoT object and the business consumption scenario.

[0011] In a preferred embodiment, this application can be further configured as follows: the step of controlling object association between the business function logic and the object association relationship, constructing the control flow relationship for each IoT object in the current consumption scenario, and building a configuration model for all IoT objects based on the control flow relationship, further includes: Obtain the consumption business data of the current consumption scenario, and input the consumption business data into the configuration model to predict the current operating configuration of each IoT object; Based on the current operating configuration, define the current business capabilities of each IoT object and perform business capability extension processing on the current business capabilities in conjunction with the extended class model; Based on the results of business capability expansion, the associated business capability interfaces in the extended class model are invoked to perform joint interface calls, thereby constructing the joint structure of the extended interfaces for the current consumption scenario; Based on the extended interface joint structure, joint empowerment processing is performed on all associated IoT objects to obtain the empowerment control data of each associated object in the current consumption scenario.

[0012] By adopting the above technical solution, based on the consumption business data included in the current consumption scenario, and combining the configuration model to predict the current operating configuration of each IoT object, it is helpful to define the current business capabilities of each IoT object in the current consumption scenario according to the current operating configuration. By combining the extended class model to extend the current business capabilities, the interconnectivity of the capabilities of all IoT objects in the current consumption scenario is improved. Furthermore, by calling the related business capability interfaces in the extended class model to perform joint interface calls, an extended interface joint structure that conforms to the current consumption scenario is constructed. This helps to expand the data consumption scope of the current consumption scenario, improve the simulation comprehensiveness of the digital twin model, and jointly empower all IoT objects in the extended interface joint structure, thereby achieving the goal of comprehensive digital twinning of the physical IoT objects.

[0013] In a preferred embodiment, this application can be further configured such that: the step of obtaining common attribute data for each hardware system and constructing a basic class model corresponding to each hardware system based on the common attribute data further includes: Obtain device operation data for each IoT object associated with each hardware system; Perform operational logic analysis on the device's operational data, and generate operational capability logic for the current operational capabilities of the hardware system based on the analysis results; Obtain the object tag of each IoT object, associate the object tag with the operation capability logic, and generate capability call instructions between each operation capability logic and the corresponding IoT object; Based on the tag association relationship between the capability invocation instruction and the corresponding IoT object, a capability invocation model is constructed that links IoT objects with their corresponding operational capabilities.

[0014] By adopting the above technical solution, acquiring the device operation data of each IoT object associated with the hardware system helps to monitor the operation status of multiple IoT devices constituting the hardware system in real time, analyze the operation logic of the corresponding IoT objects, and generate the operation capability logic of the current operation capability of the hardware system based on the operation logic analysis results. This facilitates logical control of the operation status of the current operation capability. Combining the object tags of each IoT object, a capability call instruction is constructed to logically associate the corresponding IoT object with the corresponding operation capability logic. This facilitates the rapid invocation of the operation capability logic of the IoT object based on the capability call instruction. Furthermore, by combining the tag association relationship between the capability call instruction and the IoT object, a capability call model is constructed between the IoT object and the operation capability. This facilitates the rapid invocation of the object attribute of the operation capability based on the capability call model and the object tags of the IoT object, improving the data retrieval convenience of the IoT object attribute corresponding to each operation capability.

[0015] In a preferred embodiment, this application can be further configured as follows: the step of obtaining the object tag of each IoT object, associating the object tag with the operational capability logic, and generating a capability invocation instruction between each operational capability logic and the corresponding IoT object, further includes: Based on the capability invocation instruction, the discrete relationships between each IoT object are redefined to obtain the discrete association relationships between the relevant IoT objects of the operational capability; Obtain the target IoT object and system running space corresponding to each hardware system, and associate the target IoT object with the system running space according to the discrete association relationship to generate an object space association relationship; Based on the spatial association relationship of the objects, analyze the degree of spatial association of each system operating space, and redefine the spatial association relationship between the system operating spaces based on the spatial association analysis results; The hardware systems associated with the spatial relationship are associated with basic class models, and model association relationships are generated for model definition between each basic class model.

[0016] By adopting the above technical solution, the discrete relationships between associated IoT objects of operational capabilities are redefined according to the capability call instructions. This facilitates the rapid association of related IoT objects based on discrete relationships. Furthermore, by combining the target IoT objects and system operating spaces of each hardware system with the discrete relationships of the target IoT objects, spatial association is established between the target IoT objects and the system operating spaces, improving the correlation between the operating spaces and target IoT objects. Additionally, by analyzing the application of common attributes of operational capabilities, the spatial correlation degree of each system operating space is analyzed. Based on the correlation degree analysis results, the spatial correlation relationships of the system operating spaces are redefined, improving the spatial correlation of multiple system operating spaces within the same consumption scenario. Finally, by combining the basic class models of each IoT object in the hardware system for model association, multi-faceted association of basic class attributes is achieved based on model association relationships, improving the simulation comprehensiveness of each IoT object in the digital twin model.

[0017] In a preferred embodiment, this application can be further configured as follows: performing data inheritance processing on all public attribute data of each of the basic class models, and constructing an extended class model that maps the attribute data to the corresponding attribute definitions based on the data inheritance results, further includes: Based on the data mapping relationship in the extended class model, redefine the extension logic of each extended attribute in the extended class model; Based on the expansion logic, the expansion presentation method of the corresponding expansion attribute is planned, and the data consumption logic between each expansion attribute and the corresponding IoT object is constructed based on the expansion planning result; Based on the data consumption logic, analyze all consumption services associated with each IoT object to obtain the total consumption service data after the expansion of each IoT object; Based on the total consumption data, the consumption call instruction for each IoT object is encapsulated, and combined with the attribute definition mapping relationship of the extended class model, the object consumption instruction of the extended class model is generated.

[0018] By adopting the above technical solution and combining the data mapping relationship in the extended class model, the extension logic of each extended attribute is redefined, making the calling logic of the redefined extended attribute closer to the actual calling capability of the IoT object. Based on the redefined extension logic, the extended presentation method of the extended attribute is planned, and the data consumption logic between each extended logic and the corresponding IoT object is constructed. This expands the data consumption scope between the extended attribute and the basic class attribute. All consumption businesses associated with each IoT object are analyzed, and the analysis results are summarized to generate the total data of the expanded consumption business, expanding the digital twin scope of the consumption business of each IoT object. The consumption calling instructions of each IoT object are encapsulated, and combined with the mapping relationship between the attributes and attribute definitions in the extended class model, object consumption instructions of the extended class model are generated. This facilitates the rapid calling of attribute data corresponding to the expanded consumption business, improving the convenience of data consumption calling of IoT objects.

[0019] The second objective of this invention is achieved through the following technical solution: A digital twin-based Internet of Things (IoT) modeling device, comprising: The basic class model construction module is used to obtain the common attribute data of each hardware system and construct the basic class model corresponding to each hardware system based on the common attribute data. The extended class model construction module is used to perform data inheritance processing on all public attribute data of each of the basic class models, and construct an extended class model that maps the attribute data to the corresponding attribute definitions based on the data inheritance results. The reusable class model construction module is used to define the capability interfaces of the extended class model, analyze the functional logic corresponding to each capability interface, and construct a reusable class model that calls the corresponding function based on the logic analysis results. The scenario model construction module is used to obtain business data corresponding to each hardware system, call the relevant data structure in the reuse class model to reuse business function logic based on the business data, and construct the corresponding consumption scenario model based on the business function logic.

[0020] By adopting the above technical solution, the entire digital twin modeling method is divided into multiple levels, including basic class models, extended class models, reusable class models, and scenario class models. This facilitates orderly and hierarchical digital twin modeling. By abstracting the common attributes of IoT objects, the common attributes in the hardware system are extracted and redefined, and corresponding basic class models are constructed. Each hardware system is digitized using the basic class model. Combining the table inheritance characteristics of relational databases, all common attribute data in the basic class model are inherited and mapped with the corresponding attribute definitions to obtain the extended class model. Based on the data mapping relationship, the basic class model and the extended class model are solidified, improving the stability between attribute extension and data mapping. Furthermore, by defining the functions of each capability interface... This application achieves the goal of functional attribute capability expansion through logical redefinition, enabling repeated calls to the data structure of each function. This reduces the impact of differences in consumption levels on changes in the underlying data logic. Combined with the corresponding consumption business, it calls the relevant data structure in the reuse class model to reuse the business function logic. Based on the business function logic corresponding to the reused consumption business, it calls the corresponding function's data structure to construct a consumption scenario model, improving the data linkage between the model and the business scenario. Through data reuse of data structures in different consumption scenarios, it achieves the goal of the Internet of Things. This application realizes the digital twin and data expansion of IoT objects through multi-level modeling, realizes the capability expansion of common functions of multiple attributes and the Internet of Things on the digital twin model, thereby improving the digital integration capability between multiple hardware system models.

[0021] The above-mentioned objective three of this application is achieved through the following technical solution: A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described Internet of Things (IoT) modeling method based on digital twins.

[0022] The fourth objective of this application is achieved through the following technical solution: A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described Internet of Things (IoT) modeling method based on digital twins.

[0023] In summary, this application includes at least one of the following beneficial technical effects: 1. The entire digital twin modeling method is divided into multiple levels, including basic class models, extended class models, reusable class models, and scenario class models. This facilitates orderly and hierarchical digital twin modeling. By abstracting the common attributes of IoT objects, common attributes in the hardware system are extracted and redefined, and corresponding basic class models are constructed. Each hardware system is digitized using the basic class model. Combining the table inheritance characteristics of relational databases, all common attribute data in the basic class model are inherited and mapped with the corresponding attribute definitions to obtain the extended class model. Based on the data mapping relationship, the basic class model and the extended class model are solidified, improving the stability between attribute extension and data mapping. Furthermore, the functional logic of each capability interface is redefined. This application defines the capability extension of functional attributes, realizes the repeated calling of data structures for each function, reduces the impact of differences in consumption levels on changes in the underlying data logic, and combines the corresponding consumption business to call the relevant data structures in the reuse class model to reuse the business function logic. Based on the business function logic corresponding to the consumption business obtained after reuse, the corresponding function's data structure is called to construct the consumption scenario model, improve the data linkage between the model and the business scenario, and achieve the goal of Internet of Things through data reuse of data structures in different consumption scenarios. This application realizes the digital twin and data extension of IoT objects through multi-level modeling, realizes the capability extension of common functions of multiple attributes and the Internet of Things on the digital twin model, and thus improves the digital integration capability between multiple hardware system models. 2. During the construction of consumption scenarios, data orchestration is performed on the business data that may exist in each hardware system. Based on the orchestration results, corresponding business instances are obtained, which helps to quickly guide the construction of business consumption scenarios based on business instances. By calling the relevant business data structures in the reuse class model, the relationships between IoT objects in the business data structures are redefined, making the relationships between IoT objects compatible with the current business data structure. Based on the redefined IoT object relationships, the basic class model data is mapped to the corresponding extended class model, and the business capability interfaces corresponding to the business instances are constructed. This helps to quickly call data based on the business capability interfaces and redefine the business function logic related to each business capability interface, thereby constructing a consumption scenario model related to business capabilities. The consumption scenario model realizes the digital model presentation of the current consumption business. Based on the dimension of consumption scenarios, digital twins are created between multiple IoT systems, further improving the correlation between the digital twin model and the actual consumption business scenario. 3. Acquire the operational status data of each associated IoT object in each consumption scenario, monitor the data consumption status of each IoT object in the consumption scenario in real time, redefine the operational data flow of each IoT object based on the current operational status, so that the consumption data flow relationship of each IoT object corresponds to the current consumption scenario, improve the correlation between the consumption scenario and the IoT object data flow, and build object association relationships between IoT objects based on the marked data flow direction by marking the data flow direction. Combined with the corresponding business function logic, construct the control flow relationship of each IoT object in the current consumption scenario, and then build a configuration model of all IoT objects in the current consumption scenario. This helps to improve the data correlation between IoT object configuration and business consumption scenario, and improve the data communication capability between the digital twin object of IoT objects and business consumption scenario. Attached Figure Description

[0024] Figure 1 This is a flowchart illustrating the implementation of an IoT modeling method based on digital twins.

[0025] Figure 2 This is a flowchart illustrating the implementation of a capability invocation model based on a digital twin-based IoT modeling method.

[0026] Figure 3 This is a flowchart illustrating the implementation of a model association definition method for IoT modeling based on digital twins.

[0027] Figure 4 This is a flowchart illustrating the implementation of instruction encapsulation using a digital twin-based IoT modeling method.

[0028] Figure 5 This is a flowchart illustrating the implementation steps S40 of an IoT modeling method based on digital twins.

[0029] Figure 6 This is a flowchart illustrating the implementation of a configuration model construction method for IoT based on digital twins.

[0030] Figure 7 This is a flowchart illustrating the implementation of an IoT modeling method based on digital twins to empower objects.

[0031] Figure 8 This is a structural block diagram of an Internet of Things (IoT) modeling device based on digital twins.

[0032] Figure 9 This is a schematic diagram of the internal structure of a computer device used to implement an Internet of Things (IoT) modeling method based on digital twins. Detailed Implementation

[0033] The present application will be further described in detail below with reference to the accompanying drawings.

[0034] In one embodiment, such as Figure 1 As shown, this application discloses an IoT modeling method based on digital twins, which specifically includes the following steps: S10: Obtain common attribute data for each hardware system and construct a basic class model corresponding to each hardware system based on the common attribute data.

[0035] Specifically, based on the basic functions of each hardware system, such as a ventilation system, lighting system, or display system, the common attributes of each hardware system are obtained, including number, device name, hardware type, etc. The common attributes of each hardware system are extracted and redefined on the digital twin model. Combined with the unique device name of each hardware system, all the common attributes of the corresponding device are associated in a one-to-many manner, thereby obtaining the basic class model of each hardware system.

[0036] In one embodiment, such as Figure 2 As shown, step S10 further includes: S101: Obtain device operation data for each IoT object associated with a hardware system.

[0037] Specifically, based on the operating status of each hardware system, such as whether the air conditioning system is ventilating or cooling, the operating status of related IoT objects, such as the outdoor unit of the air conditioner and multiple IoT devices corresponding to the cooling system, the operating status of each IoT object, such as the device startup status, device operating power, and operating time, can be used. The hardware system also includes the cold source system, lighting system, and ventilation system, etc., which can be set according to actual needs and are not limited to the hardware systems mentioned in this embodiment.

[0038] S102: Perform operational logic analysis on the equipment operation data, and generate operational capability logic for each operational capability based on the analysis results.

[0039] Specifically, by combining equipment operation data, the operating logic of each IoT object in the hardware system is analyzed, such as what each IoT object needs to do in the current operating state, to whom it does it, what parameters it needs, and what results it returns. Under the current operating logic of each IoT object in the hardware system, the corresponding operating capability requirements can be met. The operating logic of related IoT objects is classified by operating capability as a label, thereby obtaining the operating capability logic of each operating capability.

[0040] S103: Obtain the object tag of each IoT object, associate the object tag with the operational capability logic, and generate capability call instructions between each operational capability logic and the corresponding IoT object.

[0041] Specifically, each IoT object uses a unique identifier, such as its name or unique code, as its object tag. An association link is established between the object tag and the operational capabilities that the IoT object can achieve. The association link between the object tag and each operational capability logic is encapsulated into a capability call instruction for the corresponding operational capability, which facilitates the rapid invocation of the relevant operational capabilities of the IoT object.

[0042] In one embodiment, such as Figure 3 As shown, step S103 further includes: S1031: Based on the capability call instruction, redefine the discrete relationships between each IoT object to obtain the discrete association relationships between each IoT object.

[0043] Specifically, the discrete relationships between each IoT object are redefined based on the capability call instructions combined with a graph database. For example, multiple IoT objects that perform the same function and cooperate with each other in each capability call instruction are linked together, and unrelated IoT objects with different functions are linked together. This results in discrete relationships corresponding to each capability call instruction and belonging to the IoT object dimension.

[0044] S1032: Obtain the target IoT object and system running space corresponding to each hardware system, and associate the target IoT object with the system running space according to the discrete association relationship to generate object space association relationship.

[0045] Specifically, when each function of the hardware system is working, the target IoT object and the system operating space of the corresponding function are obtained. The target IoT object is the hardware device that supports the corresponding function. The system operating space includes the application scenario of the corresponding function, such as a conference room, a basement, or the overall operating space of a certain floor of a building. Combining the discrete association relationship between IoT objects, all target IoT objects in the system operating space are associated with the system operating space to obtain the object-space association relationship in the object and space dimensions.

[0046] S1033: Based on the spatial association relationship of objects, analyze the degree of spatial association of each system's operating space, and redefine the spatial association relationship between system operating spaces based on the spatial association analysis results.

[0047] Specifically, based on the spatial relationship between objects and spaces, the spatial correlation degree of each system operating space is analyzed, such as the intersection area of ​​system operating spaces or shared IoT devices. For example, the system operating space of ventilation equipment affects the system operating space of refrigeration equipment; for instance, the better the ventilation performance, the worse the cooling effect. This yields the spatial correlation degree of each system operating space. A larger intersection area or more shared IoT devices indicate a higher spatial correlation degree, while a smaller intersection area, greater distance between system operating spaces, or fewer shared IoT devices indicate a lower spatial correlation degree. Based on the spatial correlation analysis results, the spatial relationship between system operating spaces is redefined, such as reconstructing the links between different system operating spaces.

[0048] S1034: Associate the hardware systems related to spatial relationships with basic class models, and generate model association relationships for model definition between each basic class model.

[0049] Specifically, based on spatial relationships, hardware systems with shared IoT objects are extracted into shared IoT objects, and a basic class model for each shared IoT object is obtained. Based on the common attribute data of the shared IoT objects, the basic class models of multiple shared IoT objects are associated, thereby obtaining a basic attribute abstraction based on the shared functions of the same shared system operating space. The model association relationship between the basic class models is redefined, so that the digital twin model of each IoT object can achieve the effect of full-scale simulation with the physical object.

[0050] S104: Based on the tag association relationship between the capability call instruction and the corresponding IoT object, construct a capability call model that links IoT objects with their corresponding operational capabilities.

[0051] Specifically, based on the association between the encapsulated capability call instructions and the corresponding IoT object tags, such as the one-to-many association between an object tag and multiple capability call instructions, a capability call model is constructed between the IoT object and its corresponding multiple operational capabilities based on each one-to-many tag association. Through the capability call model, the multiple operational capabilities implemented by each IoT object are analyzed and the corresponding operational logic is encapsulated, thereby realizing a digital twin of the operational capabilities of the IoT object.

[0052] S20: Perform data inheritance processing on all common attribute data of each base class model, and construct an extended class model that maps each common attribute data to its corresponding attribute definition based on the data inheritance results.

[0053] Specifically, by leveraging the table inheritance feature of relational databases, all common attribute data in the base class model are inherited separately. Each attribute data is redefined based on the table inheritance result, and data mapping is performed between the attribute data and the corresponding attribute definition to establish data mapping links. Based on the data mapping link relationships, corresponding extended class models are constructed. The attribute capabilities of each attribute data in the base class model are extended through the extended class models, and the table inheritance feature of the base class model is combined to solidify the two-level model of the base class model and the extended class model.

[0054] In one embodiment, such as Figure 4 As shown, step S20 further includes: S201: Based on the data mapping relationships in the extended class model, redefine the extension logic for each extended attribute in the extended class model.

[0055] Specifically, based on the data mapping relationship between the attribute definitions in the extended class model and the corresponding object data, the association relationship between each attribute data and the corresponding extended attribute is constructed. In the extended class model, the extended logic of each extended attribute is redefined, such as modifying the link object, extended port and extended parameters corresponding to the extended logic. Then, the corresponding logical node can be controlled to run according to the modified extended logic.

[0056] S202: Based on the extension logic, plan the extension presentation method of the corresponding extension attributes, and construct the data consumption logic between each extension attribute and the corresponding IoT object based on the extension planning results.

[0057] Specifically, based on the extension logic planning, the extension presentation method of the corresponding extension attributes is planned. For example, the common attributes and extension attributes of IoT objects are graphically displayed using a graph database. Based on the extension planning results of each extension attribute, the data consumption logic between each extension attribute and the corresponding IoT object is constructed. When the IoT object consumes business data, the current extension attribute call status of the IoT object is obtained, and then the degree of data association between each extension attribute and the current business data consumption is determined. This allows for the analysis of the possible data consumption of each extension attribute on the current IoT object, and the call logic between each possible data consumption and the extension attribute is constructed to obtain the data consumption logic of each extension attribute.

[0058] S203: Based on the data consumption logic, analyze all consumption services associated with each IoT object to obtain the total consumption service data after the expansion of each IoT object.

[0059] Specifically, based on the data consumption logic analysis, the consumption business corresponding to the extended attributes of each IoT object is obtained. Then, based on the extended attributes of the IoT object, all possible consumption businesses of each IoT object are obtained. The basic attributes and extended attributes of each consumption object are summarized to obtain the total extended consumption business data.

[0060] S204: Based on the total consumption business data, encapsulate the consumption call instruction for each IoT object, and combine it with the attribute definition mapping relationship of the extended class model to generate the object consumption instruction of the extended class model.

[0061] Specifically, based on the total consumer business data, the consumer call instructions for each IoT object are encapsulated. For example, the common attributes, extended attributes, and corresponding functional application logic of each IoT object corresponding to each consumer business are encapsulated into the same instruction according to the relationship between the attributes, generating a data call link for each consumer business. Combined with the attribute definition mapping relationship of the extended class model, a corresponding data mapping link is established between the attribute definition and the IoT object data. Then, the protocol, instruction body, result processing logic, and event processing logic corresponding to the consumer business are associated and encapsulated through the data mapping link, thereby generating object consumption instructions for the extended class model. The data and attribute definitions of the IoT object are mapped to the consumer business for data consumption through the object consumption instructions.

[0062] S30: Define capability interfaces for the extended class model, analyze the functional logic corresponding to each capability interface, and construct a reusable class model based on the analysis results of the functional logic to call the data structure corresponding to the functional logic.

[0063] Specifically, based on the business capabilities of each extended attribute, capability interfaces are defined for the extended class model. This includes redefining the relevant data-driven and business consumption protocols for extended attributes based on the object tags of the business capabilities and extended attributes, so that each extended attribute has a corresponding capability interface. The calling protocol between the capability interface and the extended attribute is also defined. For example, when defining the capability interface for the extended attribute of a meeting room, the corresponding attribute parameters are selected graphically according to different consumption scenarios, such as meeting mode, discussion mode, presentation mode, and meeting end mode. Each meeting mode scenario has corresponding functional logic parameters. The functional parameters of each capability interface are modified based on the results of logical analysis, and then the data structure of the corresponding function is built. Based on the data structure of each function, a reusable class model for each functional capability is constructed.

[0064] S40: Obtain the business data corresponding to each hardware system, call the relevant data structure in the reuse class model to reuse the business function logic based on the business data, and build the corresponding consumption scenario model based on the business function logic.

[0065] Specifically, such as Figure 5 As shown, step S40 specifically includes the following steps: S401: Obtain business data for each hardware system, orchestrate the business data, and generate a business instance corresponding to each hardware system.

[0066] Specifically, the system acquires business data for each hardware system, such as whether the cooling system is providing cooling and the degree of cooling, the drainage system includes drainage or water supply and water volume control, and the ventilation system includes whether ventilation is provided, air volume control and input / output control. The system then uses a pre-defined code development module to run scripts on the business data and outputs the results as business instances.

[0067] S402: Based on the business instance, call the relevant business data structure in the reusable class model, and reconnect the associated IoT objects according to the business data structure to obtain the reconnected IoT object relationship.

[0068] Specifically, data matching is performed based on the business instance and the business data structure in the reusable class model. The relevant business data structure is then called, and the data parameters in the business instance are modified into the relevant business data structure. Based on the business instance parameters, the corresponding IoT object is called to reconnect the relationship. This allows the IoT object to be collaboratively defined according to the business instance parameters, thereby obtaining the redefined relationship related to the business instance and used to call the corresponding IoT object.

[0069] S403: Based on the relationships between IoT objects, map the basic class model data corresponding to each IoT object to the corresponding extended class model to obtain the business capability interface corresponding to the business instance.

[0070] Specifically, based on the defined IoT object relationships and the table inheritance relationship between the base class model and the extended class model, the base class model data of each associated IoT object is mapped to the corresponding extended class model. This allows the extended class model to reconnect business capability interfaces according to the IoT object relationships of the business instances, thereby obtaining the business capability interfaces of the business instances. These interfaces are then used to directly call the IoT object data in the extended class model.

[0071] S404: Redefine the business function logic related to each business capability interface, and construct a consumption scenario model related to the business capability based on the redefined business function logic.

[0072] Specifically, by combining the consumption data of business instances, such as cooling capacity, water supply and drainage capacity, or ventilation capacity, the business function logic of the business capability interface is redefined according to the data consumption parameters of the business instances. For example, based on the preset cooling effect of the business instance, the cooling power is increased and the ventilation power is reduced simultaneously to make the corresponding indoor temperature drop rapidly, thereby obtaining the business function logic corresponding to the data consumption effect of the business instance. In addition, by combining the consumption scenario of each business data, such as floor, meeting room, storage room, or basement, a consumption scenario model related to the business capability is constructed.

[0073] In one embodiment, such as Figure 6 As shown, step S404 further includes: S4041: Obtain the running status data of the IoT objects associated with each consumer scenario model.

[0074] Specifically, based on the IoT objects running in each consumption scenario, the IoT objects that need to be called are analyzed according to the presentation effect of the consumption scenario. Furthermore, based on the startup status, running power, and running effect of the IoT objects, the running parameters and running results required for each IoT object to achieve the presentation effect of the corresponding consumption scenario are analyzed, thereby obtaining the running status data of the IoT objects in each consumption scenario.

[0075] S4042: Based on the running status data, redefine the data flow relationship of each IoT object in the corresponding consumption scenario to obtain the consumption data flow relationship of the current consumption scenario.

[0076] Specifically, based on the operational status data, the data flow relationship of each IoT object in the current operational state is redefined. For example, based on the water supply and drainage operational status, the water flow rate in the water supply state is defined as the drainage state, so that the data flow direction of the water supply and drainage system changes from the water supply direction to the drainage direction. This yields the consumption data flow relationship of the current consumption scenario, including the IoT object corresponding to the data acquisition end, which is used to obtain the parameters needed for data consumption; and the IoT object corresponding to the data output end, which is used to return the data consumption results.

[0077] S4043: Based on the consumption data flow relationship, mark the flow direction of data in the current consumption scenario to obtain the object association relationship between IoT objects corresponding to the current consumption scenario.

[0078] Specifically, based on the relationship of consumption data flow, the data flow direction in the current consumption scenario is marked. For example, according to the needs of the current consumption scenario, the data flow sequence from the parameter acquisition end, parameter processing end and result return end is marked. Thus, the IoT object data flow direction relationship is constructed based on the complete data flow direction of each consumption scenario. The data flow direction relationship of all IoT objects in the current consumption scenario is integrated to obtain the object association relationship of the corresponding IoT objects in the current consumption scenario.

[0079] S4044: Control object association between business function logic and object association, construct the control flow relationship of each IoT object in the current consumption scenario, and build a configuration model of all IoT objects based on the control flow relationship.

[0080] Specifically, by combining business function logic and the object associations related to business functions, all IoT objects of the current business function are associated, and the control logic parameters of the functional logic that implements the current business function and all IoT objects related to the business are modified to form a control flow between the business function logic and the corresponding IoT objects. All control flows under the current consumption scenario are associated with the data of the actual consumption effect of the consumption scenario, such as the actual cooling effect of refrigeration equipment, the actual ventilation effect of ventilation equipment, and the actual lighting effect of lighting equipment. All control flow data are associated with the same consumption scenario to obtain the corresponding control flow relationship, such as the control flow corresponding to the space cooling load for temperature regulation by cold source equipment. Based on the control flow relationship, each IoT object and its corresponding control logic are fully defined to build a configuration model of the current consumption scenario for real-time control of IoT objects.

[0081] In one embodiment, such as Figure 7 As shown, step S4044 further includes: S501: Obtain the consumption business data of the current consumption scenario, and input the consumption business data into the configuration model to predict the current operating configuration of each IoT object.

[0082] Specifically, based on the current consumption scenario, such as a cold source call scenario, the cold source load in the current consumption space is obtained. Based on the operation of the cold source load, the corresponding consumption business data is obtained, including the cold source operation rate, indoor and outdoor air exchange rate, and temperature adjustment status. The corresponding consumption business data is input into the configuration model, and the configuration model is used to predict the operation configuration of the current consumption business data, including the configuration or operation parameter settings of each IoT object.

[0083] S502: Based on the current operating configuration, define the current business capabilities of each IoT object and perform business capability extension processing on the current business capabilities in conjunction with the extended class model.

[0084] Specifically, the current business capabilities of each IoT object are defined based on the current operating configuration, such as the ventilation capacity of ventilation equipment, the cooling capacity of refrigeration equipment, or the indoor-outdoor air exchange capacity of fans. Combined with the current extended class model, such as the impact of ventilation capacity on cooling capacity or the impact of air exchange rate on indoor cooling capacity, the business capabilities of each IoT object in the current consumption scenario are extended, such as the impact of the current IoT object on the operating effect of other IoT objects in the same consumption scenario in addition to its own operating functions.

[0085] S503: Based on the business capability extension results, call the associated business capability interfaces in the extension class model to perform joint interface calls and construct the joint structure of the extension interfaces for the current consumption scenario.

[0086] Specifically, based on the business capability extension results, the business capability interface of each associated extended attribute is called in the extended class model, and the interface parameters of each business capability interface are set according to the current consumption scenario. The interfaces are then jointly called based on the association relationship of each IoT object in the current consumption scenario, thereby constructing the corresponding extended interface joint structure according to the joint situation between the interfaces.

[0087] S504: Based on the extended interface joint structure, perform joint empowerment processing on all related IoT objects to obtain the empowerment control data of each related object in the current consumption scenario.

[0088] Specifically, based on the extended interface joint structure, all related IoT objects are jointly empowered. According to the data mapping relationship between IoT object data and attribute definitions, the corresponding IoT object data is mapped to the current extended interface joint structure. Data empowerment processing is performed on all IoT objects in the interface joint structure. After data empowerment of all IoT objects in the extended interface joint structure, the empowerment control data of each related object is obtained according to the consumption scenario presentation effect of the extended interface joint structure.

[0089] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0090] In one embodiment, a digital twin-based Internet of Things (IoT) modeling device is provided, which corresponds one-to-one with the digital twin-based IoT modeling method described in the above embodiments. For example... Figure 8 As shown, this IoT modeling device based on digital twins includes a basic model building module, an extended model building module, a reusable model building module, and a scene model building module. Detailed descriptions of each functional module are as follows: The basic class model building module is used to obtain the common attribute data of each hardware system and build the basic class model corresponding to each hardware system based on the common attribute data.

[0091] The extended class model building module is used to perform data inheritance processing on all common attribute data of each base class model, and construct an extended class model that maps each common attribute data to its corresponding attribute definition based on the data inheritance results.

[0092] The reusable class model building module is used to define the capability interfaces of the extended class model, analyze the functional logic corresponding to each capability interface, and build a reusable class model of the data structure corresponding to the calling functional logic based on the results of the logical functional logic analysis.

[0093] The scenario model building module is used to obtain business data corresponding to each hardware system, call the relevant data structures in the reusable class model to reuse business function logic based on the business data, and build the corresponding consumption scenario model based on the business function logic.

[0094] Preferably, the scene model construction module specifically includes: The data orchestration submodule is used to acquire business data from each hardware system, orchestrate the business data, and generate a corresponding business instance for each hardware system.

[0095] The object redefinition submodule is used to call the relevant business data structure in the reusable class model according to the business instance, and reconnect the associated IoT objects according to the business data structure to obtain the reconnected IoT object relationship.

[0096] The interface redefinition submodule is used to map the basic class model data corresponding to each IoT object to the corresponding extended class model based on the IoT object relationship, so as to obtain the business capability interface corresponding to the business instance.

[0097] The logic redefinition submodule is used to redefine the business function logic related to each business capability interface and construct a consumption scenario model related to the business capability based on the redefined business function logic.

[0098] Preferably, the logic redefinition submodule also includes: The data acquisition unit is used to acquire the operational status data of the IoT objects associated with each consumption scenario model.

[0099] The data flow definition unit is used to redefine the data flow relationship of each IoT object in its corresponding consumption scenario based on operational status data, thereby obtaining the consumption data flow relationship for the current consumption scenario. The object association unit is used to mark the flow direction of data in the current consumption scenario based on the consumption data flow relationship, and to obtain the object association relationship between IoT objects corresponding to the current consumption scenario.

[0100] The configuration model building unit is used to control the association between business function logic and object relationships, build the control flow relationship of each IoT object in the current consumption scenario, and build the configuration model of all IoT objects based on the control flow relationship.

[0101] Preferably, the configuration model building unit further includes: The object configuration acquisition subunit is used to acquire consumption business data of the current consumption scenario and input the consumption business data into the configuration model to predict the current operating configuration of each IoT object.

[0102] The capability extension subunit is used to define the current business capabilities of each IoT object based on the current operating configuration and to perform business capability extension processing on the current business capabilities in conjunction with the extension class model.

[0103] The interface call subunit is used to call the associated business capability interfaces in the extended class model to perform joint interface calls based on the business capability extension results, and to build the joint structure of extended interfaces for the current consumption scenario.

[0104] The object empowerment subunit is used to perform joint empowerment processing on all associated IoT objects according to the extended interface joint structure, so as to obtain the empowerment control data of each associated object in the current consumption scenario.

[0105] Preferably, the basic class model building module also includes: The runtime data acquisition submodule is used to acquire device runtime data of each IoT object associated with each hardware system.

[0106] The logic analysis submodule is used to perform operational logic analysis on the equipment operation data and generate the operational capability logic for each operational capability based on the analysis results.

[0107] The capability invocation submodule is used to obtain the object tag of each IoT object, associate the object tag with the capability logic, and generate capability invocation instructions between each capability logic and the corresponding IoT object.

[0108] The capability invocation model construction submodule is used to construct a capability invocation model that links IoT objects with their corresponding operational capabilities based on the tag association relationship between capability invocation instructions and corresponding IoT objects.

[0109] Preferably, the capability invocation submodule also includes: The discrete relationship definition unit is used to redefine the discrete relationships between each IoT object according to the capability call instruction, so as to obtain the discrete association relationship between each IoT object.

[0110] The object space association unit is used to obtain the target IoT object and system running space corresponding to each hardware system, and associate the target IoT object with the system running space according to the discrete association relationship to generate the object space association relationship.

[0111] The spatial association unit is used to analyze the degree of spatial association of each system's operating space based on the spatial association relationship of objects, and to redefine the spatial association relationship between system operating spaces based on the spatial association analysis results.

[0112] The model association unit is used to associate hardware systems related to spatial relationships with basic class models and generate model association relationships for model definition between each basic class model.

[0113] Preferably, the extended class model building module also includes: The extension logic definition submodule is used to redefine the extension logic of each extension attribute in the extension class model based on the data mapping relationship in the extension class model.

[0114] The consumption logic construction submodule is used to plan the extended presentation method of the corresponding extended attributes according to the extended logic, and to construct the data consumption logic between each extended attribute and the corresponding IoT object based on the extended planning results.

[0115] The business analysis submodule is used to analyze all consumption businesses associated with each IoT object based on the data consumption logic, and obtain the total consumption business data of each IoT object after expansion.

[0116] The instruction encapsulation submodule is used to encapsulate the consumption call instructions for each IoT object based on the total consumption business data, and generate object consumption instructions for the extended class model by combining the attribute definition mapping relationship of the extended class model.

[0117] Specific limitations regarding the digital twin-based IoT modeling device can be found in the limitations of the digital twin-based IoT modeling method described above, and will not be repeated here. Each module in the aforementioned digital twin-based IoT modeling device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0118] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides the environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data generated during the digital twin modeling of IoT objects and the constructed multi-level models. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements an IoT modeling method based on digital twins.

[0119] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described digital twin-based Internet of Things (IoT) modeling method.

[0120] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0121] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0122] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A digital-twin-based Internet of Things modeling method, characterized in that, include: Obtain common attribute data for each hardware system, and construct a basic class model corresponding to each hardware system based on the common attribute data; For each of the basic class models, data inheritance is performed on all common attribute data. Based on the data inheritance results, an extended class model is constructed that maps each of the common attribute data to its corresponding attribute definition. Specifically, this includes: inheriting all common attribute data in the basic class model by utilizing the table inheritance feature of a relational database; redefining each attribute data based on the table inheritance results; performing data mapping between the attribute data and its corresponding attribute definition; establishing data mapping links; and constructing the corresponding extended class model based on the data mapping link relationships. The extended class model is processed to define capability interfaces, and the functional logic corresponding to each capability interface is analyzed. Based on the functional logic analysis results, a reusable class model is constructed to call the data structure corresponding to the functional logic. Obtain business data corresponding to each hardware system, reuse business function logic by calling relevant data structures in the reuse class model based on the business data, and construct a corresponding consumption scenario model based on the business function logic, specifically including: Acquire business data for each hardware system, perform data orchestration on the business data, and generate a business instance corresponding to each hardware system; The business instance calls the data structure of the relevant business in the reuse class model, and reconnects the associated IoT objects according to the data structure to obtain the reconnected IoT object relationship; Based on the IoT object relationships, the basic class model data corresponding to each IoT object is mapped to the corresponding extended class model to obtain the business capability interface corresponding to the business instance. For each of the business capability interfaces, the business function logic is redefined, and a consumption scenario model related to the business capability is constructed based on the redefined business function logic.

2. The digital-twin-based Internet of Things modeling method according to claim 1, characterized in that, The step of redefining the business function logic related to each of the business capability interfaces and constructing a consumption scenario model related to the business capability based on the redefined business function logic also includes: Obtain the running status data of the IoT objects associated in each of the aforementioned consumption scenario models; Based on the operational status data, the data flow relationship of each IoT object in the corresponding consumption scenario is redefined to obtain the consumption data flow relationship of the current consumption scenario; Based on the consumption data flow relationship, the data flow direction in the current consumption scenario is marked to obtain the object association relationship between IoT objects corresponding to the current consumption scenario; The business function logic is associated with the object through a control object association, and the control flow relationship of each IoT object in the current consumption scenario is constructed. Based on the control flow relationship, a configuration model of all IoT objects is built.

3. The digital-twin-based Internet of Things modeling method according to claim 2, characterized in that, The step of associating the business function logic with the object association to control objects, constructing the control flow relationship for each IoT object in the current consumption scenario, and building a configuration model for all IoT objects based on the control flow relationship further includes: Obtain the consumption business data of the current consumption scenario, and input the consumption business data into the configuration model to predict the current operating configuration of each IoT object; Based on the current operating configuration, define the current business capabilities of each IoT object and perform business capability extension processing on the current business capabilities in conjunction with the extended class model; Based on the results of business capability expansion, the associated business capability interfaces in the extended class model are invoked to perform joint interface calls, thereby constructing the joint structure of the extended interfaces for the current consumption scenario; Based on the extended interface joint structure, joint empowerment processing is performed on all associated IoT objects to obtain the empowerment control data of each associated object in the current consumption scenario.

4. The digital-twin-based Internet of Things modeling method according to claim 1, characterized in that, The step of obtaining common attribute data for each hardware system and constructing a basic class model corresponding to each hardware system based on the common attribute data further includes: Obtain device operation data for each IoT object associated with each hardware system; Perform operational logic analysis on the equipment's operational data, and generate operational capability logic for each operational capability based on the analysis results; Obtain the object tag of each IoT object, associate the object tag with the operation capability logic, and generate capability call instructions between each operation capability logic and the corresponding IoT object; Based on the tag association relationship between the capability invocation instruction and the corresponding IoT object, a capability invocation model is constructed that links IoT objects with their corresponding operational capabilities.

5. The digital-twin-based Internet of Things modeling method according to claim 4, characterized in that, The step of obtaining the object tag for each IoT object, associating the object tag with the operational capability logic, and generating capability invocation instructions between each operational capability logic and the corresponding IoT object further includes: Based on the capability invocation instruction, the discrete relationships between each IoT object are redefined to obtain the discrete association relationships between each IoT object; Obtain the target IoT object and system running space corresponding to each hardware system, and associate the target IoT object with the system running space according to the discrete association relationship to generate an object space association relationship; Based on the spatial association relationship of the objects, analyze the degree of spatial association of each system operating space, and redefine the spatial association relationship between the system operating spaces based on the spatial association analysis results; The hardware systems associated with the spatial relationship are associated with basic class models, and model association relationships are generated for model definition between each basic class model.

6. The digital-twin-based Internet of Things modeling method according to claim 1, characterized in that, The step of performing data inheritance processing on all common attribute data of each of the basic class models, and constructing an extended class model that maps the attribute data to the corresponding attribute definitions based on the data inheritance results, further includes: Based on the data mapping relationship in the extended class model, redefine the extension logic of each extended attribute in the extended class model; Based on the expansion logic, the expansion presentation method of the corresponding expansion attribute is planned, and the data consumption logic between each expansion attribute and the corresponding IoT object is constructed based on the expansion planning result; Based on the data consumption logic, analyze all consumption services associated with each IoT object to obtain the total consumption service data after the expansion of each IoT object; Based on the total consumption data, the consumption call instruction for each IoT object is encapsulated, and combined with the attribute definition mapping relationship of the extended class model, the object consumption instruction of the extended class model is generated. 7.A digital-twin-based Internet of Things modeling apparatus, characterized by comprising: The application of the IoT modeling method based on digital twins as described in any one of claims 1 to 6 includes: The basic class model construction module is used to obtain the common attribute data of each hardware system and construct the basic class model corresponding to each hardware system based on the common attribute data. The extended class model construction module is used to perform data inheritance processing on all public attribute data of each of the base class models, and construct an extended class model that maps each public attribute data to its corresponding attribute definition based on the data inheritance results. The reusable class model construction module is used to define the capability interface of the extended class model, analyze the functional logic corresponding to each capability interface, and construct a reusable class model that calls the data structure corresponding to the functional logic based on the functional logic analysis results. The scenario model construction module is used to obtain business data corresponding to each hardware system, call the relevant data structure in the reuse class model to reuse business function logic based on the business data, and construct the corresponding consumption scenario model based on the business function logic.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the Internet of Things modeling method based on digital twins as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the Internet of Things modeling method based on digital twins as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Operation method and device of digital twin model and electronic device

    CN112632778A

  • Construction method and calling system of internet of things compound model

    CN114371883A