CN109272606A - A kind of smart lock monitoring equipment, method and storage medium based on block chain - Google Patents

A kind of smart lock monitoring equipment, method and storage medium based on block chain Download PDF

Info

Publication number
CN109272606A
CN109272606A CN201810794183.7A CN201810794183A CN109272606A CN 109272606 A CN109272606 A CN 109272606A CN 201810794183 A CN201810794183 A CN 201810794183A CN 109272606 A CN109272606 A CN 109272606A
Authority
CN
China
Prior art keywords
block chain
smart lock
information
module
intelligent contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810794183.7A
Other languages
Chinese (zh)
Other versions
CN109272606B (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.)
Skynet Internet Technology (shenzhen) Co Ltd
Original Assignee
Skynet Internet Technology (shenzhen) 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 Skynet Internet Technology (shenzhen) Co Ltd filed Critical Skynet Internet Technology (shenzhen) Co Ltd
Priority to CN201810794183.7A priority Critical patent/CN109272606B/en
Publication of CN109272606A publication Critical patent/CN109272606A/en
Application granted granted Critical
Publication of CN109272606B publication Critical patent/CN109272606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00563Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys using personal physical data of the operator, e.g. finger prints, retinal images, voicepatterns
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit

Abstract

The embodiment of the invention provides a kind of smart lock monitoring equipments based on block chain, comprising: authentication module and door lock main control module;Wherein, authentication module is used to carry out identity authority certification to the user that request is unlocked according to local user authentication information table, and door lock main control module is triggered when authenticating successfully;The door lock main control module is for controlling door lock unlatching when being triggered by authentication module.Based on above scheme, the present invention realizes a kind of smart lock supervisory systems of decentralization, each smart lock monitoring equipment is locally carrying out unlocking certification in block chain network, each smart lock monitoring equipment only saves the user authentication information table of door lock associated with itself, in this way, even if a certain smart lock monitoring equipment is cracked, user information is tampered, and will not influence the normal operation of other smart lock monitoring equipments in block chain network.The embodiment of the invention also provides a kind of smart lock monitoring and managing methods and computer readable storage medium based on block chain.

Description

A kind of smart lock monitoring equipment, method and storage medium based on block chain
Technical field
The present invention relates to net application technology fields, and in particular to a kind of based on the smart lock monitoring equipment of block chain, side Method and computer readable storage medium.
Background technique
Traditional intelligent door lock does not have network savvy generally, only merely replaces key with password or fingerprint.
The intelligent door lock for having network savvy, which is generally required, carries out the friendship of the authorization messages such as password with cloud or server end Mutually verifying is to realize the certification of user identity and the unlatching of door lock, still, in this case, once leaking data is sent, safety Hidden danger is very big.
In the case where hotel, office, warehouse etc. are related to the continually changing scene of mapping relations between personnel and door lock, password And the validity period of password, corresponding relationship, the superior and the subordinate's rights management relationship need not stop to replace, replacement process not only complex steps, Complicated technology realization is also difficult to have than more comprehensive history management record, once there is password loss or steals, it is difficult to it traces The reason of thing occurs, these are all the pain spot problems of Intelligent internet of things under some relatively common cloud computing environments.
Intelligent house transaction system currently on the market is intelligent door lock and traditional house lease system based on intermediary Simple combination.Letting agency is that intelligent door lock is installed in room, then contracts with the visitor to rent a house, password is finally handed down to room Visitor.The password of intelligent door lock is equal to key.The entire stream of transaction is had no idea and leased to access facility of the door lock as room Journey interaction, the interests for protecting lessee and house-owner of also having no idea.Even if interacting management between smart lock and server, also hold Easily there are data and be intercepted the problems such as server is attacked, safety and trust loophole are very big.
On the other hand, existing intelligent networking door lock is generally basede on Wireless Fidelity (Wi-Fi, Wireless-Fidelity), purple Bee (Zigbee), the agreements such as bluetooth (Bluetooth), the networking features of these door locks are all based on router or gateway comes in fact Existing, it has the disadvantage that
1, gateway or router need extra purchase, increase cost, and reduce practicability.Although these door locks Battery power supply can be used in lock body, but its router or gateway need and server keeps connecting for a long time, it is necessary to use Stable power supply power supply, this brings inconvenience for the deployment of system.
2, the communication modes peace such as the existing intelligent door lock for having network savvy is relied on Wi-Fi, Zigbee and bluetooth Full property is lower, and attacker can invade gateway by various modes to realize the eavesdropping to communication process.
Although 3, existing networking door lock also has the filing function of the online updating and operation log of password, these The record of data is typically all to concentrate preservation and management using traditional database, this just brings data tampering and loss Risk, once malicious user has grasped the permission of database, so that it may and it steals or modifies the password of any one equipment and open Lock record, to cause serious economic loss.
Summary of the invention
In order at least be partially solved existing technology there are the problem of, an embodiment of the present invention is intended to provide one kind be based on block chain Smart lock monitoring and managing method, equipment and computer readable storage medium.
According in a first aspect, providing a kind of smart lock monitoring equipment based on block chain in a kind of embodiment, comprising: body Part authentication module and door lock main control module;Wherein,
The authentication module, the subscriber identity information for being unlocked according to local user authentication information table to request Identity authority certification is carried out, and triggers door lock main control module when identity authority authenticates successfully;
The door lock main control module controls door lock unlatching when for being triggered by authentication module.
Preferably, the subscriber identity information is at least one among following information:
User identity demonstrate,proves number, door lock password, fingerprint, iris, face, Bluetooth of mobile phone module, mobile phone NFC module.
Preferably, the equipment further include: block chain wallet module and communication module;Wherein,
The block chain wallet module, for generating intelligent contract, the intelligence contract includes contract state, further include with Lower information at least one:
Room identification code, address name, subscriber identity information, tenant's contract time limit, the rent amount of money, the rent means of payment, It transfers accounts account;The contract state include: created, activated, paid rent, rent to landlord's account, be turned off, arrived Phase has renewed a contract;
The communication module is set for the intelligent contract to be sent to the supervision of other smart locks in block chain network It is standby;It is also used to receive the authorization identifying information for the intelligent contract that other smart lock monitoring equipments are sent.
Preferably, the block chain wallet module is also used to receive all other intelligence in block chain network in communication module After the authorization identifying information for the intelligent contract that monitoring equipment transmission can be locked, the intelligent contract is activated and by the intelligence The status modifier of energy contract is to have activated.
Preferably, the authentication module, for receiving all other smart lock in block chain network in communication module After the authorization identifying information for the intelligent contract that monitoring equipment is sent, the person identification that the user sends is received Information, and the individual subscriber identity identification information received is saved into local user authentication information table.
Preferably, the block chain wallet module, for receiving and taking care of the rent of user before the rental period terminates;
Terminate in the rental period and lease both sides in the consentient situation of current period lease, taken care of rent is transferred accounts to landlord Account.
Preferably, the communication module is also used to receive what other smart lock monitoring equipments in block chain network were sent Intelligent contract, and authorization identifying is carried out to received intelligent contract;It is also used to receive other intelligence in block chain network Intelligent contract after locking the content and/or Status Change that monitoring equipment is sent, by the intelligence after the content and/or Status Change Contract is stored in local.
Preferably, the communication module is also used to when user unlocks successfully, by current unlocking event and related alarm Other smart locks supervision on information (including: battery capacity, door lock state, information of forcing open the door etc.) synchronizing information to block chain network Equipment;Wherein, the unlocking event information include following information at least one:
Unlocking subscriber identity information, unlocking room identification code, uncaging time.
Preferably, the communication module is also used in intelligent treaty content and/or Status Change, by the intelligence after change Energy contract is sent to other smart lock monitoring equipments in block chain network.
Preferably, the communication module is supervised using other smart locks on NB-IOT/eMTC network and block chain network Equipment is communicated.
According to second aspect, a kind of smart lock monitoring and managing method based on block chain is provided in a kind of embodiment, comprising:
Identity authority certification is carried out to the subscriber identity information that request is unlocked according to local user authentication information table;
Door lock is controlled when identity authority authenticates successfully to open.
Preferably, the subscriber identity information is at least one among following information:
User identity demonstrate,proves number, door lock password, fingerprint, iris, face, Bluetooth of mobile phone module, mobile phone NFC module.
Preferably, the subscriber identity information unlocked according to local user authentication information table to request carries out authenticating it Before, the method also includes:
Generate intelligent contract, the intelligence contract includes contract state, further include following information at least one:
Room identification code, address name, subscriber identity information, tenant's contract time limit, the rent amount of money, the rent means of payment, It transfers accounts account;The contract state include: created, activated, paid rent, rent to landlord's account, be turned off, arrived Phase has renewed a contract;
The intelligent contract is sent to other smart lock monitoring equipments in block chain network;
Receive the authorization identifying information for the intelligent contract that other smart lock monitoring equipments are sent.
Preferably, the method also includes:
The awarding for the intelligent contract that all other smart lock monitoring equipment is sent on receiving block chain network After weighing authentication information, activates the intelligent contract and be to have activated by the status modifier of the intelligent contract.
Preferably, the method also includes:
The awarding for the intelligent contract that all other smart lock monitoring equipment is sent on receiving block chain network After weighing authentication information, the person identification information that the user sends, and the individual subscriber identity that will be received are received Identification information is saved into local user authentication information table.
Preferably, the method also includes:
The rent of user is received and taken care of before the rental period terminates;
Terminate in the rental period and lease both sides in the consentient situation of current period lease, taken care of rent is transferred accounts to landlord Account.
Preferably, the method also includes:
The intelligent contract that other smart lock monitoring equipments in block chain network are sent is received, and to received intelligence Contract carries out authorization identifying;
The method also includes: receive the content and/or shape that other smart lock monitoring equipments in block chain network are sent Intelligent contract after state change, is stored in local for the intelligent contract after the content and/or Status Change.
Preferably, the method also includes:
It (include: battery capacity, door by current unlocking event information and related warning information when user unlocks successfully Lock status, information of forcing open the door etc.) it is synchronized to other smart lock monitoring equipments in block chain network;Wherein, the unlocking event letter Breath include following information at least one:
Unlocking subscriber identity information, unlocking room identification code, uncaging time.
Preferably, the method also includes: in intelligent treaty content and/or Status Change, by after change intelligence close The other smart lock monitoring equipments being about sent in block chain network.
According to the third aspect, a kind of computer readable storage medium is provided in a kind of embodiment, this is computer-readable to deposit Storage media includes program, and described program is used to be executed by processor to realize the method as described in above-mentioned second aspect.
Compared with prior art, the embodiment of the present invention at least has following advantages:
The smart lock monitoring equipment based on block chain provided according to embodiments of the present invention, comprising: authentication module and Door lock main control module;Wherein, the authentication module, the use for being unlocked according to local user authentication information table to request Family identity information is authenticated, and triggers door lock main control module in authentication success;The door lock main control module is used for quilt Control door lock is opened when authentication module triggers.Based on above scheme, the present invention realizes a kind of smart lock of decentralization Supervisory systems avoids the safety and reliability problem of traditional centralization networking door-locking system.It is each in block chain network A smart lock monitoring equipment is locally carrying out unlocking certification, and each smart lock monitoring equipment only saves door lock associated with itself User authentication information table will not shadow in this way, user information is tampered even if a certain smart lock monitoring equipment is cracked Ring the normal operation of other smart lock monitoring equipments in block chain network.On the other hand, the smart lock prison that the present invention is realized Guard system additionally disposes router or gateway due to not needing, cost can be greatly lowered.Moreover, each intelligence Monitoring equipment, which can be locked, to be powered using battery, this smart lock supervisory systems that present invention is realized deployment is very simple It is single.
Detailed description of the invention
Fig. 1 is the basic block diagram the present invention is based on the smart lock monitoring equipment of block chain in one embodiment;
Fig. 2 is the basic block diagram the present invention is based on the smart lock monitoring equipment of block chain in another embodiment;
Fig. 3 is the contract state transition graph in the smart lock monitoring equipment the present invention is based on block chain;
Fig. 4 is a kind of example format figure of intelligent contract in the smart lock monitoring equipment the present invention is based on block chain;
Fig. 5 is the quick lookup in the smart lock monitoring equipment the present invention is based on block chain for realizing user identity authentication Table structure figure;
Fig. 6 is the Principle of Communication schematic diagram in the present invention in the same block chain network between intelligent supervision equipment;
Fig. 7 is the flow chart the present invention is based on the smart lock monitoring and managing method of block chain in one embodiment.
Specific embodiment
Below by specific embodiment combination attached drawing, invention is further described in detail.Wherein different embodiments Middle similar component uses associated similar element numbers.In the following embodiments, many datail descriptions be in order to The application is better understood.However, those skilled in the art can recognize without lifting an eyebrow, part of feature It is dispensed, or can be substituted by other elements, material, method in varied situations.In some cases, this Shen Please it is relevant it is some operation there is no in the description show or describe, this is the core in order to avoid the application by mistake More descriptions are flooded, and to those skilled in the art, these relevant operations, which are described in detail, not to be necessary, they Relevant operation can be completely understood according to the general technology knowledge of description and this field in specification.
It is formed respectively in addition, feature described in this description, operation or feature can combine in any suitable way Kind embodiment.Meanwhile each step in method description or movement can also can be aobvious and easy according to those skilled in the art institute The mode carry out sequence exchange or adjustment seen.Therefore, the various sequences in the description and the appended drawings are intended merely to clearly describe a certain A embodiment is not meant to be necessary sequence, and wherein some sequentially must comply with unless otherwise indicated.
It is herein component institute serialization number itself, such as " first ", " second " etc., is only used for distinguishing described object, Without any sequence or art-recognized meanings.And " connection ", " connection " described in the application, unless otherwise instructed, include directly and It is indirectly connected with (connection).
Embodiment one
Referring to Fig.1, a kind of structural block diagram of the smart lock monitoring equipment embodiment based on block chain of the present invention, packet are shown It includes: authentication module 11 and door lock main control module 12;Wherein,
The authentication module 11, for being believed according to local user authentication information table the user identity that request is unlocked Breath carries out identity authority certification, and door lock main control module 12 is triggered when identity authority authenticates successfully;
The door lock main control module 12 controls door lock and opens when for being triggered by authentication module 11.
Specifically, the subscriber identity information is at least one among following information:
User identity demonstrate,prove number, door lock password, fingerprint, iris, face, Bluetooth of mobile phone module, mobile phone near-field communication (NFC, NearField Communication) module.
It is related to landlord, two side of lessee in specific implementation of the invention.Landlord is smart lock and house resources Owner, lessee have the right to use in house, therefore in the contract of lease of property valid period of landlord and lessee, lessee possesses house The right to use, also can at the appointed time section and predetermined number of times drawback lock.
In practical realization, when the user (the namely lessee in house) that request is unlocked submits identity information to authenticate, Authentication module 11 directly reads local user authentication information table, and the identity information submitted to user authenticates, and works as body Triggering door lock main control module 12 controls door lock and opens when part authenticates successfully.Specifically, user can by input ID card No., The mode of door lock password or telephone number submits identity information, can also be mentioned by way of input fingerprint, iris, face Hand over identity information.Authentication module 11 has data input function and/or biological information acquisition function and/or bluetooth recognition Function and/or NFC identification function.
The user authentication information table is used to save the identity information of authorized user.
In a kind of optional embodiment of the invention, referring to Fig. 2, the equipment further include: block chain wallet module 13 And communication module 14;Wherein,
The block chain wallet module 13, in authentication module 11 according to local user authentication information table to asking Before asking the subscriber identity information of unlocking to be authenticated, intelligent contract is generated, the intelligence contract includes contract state, further includes Following information at least one:
Room identification code, address name, subscriber identity information, tenant's contract time limit, the rent amount of money, the rent means of payment, It transfers accounts account.
The contract state include: created, activated, paid rent, rent to landlord's account, be turned off, arrived Phase has renewed a contract;Above-mentioned contract state transition graph is as shown in Figure 3.
Wherein, the intelligent contract of expression has been created to be created but Pending The Entry Into Force;The intelligent contract of expression has been activated to enter into force;It is paid Rent indicates that intelligent contract has come into force and user has paid rent;Rent to landlord's account indicate current rental period terminated and Rent has been transferred to landlord's account;It is turned off before the intelligent contract of expression expires and terminates;Having expired indicates that contract expires;It has renewed a contract table Show that intelligent contract subsequent renew that expire and is come into force at the phase.
Each smart lock monitoring equipment stores a contract account, and a kind of example format of intelligent contract is as schemed Shown in 4, wherein it be id, status of landlord is intelligent conjunction that contractId, which is the unique identifier of intelligent contract, ownerId, About current state, tenantId are that id, rent of tenant are the rents of both sides' agreement, and transferAccount is to trade An interim storeroom of fund in journey, the rent of every month are not to be immediately issued to landlord after tenant pays, and be saved to This account, to the end of month, both sides are transferred accounts again after having no objection to the transaction of this current month to landlord's account.Intelligent contract itself Also the system for supporting account trading, the address of the namely intelligent contract of usual transferAccount, txRoot is current intelligence Transaction root node associated by contract, later both sides' operation all to intelligent door lock involved by this transaction and house (unlocking, Modify password increase tenant, modification rent) will be all linked to after txRoot in a manner of block.
Block chain wallet module 13 is used to data being stored in a transaction by asymmetric encryption, include digital signature, Intelligent contract address, timestamp etc.;Block chain wallet module 13, for according to special in specific Hash values match block chain account book Fixed encryption data carries out block data inquiry;Since all events all form record, and all smart locks on block chain It is synchronized between monitoring equipment, therefore, the data on block chain have very strong trackability.
Since smart lock monitoring equipment is usually battery powered, power consumption is had certain limitations.It is rented if searched every time Family unlocking authority requires to traverse entire chain transaction that then cost is too high, and therefore, the present invention devises a Fast Lookup Table, is used for Fast implement user identity authentication.Fast Lookup Table is as shown in figure 5, comprising status field, for allowing equipment is quickly determining to work as The state of preceding intelligence contract, tenants field indicate current quick for recording the user list for having unlocking authority, lastTx The data of look-up table are calculated by traversing all blocks between txRoot to lastTx.As other transaction, The modification of Fast Lookup Table must be also recorded in the chain transaction of txRoot, the trading post of Fast Lookup Table modification is related to Block is considered as critical chunk, therefore referred to as checkpoint (checkpoint).Transaction involved in checkpoint must in real time, together Step ground is by other intelligent lock device confirmations in block chain network.By snapshot data as Fast Lookup Table, avoid It carries out unlocking every time and searches the data of entire block chain when authenticating, recall precision is improved, to reduce power consumption.
The communication module 14 is set for the intelligent contract to be sent to the supervision of other smart locks in block chain network It is standby;It is also used to receive the authorization identifying information for the intelligent contract that other smart lock monitoring equipments are sent.
In a kind of optional embodiment of the invention, the block chain wallet module 13 is also used to connect in communication module 14 After receiving the authorization identifying information for the intelligent contract that all other smart lock monitoring equipment in block chain network is sent, It activates the intelligent contract and is to have activated by the status modifier of the intelligent contract.
Authorized user is also the legitimate user recorded in intelligent contract, and user needs before becoming authorized user by block Therefore the authorization identifying of all devices in chain network after generating intelligent contract, needs intelligent contract being distributed to block chain Other smart lock monitoring equipments on network, when all other smart lock monitoring equipment approves the intelligent contract and to current intelligence After monitoring equipment transmission can be locked for the authorization identifying information of the intelligent contract, the block chain in the smart lock monitoring equipment Wallet module 13 activates the intelligent contract, while being to have activated by the status modifier of the intelligent contract.
In a kind of optional embodiment of the invention, the authentication module 11, for being received in communication module 14 After the authorization identifying information for the intelligent contract that all other smart lock monitoring equipment is sent in block chain network, receive The person identification information that the user sends, and the individual subscriber identity identification information received is saved to local User authentication information table in.
After intelligent contract is activated, can typing user person identification information as unlock when authentication Information, after data input success, authentication module 11 is by collected information preservation in local user authentication information table In, later period, user can carry out the unlocking in house by way of inputting authentication information.
In a kind of optional embodiment of the invention, the block chain wallet module 13 is also used to before the rental period terminates Receive and take care of the rent of user;And terminate in the rental period and lease both sides in the consentient situation of current period lease, it will take care of Rent transfer accounts to landlord's account.
After intelligent contract comes into force, user can payment or rent, the rent paid will be by block chains before the rental period terminates Wallet module 13 is in commendam.Terminate when the rental period, and leases both sides and the current period is leased in consentient situation, region chain wallet mould Rent is gone to the account of landlord by block 13.When transferring accounts completion and in the case that both sides do not renew a contract, region chain wallet module 13 is by intelligence The status modifier of energy contract is to have expired, and is to have renewed a contract by the status modifier of intelligent contract if both sides continue need for.
In a kind of optional embodiment of the invention, the communication module 14 is also used to receive in block chain network The intelligent contract that other smart lock monitoring equipments are sent, and authorization identifying is carried out to received intelligent contract.
In actual implementation, current smart lock monitoring equipment is also used to receive the intelligence that other smart lock monitoring equipments are sent Contract, and authorization identifying is carried out to received intelligent contract.
That is, all smart lock monitoring equipments in same block chain network require after generating intelligent contract The authorization identifying of other all smart lock monitoring equipments is obtained, intelligent contract can come into force.If any one other intelligence The certification of monitoring equipment with no authorized is locked, then cannot be come into force.
In a kind of optional embodiment of the invention, the communication module 14 is also used to receive in block chain network Intelligent contract after content and/or Status Change that other smart lock monitoring equipments are sent, by the content and/or Status Change Intelligent contract afterwards is stored in local.
After intelligent contract comes into force, all needed for the change in the change and/or state in the either content of intelligent contract The other smart lock monitoring equipments being synchronized in block chain network.
In a kind of optional embodiment of the invention, the communication module 14, be also used in intelligent treaty content and/or When Status Change, other smart lock monitoring equipments for the intelligent contract after change being sent in block chain network.
In a kind of optional embodiment of the invention, the communication module 14 is also used to when user unlocks successfully, will Current unlocking event information and related warning information (including: battery capacity, door lock state, information of forcing open the door etc.) are synchronized to block Other smart lock monitoring equipments in chain network;Wherein, the unlocking event information include following information at least one:
Unlocking subscriber identity information, unlocking room identification code, uncaging time.
In the present invention, unlocking event is either unlocked successfully or unlocks unsuccessful each time, will all be synchronized to block Other smart lock monitoring equipments in chain network.
If it is unsuccessful that a user repeatedly attempts unlocking, and is more than preset times, then blacklist is added into.The operation by Authentication module 11 executes.
Based on above scheme, in block chain network any smart lock monitoring equipment occur key message change and When unlocking action occurs, these key messages (such as intelligent contract relevant information) and unlocking event information can all be synchronized to area Other smart lock monitoring equipments in block chain network, other smart lock monitoring equipments record the information received, and can will connect The information received is compared with local historical information, so that correlating validation is realized in entire block chain network, to have Effect prevents information to be tampered.
Specifically, the communication module is logical using the narrowband Internet of Things (NB-IoT) based on 3GPP standard/enhancing machine type Letter (eMTC) network is communicated with other smart lock monitoring equipments in block chain network.
Fig. 6 is the Principle of Communication schematic diagram in the same block chain network between smart lock monitoring equipment, as shown in fig. 6, Due to being communicated using NB-IoT/eMTC network, needed between smart lock monitoring equipment by operator base station come into Row communication, and smart lock monitoring equipment and other equipment not can be carried out direct communication, therefore, this communication mode be it is asynchronous, I.e. message sender by the message caching system of message dilivery to base station and specifies message receiver (can be one group), message Recipient receives the notice of unread message in the process periodically with base station communication, then pulls unread message to base station.For Preventing unread message excessively causes message to overstock, and the message of base station will set an expired time, be more than expired time and not The message being charged for will be dropped.It can be in current NB-IOT/eMTC network rack by this asynchronous message dilivery mechanism The communication of device-to-device (M2M) is realized under structure.It should be noted that illustrating only two for the sake of briefly describing, in Fig. 6 Smart lock monitoring equipment, reality may include more than two smart lock monitoring equipments in block chain network in realizing.
Based on above scheme, the smart lock prison equipment that the present invention is realized can be exempted from by NB-IOT/eMTC network implementations The equipment access module of gateway needs not rely on the such as third parties such as gateway, router to realize the dimension of smart lock monitoring equipment Shield, to reduce the risk that third party device or software distort equipment, enhances whole system (by block chain network On all smart lock monitoring equipments collectively form) robustness and anti-attack ability.
In the specific implementation process, above-mentioned authentication module 11, door lock main control module 12, block chain wallet module 13 and Communication module 14 can by smart lock monitoring equipment central processing unit (CPU, Central Processing Unit), Microprocessor (MPU, Micro Processing Unit), digital signal processor (DSP, Digital Signal Processor) or programmable logic array (FPGA, Field-Programmable GateArray) is realized.
To sum up, the smart lock monitoring equipment based on block chain provided by the embodiment of the present invention, comprising: authentication module With door lock main control module;Wherein, the authentication module, for what is unlocked according to local user authentication information table to request Subscriber identity information is authenticated, and triggers door lock main control module in authentication success;The door lock main control module, is used for Door lock unlatching is controlled when being triggered by authentication module.Based on above scheme, the present invention realizes a kind of intelligence of decentralization Supervisory systems is locked, the safety and reliability problem of traditional centralization networking door-locking system is avoided.It is every in block chain network One smart lock monitoring equipment is locally carrying out unlocking certification, and each smart lock monitoring equipment only saves door associated with itself The user authentication information table of lock, in this way, user information is tampered, will not even if a certain smart lock monitoring equipment is cracked Influence the normal operation of other smart lock monitoring equipments in block chain network.Without as the prior art, all door locks Authentication information be maintained on a server, in this way it is easy to cause serious damage because server is maliciously cracked It loses.
On the other hand, the smart lock supervisory systems that the present invention is realized additionally disposes router or net due to not needing It closes, therefore, cost can be greatly lowered.Moreover, each smart lock monitoring equipment can be powered using battery, this makes The smart lock supervisory systems deployment that the present invention is realized is very simple.
Further, since the authorization identifying of each user in block chain network uses block chain distributed management, Even if the user information on a smart lock monitoring equipment is tampered, the user information distorted also is unable to get block chain network The authorization identifying of upper other smart lock monitoring equipments, in this case, the user information of unauthorized certification is cannot be just Normally opened lock;Simultaneously as the guarantee of block chain self character, the important information of each equipment can not be tampered, because The change of equipment key message and the movement of lock all can record simultaneously correlating validation by each equipment on block chain by network. This makes whole system have very high Information Security and reliability.
Embodiment two
Referring to Fig. 7, a kind of step flow chart of the smart lock monitoring and managing method based on block chain of the present invention is shown, specifically may be used To include:
Step 701 carries out identity authority to the subscriber identity information that request is unlocked according to local user authentication information table Certification;
Specifically, the subscriber identity information is at least one among following information:
User identity demonstrate,proves number, door lock password, fingerprint, iris, face, Bluetooth of mobile phone module, mobile phone NFC module.
Specifically, the subscriber identity information unlocked according to local user authentication information table to request carries out authenticating it Before, the method also includes:
Generate intelligent contract, the intelligence contract includes contract state, further include following information at least one:
Room identification code, address name, subscriber identity information, tenant's contract time limit, the rent amount of money, the rent means of payment, It transfers accounts account;The contract state include: created, activated, paid rent, rent to landlord's account, be turned off, arrived Phase has renewed a contract;
The intelligent contract is sent to other smart lock monitoring equipments in block chain network;
Receive the authorization identifying information for the intelligent contract that other smart lock monitoring equipments are sent.
In a kind of optional embodiment of the invention, the method also includes:
The awarding for the intelligent contract that all other smart lock monitoring equipment is sent on receiving block chain network After weighing authentication information, activates the intelligent contract and be to have activated by the status modifier of the intelligent contract.
In a kind of optional embodiment of the invention, the method also includes:
The awarding for the intelligent contract that all other smart lock monitoring equipment is sent on receiving block chain network After weighing authentication information, the person identification information that the user sends, and the individual subscriber identity that will be received are received Identification information is saved into local user authentication information table.
The above method further include:
The rent of user is received and taken care of before the rental period terminates;
Terminate in the rental period and lease both sides in the consentient situation of current period lease, taken care of rent is transferred accounts to landlord Account.
The method also includes:
The intelligent contract that other smart lock monitoring equipments in block chain network are sent is received, and to received intelligence Contract carries out authorization identifying;
Further, the method also includes: in intelligent treaty content and/or Status Change, by the intelligence after change Contract is sent to other smart lock monitoring equipments in block chain network.
The method also includes: receive the content and/or shape that other smart lock monitoring equipments in block chain network are sent Intelligent contract after state change, is stored in local for the intelligent contract after the content and/or Status Change.
Step 702 controls door lock unlatching when identity authority authenticates successfully.
It (include: electricity by current unlocking event information and related warning information after user unlocks successfully in the step Pond electricity, door lock state, information of forcing open the door etc.) it is synchronized to other smart lock monitoring equipments in block chain network;Wherein, described to open Lock event information include following information at least one:
Unlocking subscriber identity information, unlocking room identification code, uncaging time.
Embodiment three
The embodiment of the present invention three provides a kind of computer readable storage medium, and the computer readable storage medium includes Program, described program are used to be executed by processor to realize the method as described in embodiment one.
Specific example
It takes a particular example below and scheme of the present invention is described in detail.
Step 1, system initialization
Landlord is that (or room can be realized access depending on intelligent door lock for oneself house using the contract account of oneself The region of control) intelligent contract is created, it specifies rent (rent field), the state (status field) of intelligent contract becomes CREATED.The particular content of the contract of lease of property, such as rent (rent) clause are defined in this intelligent contract.
Intelligent contract is sent to each of block chain network smart lock monitoring equipment, and obtains all intelligence by step 2 The authorization identifying of monitoring equipment can be locked.
Specifically, can be consumed after intelligent contract creation certain token be diffused into it is each in block chain network A node (each smart lock monitoring equipment).Token mentioned here can be any currency, for example, bit coin or Wechat, Alipay etc. are ok, and the movement of this diffusion is one of intelligent contract guarantee fund cash pledge in other words in fact, with Ensure the validity of contract.
Step 3, lease authorization
Lessee initiates to trade to equipment contract account, and contract account verifies the rent amount of money, user identity etc., if transaction is true Recognize, intelligent contract state becomes STARED.After the rent of first month reaches transferAccount (contract account), Contract state becomes TRANSFER_2, indicates that rent has arrived account;After this transaction is added to txRoot simultaneously, by tenant It is added to the legal account list of equipment contract.Since this is a crucial transaction, this transaction is synchronized to block chain Other nodes on network.Terminated when one month rental period, both sides have no objection (here it is possible to by equipment root to current period lease It is automatically confirmed that according to whether the condition of intelligent contract meets;It can also confirm whether respective process meets respectively by leasing both sides The clause of intelligent contract, can be manual confirmation, can also be automatically confirmed that by equipment), fund is transferred to automatically in the account of landlord, Contract state becomes TRANSFER_1, indicates rent to landlord's account.Hereafter the payment, confirmation of every month all will lead to contract State switches between TRANSFER_1 and TRANSFER_2, and until transaction terminates, contract state becomes EXPIRED, indicates It expires;If contract expires and continues to renew a contract, contract state becomes RENEWAL, and expression has been renewed a contract;The premise if contract expires Preceding termination, then contract state becomes TERMINATED, indicates to be turned off.
Step 4 is unlocked
Whether block chain wallet module verification user is in unlocking user list legal in local Fast Lookup Table, If so, triggering door lock main control module is unlocked, and this unlocking event is broadcasted so that all devices in network are by new area Block (unlocking event namely just, including unlocking user, room number, the information such as whether alarm) is added to respective block chain End.If user is illegal, this time unlocking event will be also recorded.The user for frequently attempting illegal unlock will be added into net In the blacklist of network.
It will be understood by those skilled in the art that all or part of function of various methods can pass through in above embodiment The mode of hardware is realized, can also be realized by way of computer program.When function all or part of in above embodiment When being realized by way of computer program, which be can be stored in a computer readable storage medium, and storage medium can To include: read-only memory, random access memory, disk, CD, hard disk etc., it is above-mentioned to realize which is executed by computer Function.For example, program is stored in the memory of equipment, when executing program in memory by processor, can be realized State all or part of function.In addition, when function all or part of in above embodiment is realized by way of computer program When, which also can store in storage mediums such as server, another computer, disk, CD, flash disk or mobile hard disks In, through downloading or copying and saving into the memory of local device, or version updating is carried out to the system of local device, when logical When crossing the program in processor execution memory, all or part of function in above embodiment can be realized.
Use above specific case is illustrated the present invention, is merely used to help understand the present invention, not to limit The system present invention.For those skilled in the art, according to the thought of the present invention, can also make several simple It deduces, deform or replaces.

Claims (10)

1. a kind of smart lock monitoring equipment based on block chain, which is characterized in that the equipment includes: authentication module and door Lock main control module;Wherein,
The authentication module, for being carried out according to local user authentication information table to the subscriber identity information that request is unlocked Identity authority certification, and door lock main control module is triggered when identity authority authenticates successfully;
The door lock main control module controls door lock unlatching when for being triggered by authentication module.
2. equipment according to claim 1, which is characterized in that the subscriber identity information be following information among at least One of them:
User identity demonstrate,proves number, door lock password, fingerprint, iris, face, Bluetooth of mobile phone module, mobile phone NFC module.
3. equipment according to claim 1 or 2, which is characterized in that the equipment further include: block chain wallet module and logical Believe module;Wherein
The block chain wallet module, for generating intelligent contract, it further includes following letter that the intelligence contract, which includes contract state, Cease at least one:
Room identification code, subscriber identity information, tenant's contract time limit, the rent amount of money, the rent means of payment, is transferred accounts at address name Account;The contract state include: created, activated, paid rent, rent to landlord's account, be turned off, have expired, It has renewed a contract;
The communication module, for the intelligent contract to be sent to other smart lock monitoring equipments in block chain network;Also The authorization identifying information for the intelligent contract sent for receiving other smart lock monitoring equipments.
4. equipment according to claim 3, which is characterized in that the block chain wallet module is also used to connect in communication module After receiving the authorization identifying information for the intelligent contract that all other smart lock monitoring equipment in block chain network is sent, It activates the intelligent contract and is to have activated by the status modifier of the intelligent contract.
5. equipment according to claim 3 or 4, which is characterized in that the authentication module, for being received in communication module After the authorization identifying information for the intelligent contract that all other smart lock monitoring equipment is sent on to block chain network, connect The person identification information that the user sends is received, and the individual subscriber identity identification information received is saved to this In the user authentication information table on ground.
6. equipment according to claim 1, which is characterized in that the communication module is also used to receive in block chain network The intelligent contract that sends of other smart lock monitoring equipments, and authorization identifying is carried out to received intelligent contract;It is also used to Intelligent contract after receiving the content and/or Status Change that other smart lock monitoring equipments in block chain network are sent, by institute Intelligent contract after stating content and/or Status Change is stored in local.
7. according to equipment described in any item of claim 3 to 6, which is characterized in that the communication module, be also used to When family is unlocked successfully, current unlocking event information and related warning information are synchronized to other smart locks in block chain network Monitoring equipment;Wherein, the unlocking event information include following information at least one:
Unlocking subscriber identity information, unlocking room identification code, uncaging time.
8. according to equipment described in any item of claim 3 to 6, which is characterized in that the communication module is also used in intelligence When energy treaty content and/or Status Change, the intelligent contract after change is sent to the prison of other smart locks in block chain network Tube apparatus.
9. a kind of smart lock monitoring and managing method based on block chain characterized by comprising
Identity authority certification is carried out to the subscriber identity information that request is unlocked according to local user authentication information table;
Door lock is controlled when identity authority authenticates successfully to open.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes program, described Program is for being executed by processor to realize such as above-mentioned method as claimed in claim 9.
CN201810794183.7A 2018-07-19 2018-07-19 Intelligent lock supervision equipment and method based on block chain and storage medium Active CN109272606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810794183.7A CN109272606B (en) 2018-07-19 2018-07-19 Intelligent lock supervision equipment and method based on block chain and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810794183.7A CN109272606B (en) 2018-07-19 2018-07-19 Intelligent lock supervision equipment and method based on block chain and storage medium

Publications (2)

Publication Number Publication Date
CN109272606A true CN109272606A (en) 2019-01-25
CN109272606B CN109272606B (en) 2021-03-30

Family

ID=65148144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810794183.7A Active CN109272606B (en) 2018-07-19 2018-07-19 Intelligent lock supervision equipment and method based on block chain and storage medium

Country Status (1)

Country Link
CN (1) CN109272606B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934674A (en) * 2019-02-26 2019-06-25 上海南潮信息科技有限公司 Storage tank raw material M2M method of commerce, device and system
CN110211263A (en) * 2019-05-23 2019-09-06 烽火通信科技股份有限公司 A kind of intelligent door method for unlocking and system based on block chain technology
CN110400401A (en) * 2019-07-03 2019-11-01 武汉虹识技术有限公司 Intelligent door lock management system and intelligent protection door
CN110782255A (en) * 2019-11-06 2020-02-11 杭州复杂美科技有限公司 Delayed transaction cancellation method, apparatus and storage medium
CN110998639A (en) * 2019-03-04 2020-04-10 阿里巴巴集团控股有限公司 Real estate management system using block chain network
CN111784879A (en) * 2020-07-09 2020-10-16 杭州复杂美科技有限公司 Access control method, device and storage medium
CN111861613A (en) * 2019-05-19 2020-10-30 北京骑胜科技有限公司 Electronic lock operation recording method and device
CN112233282A (en) * 2020-10-14 2021-01-15 重庆创敏科技集团有限责任公司 Block chain type artificial intelligent safety intelligent door lock system
CN112488798A (en) * 2020-12-14 2021-03-12 中钞信用卡产业发展有限公司杭州区块链技术研究院 House renting method, system and medium based on block chain
SE1951056A1 (en) * 2019-09-18 2021-03-19 Gunnebo Ab Method, locking system for controlling access to a resource and a locking device
CN112967423A (en) * 2021-02-01 2021-06-15 德施曼机电(中国)有限公司 Method, system, equipment and storage medium for unlocking coded lock
CN113160459A (en) * 2021-04-01 2021-07-23 深圳市欧瑞博科技股份有限公司 Intelligent false alarm processing method for door lock, door lock equipment and computer readable storage medium
CN114783089A (en) * 2022-04-27 2022-07-22 江苏无限感知科技有限公司 Intelligent lock management system
CN114973482A (en) * 2022-05-25 2022-08-30 深圳市启鹏天辰科技有限公司 Gate passing method and system adopting intelligent access control machine
CN115002664A (en) * 2022-06-22 2022-09-02 中国电子科技集团公司第五十二研究所 UWB-based data center cabinet management system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103400436A (en) * 2013-08-17 2013-11-20 慈溪市科创电子科技有限公司 Access control system and control method thereof
CN104167029A (en) * 2013-05-20 2014-11-26 陈罡 Intelligent lock and operation method thereof
CN106127890A (en) * 2016-06-17 2016-11-16 北京千丁互联科技有限公司 Control of bluetooth access equipment, Bluetooth terminal, control of bluetooth access management system and method
US20170295180A1 (en) * 2016-04-06 2017-10-12 Guardtime Ip Holdings Limited System and Method for Access Control Using Context-Based Proof
CN107958412A (en) * 2017-12-29 2018-04-24 云南飞网科技有限公司 One kind is rented a house platform and its network fingerprinting electronic door lock system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104167029A (en) * 2013-05-20 2014-11-26 陈罡 Intelligent lock and operation method thereof
CN103400436A (en) * 2013-08-17 2013-11-20 慈溪市科创电子科技有限公司 Access control system and control method thereof
US20170295180A1 (en) * 2016-04-06 2017-10-12 Guardtime Ip Holdings Limited System and Method for Access Control Using Context-Based Proof
CN106127890A (en) * 2016-06-17 2016-11-16 北京千丁互联科技有限公司 Control of bluetooth access equipment, Bluetooth terminal, control of bluetooth access management system and method
CN107958412A (en) * 2017-12-29 2018-04-24 云南飞网科技有限公司 One kind is rented a house platform and its network fingerprinting electronic door lock system

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934674A (en) * 2019-02-26 2019-06-25 上海南潮信息科技有限公司 Storage tank raw material M2M method of commerce, device and system
CN110998639A (en) * 2019-03-04 2020-04-10 阿里巴巴集团控股有限公司 Real estate management system using block chain network
CN110998639B (en) * 2019-03-04 2024-04-16 创新先进技术有限公司 Real estate management system using blockchain network
CN111861613B (en) * 2019-05-19 2024-04-16 北京骑胜科技有限公司 Electronic lock operation recording method and device
CN111861613A (en) * 2019-05-19 2020-10-30 北京骑胜科技有限公司 Electronic lock operation recording method and device
CN110211263A (en) * 2019-05-23 2019-09-06 烽火通信科技股份有限公司 A kind of intelligent door method for unlocking and system based on block chain technology
CN110211263B (en) * 2019-05-23 2021-05-14 烽火通信科技股份有限公司 Intelligent door unlocking method and system based on block chain technology
CN110400401A (en) * 2019-07-03 2019-11-01 武汉虹识技术有限公司 Intelligent door lock management system and intelligent protection door
SE1951056A1 (en) * 2019-09-18 2021-03-19 Gunnebo Ab Method, locking system for controlling access to a resource and a locking device
CN110782255A (en) * 2019-11-06 2020-02-11 杭州复杂美科技有限公司 Delayed transaction cancellation method, apparatus and storage medium
CN111784879A (en) * 2020-07-09 2020-10-16 杭州复杂美科技有限公司 Access control method, device and storage medium
CN112233282A (en) * 2020-10-14 2021-01-15 重庆创敏科技集团有限责任公司 Block chain type artificial intelligent safety intelligent door lock system
CN112488798A (en) * 2020-12-14 2021-03-12 中钞信用卡产业发展有限公司杭州区块链技术研究院 House renting method, system and medium based on block chain
CN112967423A (en) * 2021-02-01 2021-06-15 德施曼机电(中国)有限公司 Method, system, equipment and storage medium for unlocking coded lock
CN113160459A (en) * 2021-04-01 2021-07-23 深圳市欧瑞博科技股份有限公司 Intelligent false alarm processing method for door lock, door lock equipment and computer readable storage medium
CN114783089A (en) * 2022-04-27 2022-07-22 江苏无限感知科技有限公司 Intelligent lock management system
CN114973482A (en) * 2022-05-25 2022-08-30 深圳市启鹏天辰科技有限公司 Gate passing method and system adopting intelligent access control machine
CN115002664A (en) * 2022-06-22 2022-09-02 中国电子科技集团公司第五十二研究所 UWB-based data center cabinet management system

Also Published As

Publication number Publication date
CN109272606B (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN109272606A (en) A kind of smart lock monitoring equipment, method and storage medium based on block chain
US11172361B2 (en) System and method of notifying mobile devices to complete transactions
CN105915344B (en) A kind of electron key shared service system for house lease
CN111478917B (en) Background system for providing network service for access control device and user terminal
CA2744971C (en) Secure transaction authentication
CN102187701B (en) User authentication management
CN108737370A (en) A kind of cross-domain Verification System of Internet of Things based on block chain and method
CN1323538C (en) A dynamic identity certification method and system
EP3997606B1 (en) Cryptoasset custodial system with custom logic
CN108961475A (en) A kind of gate inhibition's dispositions method and gate inhibition's deployment services device
US20180359635A1 (en) Securitization of Temporal Digital Communications Via Authentication and Validation for Wireless User and Access Devices
JP2006040307A (en) Smart card
CN108881167A (en) A kind of intelligent contract of finite field block catenary system
CN105608577A (en) Method for performing non-repudiation, and payment managing server and user device therefor
CN103473844A (en) Intelligent control method and intelligent control system for public rental housing
CN107313660A (en) The method for unlocking of intelligent lock system and smart lock
CN101523427A (en) A system and method for verifying a user's identity in electronic transactions
CN105283898A (en) Methods and systems for providing a customer controlled account lock feature
CN106789875A (en) A kind of block chain service unit, block chain service system and its communication means
CN103793960A (en) Method for mobile key service
CN107111815A (en) System, method and device for updating stored value card
CN101159624B (en) Account use monitoring method
CN103825863B (en) A kind of accounts management method and device
CN109040068A (en) Strange land authentication method, authentication server and the block chain of broadband user
CN109285256A (en) Computer room based on block chain authentication enter permission give method

Legal Events

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