CN111552462B - Device model construction method and device for Internet of things device and storage medium - Google Patents

Device model construction method and device for Internet of things device and storage medium Download PDF

Info

Publication number
CN111552462B
CN111552462B CN201911405473.9A CN201911405473A CN111552462B CN 111552462 B CN111552462 B CN 111552462B CN 201911405473 A CN201911405473 A CN 201911405473A CN 111552462 B CN111552462 B CN 111552462B
Authority
CN
China
Prior art keywords
model
equipment
elements
internet
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911405473.9A
Other languages
Chinese (zh)
Other versions
CN111552462A (en
Inventor
单宏杰
明朗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Envision Innovation Intelligent Technology Co Ltd
Envision Digital International Pte Ltd
Original Assignee
Shanghai Envision Innovation Intelligent Technology Co Ltd
Envision Digital International Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Envision Innovation Intelligent Technology Co Ltd, Envision Digital International Pte Ltd filed Critical Shanghai Envision Innovation Intelligent Technology Co Ltd
Priority to CN201911405473.9A priority Critical patent/CN111552462B/en
Publication of CN111552462A publication Critical patent/CN111552462A/en
Priority to PCT/SG2020/050798 priority patent/WO2021137767A1/en
Application granted granted Critical
Publication of CN111552462B publication Critical patent/CN111552462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication

Abstract

The disclosure discloses a device model construction method, a device and a storage medium of Internet of things devices, wherein the method comprises the following steps: the method comprises the steps of obtaining a model frame of an equipment model to be constructed, obtaining preset and stored model elements according to the model frame, and constructing an equipment model of the Internet of things equipment according to the model elements, wherein the equipment model is used for describing the attribute and the function of the Internet of things equipment. Through the scheme, the corresponding equipment model can be built by directly acquiring the preset and stored model elements, and each model element in the equipment model does not need to be redeveloped, so that the construction efficiency of the equipment model of the equipment of the Internet of things is improved.

Description

Device model construction method and device for Internet of things device and storage medium
Technical Field
The invention relates to the technical field of the internet of things, in particular to a device model construction method, a device and a storage medium of internet of things devices.
Background
Nowadays, the application of the internet of things is becoming more and more widespread, and in order to realize the internet of things, an equipment model needs to be built for each equipment in the internet of things.
At present, the device model construction of the internet of things device is generally based on an ontology conceptual model modeling method, the constructed conceptual model is defined according to object-oriented objects, and elements such as object-oriented attribute information, function information and relationship information are described in the conceptual model, wherein the elements in the conceptual model have different definitions according to different object-oriented objects.
However, since in the related art, when a device model of a certain internet device is built, a developer is required to develop each model element in the corresponding device model, the efficiency of building the model for the internet of things device is extremely low.
Disclosure of Invention
The disclosure provides an equipment model construction method, device and storage medium of Internet of things equipment. The technical scheme is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a device model construction method of an internet of things device, which is characterized in that the method includes:
obtaining a model frame of an equipment model to be constructed, wherein the model frame is used for indicating each model element corresponding to the equipment model; the model elements are sub-models corresponding to model elements, the model elements are used for representing equipment characteristics of the equipment of the Internet of things, and the model elements at least comprise basic information elements;
Acquiring the preset and stored model elements according to the model framework;
and constructing an equipment model of the Internet of things equipment according to the model elements, wherein the equipment model is used for describing the attribute and the function of the Internet of things equipment.
Optionally, each model element includes at least one of a model standard element and a model custom element;
the obtaining, according to the model framework, the preset and stored model elements includes:
querying and acquiring the model standard elements from a standard element library when the model standard elements are included in the model standard elements;
and when each model element comprises the model custom element, acquiring the model custom element edited and uploaded by a user through a model element custom interface.
Optionally, the model framework is further configured to instruct a parent model corresponding to the device model;
before the device model of the internet of things device is constructed according to the model elements, the method further comprises:
according to the model framework, acquiring the father model from a standard model library;
the constructing an equipment model of the internet of things equipment according to the model elements comprises the following steps:
And constructing an equipment model of the Internet of things equipment according to the model elements and the father model.
Optionally, the method further comprises:
and taking the equipment model as a standard model, and uploading the standard model to the standard model library.
Optionally, the version number of the device model is used to indicate compatibility information of the device model; the compatibility information represents at least one of the following information:
the device model is incompatible with the last version model of the internet of things device;
the device model is subjected to compatible change relative to a last version model of the Internet of things device;
and the equipment model performs compatibility restoration relative to a last version model of the Internet of things equipment.
Optionally, the obtaining a model framework of the device model to be constructed includes:
the model framework generated according to the editing operation received in the model framework editing interface is obtained.
Optionally, the model element further includes a static attribute element, a dynamic measurement point element, a service element, an event element, or a relationship element.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus model building apparatus for an internet of things apparatus, the apparatus including:
The framework acquisition module is used for acquiring a model framework of the equipment model to be constructed, wherein the model framework is used for indicating each model element corresponding to the equipment model; the model elements are sub-models corresponding to model elements, the model elements are used for representing equipment characteristics of the equipment of the Internet of things, and the model elements at least comprise basic information elements;
the element acquisition module is used for acquiring the preset and stored model elements according to the model framework;
and the model construction module is used for constructing an equipment model of the Internet of things equipment according to the model elements, and the equipment model is used for describing the attribute and the function of the Internet of things equipment.
Optionally, each model element includes at least one of a model standard element and a model custom element;
the element acquisition module includes:
a standard element obtaining sub-module, configured to query and obtain the model standard elements from a standard element library when the model standard elements are included in the model standard elements;
and the custom element acquisition sub-module is used for acquiring the model custom elements edited and uploaded by a user through a model element custom interface when the model elements comprise the model custom elements.
Optionally, the model framework is further configured to instruct a parent model corresponding to the device model;
the apparatus further comprises:
the parent model acquisition module is used for acquiring the parent model from a standard model library according to the model frame before the equipment model of the Internet of things equipment is constructed according to the model elements;
the model building module comprises:
and the model construction sub-module is used for constructing the equipment model of the Internet of things equipment according to the model elements and the parent model.
Optionally, the apparatus further includes:
and the model uploading module is used for taking the equipment model as a standard model and uploading the standard model to the standard model library.
Optionally, the version number of the device model is used to indicate compatibility information of the device model; the compatibility information represents at least one of the following information:
the device model is incompatible with the last version model of the internet of things device;
the device model is subjected to compatible change relative to a last version model of the Internet of things device;
and the equipment model performs compatibility restoration relative to a last version model of the Internet of things equipment.
Optionally, the frame acquisition module includes:
and the framework acquisition sub-module is used for acquiring the model framework generated according to the editing operation received in the model framework editing interface.
Optionally, the model element further includes a static attribute element, a dynamic measurement point element, a service element, an event element, or a relationship element.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus model building apparatus for an internet of things apparatus, the apparatus including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
obtaining a model frame of an equipment model to be constructed, wherein the model frame is used for indicating each model element corresponding to the equipment model; the model elements are sub-models corresponding to model elements, the model elements are used for representing equipment characteristics of the equipment of the Internet of things, and the model elements at least comprise basic information elements;
acquiring the preset and stored model elements according to the model framework;
and constructing an equipment model of the Internet of things equipment according to the model elements, wherein the equipment model is used for describing the attribute and the function of the Internet of things equipment.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer device readable storage medium, where the computer device readable storage medium contains executable instructions, where the executable instructions are called by a processor to implement the device model building method of the internet of things device according to the first aspect or any of the alternatives of the first aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
the method comprises the steps of obtaining a model frame of an equipment model to be constructed, wherein the model frame is used for indicating each model element corresponding to the equipment model, the model elements are sub-models corresponding to the model elements, the model elements are used for representing equipment characteristics of the equipment of the Internet of things, obtaining each preset and stored model element according to the model frame, and finally constructing the equipment model of the equipment of the Internet of things according to each model element, wherein the equipment model is used for describing the attribute and the function of the equipment of the Internet of things. Through the scheme, the corresponding equipment model can be built by directly acquiring the preset and stored model elements, and each model element in the equipment model does not need to be redeveloped, so that the construction efficiency of the equipment model of the equipment of the Internet of things is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram of an implementation environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of device model construction for an Internet of things device, according to an example embodiment;
FIG. 3 is a flow chart illustrating a method of device model construction for an Internet of things device, according to another exemplary embodiment;
FIG. 4 is a schematic illustration of a model frame in accordance with the embodiment of FIG. 3;
FIG. 5 is a schematic view of a model frame of the apparatus to be modeled as a fan according to the embodiment of FIG. 3;
FIG. 6 is a schematic diagram of a fan apparatus according to the embodiment of FIG. 3;
FIG. 7 is a schematic diagram of a model of a movable head fan apparatus according to the embodiment of FIG. 3;
FIG. 8 is a schematic diagram of a reference model standard element build device model in accordance with the embodiment of FIG. 3;
FIG. 9 is a schematic diagram of a model inheritance relationship involved in the embodiment of FIG. 3;
FIG. 10 is a schematic diagram of a model version update and disclosure relating to the embodiment of FIG. 3;
FIG. 11 is a block diagram illustrating a device model building apparatus for an Internet of things device, according to an example embodiment;
fig. 12 is a schematic diagram of a computer device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be understood that references herein to "a number" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
For ease of understanding, terms involved in embodiments of the present application are described below.
1) Internet of things (Internet of Things IoT)
The internet of things is an information carrier such as the internet and a traditional telecommunication network, and enables all common objects capable of performing independent functions to realize interconnection and intercommunication. The internet of things mainly solves the problem of interconnection between articles and articles (T2T), and Human to articles (Human to Human, H2T), and Human to Human (H2H).
2) Ontology
The ontology, also called a presence theory, studies the nature of presentities in the universe, and is "specification of conceptual models that enable programs and people to share knowledge information". Ontologies represent a well-defined set of accepted concepts, such as things, events and relationships, that are well-defined in some way (e.g., in well-defined natural language) and thereby create a commonly accepted vocabulary to effect information exchange.
3) Concept model
A conceptual model, also called an information model, is a real world to information world abstraction that describes the properties and functions of things in the real world.
4) Equipment model
The device model is a conceptual model for describing the properties and functions of a device in the real world.
5)JSON Schema
The JSON Schema is a tool for describing and checking JSON documents, can completely define the data format of the JSON, and performs validity check on the JSON instance. JSON Schema has good readability to both humans and machines and wide open source class library support for various computer languages.
FIG. 1 is a schematic diagram illustrating an implementation environment according to an example embodiment. The implementation environment includes a number of computer devices 110 and a cloud 120.
The computer device 110 and the cloud 120 are connected through a wireless network.
Cloud 120 may perform cloud computing processing on the data.
The computer device 110 may be one computer device or may be composed of several computer devices.
Optionally, the wireless network described above uses standard communication techniques and/or protocols. The network is typically the Internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks. In some embodiments, data exchanged over the network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible Markup Language, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure socket layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet Protocol Security, IPsec), and the like. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
Fig. 2 is a flowchart illustrating a device model building method of an internet of things device according to an exemplary embodiment. The device model construction method of the Internet of things device can be applied to computer devices, and the corresponding device model of the Internet of things device is constructed on the computer devices by acquiring model elements stored in the cloud. For example, the computer device may be the computer device 110 shown in fig. 1, and the cloud may be the cloud 120 shown in fig. 1. As shown in fig. 2, the device model construction method of the internet of things device may include the following steps:
in step 201, a model frame of an equipment model to be constructed is obtained, wherein the model frame is used for indicating each model element corresponding to the equipment model; the model element is a sub-model corresponding to a model element for representing a device feature of the internet of things device, the model element comprising at least a basic information element;
in step 202, obtaining the preset and stored model elements according to the model framework;
in step 203, an equipment model of the internet of things equipment is constructed according to the model elements, wherein the equipment model is used for describing the attribute and the function of the internet of things equipment.
Optionally, the model elements include at least one of model standard elements and model custom elements;
the method for acquiring the preset and stored model elements according to the model framework comprises the following steps:
querying and acquiring the model standard elements from a standard element library when the model standard elements are included in the model standard elements;
and when each model element comprises the model custom element, acquiring the model custom element edited and uploaded by a user through a model element custom interface.
Optionally, the model framework is further configured to instruct a parent model corresponding to the device model;
before the device model of the internet of things device is constructed according to the model elements, the method further comprises:
according to the model framework, acquiring the father model from a standard model library;
the constructing an equipment model of the internet of things equipment according to the model elements comprises the following steps:
and constructing an equipment model of the Internet of things equipment according to the model elements and the father model.
Optionally, the method further comprises:
and taking the equipment model as a standard model and uploading the standard model to the standard model library.
Optionally, the version number of the device model is used to indicate compatibility information of the device model; the compatibility information represents at least one of the following information:
The device model is incompatible with the last version model of the Internet of things device;
the device model is compatible with the last version model of the Internet of things device;
the device model performs compatibility restoration relative to a last version model of the Internet of things device.
Optionally, the obtaining a model framework of the device model to be constructed includes:
the model framework generated from the editing operations received in the model framework editing interface is obtained.
Optionally, the model element further includes a static attribute element, a dynamic measurement point element, a service element, an event element, or a relationship element.
In summary, in the device model construction method of the internet of things device provided in the embodiments of the present disclosure, a model frame of a device model to be constructed is obtained, where the model frame is used to indicate each model element corresponding to the device model, the model elements are sub-models corresponding to the model elements, the model elements are used to represent device features of the internet of things device, then each preset and stored model element is obtained according to the model frame, and finally, a device model of the internet of things device is constructed according to each model element, where the device model is used to describe attributes and functions of the internet of things device. Through the scheme, the corresponding equipment model can be constructed by directly acquiring the preset and stored model elements, and each model element in the equipment model does not need to be redeveloped, so that the construction efficiency of the equipment model of the equipment of the Internet of things is improved.
Fig. 3 is a flowchart of a device model construction method of an internet of things device according to another exemplary embodiment, where the device model construction method of the internet of things device may be applied to a computer device, and a device model of a corresponding internet of things device is constructed on the computer device by acquiring model elements stored in a cloud. For example, the computer device may be the computer device 110 shown in fig. 1, and the cloud may be the cloud 120 shown in fig. 1. As shown in fig. 3, the device model construction method of the internet of things device may include the following steps:
in step 301, a model framework of a device model to be built is acquired.
In the embodiment of the disclosure, the model framework is used for indicating each model element corresponding to the equipment model, the model elements are sub-models corresponding to the model elements, and the model elements are used for representing equipment characteristics of the equipment of the internet of things.
Alternatively, the computer device may obtain a model framework generated from editing operations received in the model framework editing interface.
The model framework can be edited by a JSON Schema tool.
Optionally, the model element includes at least one of a basic information element (basic info), a static Attribute element (Attribute), a dynamic measurement point element (measurement), a Service element (Service), an Event element (Event), and a relationship element (relationship).
The basic information element is the most basic information describing a device model, the static attribute element is information describing the static attribute of a device, the dynamic measurement point element is information describing the running state of the device, the service element is certain capability or certain method information which can be called by the outside in the device, the event element is event information reported by the device when the device runs, and the relation element is information describing the relation between the device and other types of devices.
For example, the basic information element may be identification information (Identity Document, ID) of the device, name of the device, description information (Description) of the device, type information (Category) of the device, version information (Version) of the device, and the like. The static attribute elements may be model information of the device, location information of the device, design parameter information of the device, accuracy information of the device, and the like. The dynamic measurement point elements can be various state information such as temperature information, pressure information, current information, voltage information and the like when the equipment operates. The service element may be instruction information transmitted by the device, task information to be executed by the device, and the like. The event element may be information of a change in the operation state of the device, information of completion of execution of a transmission instruction of the device, or the like. The relationship element may be information of a one-to-one relationship of the device with other devices.
For example, please refer to fig. 4, which shows a schematic diagram of a model framework according to an embodiment of the present disclosure, and a computer device edits and obtains the model framework of the internet of things device shown in fig. 4 through a JSON Schema tool. The Internet of things device can be connected with the cloud through the model framework, and the Internet of things device can exchange data with the cloud. The Internet of things equipment can upload the measurement point information in the dynamic measurement point element to the cloud, the Internet of things equipment can interact various parameters in the service element with the cloud, and the Internet of things equipment can upload the parameters in the event element to the cloud.
For example, please refer to fig. 5, which illustrates a schematic diagram of a model frame when a device to be built with a device model is a fan, as shown in fig. 5, in an environment of the internet of things, the fan device may upload a rotation speed parameter in a dynamic measurement point element of the fan device to a cloud end through the device model, the cloud end may process and analyze data to control the fan device to execute an acceleration instruction, when the rotation speed of the fan device reaches a certain threshold value, or when the fan fails, the fan device may send alarm data for alarming that the rotation speed of the fan exceeds the speed or that the fan fails to the cloud end for processing, and the cloud end may control the fan device to perform a next operation.
In step 302, the computer device obtains the parent model from a standard model library according to the model framework.
Alternatively, the parent model may be a model stored locally on the computer device, or may be a previously constructed model, or may be a standard model stored in a central repository that has been published.
The parent model obtained by the computer equipment comprises various element models in the original parent model.
For example, please refer to fig. 6, which illustrates a schematic diagram of a fan device according to an embodiment of the present disclosure, as shown in fig. 6, the constructed fan model includes a basic information element, a static attribute element, a dynamic measurement point element, a service element, an event element, and a relationship element, the fan device model shown in fig. 6 may be used as a standard model, and meanwhile, the model may also be used as a parent model, and the model of the fan device capable of swinging may be continuously constructed based on the fan model. Referring to fig. 7, a schematic diagram of a model of a fan device capable of moving around according to an embodiment of the disclosure is shown, and as shown in fig. 7, a fan device model is used as a parent model of the model construction, and the model construction of the fan device capable of moving around is performed on the basis of an original fan device model.
In step 303, the computer device obtains the respective model elements set and stored in advance according to the model framework.
Optionally, the respective model elements include at least one of model standard elements and model custom elements.
1) When the respective model elements include the model standard element, the model standard element is queried from a standard element library.
For example, the model standard elements in the standard element library can be standardized static attribute manufacturer atomic models, standardized dynamic measurement point temperature atomic models, standardized service startup atomic models, standardized event alarm atomic models and the like.
Wherein the model standard elements are standard elements which are stored in a central repository and have been disclosed. The corresponding model standard element stored in the central repository can be queried and invoked by the $ref capability in the JSON Schema tool, added to the model framework.
For example, referencing a dynamic measure model in model elements of model a to standard model elements may be accomplished by editing the following code in the JSON Schema tool:
the concrete definition of the model standard element location is also defined by a JSON Schema. The specific codes are as follows:
For example, please refer to fig. 8, which illustrates a schematic diagram of a device model constructed by referencing model standard elements according to an embodiment of the present disclosure, as shown in fig. 8, the model in the design may be an unfinished device model framework edited in JSON Schema tool on a computer device, and the model in the design constructs a device model by calling appropriate model standard elements, where the called model standard elements may be one or more model standard elements located in a central repository.
The central warehouse is a completely public standard warehouse, the central warehouse can be divided into two parts, one is a standard model warehouse, the standard model warehouse is a standard warehouse for providing a public standard model, and a model designer can copy or inherit the standard model in the standard model warehouse. The other is a model standard element library, which is used for providing the disclosed standard elements, and a model designer can combine device models based on the standard elements.
2) And when each model element comprises the model custom element, acquiring the model custom element edited and uploaded by a user through a model element custom interface.
The model custom element can also be defined by editing through a JSON Schema tool.
In step 304, the computer device builds a device model of the internet of things device from the respective model elements.
In the embodiment of the disclosure, the device model is used for describing the attribute and the function of the internet of things device.
Optionally, according to the model elements and the parent model, constructing an equipment model of the internet of things equipment.
The device model for constructing the internet of things device can be divided into the following three cases:
1) And constructing an equipment model of the Internet of things equipment according to the model custom element.
2) And constructing a device model of the Internet of things device according to the calling model standard element combination.
3) And adding model custom elements or model standard element combinations on the basis of the parent model according to the calling of the parent model to construct the equipment model of the Internet of things equipment.
Alternatively, the device model may be built on the basis of a parent model, and the relationship between the device model and the parent model and the relationship between the device model and the other models may be an aggregate relationship or an association relationship.
For example, FIG. 9 shows a schematic diagram of a model inheritance relationship in accordance with an embodiment of the present disclosure. As shown in fig. 9, models from a to K are built by calling each other, wherein the model relationships directly built by the respective models are connected by solid arrows, and are aggregation relationships; the model H inherits the model A and the model I through the indirectly inherited model relationship, and the indirectly-called model relationship can be an association relationship.
Alternatively, the computer device may upload the device model as a parent model to the standard model library.
Referring to fig. 10, which is a schematic diagram illustrating a model version update and disclosure related to an embodiment of the present disclosure, as shown in fig. 10, an equipment model constructed by a computer device may be modified in a JSON Schema tool for several times, each modification may generate a new revision number, the equipment models with different revision numbers may not be directly used, and when the constructed equipment model is modified to obtain that the equipment model with a certain revision number is already mature and available, the added version number of the equipment model may be released, so that the equipment model becomes a released model. If the published equipment model is a standard model, uploading the equipment model with the version number to a central warehouse to enable the equipment model to be changed into a public model.
The version number of the equipment model is used for indicating compatibility information of the equipment model; the compatibility information represents one of the following information:
1) The device model is incompatible with the last version model of the Internet of things device;
2) The device model is compatible with the last version model of the Internet of things device;
3) The device model performs compatibility restoration relative to a last version model of the Internet of things device.
Wherein a device model can be uniquely determined based on the model ID and model version number. When using this device model, a device model of a certain version number can be used in the format < ModelId, modelVersion >.
Alternatively, the latest version of the device model of the model ID may be used by entering the ModelId.
The version number of the model may be symantic versioning, which is specifically as follows:
<Major>.<Minor>.<Patch>
wherein Major indicates that the device model has an incompatible change from the previous version model, such as that certain attribute information of the device model is deleted or the data type is changed. Minor means that the device model adds some functionality compared to the last version model and is compatible. Such as adding definitions of some dynamic measurement point elements. Patch indicates that the device model has repaired some compatibility compared to the previous version model.
Alternatively, the version number of the model is specified at the time of model release, and the released model with the version number is not allowed to be modified.
In summary, in the device model construction method of the internet of things device provided in the embodiments of the present disclosure, a model frame of a device model to be constructed is obtained, where the model frame is used to indicate each model element corresponding to the device model, the model elements are sub-models corresponding to the model elements, the model elements are used to represent device features of the internet of things device, then each preset and stored model element is obtained according to the model frame, and finally, a device model of the internet of things device is constructed according to each model element, where the device model is used to describe attributes and functions of the internet of things device. Through the scheme, the corresponding equipment model can be constructed by directly acquiring the preset and stored model elements, and each model element in the equipment model does not need to be redeveloped, so that the construction efficiency of the equipment model of the equipment of the Internet of things is improved.
Fig. 11 is a block diagram of a device model building apparatus of an internet of things device according to an exemplary embodiment, and as shown in fig. 11, the device model building apparatus of the internet of things device may be implemented as all or part of a computer device by means of hardware or a combination of hardware and software, so as to perform the steps shown in any of the embodiments shown in fig. 2 or fig. 3. For example, the computer device may be the computer device 110 shown in fig. 1, and the cloud may be the cloud 120 shown in fig. 1. The device model construction device of the internet of things device may include:
A frame acquisition module 1110, configured to acquire a model frame of an equipment model to be constructed, where the model frame is used to indicate each model element corresponding to the equipment model; the model elements are sub-models corresponding to model elements, the model elements are used for representing equipment characteristics of the equipment of the Internet of things, and the model elements at least comprise basic information elements;
an element obtaining module 1120, configured to obtain, according to the model framework, each of the model elements that are preset and stored;
the model building module 1130 is configured to build a device model of the internet of things device according to the model elements, where the device model is used to describe attributes and functions of the internet of things device.
Optionally, each model element includes at least one of a model standard element and a model custom element;
the element acquisition module 1120 includes:
a standard element obtaining sub-module, configured to query and obtain the model standard elements from a standard element library when the model standard elements are included in the model standard elements;
and the custom element acquisition sub-module is used for acquiring the model custom elements edited and uploaded by a user through a model element custom interface when the model elements comprise the model custom elements.
Optionally, the model framework is further configured to instruct a parent model corresponding to the device model;
the apparatus further comprises:
the parent model acquisition module is used for acquiring the parent model from a standard model library according to the model frame before the equipment model of the Internet of things equipment is constructed according to the model elements;
the model building module 1130 includes:
and the model construction sub-module is used for constructing the equipment model of the Internet of things equipment according to the model elements and the parent model.
Optionally, the apparatus further includes:
and the model uploading module is used for taking the equipment model as a standard model and uploading the standard model to the standard model library.
Optionally, the version number of the device model is used to indicate compatibility information of the device model; the compatibility information represents at least one of the following information:
the device model is incompatible with the last version model of the internet of things device;
the device model is subjected to compatible change relative to a last version model of the Internet of things device;
and the equipment model performs compatibility restoration relative to a last version model of the Internet of things equipment.
Optionally, the frame acquisition module 1110 includes:
and the framework acquisition sub-module is used for acquiring the model framework generated according to the editing operation received in the model framework editing interface.
Optionally, the model element further includes at least one of a static attribute element, a dynamic measurement point element, a service element, an event element, and a relationship element.
It should be noted that, when the apparatus provided in the foregoing embodiment performs the functions thereof, only the division of the respective functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules, so as to perform all or part of the functions described above.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
An exemplary embodiment of the present disclosure provides an apparatus model building device for an internet of things device, where the apparatus model building device for an internet of things device may be implemented as all or part of a computer device by hardware or a combination of hardware and software, so as to perform the steps shown in any one of the embodiments shown in fig. 2 or fig. 3. For example, the computer device may be the computer device 110 shown in fig. 1, and the cloud may be the cloud 120 shown in fig. 1. The device model construction device of the internet of things device further comprises: a processor, a memory for storing processor-executable instructions;
Wherein the processor is configured to:
obtaining a model frame of an equipment model to be constructed, wherein the model frame is used for indicating each model element corresponding to the equipment model; the model elements are sub-models corresponding to model elements, the model elements are used for representing equipment characteristics of the equipment of the Internet of things, and the model elements at least comprise basic information elements;
acquiring the preset and stored model elements according to the model framework;
and constructing an equipment model of the Internet of things equipment according to the model elements, wherein the equipment model is used for describing the attribute and the function of the Internet of things equipment.
Optionally, each model element includes at least one of a model standard element and a model custom element;
the obtaining, according to the model framework, the preset and stored model elements includes:
querying and acquiring the model standard elements from a standard element library when the model standard elements are included in the model standard elements;
and when each model element comprises the model custom element, acquiring the model custom element edited and uploaded by a user through a model element custom interface.
Optionally, the model framework is further configured to instruct a parent model corresponding to the device model;
before the device model of the internet of things device is constructed according to the model elements, the method further comprises:
according to the model framework, acquiring the father model from a standard model library;
the constructing an equipment model of the internet of things equipment according to the model elements comprises the following steps:
and constructing an equipment model of the Internet of things equipment according to the model elements and the father model.
Optionally, the method further comprises:
and taking the equipment model as a standard model, and uploading the standard model to the standard model library.
Optionally, the version number of the device model is used to indicate compatibility information of the device model; the compatibility information represents at least one of the following information:
the device model is incompatible with the last version model of the internet of things device;
the device model is subjected to compatible change relative to a last version model of the Internet of things device;
and the equipment model performs compatibility restoration relative to a last version model of the Internet of things equipment.
Optionally, the obtaining a model framework of the device model to be constructed includes:
The model framework generated according to the editing operation received in the model framework editing interface is obtained.
Optionally, the model element further includes a static attribute element, a dynamic measurement point element, a service element, an event element, or a relationship element.
Fig. 12 is a schematic diagram of a computer device, according to an example embodiment. The computer apparatus 1200 includes a central processing unit (Central Processing Unit, CPU) 1201, a system Memory 1204 including a random access Memory (Random Access Memory, RAM) 1202 and a Read-Only Memory (ROM) 1203, and a system bus 1205 connecting the system Memory 1204 and the central processing unit 1201. The computer device 1200 also includes an Input/Output (I/O) system 1206, which facilitates the transfer of information between various devices within the computer device, and a mass storage device 1207 for storing an operating system 1213, application programs 1114, and other program modules 1215.
The basic input/output system 1206 includes a display 1208 for displaying information and an input device 1209, such as a mouse, keyboard, etc., for user input of information. Wherein the display 1208 and the input device 1209 are coupled to the central processing unit 1201 via an input-output controller 1210 coupled to a system bus 1205. The basic input/output system 1206 may also include an input/output controller 1210 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input output controller 1210 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1207 is connected to the central processing unit 1201 through a mass storage controller (not shown) connected to the system bus 1205. The mass storage device 1207 and its associated computer device-readable media provide non-volatile storage for the computer device 1200. That is, the mass storage device 1207 may include a computer device readable medium (not shown), such as a hard disk or a compact disk-Only (CD-ROM) drive.
The computer device readable medium may include computer device storage media and communication media without loss of generality. Computer device storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer device readable instructions, data structures, program modules or other data. Computer device storage media includes RAM, ROM, erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), electrically erasable programmable read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash Memory or other solid state Memory technology, CD-ROM, digital video disk (Digital Video Disc, DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer device storage medium is not limited to the ones described above. The system memory 1204 and mass storage device 1207 described above may be collectively referred to as memory.
According to various embodiments of the present disclosure, the computer device 1200 may also operate through a network, such as the Internet, to remote computer devices on the network. I.e., the computer device 1200 may be connected to the network 1212 through a network interface unit 1212 connected to the system bus 1205, or alternatively, the network interface unit 1212 may be used to connect to other types of networks or remote computer device systems (not shown).
The memory also includes one or more programs stored in the memory, and the central processor 1201 implements all or part of the steps of the method shown in fig. 2 or 3 by executing the one or more programs.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described by the embodiments of the present disclosure may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer device-readable medium. Computer device readable media includes both computer device storage media and communication media including any medium that facilitates transfer of a computer device program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer device.
The embodiment of the disclosure also provides a computer equipment storage medium for storing computer equipment software instructions for the testing device, which contains a program designed for executing the equipment model construction method of the internet of things equipment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. The method for constructing the equipment model of the equipment of the Internet of things is characterized by comprising the following steps:
obtaining a model frame of an equipment model to be constructed, wherein the model frame is used for indicating each model element corresponding to the equipment model, and the model frame is also used for indicating a father model corresponding to the equipment model; the model elements are sub-models corresponding to model elements, the model elements are used for representing equipment characteristics of equipment of the Internet of things, the model elements comprise basic information elements, dynamic measurement point elements and relation elements, wherein the basic information elements are the most basic information describing one equipment model, the basic information elements comprise version information of the equipment, the dynamic measurement point elements are information describing the running state of the equipment, and the relation elements are information describing the relation between the equipment and other types of equipment;
Acquiring the preset and stored model elements according to the model framework;
constructing an equipment model of the Internet of things equipment according to the model elements, wherein the equipment model is used for describing the attribute and the function of the Internet of things equipment, and the version number of the equipment model is used for indicating the compatibility information of the equipment model; the compatibility information represents at least one of the following information: the device model is incompatible with the last version model of the internet of things device; the device model is subjected to compatible change relative to a last version model of the Internet of things device; and the equipment model performs compatibility restoration relative to a last version model of the Internet of things equipment.
2. The method of claim 1, wherein each model element comprises at least one of a model standard element and a model custom element;
the obtaining, according to the model framework, the preset and stored model elements includes:
querying and acquiring the model standard elements from a standard element library when the model standard elements are included in the model standard elements;
And when each model element comprises the model custom element, acquiring the model custom element edited and uploaded by a user through a model element custom interface.
3. The method of claim 1, further comprising, prior to constructing the device model of the internet of things device from the respective model elements:
according to the model framework, acquiring the father model from a standard model library;
the constructing an equipment model of the internet of things equipment according to the model elements comprises the following steps:
and constructing an equipment model of the Internet of things equipment according to the model elements and the father model.
4. A method according to claim 3, characterized in that the method further comprises:
and taking the equipment model as a standard model, and uploading the standard model to the standard model library.
5. The method according to any one of claims 1 to 4, wherein the obtaining a model framework of the device model to be constructed comprises:
the model framework generated according to the editing operation received in the model framework editing interface is obtained.
6. The method of any of claims 1 to 4, wherein the model elements further comprise static attribute elements, service elements, event elements.
7. An apparatus model building device for an internet of things apparatus, the apparatus comprising:
the framework acquisition module is used for acquiring a model framework of the equipment model to be constructed, wherein the model framework is used for indicating each model element corresponding to the equipment model, and the model framework is also used for indicating a father model corresponding to the equipment model; the model elements are sub-models corresponding to model elements, the model elements are used for representing equipment characteristics of equipment of the Internet of things, the model elements comprise basic information elements, dynamic measurement point elements and relation elements, wherein the basic information elements are the most basic information describing one equipment model, the basic information elements comprise version information of the equipment, the dynamic measurement point elements are information describing the running state of the equipment, and the relation elements are information describing the relation between the equipment and other types of equipment;
the element acquisition module is used for acquiring the preset and stored model elements according to the model framework;
the model construction module is used for constructing an equipment model of the equipment of the Internet of things according to the model elements, wherein the equipment model is used for describing the attribute and the function of the equipment of the Internet of things, and the version number of the equipment model is used for indicating the compatibility information of the equipment model; the compatibility information represents at least one of the following information: the device model is incompatible with the last version model of the internet of things device; the device model is subjected to compatible change relative to a last version model of the Internet of things device; and the equipment model performs compatibility restoration relative to a last version model of the Internet of things equipment.
8. An apparatus model building device for an internet of things apparatus, the apparatus comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
obtaining a model frame of an equipment model to be constructed, wherein the model frame is used for indicating each model element corresponding to the equipment model, and the model frame is also used for indicating a father model corresponding to the equipment model; the model elements are sub-models corresponding to model elements, the model elements are used for representing equipment characteristics of equipment of the Internet of things, the model elements comprise basic information elements, dynamic measurement point elements and relation elements, wherein the basic information elements are the most basic information describing one equipment model, the basic information elements comprise version information of the equipment, the dynamic measurement point elements are information describing the running state of the equipment, and the relation elements are information describing the relation between the equipment and other types of equipment;
acquiring the preset and stored model elements according to the model framework;
constructing an equipment model of the Internet of things equipment according to the model elements, wherein the equipment model is used for describing the attribute and the function of the Internet of things equipment, and the version number of the equipment model is used for indicating the compatibility information of the equipment model; the compatibility information represents at least one of the following information: the device model is incompatible with the last version model of the internet of things device; the device model is subjected to compatible change relative to a last version model of the Internet of things device; and the equipment model performs compatibility restoration relative to a last version model of the Internet of things equipment.
9. A computer device readable storage medium, wherein the computer device readable storage medium contains executable instructions, and the executable instructions are called by a processor to implement the device model building method of the internet of things device according to any one of claims 1 to 6.
CN201911405473.9A 2019-12-31 2019-12-31 Device model construction method and device for Internet of things device and storage medium Active CN111552462B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911405473.9A CN111552462B (en) 2019-12-31 2019-12-31 Device model construction method and device for Internet of things device and storage medium
PCT/SG2020/050798 WO2021137767A1 (en) 2019-12-31 2020-12-31 Method and apparatus for constructing device model of iot device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911405473.9A CN111552462B (en) 2019-12-31 2019-12-31 Device model construction method and device for Internet of things device and storage medium

Publications (2)

Publication Number Publication Date
CN111552462A CN111552462A (en) 2020-08-18
CN111552462B true CN111552462B (en) 2023-12-05

Family

ID=72007212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911405473.9A Active CN111552462B (en) 2019-12-31 2019-12-31 Device model construction method and device for Internet of things device and storage medium

Country Status (2)

Country Link
CN (1) CN111552462B (en)
WO (1) WO2021137767A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241260B (en) * 2020-10-22 2022-04-26 宁波和利时智能科技有限公司 Modeling method and system for physical entity of discrete industry
CN112364515B (en) * 2020-11-17 2022-04-12 甘肃省祁连山水源涵养林研究院 Ecological environment intelligent monitoring method and device and server
CN112615734B (en) * 2020-12-09 2023-04-07 杭州海康威视系统技术有限公司 Modeling and control method, device, equipment and storage medium of network equipment
CN113746850B (en) * 2021-09-07 2023-08-15 成都小步创想慧联科技有限公司 Multichannel data acquisition method for Internet of things
CN116527497A (en) * 2022-01-20 2023-08-01 北京邮电大学 Model management method, device, networking architecture, electronic equipment and storage medium
CN114978925A (en) * 2022-04-25 2022-08-30 北京物元数界科技有限公司 Object model creating method and system
CN116112320B (en) * 2023-04-12 2023-08-01 广东致盛技术有限公司 Method and device for constructing edge computing intelligent gateway based on object model

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279347A (en) * 2013-05-28 2013-09-04 复旦大学 Universal software product line domain model and application model synchronization method
EP2746977A1 (en) * 2012-12-21 2014-06-25 Cassidian CyberSecurity SAS Method for generating a version of a model for supervising an information system
CN106027609A (en) * 2016-05-05 2016-10-12 深圳前海大数点科技有限公司 Service system for Internet of Things
WO2016178068A1 (en) * 2015-05-06 2016-11-10 Yandex Europe Ag System and method for testing web pages
CN107092513A (en) * 2017-06-29 2017-08-25 上海传英信息技术有限公司 The upgrading of Intelligent mobile equipment or rebuilt component and upgrading or restorative procedure
CN108345449A (en) * 2017-12-25 2018-07-31 海尔优家智能科技(北京)有限公司 A kind of information processing method, device, storage medium and computer equipment
CN109040200A (en) * 2018-07-13 2018-12-18 深圳绿米联创科技有限公司 The cut-in method and device of internet of things equipment
CN109769024A (en) * 2019-01-18 2019-05-17 东喜和仪(珠海市)数据科技有限公司 Internet of Things construction method and device based on data trade block chain

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2975202B1 (en) * 2011-05-10 2013-05-10 Cameleon Software DEVICE FOR PRODUCING A DEFINITION OF A VERSION OF A PRODUCT
US9747440B2 (en) * 2012-08-15 2017-08-29 Qualcomm Incorporated On-line behavioral analysis engine in mobile device with multiple analyzer model providers
US20160196131A1 (en) * 2014-07-07 2016-07-07 Symphony Teleca Corporation Remote Embedded Device Update Platform Apparatuses, Methods and Systems
US10496061B2 (en) * 2015-03-16 2019-12-03 Rockwell Automation Technologies, Inc. Modeling of an industrial automation environment in the cloud
US20160274870A1 (en) * 2015-03-20 2016-09-22 Arrayent, Inc. Design framework for an iot system
RU2607977C1 (en) * 2015-06-30 2017-01-11 Александр Игоревич Колотыгин Method of creating model of object
CN108446767A (en) * 2018-02-11 2018-08-24 上海图阅智能科技有限公司 A kind of knowledge encapsulation standard method and system based on model

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2746977A1 (en) * 2012-12-21 2014-06-25 Cassidian CyberSecurity SAS Method for generating a version of a model for supervising an information system
CN103279347A (en) * 2013-05-28 2013-09-04 复旦大学 Universal software product line domain model and application model synchronization method
WO2016178068A1 (en) * 2015-05-06 2016-11-10 Yandex Europe Ag System and method for testing web pages
CN106027609A (en) * 2016-05-05 2016-10-12 深圳前海大数点科技有限公司 Service system for Internet of Things
CN107092513A (en) * 2017-06-29 2017-08-25 上海传英信息技术有限公司 The upgrading of Intelligent mobile equipment or rebuilt component and upgrading or restorative procedure
CN108345449A (en) * 2017-12-25 2018-07-31 海尔优家智能科技(北京)有限公司 A kind of information processing method, device, storage medium and computer equipment
CN109040200A (en) * 2018-07-13 2018-12-18 深圳绿米联创科技有限公司 The cut-in method and device of internet of things equipment
CN109769024A (en) * 2019-01-18 2019-05-17 东喜和仪(珠海市)数据科技有限公司 Internet of Things construction method and device based on data trade block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Hemant Gupta等.OnBoarding and Software Update Architecture for IoT Devices.《2019 17th International Conference on Privacy,Security and Trust(PST)》.2019,1-11. *
智能配电网统一模型云与应用服务技术系统;王守相等;《电力自动化设备》;第35卷(第02期);49-54 *

Also Published As

Publication number Publication date
WO2021137767A1 (en) 2021-07-08
CN111552462A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN111552462B (en) Device model construction method and device for Internet of things device and storage medium
CN108351636B (en) Engineering design tool, system and module
US11314493B1 (en) Industrial automation smart object inheritance
US8255869B2 (en) Industry template customization and transclusion for use in industrial automation and information solutions
CN113064351A (en) Digital twin model construction method and device, storage medium and electronic equipment
CN111200545B (en) Intelligent device access method and device
JP2019145149A (en) Method for communicating with device in process control system, tangible product, and device for communicating with field devices in process control system
WO2020015191A1 (en) Business rule releasing and managing method, electronic device and readable storage medium
CN111556158B (en) Access method, access device, access equipment and storage medium of Internet of things platform
CN111581920A (en) Document conversion method, device, equipment and computer storage medium
EP3286611B1 (en) Method and system for cross discipline data validation checking in a multidisciplinary engineering system
US20110224954A1 (en) Modelling of systems
US8234303B2 (en) Single parse, diagram-assisted import into a unified modeling language based meta-model
CN114741085A (en) Data processing method, device, equipment and storage medium
Képes et al. Integrating IoT Devices Based on Automatically Generated Scale-Out Plans
CN110837657A (en) Data processing method, client, server and storage medium
CN114416099B (en) Model integration method based on information physical system and related components
CN113467782B (en) Method, device and equipment for determining business process
Jang et al. Design of an Algorithm for the Validation of SCL in Digital Substations
US20130305213A1 (en) Modularized customization of a model in a model driven development environment
CN104780148A (en) Server, terminal, system and method for document online operation
CN117573199B (en) Model difference comparison analysis method, device, equipment and medium
CN116933950B (en) Transmission method, device, equipment and storage medium of power prediction data
CN117270956B (en) Configuration method of hardware equipment, client, hardware equipment network management system and medium
WO2023142058A1 (en) Information processing method, apparatus, system, computing device, and computer-readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant