CN113139884B - Intelligent building management system method, system, storage medium and electronic equipment - Google Patents
Intelligent building management system method, system, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113139884B CN113139884B CN202110326805.5A CN202110326805A CN113139884B CN 113139884 B CN113139884 B CN 113139884B CN 202110326805 A CN202110326805 A CN 202110326805A CN 113139884 B CN113139884 B CN 113139884B
- Authority
- CN
- China
- Prior art keywords
- model file
- data processing
- data
- edge gateway
- intelligent
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 70
- 238000007726 management method Methods 0.000 claims abstract description 68
- 230000008569 process Effects 0.000 claims abstract description 16
- 238000013500 data storage Methods 0.000 claims abstract description 14
- 230000007246 mechanism Effects 0.000 claims abstract description 11
- 238000004458 analytical method Methods 0.000 claims abstract description 8
- 230000006870 function Effects 0.000 claims description 77
- 238000004422 calculation algorithm Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012544 monitoring process Methods 0.000 claims description 11
- 238000012795 verification Methods 0.000 claims description 9
- 238000012800 visualization Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 21
- 238000004891 communication Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 238000005286 illumination Methods 0.000 description 4
- 238000011160 research Methods 0.000 description 4
- 238000012163 sequencing technique Methods 0.000 description 4
- 238000005265 energy consumption Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007480 spreading Effects 0.000 description 2
- 239000013598 vector Substances 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 238000007418 data mining Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/16—Real estate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/30—Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
- H04L9/3066—Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy involving algebraic varieties, e.g. elliptic or hyper-elliptic curves
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Tourism & Hospitality (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mathematical Physics (AREA)
- Economics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Algebra (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses an intelligent building management system method, a system, a storage medium and electronic equipment, wherein the intelligent building management method comprises the following steps: a device data acquisition step: acquiring equipment data generated by intelligent equipment through an edge gateway layer; and (3) equipment data processing: the edge gateway layer processes the equipment data through a data processing program model file, assembles the processed equipment data into a model file data processing result record and uploads the model file data processing result record to a block chain; a device data storage step: after uploading to a block chain, performing consensus on model file data processing result records by a Hashgraph consensus mechanism, and then performing block uplink storage; and a device data calling step: and acquiring the device data of the intelligent device from the block chain through the intelligent contract for management and analysis. The method and the system can meet the requirement of a large number of intelligent devices in the building on the block chain throughput, and simultaneously reduce the pressure of a system server.
Description
Technical Field
The present invention relates to the field of intelligent building equipment information management, and in particular, to an intelligent building management method, system, storage medium, and electronic device based on a block chain.
Background
Along with the continuous development of the building field, the intelligent degree of the building is higher and higher, and the quantity of intelligent equipment in the building is more and more. There is much research on the existing intelligent building management system based on the block chain, but the number of devices involved is small, and the throughput requirement on the block chain is low. As the number of devices increases, the number of access operations for data in the blockchain also increases greatly, and the throughput of the conventional blockchain cannot meet the use requirement. Meanwhile, the intelligent device also has certain calculation and storage capacity, and can perform data processing or statistical operation which can be achieved by some force, but the precious calculation force resources are not fully utilized at present.
Although scholars at home and abroad have made more researches on the application of the block chain in the internet of things. For example, an automatic energy-saving control system for equipment based on a block chain uploads the energy consumption condition of the equipment and an energy-saving threshold value to the block chain, and an intelligent contract of the block chain automatically monitors whether the energy consumption of the equipment reaches the energy-saving threshold value and determines whether an energy-saving mode of the equipment needs to be started according to a monitoring result; or a humiture automatic detection alarm system based on the block chain uploads humiture threshold values and humiture data monitored by a sensor to the block chain, and intelligent contracts of the block chain automatically monitor whether the humiture reaches the threshold values and judge whether alarm is needed according to monitoring results; the intelligent home system based on the block chain realizes access control of system data by using the block chain, thereby protecting the safety of the system data; and a building management system based on the block chain, which realizes the storage and access control of distributed equipment data in the building by using the block chain.
However, although the above researches all use the blockchain to realize safe and reliable data storage and data access control, the number of devices involved therein is small, and the throughput of the existing blockchain can still meet the use requirement. However, as the number of devices in a building is continuously increased, the requirement on the throughput rate of the block chain is higher and higher, and the throughput rate of the existing block chain cannot meet the actual use requirement. In addition, some of the devices in the above-mentioned research have certain computing and storage capabilities, and can perform some data processing or statistical operations, but these precious computing resources are not effectively utilized.
Therefore, on the premise of realizing the intelligent building management function, the throughput rate of the existing block chain is improved to meet the use requirement, and meanwhile, the calculation resources of the intelligent equipment can be fully utilized, so that the problem which needs to be solved urgently is solved.
Therefore, it is desirable to develop a block chain-based intelligent building management method, system, storage medium and electronic device.
Disclosure of Invention
In view of the above problem, the present invention provides an intelligent building management method, wherein based on a block chain, the intelligent building management method includes:
a device data acquisition step: acquiring equipment data generated by intelligent equipment through an edge gateway layer;
and (3) equipment data processing: the edge gateway layer processes the equipment data through a data processing program model file, assembles the processed equipment data into a model file data processing result record and uploads the model file data processing result record to a block chain;
a device data storage step: after uploading to a block chain, performing consensus on the model file data processing result records by a Hashgraph consensus mechanism, and then performing block uplink storage;
and a device data calling step: and acquiring the equipment data of the intelligent equipment from the block chain through an intelligent contract for management and analysis.
The above intelligent building management method, wherein the device data processing step includes: and after a model issuing function is called to send the data processing program model file to the designated edge gateway of the edge gateway, the edge gateway operates the local data processing program model file and operates the data acquired by the intelligent equipment according to the data processing program code defined in the data processing program model file.
The above intelligent building management method, wherein the device data processing step includes:
an encryption step: encrypting the data processing program model file by using a public key corresponding to the edge gateway node to generate an encrypted data processing program model file;
a hash value acquisition step: uploading the encrypted data processing program model file to an I PFS system, and acquiring a hash value corresponding to the data processing program model file;
and uploading model file information records: assembling the obtained hash values into model file information records, and uploading the model file information records to a block chain by using a model file uploading contract;
and (3) model file information record verification: the edge gateway node triggers a monitoring event of a model file uploading contract, acquires a model file information record from a block chain by using the model file acquisition contract, verifies whether a gateway number in the model file information record is consistent with a gateway number of the edge gateway node, and verifies an administrator private key signature in the model file information;
model file downloading step: the edge gateway node with the consistent gateway number and the model file information record obtains the hash value in the model file information record, and downloads the encrypted model file from the IPFS system by using the hash value;
acquiring a data processing program model file: and the edge gateway node decrypts the encrypted model file through a private key to obtain the original data processing program model file.
The above intelligent building management method, wherein the device data processing step further comprises:
and a public and private key pair obtaining step: and the edge gateway node generates a public and private key pair through an elliptic curve encryption algorithm.
In the above intelligent building management method, the hash value in the hash value obtaining step is a hash value obtained by using SHA-256 hash function, Multihash coding, and Base58 coding according to the content of the encrypted data processing program model file, so as to indicate a storage address of the encrypted data processing program model file in the IPFS system.
In the above intelligent building management method, the model file information record in the uploading step includes at least one of a gateway number, an uploading time, a timestamp, a model file hash value, a model file function type, and an administrator signature.
In the above intelligent building management method, the model file data processing result record in the device data processing step includes at least one of a gateway number, upload time, a timestamp, a model file hash value, a model file execution result, a model execution result signature, and a model file function type.
The present invention also provides an intelligent building management system, wherein based on the block chain, the intelligent building management system comprises:
a smart device layer including a plurality of smart devices;
the edge gateway layer is used for processing the equipment data through a data processing program model file after acquiring the equipment data generated by at least one intelligent device, and assembling the processed equipment data into a model file data processing result record;
and after the model file data processing result is recorded and uploaded to a block chain of the data storage layer, the block chain identifies the model file data processing result by a Hashgraph consensus mechanism and then stores the identified model file data processing result in a block chain, and equipment data of the intelligent equipment is acquired from the block chain by an intelligent contract to be managed and analyzed.
The intelligent building management system comprises a platform application layer, wherein the platform application layer has an integrated subsystem function, a management function, a basic function, a visualization function and a model issuing function.
In the above intelligent building management system, after the model issuing function of the platform application layer is called to send the data processing program model file to the designated edge gateway of the edge gateway layer, the edge gateway runs the local data processing program model file, and operates the data acquired by the intelligent device according to the data processing program code defined in the data processing program model file.
In the above intelligent building management system, the platform application layer encrypts the data processing program model file by using the public key corresponding to the edge gateway node, and generates an encrypted data processing program model file; uploading the encrypted data processing program model file to an IPFS system, and acquiring a hash value corresponding to the data processing program model file; assembling the obtained hash values into model file information records, and uploading the model file information records to a block chain of the data storage layer by using a model file uploading contract; the edge gateway node of the edge gateway layer triggers a monitoring event of a model file uploading contract, acquires the model file information record from the block chain by using the model file acquisition contract, verifies whether the gateway number in the model file information record is consistent with the gateway number of the edge gateway node, and verifies the administrator private key signature in the model file information; when the edge gateway node with the consistent gateway number and the model file information record obtains the hash value in the model file information record, downloading the encrypted model file from the IPFS system by using the hash value; and the edge gateway node decrypts the encrypted model file through a private key to obtain the original data processing program model file.
In the above intelligent building management system, the edge gateway node generates a public and private key pair by an elliptic curve cryptography algorithm.
In the above intelligent building management system, the hash value is obtained by using SHA-256 hash function, Multihash coding, and Base58 coding according to the content of the encrypted data handler model file, so as to indicate the storage address of the encrypted data handler model file in the IPFS system.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor implements the intelligent building management method according to any one of the above aspects when executing the computer program.
The present invention also provides a storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the intelligent building management method as set forth in any one of the above.
In summary, compared with the prior art, the invention has the following effects: the intelligent device and the device data in the intelligent building system are managed by combining a block chain technology, so that safe and reliable data storage and data access control are realized; meanwhile, a Hashgraph consensus mechanism is introduced into the block chain, so that the throughput rate of the block chain is improved to meet the processing requirements of large data volume and large transaction volume; in addition, the computing and storing capacities of intelligent equipment such as the edge gateway and the like are fully utilized, data processing, statistics and other operations are carried out on data collected by the intelligent equipment, and the computing pressure of a system server is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of an intelligent building management method of the present invention;
FIG. 2 is a flowchart illustrating the substeps of step S2 in FIG. 1;
FIG. 3 is a flow chart of an application of the intelligent building management method of the present invention;
FIG. 4 is a flow chart of the application of the model launch function;
FIG. 5 is a timing diagram of the model issue function;
FIG. 6 is a diagram of a Hashgraph event structure;
FIG. 7 is a diagram of the Hashgraph eight diagrams propagation protocol;
FIG. 8 is a system architecture diagram of the intelligent building management system of the present invention;
FIG. 9 is a schematic structural diagram of an electronic device according to the present invention;
FIG. 10 is a schematic diagram of a process for generating model file processing results;
FIG. 11 is a schematic diagram of a process for generating a predicted result from executing a data processing program model file.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The exemplary embodiments of the present invention and the description thereof are provided to explain the present invention and not to limit the present invention. Additionally, the same or similar numbered elements/components used in the drawings and the embodiments are used to represent the same or similar parts.
As used herein, the terms "first", "second", "S1", "S2", …, etc. do not particularly denote an order or sequential meaning, nor are they intended to limit the present invention, but merely distinguish between elements or operations described in the same technical terms.
As used herein, the terms "comprising," "including," "having," "containing," and the like are open-ended terms that mean including, but not limited to.
References to "plurality" herein include "two" and "more than two"; reference to "multiple sets" herein includes "two sets" and "more than two sets".
In the invention, the edge gateway is connected with the intelligent equipment, and a data acquisition interface is periodically called to acquire related data generated by the intelligent equipment; after collecting the related data generated by the intelligent equipment, the edge gateway runs a local data processing program related to the equipment data, performs data processing on the collected equipment data, and uploads the processed data to a block chain network through an intelligent contract; after the data is uploaded to a block chain network, all nodes in the network use Hashgraph consensus to perform consensus sequencing on the data, and the sequenced data is blocked and uplinked for storage; the system client can then acquire the data of the intelligent device from the block chain by calling the intelligent contract for management and analysis
For better understanding of the above technical solutions, the following detailed descriptions will be provided in conjunction with the drawings and the detailed description of the embodiments.
Referring to fig. 1-2, fig. 1 is a flow chart of an intelligent building management method according to the present invention; fig. 2 is a flowchart illustrating a sub-step of step S2 in fig. 1. As shown in fig. 1-2, the intelligent building management method based on block chains of the present invention includes:
device data acquisition step S1: acquiring equipment data generated by intelligent equipment through an edge gateway layer;
device data processing step S2: the edge gateway layer processes the equipment data through a data processing program model file, assembles the processed equipment data into a model file data processing result record and uploads the model file data processing result record to a block chain, wherein the model file data processing result record comprises at least one of a gateway number, uploading time, a timestamp, a model file hash value, a model file execution result, a model execution result signature and a model file function type;
device data storage step S3: after uploading to a block chain, performing consensus on the model file data processing result records by a Hashgraph consensus mechanism, and then performing block uplink storage;
device data calling step S4: and acquiring the equipment data of the intelligent equipment from the block chain through an intelligent contract for management and analysis.
The device data processing step S2 includes: and after a model issuing function is called to send the data processing program model file to the designated edge gateway of the edge gateway, the edge gateway operates the local data processing program model file and operates the data acquired by the intelligent equipment according to the data processing program code defined in the data processing program model file.
Further, the device data processing step S2 includes:
encryption step S21: encrypting the data processing program model file by using a public key corresponding to the edge gateway node to generate an encrypted data processing program model file;
hash value acquisition step S22: uploading the encrypted data processing program model file to an IPFS system, and acquiring a hash value corresponding to the data processing program model file, wherein the hash value is obtained by using a SHA-256 hash function, a Multihash code and a Base58 code according to the content of the encrypted data processing program model file to represent the storage address of the encrypted data processing program model file in the IPFS system;
model file information record uploading step S23: assembling the obtained hash values into model file information records, and uploading the model file information records to a block chain by using a model file uploading contract, wherein the model file information records comprise at least one of gateway numbers, uploading time, timestamps, model file hash values, model file function types and administrator signatures;
model file information record verification step S24: the edge gateway node triggers a monitoring event of a model file uploading contract, acquires a model file information record from a block chain by using the model file acquisition contract, verifies whether a gateway number in the model file information record is consistent with a gateway number of the edge gateway node, and verifies an administrator private key signature in the model file information;
model file downloading step S25: the edge gateway node with the consistent gateway number and the model file information record obtains the hash value in the model file information record, and downloads the encrypted model file from the IPFS system by using the hash value;
data handler model file acquisition S26: and the edge gateway node decrypts the encrypted model file through a private key to obtain the original data processing program model file.
Still further, the device data processing step S2 further includes:
public and private key pair obtaining step S20: and the edge gateway node generates a public and private key pair through an elliptic curve encryption algorithm.
Referring to fig. 3-7, fig. 3 is a flow chart illustrating an application of the intelligent building management method according to the present invention; FIG. 4 is a flow chart of the application of the model launch function; FIG. 5 is a timing diagram of the model issue function; FIG. 6 is a diagram of a Hashgraph event structure; fig. 7 is a diagram of the Hashgraph eight diagrams propagation protocol. As shown in fig. 3-7, in the present embodiment,
the method comprises the following steps:
s41: the edge gateway is connected with the intelligent equipment through a network, and then acquires relevant data generated by the intelligent equipment through a data acquisition interface, wherein the edge gateway acquires the relevant data of the equipment by using the data acquisition interface preset for the intelligent equipment by an intelligent equipment manufacturer and calling the data acquisition interface at regular time according to a predefined acquisition time interval;
s42: after acquiring data of intelligent equipment, the edge gateway operates a related data processing program model file to process the data, then assembles the processed data into a model file data processing result record, and uploads the data to a block chain through an intelligent contract of the block chain, wherein the model file data processing result record comprises a gateway number, uploading time, a timestamp, a model file hash value, a model file execution result, a model execution result signature and a model file function type;
s43: after data are uploaded to a block chain, the data are identified by a Hashgraph common identification mechanism and then the block chain is stored;
s44: the client acquires data of the intelligent device from the blockchain through the intelligent contract for management and analysis, wherein specifically, the management and analysis on the device data in the step S44 include, but are not limited to, data sharing, data statistics display and/or data mining;
specifically, the data processing operation of the edge gateway in step S42 is that after the administrator invokes the model issuing function to send the data processing program model file to the specified edge gateway, the edge gateway runs the local data processing program model file, and performs data statistics, prediction and other operations on the data acquired by the intelligent device according to the data processing program code defined in the model file;
specifically, a flow diagram of the model issuing function is shown in fig. 4, and a timing chart is shown in fig. 5, and the method mainly includes the following steps:
s421: a system administrator encrypts a local data processing program model file by using a public key of a corresponding edge gateway node to generate an encrypted model file;
s422: uploading the encrypted model file to an IPFS system by a system administrator, and acquiring a hash value corresponding to the encrypted model file;
s423: the system administrator assembles the obtained hash values into model file information records, and uploads the model file information records to a block chain by using a model file uploading contract;
s424: all edge gateway nodes trigger monitoring events of the model file uploading contracts, the model file is used for obtaining contracts and obtaining model file information records from a block chain, whether the gateway numbers in the records are consistent with the gateway numbers of the edge gateway nodes or not is verified, and the administrator private key signatures in the records are verified;
s425: the edge gateway node with the consistent gateway number and the model file information record obtains the hash value of the model file in the information record, and downloads the encrypted model file from the IPFS system by using the hash value;
s426: and the edge gateway node decrypts the encrypted model file by using a private key of the edge gateway node to obtain an original data processing program model file.
Specifically, the step S421 further includes:
an administrator and each edge gateway node generate a public and private key pair by using an elliptic curve encryption algorithm, a public key is used for data encryption and private key signature verification, a private key is used for data decryption and signature identification identity confidentiality, and the administrator and each edge gateway node are added into an interplanetary file system IPFS and used for uploading and obtaining model files;
specifically, the interplanetary file system IPFS is a decentralized distributed storage system, a unique hash value is generated through file content to identify files, only one file with the same content exists in a network, and the problems that the transmission is unsafe, the storage redundancy is high, the storage cost is high and the like in the traditional HTTP protocol are solved;
specifically, the corresponding edge gateway node in Step1 refers to a designated gateway node to which the administrator is to send the local data handler model file;
specifically, the hash value in Step2 is a hash value obtained by using SHA-256 hash function, Multihash coding, and Base58 coding according to the content of the encryption model file, and is used for indicating the storage address of the encryption model file in the IPFS system;
specifically, the model file information recording data structure in step S423 is shown in table 1, and includes a gateway number, upload time, a timestamp, a model file hash value, a model file function type, and an administrator signature;
TABLE 1
The model file hash value is obtained by uploading an encrypted local data processing program model file to an IPFS system by an administrator;
the model file function type refers to the functions of the model file, and comprises functions of statistics, prediction and the like;
the administrator signature is the signature of the administrator on the hash value of the model file by using a private key of the administrator and is used for verifying whether the hash value of the model file is tampered by the edge gateway;
specifically, the verification of the administrator private key signature in step S424 means that the edge gateway node verifies the administrator signature in the model file information record by using the public key of the administrator, and if the verification result is consistent with the hash value of the model file in the model file information record, it is proved that the hash value of the model file in the record has not been tampered with;
specifically, the downloading of the encryption model file in step S425 refers to that the edge gateway node obtains the encrypted model file from the IPFS system by using the hash value of the encryption model file and using an IPFS command;
specifically, the data structure of the model file data processing result record in step S42 is shown in table 2, and includes a gateway number, upload time, a timestamp, a model file hash value, a model file execution result, a model execution result signature, and a model file function type;
TABLE 2
The gateway number refers to the number of the current edge gateway node;
the model file hash value is an encrypted model file hash value obtained by the edge gateway node from the model file information record;
the model file execution result refers to a result obtained after the edge gateway node runs the model file, and is divided into a statistical result and a prediction result according to the function type of the model file;
the model file function type refers to the function classification of the model file, and comprises functions of statistics, prediction and the like;
the model execution result signature means that the edge gateway node uses a private key of the edge gateway node to sign the execution result of the model file and is used for verifying whether the execution result of the model file is tampered;
specifically, the Hashgraph consensus mechanism in step S43 mainly includes the following steps: generating an event, broadcasting the event through the eight diagrams spreading protocol (gossip about gossip), and voting by adopting a virtual voting algorithm, wherein the main flow is as follows:
s431: the event structure generated in the event generating step is shown in fig. 6, and mainly includes: the event content comprises data and an operation command acquired by intelligent equipment, a processing result after data processing operation of an edge gateway and the like;
s432: the schematic diagram of the transmission protocol by the eight diagrams is shown in fig. 7, and the main flow of the broadcast event is as follows: the local node assembles newly received data and signature information of the data received from other nodes into an event, and then randomly sends the event to a target node; after receiving the event, the target node reads and stores the data (event content) in the event, then assembles the data in the event and the information collected from other nodes into a new event, then sends the new event to other randomly selected nodes, and repeats the process until all the nodes receive the event created at the beginning;
s433: when all nodes receive the event created at the beginning, all nodes need to execute the virtual voting algorithm locally to reach a consensus on the event. The virtual voting algorithm mainly comprises three steps of round determination, famous witness determination and data validity voting collection, and consensus round number and consensus time determination:
(1) and (3) determining the turns: the first event sent by a node is a witness event, and the witness event is the beginning of a round (R) for the node. Assuming that after node B receives event X sent by node a, node B will select node C as the receiving node, node B creates event P (which includes data known to node B but not to node C) and sends P to node C, before creating event P, node B should check if it needs to start a new round, if event X can see most witnesses in round R, event P is the start of round R +1 and P is the witness in round R + 1.
Otherwise, event P is still in R round;
(2) witness determination and data validity vote collection: when judging whether the witness in the round R is a known witness, the witness in the round R +1 is required to judge, and then the witness in the round R +2 is used to count whether the witness is a known witness and whether the data contained in the witness event in the round R is valid. If the witness of the node B of the round R +1 can see the witness of the node A of the round R, the witness of the node B of the round R +1 casts a known witness ticket to the witness of the node A of the round R. The witness of the C node of the round R +2 collects the number of tickets which can be strongly seen by the witness of the B node (or other nodes) of the round R +1 and proves that the A node is the well-known witness, and when the number of tickets exceeds two thirds of the number of the nodes, the witness of the A node is the well-known witness. Data contained in practice is valid when the number of votes for which the collected data is valid exceeds the number of 1/2 nodes.
(3) Determining the number of consensus rounds and the consensus time: when the witnesses in round R all determine whether they are known witnesses, then the round of receipt of events that can be seen by all the witness in round R is R. Event P to each witness node where it is visible, the earliest event to see P, such as: if the event P is visible at the node A and the node A, B, C, the node A can see the P as the P at the earliest, the node B can transmit the P to the node B for the first time, the node C and the node B can find the median of the time stamps in the three events as the common identification time stamp of the event P, and the information of the common identification time stamp, the number of common identification rounds, the effective ticket number obtained by the data, whether the data is effective and the like is stored in the block chain.
Wherein the terms appearing in Step3 are defined as follows:
the method comprises the following steps: when a certain event is seen by most of the visitors, the event enters the next round;
② most: 2/3 exceeding the total number of nodes;
③ see: when block B can find block A along the hash pointer, B is called visible A;
and fourthly, the witness: the first event created by each node in each round is called the witness of the round;
the fifth step is that: when the event B crosses most of the events in the path of the event A, the event B is called to be strongly visible A;
sixthly, the famous witness: the witnesses in round R are called known witnesses if they can be seen by the vast majority of the witnesses in round R + 1.
In an embodiment of the present invention, a specific process for generating a processing result of a model file is shown in fig. 10, and includes the following steps:
s101: the method comprises the steps that an illumination subsystem edge gateway respectively collects current equipment operation data of each illumination equipment terminal in an intelligent building system and inquires information records of model files stored in a block chain;
in the process of executing step S101, collected current device operation data of each lighting device terminal in the intelligent building system includes, but is not limited to, terminal characteristics and/or current operation data of the lighting device terminal, where the terminal characteristics may be a brand, a model, a brand parameter and/or a rated power, and the current operation data may be power consumption, a turn-on duration, fault information, a current lighting device turn-on state and/or current lighting device operation state information;
model file information records stored in the block chain of the query include, but are not limited to, edge gateway numbers, model file hash values, model file function types, administrator signatures, model file upload times and/or timestamps;
specifically, the functional types of the model files include, but are not limited to, statistical types and/or predictive types;
s102: generating a model file processing result record and uploading the model file processing result record to a block chain according to current equipment operation data acquired by an edge gateway of an illumination subsystem and a data processing program model file acquired from an IPFS system in advance;
specifically, the processing result generated by executing the data processing program model file in step S102 includes, but is not limited to, a statistical result and/or a prediction result;
in an embodiment of the present invention, a specific process for executing a data processing program model file to generate a prediction result is shown in fig. 11, and includes the following steps:
s111, the edge gateway of the lighting subsystem acquires historical operating data of each lighting equipment terminal in a specified time period from the block chain;
s112: preprocessing historical operating data of the lighting equipment terminal, and extracting the historical operating data including but not limited to the number, the power consumption, the starting time and/or the current equipment operating state of the lighting equipment as a feature vector;
s113: generating a power consumption prediction model of the lighting equipment according to a preset machine learning algorithm and the extracted feature vectors in the model file;
specifically, the process of generating the lighting device power consumption prediction model in steps S111 to S113 is generated only when the data processing program model file is executed for the first time;
s114: executing a power consumption prediction function of the lighting equipment in the model file, predicting the power consumption in a specified time period in the future according to the power consumption prediction model of the lighting equipment and the collected current equipment operation data, and generating a power consumption prediction result record of the lighting equipment;
specifically, the lighting device power consumption prediction result record in step S114 includes, but is not limited to, a lighting device number, a predicted power consumption, and/or a predicted time.
In this embodiment, the lighting system and the device are used as examples for description, but the invention is not limited thereto, and in other embodiments, the intelligent device may also be a camera, an air conditioner, an access control device, an intelligent temperature and humidity sensor, and other intelligent devices.
In the intelligent building management system, the edge gateway is connected with the intelligent equipment through a network, and a data acquisition interface is periodically called to acquire related data generated by the intelligent equipment; after collecting the related data generated by the intelligent equipment, the edge gateway runs a local data processing program related to the equipment data, performs data processing on the collected equipment data, and uploads the processed data to a block chain network through an intelligent contract; after the data is uploaded to a block chain network, all nodes in the network use Hashgraph consensus to perform consensus sequencing on the data, and the sequenced data is blocked and uplinked for storage; the system client can then obtain the data of the intelligent device from the blockchain by calling the intelligent contract for management and analysis.
Referring to fig. 8, fig. 8 is a system architecture diagram of the intelligent building management system of the present invention. As shown in fig. 8, the intelligent building management system based on block chains of the present invention includes:
the intelligent equipment layer comprises a plurality of intelligent equipment, and specifically comprises intelligent equipment such as a lighting lamp, a camera, an air conditioner, an entrance guard, an intelligent temperature and humidity sensor and the like;
the edge gateway layer is used for processing the equipment data through a data processing program model file after acquiring the equipment data generated by at least one intelligent equipment, and assembling the processed equipment data into a model file data processing result record, specifically, the edge gateway layer comprises edge gateway equipment and is mainly used for realizing the functions of data acquisition, data standardization, data uploading, data processing and the like, wherein the data acquisition function is that the edge gateway is connected with the intelligent equipment through a network and then acquires the related data through a data acquisition interface corresponding to the intelligent equipment; the data acquisition interface is an interface which is preset for the intelligent equipment by an intelligent equipment manufacturer and is specially used for other users or equipment to acquire data; the related data of the intelligent equipment refers to data such as state information of the intelligent equipment, operation information of the intelligent equipment and the like; the data standardization function is that the edge gateway processes acquired intelligent equipment data of different manufacturers and different models into standardized data with a uniform format; the data uploading function refers to that the edge gateway uploads the processed standardized data to a block chain of a data storage layer and a cloud server; the data processing function means that the edge gateway completes the processing of the acquired intelligent equipment data by executing some executable programs by utilizing the calculation and storage capacity of the edge gateway; the executable program refers to an executable data processing program which is sent to the edge gateway by a system administrator through a model issuing function of a platform application layer;
after the model file data processing result records are uploaded to a block chain of the data storage layer, the block chain identifies the model file data processing result records through a Hashgraph consensus mechanism and then stores the identified block chain, the device data of the intelligent device is acquired from the block chain through an intelligent contract to be managed and analyzed, specifically, the data storage layer comprises the block chain and a cloud server, the block chain is used for storing some more important information such as intelligent device state and operation information, and the cloud server is used for storing some less important information such as intelligent device account information; the block chain refers to a Hyperhedgehog Fabric alliance block chain platform; the intelligent device data are stored in the block chain, namely the intelligent device data acquired by the edge gateway are uploaded to the block chain through an intelligent contract and then are stored in the block chain after being subjected to consensus sequencing through a Hashgraph consensus mechanism; the consensus sequencing means that each node sequences a plurality of pieces of data information uploaded to a block chain, so that the data of each node are kept consistent;
the system comprises a platform application layer, a platform management layer and a model issuing layer, wherein the platform application layer has an integrated subsystem function, a management function, a basic function, a visualization function and a model issuing function, and specifically comprises the integrated subsystem function, the management function, the basic function, the visualization function, the model issuing function and other functions; the integrated subsystem is a management subsystem for specially managing intelligent equipment such as an illumination subsystem, an air-conditioning subsystem, an entrance guard subsystem and the like; the management function refers to equipment management functions of intelligent equipment linkage management, intelligent equipment standing book management, intelligent equipment alarm management and the like; the basic functions refer to basic functions of user registration, equipment operation monitoring, equipment fault repair and the like; the visualization function refers to visualization functions such as layout visualization of intelligent equipment in a building, application scene visualization of an intelligent building management system, visualization of real-time running state of the intelligent equipment and the like; the model issuing function means that a system administrator sends an executable data processing program model file to a specified edge gateway, and the edge gateway runs the model file and executes executable codes in the model file.
After the model issuing function of the platform application layer is called to send the data processing program model file to the designated edge gateway of the edge gateway layer, the edge gateway runs the local data processing program model file, and the data collected by the intelligent equipment is operated according to the data processing program code defined in the data processing program model file.
Further, the platform application layer encrypts the data processing program model file by using a public key corresponding to the edge gateway node, and generates an encrypted data processing program model file; uploading the encrypted data processing program model file to an IPFS system, and acquiring a hash value corresponding to the data processing program model file; assembling the obtained hash values into model file information records, and uploading the model file information records to a block chain of the data storage layer by using a model file uploading contract; the edge gateway node of the edge gateway layer triggers a monitoring event of a model file uploading contract, acquires the model file information record from the block chain by using the model file acquisition contract, verifies whether the gateway number in the model file information record is consistent with the gateway number of the edge gateway node, and verifies the administrator private key signature in the model file information; when the edge gateway node with the consistent gateway number and the model file information record obtains the hash value in the model file information record, downloading the encrypted model file from the IPFS system by using the hash value; and the edge gateway node decrypts the encrypted model file through a private key to obtain the original data processing program model file, wherein the hash value is obtained by using a SHA-256 hash function, a Multihash code and a Base58 code according to the content of the encrypted data processing program model file to represent the storage address of the encrypted data processing program model file in the IPFS system.
Specifically, the main process of issuing the model includes the following steps:
step 1: a system administrator encrypts a local data processing program model file by using a public key of a corresponding edge gateway node to generate an encrypted model file;
step 2: uploading the encrypted model file to an IPFS system by a system administrator, and acquiring a hash value corresponding to the encrypted model file;
step 3: the system administrator assembles the obtained hash values into model file information records, and uploads the model file information records to a block chain by using a model file uploading contract;
step 4: all edge gateway nodes trigger monitoring events of the model file uploading contracts, the model file is used for obtaining contracts and obtaining model file information records from a block chain, whether the gateway numbers in the records are consistent with the gateway numbers of the edge gateway nodes or not is verified, and the administrator private key signatures in the records are verified;
step 5: the edge gateway node with the consistent gateway number and the model file information record obtains the hash value of the model file in the information record, and downloads the encrypted model file from the IPFS system by using the hash value;
step 6: and the edge gateway node decrypts the encrypted model file by using a private key of the edge gateway node to obtain an original data processing program model file.
Further, Step1 is preceded by: the edge gateway nodes generate public and private key pairs through an elliptic curve encryption algorithm, specifically, an administrator and each edge gateway node generate the public and private key pairs through the elliptic curve encryption algorithm, a public key is used for data encryption and private key signature verification, a private key is used for data decryption and private key identity signature confidentiality, the administrator and each edge gateway node are added into an interplanetary file system IPFS for uploading and obtaining model files, the interplanetary file system IPFS is a decentralized distributed storage system, files are identified by generating unique hash values through file contents, only one file with the same content exists in a network, and the problems of unsafe transmission, redundant storage, high storage cost and the like existing in the traditional HTTP protocol are solved.
Specifically, the corresponding edge gateway node in Step1 refers to a designated gateway node to which an administrator is to send a local data handler model file; specifically, the hash value in Step2 is a hash value obtained by using SHA-256 hash function, Multihash coding, and Base58 coding according to the content of the encryption model file, and is used for indicating the storage address of the encryption model file in the IPFS system; specifically, the model file information recording data structure in Step3 is as shown in table 1, and includes a gateway number, upload time, a timestamp, a model file hash value, a model file function type, and an administrator signature;
the model file hash value is obtained by uploading an encrypted local data processing program model file to an IPFS system by an administrator;
the model file function type refers to the functions of the model file, and comprises functions of statistics, prediction and the like;
the administrator signature is the signature of the administrator on the hash value of the model file by using a private key of the administrator and is used for verifying whether the hash value of the model file is tampered by the edge gateway;
specifically, the administrator private key signature verification in Step4 means that the edge gateway node verifies the administrator signature in the model file information record by using the public key of the administrator, and if the verification result is consistent with the model file hash value in the model file information record, it is proved that the model file hash value in the record is not tampered;
specifically, the downloading of the encryption model file in Step5 means that the edge gateway node obtains the encrypted model file from the IPFS system by using the hash value of the encryption model file and using an IPFS command.
Wherein, the Hashgraph consensus process mainly comprises the following steps: generating an event, broadcasting the event through the eight diagrams spreading protocol (gossip about gossip), and voting by adopting a virtual voting algorithm, wherein the main flow is as follows:
step 1: the event structure generated in the event generating step is shown in fig. 2, and mainly includes: the event content comprises data and an operation command acquired by intelligent equipment, a processing result after data processing operation of an edge gateway and the like;
step 2: the schematic diagram of the transmission protocol by the eight diagrams is shown in fig. 3, and the main flow of the broadcast event is as follows: the local node assembles newly received data and signature information of the data received from other nodes into an event, and then randomly sends the event to a target node; after receiving the event, the target node reads and stores the data (event content) in the event, then assembles the data in the event and the information collected from other nodes into a new event, then sends the new event to other randomly selected nodes, and repeats the process until all the nodes receive the event created at the beginning;
step 3: when all nodes receive the event created at the beginning, all nodes need to execute the virtual voting algorithm locally to reach a consensus on the event. The virtual voting algorithm mainly comprises three steps of round determination, famous witness determination and data validity voting collection, and consensus round number and consensus time determination, and specific contents are described in the foregoing, and are not described herein again.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to the present invention. As shown in fig. 9, the present embodiment discloses a specific implementation of an electronic device. The electronic device may include a processor 81 and a memory 82 storing computer program instructions.
Specifically, the processor 81 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
The memory 82 may be used to store or cache various data files for processing and/or communication use, as well as possible computer program instructions executed by the processor 81.
The processor 81 reads and executes the computer program instructions stored in the memory 82 to implement any one of the above-described embodiments of the intelligent building management method based on the block chain.
In some of these embodiments, the electronic device may also include a communication interface 83 and a bus 80. As shown in fig. 9, the processor 81, the memory 82, and the communication interface 83 are connected via the bus 80 to complete communication therebetween.
The communication interface 83 is used for implementing communication between modules, devices, units and/or equipment in the embodiment of the present application. The communication port 83 may also be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
The bus 80 includes hardware, software, or both to couple the components of the electronic device to one another. Bus 80 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 80 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Electronics Association), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 80 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
In addition, in combination with the processing methods in the foregoing embodiments, the embodiments of the present application may be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the above embodiments of a blockchain-based intelligent building management method.
In conclusion, the method and the system can meet the demand of a large number of intelligent devices in the building on the block chain throughput, simultaneously make full use of the computing and storing capacity of the intelligent devices such as the edge gateway and the like, perform data processing, statistics and other operations on the data acquired by the intelligent devices, and reduce the pressure of a system server.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. An intelligent building management method is characterized in that based on a block chain, the intelligent building management method comprises the following steps:
a device data acquisition step: acquiring equipment data generated by intelligent equipment through an edge gateway layer;
and (3) equipment data processing: the edge gateway layer processes the equipment data through a data processing program model file, assembles the processed equipment data into a model file data processing result record and uploads the model file data processing result record to a block chain;
a device data storage step: after uploading to a block chain, performing consensus on the model file data processing result records by a Hashgraph consensus mechanism, and then performing block uplink storage;
and a device data calling step: acquiring the equipment data of the intelligent equipment from a block chain through an intelligent contract for management and analysis;
wherein the device data processing step comprises: after a model issuing function is called to send the data processing program model file to an edge gateway of the designated edge gateway, the edge gateway runs the local data processing program model file and operates data acquired by intelligent equipment according to a data processing program code defined in the data processing program model file; the device data processing step comprises:
an encryption step: encrypting the data processing program model file by using a public key corresponding to the edge gateway node to generate an encrypted data processing program model file;
a hash value acquisition step: uploading the encrypted data processing program model file to an IPFS system, and acquiring a hash value corresponding to the data processing program model file;
and uploading model file information records: assembling the obtained hash values into model file information records, and uploading the model file information records to a block chain by using a model file uploading contract;
and (3) model file information record verification: the edge gateway node triggers a monitoring event of a model file uploading contract, acquires a model file information record from a block chain by using the model file acquisition contract, verifies whether a gateway number in the model file information record is consistent with a gateway number of the edge gateway node, and verifies an administrator private key signature in the model file information;
model file downloading step: the edge gateway node with the consistent gateway number and the model file information record obtains the hash value in the model file information record, and downloads the encrypted model file from the IPFS system by using the hash value;
acquiring a data processing program model file: and the edge gateway node decrypts the encrypted model file through a private key to obtain the original data processing program model file.
2. The intelligent building management method according to claim 1, wherein the device data processing step further comprises:
and a public and private key pair obtaining step: and the edge gateway node generates a public and private key pair through an elliptic curve encryption algorithm.
3. The intelligent building management method according to claim 1, wherein the hash value in the hash value obtaining step is a hash value obtained by encoding the encrypted data handler model file according to the contents of the data handler model file by using a SHA-256 hash function, a Multihash code, and Base58, so as to indicate the storage address of the encrypted data handler model file in the IPFS system.
4. The intelligent building management method according to claim 1, wherein the model file information record in the model file information record uploading step includes at least one of a gateway number, an upload time, a timestamp, a model file hash value, a model file function type, and an administrator signature.
5. The intelligent building management method according to claim 1, wherein the model file data processing result record in the device data processing step includes at least one of a gateway number, an upload time, a time stamp, a model file hash value, a model file execution result, a model execution result signature, and a model file function type.
6. An intelligent building management system, based on a block chain, comprising:
a smart device layer including a plurality of smart devices;
the edge gateway layer is used for processing the equipment data through a data processing program model file after acquiring the equipment data generated by at least one intelligent device, and assembling the processed equipment data into a model file data processing result record;
after the model file data processing result records are uploaded to a block chain of the data storage layer, the block chain identifies the model file data processing result records through a Hashgraph consensus mechanism and then stores the identified block chain, and equipment data of the intelligent equipment is acquired from the block chain through an intelligent contract and is managed and analyzed;
the platform application layer has an integrated subsystem function, a management function, a basic function, a visualization function and a model issuing function; after a model issuing function of the platform application layer is called to send the data processing program model file to a designated edge gateway of the edge gateway layer, the edge gateway runs the local data processing program model file and operates data acquired by intelligent equipment according to a data processing program code defined in the data processing program model file;
the platform application layer encrypts the data processing program model file by using a public key corresponding to the edge gateway node to generate an encrypted data processing program model file; uploading the encrypted data processing program model file to an IPFS system, and acquiring a hash value corresponding to the data processing program model file; assembling the obtained hash values into model file information records, and uploading the model file information records to a block chain of the data storage layer by using a model file uploading contract; the edge gateway node of the edge gateway layer triggers a monitoring event of a model file uploading contract, acquires the model file information record from the block chain by using the model file acquisition contract, verifies whether the gateway number in the model file information record is consistent with the gateway number of the edge gateway node, and verifies the administrator private key signature in the model file information; when the edge gateway node with the consistent gateway number and the model file information record obtains the hash value in the model file information record, downloading the encrypted model file from the IPFS system by using the hash value; and the edge gateway node decrypts the encrypted model file through a private key to obtain the original data processing program model file.
7. The intelligent building management system of claim 6, wherein the edge gateway node generates a public-private key pair via an elliptic curve cryptography algorithm.
8. The intelligent building management system according to claim 6, wherein the hash value is a hash value obtained by encoding the encrypted data handler model file according to the contents of the data handler model file by using a SHA-256 hash function, a Multihash code, and Base58, so as to indicate the storage address of the encrypted data handler model file in the IPFS system.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the intelligent building management method of any one of claims 1 to 5 when executing the computer program.
10. A storage medium on which a computer program is stored, which program, when being executed by a processor, carries out the intelligent building management method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110326805.5A CN113139884B (en) | 2021-03-26 | 2021-03-26 | Intelligent building management system method, system, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110326805.5A CN113139884B (en) | 2021-03-26 | 2021-03-26 | Intelligent building management system method, system, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113139884A CN113139884A (en) | 2021-07-20 |
CN113139884B true CN113139884B (en) | 2021-12-03 |
Family
ID=76810680
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110326805.5A Active CN113139884B (en) | 2021-03-26 | 2021-03-26 | Intelligent building management system method, system, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113139884B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114257417A (en) * | 2021-11-26 | 2022-03-29 | 中国南方电网有限责任公司 | Network security data processing method and device, computer equipment and storage medium |
CN114489477A (en) * | 2021-12-20 | 2022-05-13 | 青岛鹏海软件有限公司 | Decentralized distributed storage method based on block chain |
CN114430413A (en) * | 2021-12-20 | 2022-05-03 | 青岛鹏海软件有限公司 | IIoT intelligent operation and maintenance management method based on block chain |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111478902A (en) * | 2020-04-07 | 2020-07-31 | 江苏润和智融科技有限公司 | Power edge gateway equipment and sensing data uplink storage method based on same |
CN112543187A (en) * | 2020-11-26 | 2021-03-23 | 齐鲁工业大学 | Industrial Internet of things safety data sharing method based on edge block chain |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109194761B (en) * | 2018-09-18 | 2021-03-30 | 北京工业大学 | LORA Internet of things environment data acquisition and chaining realization method based on edge calculation and block chain |
CN111062651A (en) * | 2020-03-18 | 2020-04-24 | 南京中电科能技术有限公司 | Safe power utilization management system and method based on edge calculation and big data analysis |
CN111598330A (en) * | 2020-05-13 | 2020-08-28 | 国网河北省电力有限公司电力科学研究院 | Residential electricity load prediction method based on load identification technology |
CN111708839A (en) * | 2020-06-04 | 2020-09-25 | 江苏荣泽信息科技股份有限公司 | Building management system based on block chain |
CN111930698B (en) * | 2020-07-01 | 2024-03-15 | 南京晓庄学院 | Data security sharing method based on hash map and federal learning |
CN112506097A (en) * | 2020-11-27 | 2021-03-16 | 江苏科技大学 | Jig frame remote monitoring system and method based on industrial internet |
CN112488398A (en) * | 2020-12-03 | 2021-03-12 | 广东电力通信科技有限公司 | Electricity utilization management method and system based on MEC edge intelligent gateway |
-
2021
- 2021-03-26 CN CN202110326805.5A patent/CN113139884B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111478902A (en) * | 2020-04-07 | 2020-07-31 | 江苏润和智融科技有限公司 | Power edge gateway equipment and sensing data uplink storage method based on same |
CN112543187A (en) * | 2020-11-26 | 2021-03-23 | 齐鲁工业大学 | Industrial Internet of things safety data sharing method based on edge block chain |
Also Published As
Publication number | Publication date |
---|---|
CN113139884A (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113139884B (en) | Intelligent building management system method, system, storage medium and electronic equipment | |
CN111427957B (en) | Block chain voting information verification method, device, equipment and storage medium | |
CN110569251B (en) | Data processing method, related equipment and computer readable storage medium | |
CN111444211B (en) | Block chain consensus node checking method, device, equipment and storage medium | |
EP2552048B1 (en) | Measurement data management method and measurement data management system | |
CN112689848B (en) | Method and related equipment for consensus of block chain data | |
CN112100460A (en) | Block chain-based network page evidence storing method, device, medium and electronic equipment | |
CN111641563B (en) | Flow self-adaption method and system based on distributed scene | |
CN111614761B (en) | Block chain message transmission method, device, computer and readable storage medium | |
CN113225339B (en) | Network security monitoring method and device, computer equipment and storage medium | |
CN113505260A (en) | Face recognition method and device, computer readable medium and electronic equipment | |
CN113312005B (en) | Block chain-based Internet of things data capacity expansion storage method and system and computing equipment | |
CN114268508A (en) | Internet of things equipment secure access method, device, equipment and medium | |
CN114785567B (en) | Flow identification method, device, equipment and medium | |
JP2022553130A (en) | Methods, systems, electronics and storage media for storing and collecting temperature data | |
CN111651170A (en) | Instance dynamic adjustment method and device and related equipment | |
KR101784613B1 (en) | Method and system for detecting abnormal data in distributed environment | |
CN110570197B (en) | Data processing method and device based on block chain | |
CN111277626A (en) | Server upgrading method and device, electronic equipment and medium | |
CN114979109B (en) | Behavior track detection method, behavior track detection device, computer equipment and storage medium | |
CN114422186A (en) | Attack detection method and device, electronic equipment and storage medium | |
CN109246206B (en) | Generate and record the method and network of information | |
CN115941209B (en) | Block chain decentralization trusted data acquisition method and system | |
CN111917556B (en) | Interactive file detection method, device, terminal and storage medium | |
CN117009951B (en) | Method, device, equipment and medium for dispatching equipment cluster based on instruction encryption |
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 |