CN112306531A - Thing model-based Internet of things data expansion method - Google Patents
Thing model-based Internet of things data expansion method Download PDFInfo
- Publication number
- CN112306531A CN112306531A CN202011267311.6A CN202011267311A CN112306531A CN 112306531 A CN112306531 A CN 112306531A CN 202011267311 A CN202011267311 A CN 202011267311A CN 112306531 A CN112306531 A CN 112306531A
- Authority
- CN
- China
- Prior art keywords
- object model
- data
- equipment terminal
- internet
- terminal
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 101150096185 PAAS gene Proteins 0.000 claims abstract description 40
- 101001072091 Homo sapiens ProSAAS Proteins 0.000 claims abstract description 25
- 102100036366 ProSAAS Human genes 0.000 claims abstract description 25
- 230000005540 biological transmission Effects 0.000 claims abstract description 4
- 230000009471 action Effects 0.000 claims description 8
- 238000013500 data storage Methods 0.000 claims description 5
- 230000002452 interceptive effect Effects 0.000 claims description 3
- 230000007246 mechanism Effects 0.000 claims description 3
- 210000001503 joint Anatomy 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y30/00—IoT infrastructure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses an Internet of things data expansion method based on an object model, which comprises the following steps: step S1, generating corresponding object model codes on the cloud object model; step S2, the equipment terminal 2 after upgrading the firmware can realize the update iteration of the equipment terminal 2 object model by loading the object model code; step S3, object model data transmission and storage between the device terminal 2 and the user terminal 3 are achieved by means of the cloud PAAS platform 1, and data expansion of the Internet of things is achieved. The invention can satisfy all function definitions of SAAS layer developers for equipment, the data structure update of the object model does not need to be in butt joint with PAAS layer developers, the data expansibility is good, the access to various terminals in the Internet of things is convenient, and the restriction and the unification of the terminal functions are realized.
Description
Technical Field
The invention relates to the technical field of Internet of things, in particular to an Internet of things data expansion method based on a physical model.
Background
In the traditional internet of things, a cloud maintains data of a terminal, the data defines function information of the same type of product, along with the rapid increase of product types and functions accessed by the cloud, the data storage structure of the cloud is inevitably required to be continuously updated, and each update requires a client (such as a developer) to be in butt joint with a cloud service provider (PASS layer) to newly increase or modify the data storage structure, so that the efficiency is low, the operation difficulty is high, the problems of stability and data correctness caused by frequent service update are brought, the data expansibility is poor, and the terminal functions are difficult to restrict and unify. Therefore, the problem of poor expansibility exists between the cloud and the terminal, and the difficulty of realizing interconnection and intercommunication of everything in the Internet of things is greatly improved.
Accordingly, the prior art is deficient and needs improvement.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides an Internet of things data expansion method based on an object model.
The technical scheme of the invention is as follows:
an Internet of things data expansion method based on an object model comprises the following steps:
step S1, generating corresponding object model codes on the cloud object model;
step S2, the equipment terminal after upgrading the firmware can realize the update iteration of the equipment terminal object model by loading the object model code;
and S3, realizing object model data transmission and storage between the equipment terminal and the user terminal by means of the cloud PAAS platform, and realizing data expansion of the Internet of things.
Further, the implementation manner of the building model in step S1 includes the following steps:
step S101, a PAAS layer developer registers an Internet of things service at a cloud end;
step S102, a PAAS layer developer logs in an account;
step S103, the PAAS layer developer defines functional elements in the cloud to construct a model;
step S104, a PAAS layer developer publishes the object model constructed in the step S103 on a cloud PAAS platform;
and step S105, the PAAS platform generates a corresponding equipment terminal object model code based on the object model issued in the step S104.
Further, the implementation manner of the update iteration of the device endpoint model in step S2 includes the following steps:
step S201, an SAAS layer developer develops the function of an object model in a cloud based on the equipment terminal object model code generated by the PAAS platform and issues the object model with the developed function on the SAAS platform;
step S202, the SAAS layer developer develops the object model again according to the requirement based on the object model published on the SAAS platform, and publishes the object model developed again on the SAAS platform;
step S203, the SAAS platform generates a new equipment terminal object model code based on the object model reissued in the step S201;
step S204, upgrading the firmware of the equipment terminal, and loading the new equipment terminal object model code generated in the step S202 after the firmware is upgraded;
in step S205, the device terminal loads the configuration parameters saved in the cloud online to complete the update iteration.
Further, the object model data storage is realized in the following manner:
and acquiring object model data of the user terminal or the equipment terminal through an API (application program interface) of the PAAS platform, wherein the object model data is Json format data, the PAAS platform converts the Json format data into Bson format data, generates an object model in a Bson format according to the Bson format data, stores the object model in the Bson format through a database of the PAAS platform, converts the object model in the Bson format into the object model in the Json format and transmits the object model to the user terminal or the equipment terminal through the API, and therefore interactive storage of the object model data is achieved.
Furthermore, the object model is organized according to a tree state hierarchical mechanism of functional elements, data objects and data attributes, and one function or attribute of the equipment terminal is described through the data objects.
Further, the function elements in the step S103 include a ProConst element, a procondoly element, a procwriteable element, an Action element, and an Event element; the ProConst element is a constant attribute, namely the intrinsic parameter information of the equipment terminal, and cannot be changed during the operation; the ProReadonly element is read-only attribute, namely current state information of the equipment terminal; the ProWritable element is a writable parameter, namely a parameter which needs to be loaded when the equipment terminal runs, and is stored in the cloud; the Action element is an operation attribute, namely the current state can be changed after the equipment terminal receives a control operation command; the Event element is an Event attribute and is used for supporting the application layer to trigger Json format events of any type.
Further, the Action element is internally provided with a universal event model.
Further, the ProConst element, the procedonly element, and the Event element are data reported to the cloud end by the device terminal, and the user terminal is not allowed to operate.
By adopting the scheme, the invention has the following beneficial effects:
the invention can satisfy all function definitions of the SAAS layer developer to the equipment, completely transmits the capability of the function definition to the SAAS developer, updates the data structure of the object model without butt joint with the PAAS layer developer, has good data expansibility, is convenient for accessing various terminals in the Internet of things, and also realizes the restriction and unification of the terminal functions.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a flow chart of the Internet of things data expansion method based on an object model according to the invention;
FIG. 2 is a flow chart of a construct model of the present invention;
FIG. 3 is a flow chart of an implementation of the terminal object model update iteration of the present invention;
FIG. 4 is a flow chart of object model data storage according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
Referring to fig. 1 to 4, the invention provides an internet of things data expansion method based on an object model, which includes the following steps:
step S1, generating corresponding object model codes on the cloud object model;
step S2, the equipment terminal 2 after upgrading the firmware can realize the update iteration of the equipment terminal 2 object model by loading the object model code;
step S3, object model data transmission and storage between the device terminal 2 and the user terminal 3 are achieved by means of the cloud PAAS platform 1, and data expansion of the Internet of things is achieved.
In this embodiment, the implementation manner of the building model in step S1 includes the following steps:
step S101, a PAAS layer developer registers an Internet of things service at a cloud end;
step S102, a PAAS layer developer logs in an account;
step S103, the PAAS layer developer defines functional elements in the cloud to construct a model; the functional elements comprise a ProConst element, a ProReadonly element, a ProWritable element, an Action element and an Event element; the procost element is a constant attribute, that is, the intrinsic parameter information of the device terminal 2 does not change during the operation; the proReadonly element is a read-only attribute, namely current state information of the equipment terminal 2; the ProWritable element is a writable parameter, namely a parameter which needs to be loaded when the equipment terminal 2 runs, and is stored in the cloud; the Action element is an operation attribute, namely the current state can be changed after the equipment terminal 2 receives the control operation command; the Event element is an Event attribute, a general Event model is built in the Event element, and the Event element is used for supporting an application layer to trigger Json format events of any type; specifically, the ProConst element, the procedonly element, and the Event element belong to data reported to the cloud by the device terminal 2, and the user terminal 3 is not allowed to operate;
step S104, a PAAS layer developer publishes the object model constructed in the step S103 on a PAAS platform 1 at the cloud end;
step S105, the PAAS platform 1 generates the corresponding equipment terminal 2 object model code based on the object model.
In this embodiment, the implementation manner of the update iteration of the device terminal 2 object model in step S2 includes the following steps:
step S201, an SAAS layer developer develops the function of an object model at the cloud end based on the object model code of the equipment terminal 2 generated by the PAAS platform 1, and issues the object model with the developed function on the SAAS platform, and the equipment terminal 2 can load the object model with the developed function, so that a basic object model is embedded in the equipment terminal 2;
step S202, the SAAS layer developer develops the object model again according to the requirement based on the object model published on the SAAS platform, and publishes the object model developed again on the SAAS platform;
step S203, the SAAS platform generates a new equipment terminal 2 object model code based on the object model reissued in the step S201;
step S204, upgrading the firmware of the equipment terminal 2, and loading the new equipment terminal 2 object model code generated in the step S202 after the firmware is upgraded;
step S205, the device terminal 2 loads the configuration parameters stored by the cloud end on line to complete updating iteration;
furthermore, the object model is organized according to a tree state hierarchical mechanism of functional elements, data objects and data attributes; the data object is used for describing one function or attribute of the equipment terminal 2, and an SAAS layer developer can realize the function of developing an object model based on the object model code of the equipment terminal 2 produced by the PAAS platform 1 in a mode of adding a self-defined data object, so that a terminal equipment object model meeting the self requirement is formed; when adding a data object, an SAAS layer developer needs to specify an object name, a data type and a function constraint, and the object name needs to accord with a naming rule and ensure uniqueness in the same product.
In this embodiment, the storage of the object model data is implemented by:
the object model data of the user terminal 3 or the equipment terminal 2 is obtained through the API 11 of the PAAS platform 1, the object model data is Json format data, the PAAS platform 1 converts the Json format data into Bson format data, the PAAS platform 1 generates a Bson-form object model according to the Bson format data, the Bson-form object model is stored through the database of the PAAS platform 1, the PAAS platform 1 converts the Bson-form object model into a Json-form object model and transmits the Json-form object model to the user terminal 3 or the equipment terminal 2 through the API 11, and therefore interactive storage of the object model data is achieved, and data expansibility is good.
Compared with the prior art, the invention has the following beneficial effects:
the invention can satisfy all function definitions of the SAAS layer developer to the equipment, completely transmits the capability of the function definition to the SAAS developer, updates the data structure of the object model without butt joint with the PAAS layer developer, has good data expansibility, is convenient for accessing various terminals in the Internet of things, and also realizes the restriction and unification of the terminal functions.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. An Internet of things data expansion method based on an object model is characterized by comprising the following steps:
step S1, generating corresponding object model codes on the cloud object model;
step S2, the equipment terminal after upgrading the firmware can realize the update iteration of the equipment terminal object model by loading the object model code;
and S3, realizing object model data transmission and storage between the equipment terminal and the user terminal by means of the cloud PAAS platform, and realizing data expansion of the Internet of things.
2. The object model-based internet of things data expansion method according to claim 1, wherein the implementation manner of building the object model in the step S1 includes the following steps:
step S101, a PAAS layer developer registers an Internet of things service at a cloud end;
step S102, a PAAS layer developer logs in an account;
step S103, the PAAS layer developer defines functional elements in the cloud to construct a model;
step S104, a PAAS layer developer publishes the object model constructed in the step S103 on a cloud PAAS platform;
and step S105, the PAAS platform generates a corresponding equipment terminal object model code based on the object model issued in the step S104.
3. The object model-based internet of things data expansion method of claim 2, wherein the implementation manner of the update iteration of the device terminal object model in the step S2 comprises the following steps:
step S201, an SAAS layer developer develops the function of an object model in a cloud based on the equipment terminal object model code generated by the PAAS platform and issues the object model with the developed function on the SAAS platform;
step S202, the SAAS layer developer develops the object model again according to the requirement based on the object model published on the SAAS platform, and publishes the object model developed again on the SAAS platform;
step S203, the SAAS platform generates a new equipment terminal object model code based on the object model reissued in the step S201;
step S204, upgrading the firmware of the equipment terminal, and loading the new equipment terminal object model code generated in the step S202 after the firmware is upgraded;
in step S205, the device terminal loads the configuration parameters saved in the cloud online to complete the update iteration.
4. The object model-based internet of things data expansion method according to claim 1, wherein the object model data storage is realized by the following steps:
and acquiring object model data of the user terminal or the equipment terminal through an API (application program interface) of the PAAS platform, wherein the object model data is Json format data, the PAAS platform converts the Json format data into Bson format data, generates an object model in a Bson format according to the Bson format data, stores the object model in the Bson format through a database of the PAAS platform, converts the object model in the Bson format into the object model in the Json format and transmits the object model to the user terminal or the equipment terminal through the API, and therefore interactive storage of the object model data is achieved.
5. The internet of things data expansion method based on the object model as claimed in claim 1, wherein the object model is organized according to a tree state hierarchical mechanism of functional elements, data objects and data attributes, and one function or attribute of the equipment terminal is described through the data object.
6. The data expansion method of the internet of things based on the object model according to claim 2, wherein the functional elements in the step S103 include a ProConst element, a procondoly element, a procwriteable element, an Action element and an Event element; the ProConst element is a constant attribute, namely the intrinsic parameter information of the equipment terminal, and cannot be changed during the operation; the ProReadonly element is read-only attribute, namely current state information of the equipment terminal; the ProWritable element is a writable parameter, namely a parameter which needs to be loaded when the equipment terminal runs, and is stored in the cloud; the Action element is an operation attribute, namely the current state can be changed after the equipment terminal receives a control operation command; the Event element is an Event attribute and is used for supporting the application layer to trigger Json format events of any type.
7. The Internet of things data expansion method based on object model as claimed in claim 6, wherein the Action element is embedded with a general event model.
8. The Internet of things data expansion method based on the object model as claimed in claim 6, wherein the ProConst element, the ProReadonly element and the Event element are data reported to a cloud end by the device terminal, and the user terminal is not allowed to operate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011267311.6A CN112306531B (en) | 2020-11-13 | Internet of things data expansion method based on object model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011267311.6A CN112306531B (en) | 2020-11-13 | Internet of things data expansion method based on object model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112306531A true CN112306531A (en) | 2021-02-02 |
CN112306531B CN112306531B (en) | 2024-05-14 |
Family
ID=
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113364882A (en) * | 2021-06-25 | 2021-09-07 | 京东方科技集团股份有限公司 | Internet of things terminal, data transmission method thereof and related equipment |
CN114531462A (en) * | 2021-12-31 | 2022-05-24 | 山东浪潮工业互联网产业股份有限公司 | Data processing method and equipment for Internet of things equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391689A (en) * | 2014-11-04 | 2015-03-04 | 中国石油天然气股份有限公司 | Internet of things application development method, middleware and PaaS (Platform as a Service) |
CN108377207A (en) * | 2018-05-19 | 2018-08-07 | 济南浪潮高新科技投资发展有限公司 | A kind of access of platform of internet of things equipment and configuration method |
CN111586081A (en) * | 2019-02-18 | 2020-08-25 | 宁波方太厨具有限公司 | Internet of things implementation method based on object model |
CN111654498A (en) * | 2020-06-03 | 2020-09-11 | 深圳市信锐网科技术有限公司 | Equipment adding method and Internet of things platform |
CN111831293A (en) * | 2020-07-06 | 2020-10-27 | 统一通信(苏州)有限公司 | Internet of things supporting software cloud rapid deployment method |
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391689A (en) * | 2014-11-04 | 2015-03-04 | 中国石油天然气股份有限公司 | Internet of things application development method, middleware and PaaS (Platform as a Service) |
CN108377207A (en) * | 2018-05-19 | 2018-08-07 | 济南浪潮高新科技投资发展有限公司 | A kind of access of platform of internet of things equipment and configuration method |
CN111586081A (en) * | 2019-02-18 | 2020-08-25 | 宁波方太厨具有限公司 | Internet of things implementation method based on object model |
CN111654498A (en) * | 2020-06-03 | 2020-09-11 | 深圳市信锐网科技术有限公司 | Equipment adding method and Internet of things platform |
CN111831293A (en) * | 2020-07-06 | 2020-10-27 | 统一通信(苏州)有限公司 | Internet of things supporting software cloud rapid deployment method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113364882A (en) * | 2021-06-25 | 2021-09-07 | 京东方科技集团股份有限公司 | Internet of things terminal, data transmission method thereof and related equipment |
CN113364882B (en) * | 2021-06-25 | 2022-08-23 | 京东方科技集团股份有限公司 | Internet of things terminal, data transmission method thereof and related equipment |
CN114531462A (en) * | 2021-12-31 | 2022-05-24 | 山东浪潮工业互联网产业股份有限公司 | Data processing method and equipment for Internet of things equipment |
CN114531462B (en) * | 2021-12-31 | 2024-05-03 | 浪潮工业互联网股份有限公司 | Data processing method and device for Internet of things device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109840429B (en) | Intelligent contract deployment and calling method and device | |
CN104063239B (en) | Application program update method and server, the client of mobile terminal | |
US11531535B2 (en) | Firmware upgrade method and apparatus, and terminal | |
CN102103497B (en) | Finite state machine actuating device and method, and method for establishing and using finite state machine | |
US20040015822A1 (en) | Method and apparatus for dynamic assembly and verification of software components into flexible applications | |
CN101944032A (en) | Microware updating method, client, server and system | |
CN102855152A (en) | Method and system for upgrading resource files in application programs | |
CN111324619A (en) | Object updating method, device, equipment and storage medium in micro service system | |
CN105373406A (en) | Android platform based application layout dynamic switching method and system | |
CN102158434A (en) | Intelligent gateway and method for realizing application program management on intelligent gateway | |
CN113778477A (en) | File processing method and device, computer readable storage medium and electronic device | |
CN111683005B (en) | Internet of things intelligent gateway equipment and construction method thereof | |
US20090187601A1 (en) | Automation process system and method to upgrade from non-unicode transformation support to unicode data transformation support | |
CN112306531A (en) | Thing model-based Internet of things data expansion method | |
CN111813836A (en) | Method for improving Ethereum block chain system expansibility | |
CN102541544A (en) | Method, device and system for processing tree control | |
CN108536447B (en) | Operation and maintenance management method | |
CN112818176A (en) | Data processing method, device, equipment and storage medium | |
CN112306531B (en) | Internet of things data expansion method based on object model | |
US11016830B2 (en) | Entity-based service operation for object-based persistence | |
CN116069366A (en) | Client application program updating method and device, storage medium and electronic equipment | |
CN115934050A (en) | System optimization method, device, medium and equipment based on domain drive | |
CN114706608A (en) | Method for upgrading firmware and electronic equipment | |
CN115794253A (en) | Application integration method and device, electronic equipment and computer readable storage medium | |
CN115857878A (en) | Development framework generation method and application method |
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 |