CN112507310B - Building internet of things management method, device, equipment and storage medium - Google Patents

Building internet of things management method, device, equipment and storage medium Download PDF

Info

Publication number
CN112507310B
CN112507310B CN202011404798.8A CN202011404798A CN112507310B CN 112507310 B CN112507310 B CN 112507310B CN 202011404798 A CN202011404798 A CN 202011404798A CN 112507310 B CN112507310 B CN 112507310B
Authority
CN
China
Prior art keywords
tenant
information
verification
internet
identity verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011404798.8A
Other languages
Chinese (zh)
Other versions
CN112507310A (en
Inventor
温文坤
李玮棠
陈杰文
陈名峰
马凤鸣
王鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Jixiang Technology Co Ltd
Original Assignee
Guangzhou Jixiang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Jixiang Technology Co Ltd filed Critical Guangzhou Jixiang Technology Co Ltd
Priority to CN202011404798.8A priority Critical patent/CN112507310B/en
Publication of CN112507310A publication Critical patent/CN112507310A/en
Application granted granted Critical
Publication of CN112507310B publication Critical patent/CN112507310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • G16Y20/40Information sensed or collected by the things relating to personal data, e.g. biometric data, records or preferences
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a building internet of things management method, a device, equipment and a storage medium. According to the technical scheme, identity verification is carried out on the identity verification information through tenant contract information registered in the tenant registration database, tenant files are distributed to all the blockchain nodes, the blockchain nodes maintain the tenant files based on a consensus mechanism, when a tenant needs to control intelligent equipment, an authority verification request is sent through an Internet of things gateway, the authority verification is carried out jointly by all the blockchain nodes, and finally an authority verification result is determined, the Internet of things gateway controls the intelligent equipment according to the authority verification result, the time effect and the range of the tenant files for controlling the authority of the intelligent equipment are determined according to tenant contract information, management of using authority of the intelligent equipment is facilitated, management efficiency of building Internet of things intelligent equipment is improved, and user experience is effectively improved.

Description

Building internet of things management method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of Internet of things, in particular to a building Internet of things management method, device, equipment and storage medium.
Background
With the development of cities, the mobility of people is bigger and bigger, more and more people can select a house renting mode, and various intelligent devices such as an intelligent access control device, an intelligent door lock, an intelligent body-building device and the like can be provided for tenants for facilitating the daily life of the tenants.
In building equipment management, the use authority management of the intelligent equipment is manually updated by an administrator, and the use authority of the tenant on the intelligent equipment is manually withdrawn after the user rents the intelligent equipment, so that the mode management efficiency of the manual management is low, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a building internet of things management method, device, equipment and storage medium, so that the management efficiency of building intelligent equipment is improved, and the user experience is improved.
In a first aspect, an embodiment of the present application provides a building internet of things management method, including:
determining identity verification information attached to a tenant registration request sent by an Internet of things gateway, and carrying out identity verification on the identity verification information in a tenant registration database, wherein tenant contract information corresponding to different identity verification information is recorded in the tenant registration database, and contract timeliness and equipment range are recorded in the tenant contract information;
establishing a tenant file based on an identity verification result, and distributing the tenant file to each blockchain node in a blockchain network, wherein the tenant file is used for recording contract timeliness and the corresponding relation between intelligent equipment and identity verification information;
determining tenant verification information attached to a permission verification request sent by an Internet of things gateway, informing each blockchain node to perform permission verification on the tenant verification information based on a tenant file, and returning a verification result;
and issuing a permission verification result to the Internet of things gateway according to the verification result, so that the Internet of things gateway controls the intelligent device according to the permission verification result.
Further, the authentication information includes identity ID information and biometric information.
Further, the step of performing authentication on the authentication information in the tenant registration database includes:
retrieving tenant contract information corresponding to the identity ID information in the identity verification information in a tenant registration database;
and sending a tenant verification request to a management background based on the retrieved tenant contract information and the identity verification information so as to obtain an identity verification result by the management background through identity verification based on the tenant contract information and the identity verification information.
Further, the establishing the tenant archive based on the authentication result includes:
based on an identity verification result passing through identity verification, determining contract aging information and equipment range information corresponding to the tenant contract information;
and determining intelligent equipment corresponding to the identity verification information based on the equipment range information, establishing a tenant file, and determining file aging of the tenant file according to the contract aging information.
Further, the issuing authority verification result to the internet of things gateway according to the verification result includes
Obtaining verification results sent by each block chain node, and judging whether the verification results are consistent;
if the verification results are consistent, directly determining an authority verification result based on the verification results;
if the verification results are inconsistent, determining a final verification result based on the duty ratio of different verification results, and determining an authority verification result based on the final verification result;
and issuing a permission verification result to the gateway of the Internet of things.
Further, after the verification result is inconsistent, the method further includes:
and notifying each block link point to update the tenant file based on a consistency algorithm.
Further, the updating the tenant profile by each block link point based on a consistency algorithm includes:
each block chain link point calculates the hash value of each tenant file, compares the hash values for the tenant files corresponding to each tenant contract information, determines the tenant files with different hash values, and updates the tenant files with different hash values based on a consistency algorithm.
In a second aspect, an embodiment of the present application provides a building internet of things management device, including an identity verification module, a profile distribution module, a consensus verification module, and a permission determination module, wherein:
the identity verification module is used for determining identity verification information attached to a tenant registration request sent by the gateway of the Internet of things, and carrying out identity verification on the identity verification information in a tenant registration database, wherein tenant contract information corresponding to different identity verification information is recorded in the tenant registration database, and contract timeliness and equipment range are recorded in the tenant contract information;
the file distribution module is used for establishing a tenant file based on the identity verification result and distributing the tenant file to each blockchain node in the blockchain network, wherein the tenant file is used for recording the corresponding relation between contract timeliness and the intelligent equipment and the identity verification information;
the consensus verification module is used for determining tenant verification information attached to a permission verification request sent by the gateway of the Internet of things, notifying each blockchain node to perform permission verification on the tenant verification information based on the tenant file and returning a verification result;
and the permission judging module is used for issuing a permission verification result to the internet of things gateway according to the verification result so that the internet of things gateway controls the intelligent equipment according to the permission verification result.
In a third aspect, embodiments of the present application provide a computer device comprising: a memory and one or more processors;
the memory is used for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the building internet of things management method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer executable instructions, which when executed by a computer processor, are for performing the building internet of things management method as described in the first aspect.
According to the embodiment of the application, identity verification is carried out on identity verification information through tenant contract information registered in the tenant registration database, tenant files are distributed to each blockchain node, each blockchain node maintains the tenant files based on a consensus mechanism, when a tenant needs to control intelligent equipment, an authority verification request is sent through an Internet of things gateway, authority verification is carried out jointly by each blockchain node, an authority verification result is finally determined, the Internet of things gateway controls the intelligent equipment according to the authority verification result, timeliness and range of the tenant files for controlling the authority of the intelligent equipment are determined according to tenant contract information, the control authority of the tenant for the intelligent equipment is released when the tenant contract information expires, management of using authorities of the intelligent equipment is facilitated, management efficiency of the intelligent equipment of the building Internet of things is improved, and user experience is effectively improved.
Drawings
Fig. 1 is a flowchart of a building internet of things management method provided in an embodiment of the present application;
fig. 2 is a flowchart of another building internet of things management method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a building internet of things management device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 shows a flowchart of a building internet of things management method provided by the embodiment of the present application, where the building internet of things management method provided by the embodiment of the present application may be executed by a building internet of things management device, and the building internet of things management device may be implemented by means of hardware and/or software and integrated in a computer device.
The following describes an example of a building internet of things management method executed by the building internet of things management device. Referring to fig. 1, the building internet of things management method includes:
s101: and determining identity verification information attached to the tenant registration request sent by the gateway of the Internet of things, and carrying out identity verification on the identity verification information in a tenant registration database.
The building internet of things management device is connected to the same internet of things network, is connected to a block chain network, and is in communication connection with each block chain link point in the block chain network.
Tenant registration database provided in this embodiment records tenant contract information corresponding to different identity verification information, that is, tenant contract information records identity verification information (e.g., certificate information) of the tenant, and tenant address information records in the tenant contract. The tenant registration database also records the corresponding relation between different lease address information and different intelligent devices, such as the corresponding relation between the lease address information and the public intelligent entrance guard corresponding to the lease address, the intelligent door lock of the room and the public area equipment (such as intelligent body building equipment).
Further, the tenant contract information provided in this embodiment further records contract timeliness and equipment scope, where contract timeliness refers to time when the tenant has control authority over the intelligent device (may also be determined according to the tenant time recorded in the tenant contract), and scope refers to scope of the intelligent device having control authority within the timeliness. And uploading tenant contract information to a tenant registration database for storage after the contract signing with the tenant is completed.
When the tenant registers, the tenant can use the terminal equipment connected to the internet of things gateway through the mobile phone, the room door lock, the property management terminal and the like as the tenant registration terminal, collect the identity verification information by the tenant registration terminal, and send a registration request carrying the identity verification information to the internet of things gateway. And after receiving the registration request, the gateway of the internet of things forwards the tenant registration request to the management of the building internet of things.
After receiving the tenant registration request, the building internet of things management device analyzes the tenant registration information to obtain carried identity verification information, performs identity verification in a tenant registration database based on the identity verification information, and determines tenant contract information matched with the identity verification information.
S102: and establishing a tenant file based on the identity verification result, and distributing the tenant file to each blockchain node in the blockchain network.
The tenant file is used for recording contract timeliness and corresponding relation between the intelligent equipment and the identity verification information.
After determining tenant contract information matched with the identity verification information, determining contract timeliness and equipment scope corresponding to the identity verification information according to the tenant contract information, determining intelligent equipment with control authority of a corresponding tenant in a time period corresponding to the contract timeliness according to the equipment scope, and establishing a tenant file according to the corresponding relation among the contract timeliness, the intelligent equipment and the identity verification information.
Further, a tenant file is established by sending each block link point in the block chain network, and the tenant file is commonly maintained by each block link point in the block chain network based on a consensus mechanism.
S103: and determining tenant verification information attached to the authority verification request sent by the gateway of the Internet of things, informing each blockchain node to carry out authority verification on the tenant verification information based on the tenant file, and returning a verification result.
When the tenant needs to control the intelligent device, the tenant authentication information (such as fingerprint information, voiceprint information, facial images, identity tags and the like) is acquired through the identity acquisition device connected to the intelligent device, the intelligent device generates an authority authentication request with the tenant authentication information and the device ID of the intelligent device and sends the authority authentication request to the Internet of things gateway, and the Internet of things gateway forwards the authority authentication request to the building Internet of things management device.
The building internet of things management device analyzes the authority verification request to obtain tenant verification information and equipment ID, and sends the tenant verification information and the equipment ID to each blockchain node so as to inform each blockchain node of performing authority verification on the tenant verification information and the equipment ID based on the tenant file.
After receiving the tenant verification information and the equipment ID, each blockchain node traverses all the tenant files stored in the blockchain node, determines the identity verification information in the tenant files, compares the identity verification information with the tenant verification information until the identity verification information matched with the tenant verification information is found, determines whether the control authority of the intelligent equipment corresponding to the equipment ID is recorded in the corresponding tenant files, generates a verification result indicating that the tenant has the control authority of the corresponding equipment ID if the control authority of the intelligent equipment corresponding to the equipment ID is recorded in the tenant files, and generates a verification result indicating that the tenant does not have the control authority of the corresponding equipment ID if the identity verification information matched with the tenant verification information or the control authority of the intelligent equipment not recorded in the tenant files is not found. After the verification result is generated, the blockchain node returns the verification result to the building internet of things management device.
S104: and issuing a permission verification result to the Internet of things gateway according to the verification result, so that the Internet of things gateway controls the intelligent device according to the permission verification result.
After receiving the verification results returned by each blockchain node, determining the control authority of the current tenant on the intelligent device sending the authority verification request according to each verification result to generate a final authority verification result, and sending the authority verification result to the gateway of the internet of things. And after receiving the permission verification result, the gateway of the Internet of things controls the intelligent device according to the indication of the permission verification result.
For example, when the permission verification result indicates that the tenant has the control right corresponding to the intelligent device, the intelligent device is notified to respond to the control request of the tenant or send an unlocking instruction to the intelligent device, so that the tenant can use the intelligent device. And when the permission verification result indicates that the tenant does not have the control right corresponding to the intelligent device, the intelligent device is informed not to respond to the control request of the tenant or send out a locking instruction to the intelligent device, and the use of the intelligent device is limited.
Above-mentioned, carry out authentication through tenant contract information that registers in the tenant registration database, and distribute the tenant archives into each blockchain node, maintain the tenant archives by each blockchain node based on the consensus mechanism, and when the tenant needs to control intelligent device, send out the permission verification request through thing networking gateway, carry out the permission verification jointly by each blockchain node, and finally confirm the permission verification result, thing networking gateway will control intelligent device according to the permission verification result, and the time course and the scope of tenant archives to intelligent device control authority are confirmed according to tenant contract information, release the tenant to intelligent device's control authority when tenant contract information expires, the management of convenient use authority to intelligent device has improved building thing networking intelligent device's management efficiency, effectively promote user experience.
On the basis of the above embodiment, fig. 2 shows a flowchart of another building internet of things management method according to the embodiment of the present application, where the building internet of things management method is a concrete implementation of the building internet of things management method. Referring to fig. 2, the building internet of things management method includes:
s201: and determining identity verification information attached to a tenant registration request sent by the gateway of the Internet of things, and searching tenant contract information corresponding to the identity ID information in the identity verification information in a tenant registration database.
The identity verification information provided by the embodiment includes identity ID information and biometric feature information, wherein the identity ID information may be certificate information of a tenant, and the biometric feature information may be fingerprint information, voiceprint information, facial image, and the like.
Specifically, the tenant registration terminal collects identity ID information and biological feature information of the tenant, packages the identity ID information and the biological feature information into identity verification information, generates a tenant registration request carrying the identity verification information, and sends the tenant registration request to the building internet of things management device through the internet of things gateway.
And after receiving the tenant registration request, the building internet of things management device obtains the identity ID information and the biological characteristic information from the tenant registration request. Further, tenant contract information matched with the identity ID information is searched in a tenant registration database.
S202: and sending a tenant verification request to a management background based on the retrieved tenant contract information and the identity verification information so as to obtain an identity verification result by the management background through identity verification based on the tenant contract information and the identity verification information.
Specifically, after tenant contract information matched with the identity ID information is retrieved, a tenant verification request carrying the tenant contract information and identity verification information (including the identity ID information and the biometric information) is generated. After receiving the tenant verification request, the management background waits for a background manager to perform identity verification based on tenant contract information and identity verification information to generate an identity verification result, and the management background returns the identity verification result to the building internet of things management device.
S203: and determining contract aging information and equipment range information corresponding to the tenant contract information based on an identity verification result passing identity verification.
Specifically, when an authentication result indicating passing authentication is received, corresponding contract aging information and equipment range information are determined from the retrieved tenant contract information. The device range information can record the range of the intelligent device which the tenant owns the control authority, and the contract aging information records the time range of the control authority of the intelligent device.
S204: and determining intelligent equipment corresponding to the identity verification information based on the equipment range information, establishing a tenant file, and determining file aging of the tenant file according to the contract aging information.
Specifically, the intelligent device corresponding to the identity verification information carried by the tenant registration request is determined according to the determined device range information, a tenant file is established based on the corresponding relation between the identity verification information and the intelligent devices, and meanwhile, file aging of the tenant file is determined according to contract aging information corresponding to tenant contract information.
S205: and distributing tenant files to each blockchain node in the blockchain network, wherein the tenant files are used for recording the corresponding relation between contract aging and intelligent equipment and identity verification information.
In one possible embodiment, the management background may update the registered contract age information and the device scope information in the tenant contract information, generate a corresponding update log when the update of the tenant contract information is completed, and send the update log to each blockchain node to notify each blockchain node to update the tenant profile based on the update log.
S206: and determining tenant verification information attached to the authority verification request sent by the gateway of the Internet of things, informing each blockchain node to carry out authority verification on the tenant verification information based on the tenant file, and returning a verification result.
Specifically, the authority verification request sent by the gateway of the internet of things is analyzed to obtain tenant verification information and equipment ID, and the tenant verification information and the equipment ID are sent to each blockchain node to inform each blockchain node of performing authority verification on the tenant verification information and the equipment ID based on tenant files.
After receiving the tenant verification information and the equipment ID, each blockchain node traverses all the tenant files stored in the blockchain node, determines the identity verification information in the tenant files, compares the identity verification information with the tenant verification information until the identity verification information matched with the tenant verification information is found, determines whether the control authority of the intelligent equipment corresponding to the equipment ID is recorded in the corresponding tenant files, and further determines whether the current time is in the time range corresponding to the contract aging information.
If the tenant file records the control authority of the intelligent device corresponding to the device ID and the current time is in the time range corresponding to the contract aging information, a verification result indicating that the tenant has the control authority of the corresponding device ID is generated, and if the identity authentication information matched with the tenant authentication information is not found or the control authority of the intelligent device not recording the corresponding device ID in the tenant file is not found or the current time is not in the time range corresponding to the contract aging information, a verification result indicating that the tenant does not have the control authority of the corresponding device ID is generated. After the verification result is generated, the blockchain node returns the verification result to the building internet of things management device.
S207: and obtaining verification results sent by each block chain node, and judging whether the verification results are consistent. If yes, go to step S208, otherwise, go to step S209.
Specifically, the verification results returned by each blockchain node are obtained, the verification results are compared one by one, whether the verification results are consistent is judged, if yes, the step S208 is skipped, and if not, the step S209 is skipped.
S208: and directly determining the authority verification result based on the verification result.
When the returned verification results are consistent, the authority verification result can be directly determined according to the verification results. For example, when the returned verification results indicate that the tenant has the control right corresponding to the intelligent device, a right verification result indicating that the tenant has the control right to the intelligent device is generated, and when the returned verification results indicate that the tenant does not have the control right corresponding to the intelligent device, a right verification result indicating that the tenant does not have the control right to the intelligent device is generated. After determining the right verification result, the process goes to step S211.
S209: and determining a final verification result based on the duty ratio of the different verification results, and determining a permission verification result based on the final verification result.
When the returned verification results are inconsistent, determining different types of verification results, counting the duty ratio of various verification result types in all verification results, determining the verification result corresponding to the type with the highest duty ratio as a final verification result, and determining the authority verification result according to the final verification result.
For example, if it is determined that the types of the two types of authentication results indicating the presence of authority and the absence of authority are 90% and 10% respectively, by statistical determination, it is possible to determine that the final authentication result indicates the presence of control authority for the smart device, and generate the authority authentication result indicating the presence of control authority for the smart device.
S210: and notifying each block link point to update the tenant file based on a consistency algorithm.
Specifically, when the verification result is inconsistent, there is a possibility that the tenant file in a certain blockchain node is in error, and at this time, each blockchain node needs to be informed of agreement of the tenant file based on a consistency algorithm, so as to update the combined file, so as to keep the consistency of the tenant file among the blockchain nodes. Wherein the consistency algorithm can be one of a Paxos algorithm, a Raft algorithm, a ZAB algorithm and a Gossip algorithm.
In one possible embodiment, updating the tenant profile is specifically: each block chain link point calculates the hash value of each tenant file, compares the hash values for the tenant files corresponding to each tenant contract information, determines the tenant files with different hash values, and updates the tenant files with different hash values based on a consistency algorithm.
Specifically, each blockchain node sequentially calculates the hash value corresponding to each tenant file, traverses the hash values corresponding to all tenant contracts, compares the hash values among the blockchain nodes, and when the hash values are inconsistent, namely when the hash values among the tenant files corresponding to the same tenant contract are different, each blockchain node agrees on the tenant files corresponding to the tenant contract based on a consistency algorithm so as to update the tenant files.
S211: and issuing a permission verification result to the Internet of things gateway so that the Internet of things gateway controls the intelligent device according to the permission verification result.
Above-mentioned, carry out authentication through tenant contract information that registers in the tenant registration database, and distribute the tenant archives into each blockchain node, maintain the tenant archives by each blockchain node based on the consensus mechanism, and when the tenant needs to control intelligent device, send out the permission verification request through thing networking gateway, carry out the permission verification jointly by each blockchain node, and finally confirm the permission verification result, thing networking gateway will control intelligent device according to the permission verification result, and the time course and the scope of tenant archives to intelligent device control authority are confirmed according to tenant contract information, release the tenant to intelligent device's control authority when tenant contract information expires, the management of convenient use authority to intelligent device has improved building thing networking intelligent device's management efficiency, effectively promote user experience. Meanwhile, when the verification results are inconsistent, the tenant files among the block chain nodes are updated through a consistency algorithm, so that the tenant files among different block chain nodes are agreed, the effectiveness of data is ensured, and the safety of building equipment management is ensured.
Fig. 3 is a schematic structural diagram of a building internet of things management device according to an embodiment of the present application. As shown in fig. 3, the building internet of things management device includes an identity verification module 31, an archive distribution module 32, a consensus verification module 33 and a right determination module 34.
The identity verification module 31 is configured to determine identity verification information attached to a tenant registration request sent by an internet of things gateway, perform identity verification on the identity verification information in a tenant registration database, where the tenant registration database records tenant contract information corresponding to different identity verification information, and the tenant contract information records contract timeliness and equipment scope; the file distribution module 32 is configured to establish a tenant file based on the identity verification result, and distribute the tenant file to each blockchain node in the blockchain network, where the tenant file is used to record the contract timeliness, and the corresponding relationship between the intelligent device and the identity verification information; the consensus verification module 33 is configured to determine tenant verification information attached to a permission verification request sent by the gateway of the internet of things, notify each blockchain node to perform permission verification on the tenant verification information based on a tenant file, and return a verification result; and the permission judging module 34 is configured to issue a permission verification result to the internet of things gateway according to the verification result, so that the internet of things gateway controls the intelligent device according to the permission verification result.
Above-mentioned, carry out authentication through tenant contract information that registers in the tenant registration database, and distribute the tenant archives into each blockchain node, maintain the tenant archives by each blockchain node based on the consensus mechanism, and when the tenant needs to control intelligent device, send out the permission verification request through thing networking gateway, carry out the permission verification jointly by each blockchain node, and finally confirm the permission verification result, thing networking gateway will control intelligent device according to the permission verification result, and the time course and the scope of tenant archives to intelligent device control authority are confirmed according to tenant contract information, release the tenant to intelligent device's control authority when tenant contract information expires, the management of convenient use authority to intelligent device has improved building thing networking intelligent device's management efficiency, effectively promote user experience.
The embodiment of the application also provides computer equipment which can integrate the building internet of things management device. Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application. Referring to fig. 4, the computer apparatus includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; the memory 42 is configured to store one or more programs; the one or more programs, when executed by the one or more processors 41, cause the one or more processors 41 to implement the building internet of things management method as provided in the above embodiments. Wherein the input device 43, the output device 44, the memory 42 and the processor 41 may be connected by a bus or otherwise, for example in fig. 4 by a bus connection.
The memory 42 is used as a readable storage medium of a computing device, and may be used to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the building internet of things management method according to any embodiment of the present application (e.g., the identity verification module 31, the archive distribution module 32, the consensus verification module 33, and the authority determination module 34 in the building internet of things management device). The memory 42 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the device, etc. In addition, memory 42 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 42 may further comprise memory located remotely from processor 41, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 43 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the device. The output device 44 may include a display device such as a display screen.
The processor 41 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 42, i.e. implements the above-described building internet of things management method.
The building internet of things management device, the equipment and the computer provided by the above can be used for executing the building internet of things management method provided by any embodiment, and have corresponding functions and beneficial effects.
The present application also provides a storage medium containing computer executable instructions, which when executed by a computer processor, are configured to perform the building internet of things management method as provided in the above embodiments, where the building internet of things management method includes: determining identity verification information attached to a tenant registration request sent by an Internet of things gateway, and carrying out identity verification on the identity verification information in a tenant registration database, wherein tenant contract information corresponding to different identity verification information is recorded in the tenant registration database, and contract timeliness and equipment range are recorded in the tenant contract information; establishing a tenant file based on an identity verification result, and distributing the tenant file to each blockchain node in a blockchain network, wherein the tenant file is used for recording contract timeliness and the corresponding relation between intelligent equipment and identity verification information; determining tenant verification information attached to a permission verification request sent by an Internet of things gateway, informing each blockchain node to perform permission verification on the tenant verification information based on a tenant file, and returning a verification result; and issuing a permission verification result to the Internet of things gateway according to the verification result, so that the Internet of things gateway controls the intelligent device according to the permission verification result.
Storage media-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, rambus (Rambus) RAM, etc.; nonvolatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (e.g., in different computer systems connected by a network). The storage medium may store program instructions (e.g., embodied as a computer program) executable by one or more processors.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present application is not limited to the building internet of things management method described above, and related operations in the building internet of things management method provided in any embodiment of the present application may also be performed.
The building internet of things management device, the device and the storage medium provided in the above embodiments may execute the building internet of things management method provided in any embodiment of the present application, and technical details not described in detail in the above embodiments may refer to the building internet of things management method provided in any embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (9)

1. The building internet of things management method is characterized by comprising the following steps:
determining identity verification information attached to a tenant registration request sent by an Internet of things gateway, and carrying out identity verification on the identity verification information in a tenant registration database, wherein the identity verification information comprises tenant contract information corresponding to identity ID information in the identity verification information, and sending a tenant verification request to a management background based on the retrieved tenant contract information and the identity verification information so as to obtain an identity verification result by the management background based on the tenant contract information and the identity verification information, wherein the tenant registration database records tenant contract information corresponding to different identity verification information, and the tenant contract information records contract timeliness and equipment range;
establishing a tenant file based on an identity verification result, and distributing the tenant file to each blockchain node in a blockchain network, wherein the tenant file is used for recording contract timeliness and the corresponding relation between intelligent equipment and identity verification information;
determining tenant verification information attached to a permission verification request sent by an Internet of things gateway, informing each blockchain node to perform permission verification on the tenant verification information based on a tenant file, and returning a verification result;
and issuing a permission verification result to the Internet of things gateway according to the verification result, so that the Internet of things gateway controls the intelligent device according to the permission verification result.
2. The building internet of things management method of claim 1, wherein the authentication information includes identity ID information and biometric information.
3. The building internet of things management method of claim 1, wherein the establishing a tenant profile based on the authentication result comprises:
based on an identity verification result passing through identity verification, determining contract aging information and equipment range information corresponding to the tenant contract information;
and determining intelligent equipment corresponding to the identity verification information based on the equipment range information, establishing a tenant file, and determining file aging of the tenant file according to the contract aging information.
4. The building internet of things management method according to claim 1, wherein issuing the permission verification result to the internet of things gateway according to the verification result comprises
Obtaining verification results sent by each block chain node, and judging whether the verification results are consistent;
if the verification results are consistent, directly determining an authority verification result based on the verification results;
if the verification results are inconsistent, determining a final verification result based on the duty ratio of different verification results, and determining an authority verification result based on the final verification result;
and issuing a permission verification result to the gateway of the Internet of things.
5. The method for managing the internet of things of a building according to claim 4, further comprising, after the verification result is inconsistent:
and notifying each block link point to update the tenant file based on a consistency algorithm.
6. The method of claim 5, wherein updating the tenant profile by each block link point based on a consistency algorithm comprises:
each block chain link point calculates the hash value of each tenant file, compares the hash values for the tenant files corresponding to each tenant contract information, determines the tenant files with different hash values, and updates the tenant files with different hash values based on a consistency algorithm.
7. The building internet of things management device is characterized by comprising an identity verification module, a file distribution module, a consensus verification module and a permission judgment module, wherein:
the system comprises an identity verification module, a tenant registration database and a management background, wherein the identity verification module is used for determining identity verification information attached to a tenant registration request sent by an Internet of things gateway and carrying out identity verification on the identity verification information in the tenant registration database, the identity verification module comprises the steps of searching tenant contract information corresponding to the identity ID information in the identity verification information in the tenant registration database, sending a tenant verification request to the management background based on the searched tenant contract information and the identity verification information, so that the management background carries out identity verification based on the tenant contract information and the identity verification information to obtain an identity verification result, and the tenant registration database records tenant contract information corresponding to different identity verification information, wherein the tenant contract information records contract timeliness and equipment range;
the file distribution module is used for establishing a tenant file based on the identity verification result and distributing the tenant file to each blockchain node in the blockchain network, wherein the tenant file is used for recording the corresponding relation between contract timeliness and the intelligent equipment and the identity verification information;
the consensus verification module is used for determining tenant verification information attached to a permission verification request sent by the gateway of the Internet of things, notifying each blockchain node to perform permission verification on the tenant verification information based on the tenant file and returning a verification result;
and the permission judging module is used for issuing a permission verification result to the internet of things gateway according to the verification result so that the internet of things gateway controls the intelligent equipment according to the permission verification result.
8. A computer device, comprising: a memory and one or more processors;
the memory is used for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the building internet of things management method of any of claims 1-6.
9. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the building internet of things management method of any of claims 1-6.
CN202011404798.8A 2020-12-05 2020-12-05 Building internet of things management method, device, equipment and storage medium Active CN112507310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011404798.8A CN112507310B (en) 2020-12-05 2020-12-05 Building internet of things management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011404798.8A CN112507310B (en) 2020-12-05 2020-12-05 Building internet of things management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112507310A CN112507310A (en) 2021-03-16
CN112507310B true CN112507310B (en) 2024-03-29

Family

ID=74969945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011404798.8A Active CN112507310B (en) 2020-12-05 2020-12-05 Building internet of things management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112507310B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761125A (en) * 2016-02-03 2016-07-13 武汉天梯极客网络科技有限公司 Vehicle renting method and cloud management server
CN106878084A (en) * 2017-02-28 2017-06-20 新华三技术有限公司 A kind of authority control method and device
CN107341707A (en) * 2017-05-25 2017-11-10 广东建邦计算机软件股份有限公司 Based on the house lease data processing method and device for controlling grid altogether
CN107784539A (en) * 2016-08-29 2018-03-09 李葛亮 The method that display device is worn based on terminal device and the control of server management of leasing
CN108737348A (en) * 2017-04-21 2018-11-02 中国科学院信息工程研究所 A kind of internet of things equipment access control method of the intelligent contract based on block chain
CN109472675A (en) * 2018-11-29 2019-03-15 阿里巴巴集团控股有限公司 Processing method, device, system and the equipment of charter business
CN109584110A (en) * 2018-11-22 2019-04-05 广州点睿信息科技有限公司 A kind of intelligent hotel managing device and method based on block chain
CN110049141A (en) * 2019-05-24 2019-07-23 南京工程学院 Internet of Things distributed authentication method and its framework based on block chain
CN110084665A (en) * 2019-03-18 2019-08-02 深圳壹账通智能科技有限公司 It rents a house method of commerce, device, electronic equipment and computer readable storage medium
CN110189440A (en) * 2019-05-17 2019-08-30 杭州宇链科技有限公司 A kind of smart lock monitoring equipment and its method based on block chain
CN110211271A (en) * 2019-06-17 2019-09-06 浙江居利威物联科技有限公司 Net about room management method, management platform and system
CN110619526A (en) * 2019-09-19 2019-12-27 阿里巴巴集团控股有限公司 Business service providing method, device, equipment and system based on block chain
JP2020119147A (en) * 2019-01-22 2020-08-06 キヤノン株式会社 System, tenant moving method, information processing apparatus and control method thereof, authorization server and control method thereof, and program
CN111553767A (en) * 2020-04-29 2020-08-18 天网互联科技(深圳)有限公司 Shared house leasing system, method and storage medium based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6318940B2 (en) * 2013-07-30 2018-05-09 株式会社リコー Service providing system, data providing method and program
US20190058709A1 (en) * 2017-08-16 2019-02-21 Telefonaktiebolaget Lm Ericsson (Publ) Tenant management method and system in a cloud computing environment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761125A (en) * 2016-02-03 2016-07-13 武汉天梯极客网络科技有限公司 Vehicle renting method and cloud management server
CN107784539A (en) * 2016-08-29 2018-03-09 李葛亮 The method that display device is worn based on terminal device and the control of server management of leasing
CN106878084A (en) * 2017-02-28 2017-06-20 新华三技术有限公司 A kind of authority control method and device
CN108737348A (en) * 2017-04-21 2018-11-02 中国科学院信息工程研究所 A kind of internet of things equipment access control method of the intelligent contract based on block chain
CN107341707A (en) * 2017-05-25 2017-11-10 广东建邦计算机软件股份有限公司 Based on the house lease data processing method and device for controlling grid altogether
CN109584110A (en) * 2018-11-22 2019-04-05 广州点睿信息科技有限公司 A kind of intelligent hotel managing device and method based on block chain
CN109472675A (en) * 2018-11-29 2019-03-15 阿里巴巴集团控股有限公司 Processing method, device, system and the equipment of charter business
JP2020119147A (en) * 2019-01-22 2020-08-06 キヤノン株式会社 System, tenant moving method, information processing apparatus and control method thereof, authorization server and control method thereof, and program
CN110084665A (en) * 2019-03-18 2019-08-02 深圳壹账通智能科技有限公司 It rents a house method of commerce, device, electronic equipment and computer readable storage medium
CN110189440A (en) * 2019-05-17 2019-08-30 杭州宇链科技有限公司 A kind of smart lock monitoring equipment and its method based on block chain
CN110049141A (en) * 2019-05-24 2019-07-23 南京工程学院 Internet of Things distributed authentication method and its framework based on block chain
CN110211271A (en) * 2019-06-17 2019-09-06 浙江居利威物联科技有限公司 Net about room management method, management platform and system
CN110619526A (en) * 2019-09-19 2019-12-27 阿里巴巴集团控股有限公司 Business service providing method, device, equipment and system based on block chain
CN111553767A (en) * 2020-04-29 2020-08-18 天网互联科技(深圳)有限公司 Shared house leasing system, method and storage medium based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Controlled Components for Internet of Things As-AService;Tatiana Aubonnet 等;Open Journal of Internet of Things;20161231;第2卷(第1期);16-33 *

Also Published As

Publication number Publication date
CN112507310A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN110096857B (en) Authority management method, device, equipment and medium for block chain system
CN111343142B (en) Data processing method and device based on block chain network and storage medium
CN109150943B (en) Information transmission method, device and system
US8239398B2 (en) Notification processor that notifies information and position information manager
WO2017206696A1 (en) Contact information processing method and apparatus, and storage medium
CA2448614A1 (en) Storage access keys
CN110335399B (en) Bluetooth access control method, computer terminal and computer readable storage medium
CN110930561B (en) Control method and device of intelligent lock
CN111984949B (en) Authentication method, device, electronic equipment and storage medium
CN112837154A (en) Method and device for registering and executing timing intelligent contract in block chain
CN112597511A (en) Remote government affair service cooperation method and device
CN114363352A (en) Block chain-based Internet of things system cross-chain interaction method
CN112307444A (en) Role creation method, role creation device, computer equipment and storage medium
CN111260833A (en) Binding and management method and device for access control card
KR102461963B1 (en) Artificial intelligence-based on-site car wash information provision and vehicle door device control method, device and system
CN112507310B (en) Building internet of things management method, device, equipment and storage medium
CN113225350A (en) Network resource management method, device, medium and electronic equipment
CN112788153B (en) Internet of things equipment upgrading management method, device, equipment and storage medium
CN113239255B (en) Heterogeneous data resource sharing method and device, computer equipment and medium
CN113191514B (en) Visitor vehicle information appointment auditing method and system
CN113200020B (en) Method for unlocking vehicle door lock, vehicle control cloud platform and system
CN112734993B (en) Communication system and method for anti-theft lock
CN111379475B (en) Unlocking method of electronic lock, electronic lock and unlocking management equipment
CN116095081A (en) Event processing method and device based on block chain system, equipment and medium
JP2001216547A (en) Security method, security system using it, and recording medium with security program recorded thereon

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