CN107978032A - A kind of method for unlocking based on smart lock - Google Patents

A kind of method for unlocking based on smart lock Download PDF

Info

Publication number
CN107978032A
CN107978032A CN201610915408.0A CN201610915408A CN107978032A CN 107978032 A CN107978032 A CN 107978032A CN 201610915408 A CN201610915408 A CN 201610915408A CN 107978032 A CN107978032 A CN 107978032A
Authority
CN
China
Prior art keywords
smart lock
user end
unlocking
token
instruction
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.)
Pending
Application number
CN201610915408.0A
Other languages
Chinese (zh)
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.)
Shenzhen Nokelock Technology Co Ltd
Original Assignee
Shenzhen Nokelock 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 Shenzhen Nokelock Technology Co Ltd filed Critical Shenzhen Nokelock Technology Co Ltd
Priority to CN201610915408.0A priority Critical patent/CN107978032A/en
Publication of CN107978032A publication Critical patent/CN107978032A/en
Pending legal-status Critical Current

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/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks

Abstract

The invention discloses a kind of method for unlocking based on smart lock, including:Step 1, a user terminal is established with the smart lock and connected;Step 2, upon establishment of a connection, which returns to an identification data to the user end;Step 3, encrypted unlocking instruction is passed through in the user end using identification data generation;Step 4, which verifies the unlocking instruction, is unlocked when verifying successfully.The user terminal of the present invention can be connected by bluetooth with smart lock, is had higher stability in closely connection, is avoided when being unlocked using telecommunication mode, it is possible to due to signal is not strong and the situation about can not unlock of generation, there is good user experience.

Description

A kind of method for unlocking based on smart lock
Technical field
The present invention relates to internet of things field, more particularly to a kind of method for unlocking based on smart lock.
Background technology
With on greatly developing in recent years for e-commerce, either foreign trade, or the line of domestic electric business giant The rapid growth for the logistics express delivery industry that retail business drives, all stimulates national each substantial amounts of container in harbour and container car fortune It is defeated, and whole day shuttle big-and-middle small city it is all kinds of it is miniature send Freight Transport with charge free and largely increase, these be all internet+ Quick creature today that epoch and mobile Internet rise gradually interlocks the formation of demand.
For example 2,000,000,000,000 casees have been broken through in China, the import & export quantity for having container every year, miniature shipping express delivery reaches 10,000,000,000,000 It is secondary, largely use counter vehicle in economically developed region.And these containers and container car are often non-in long-distance transport It is normal to change transit route or the unlatching by improper approach.Meanwhile domestic and international bicycle, as green, environmental protection, low-carbon, is good for The short distance trip walking-replacing tool of body, has obtained the popular welcome of government and all circles common people, it rides instead of walk in public lease, campus, scape Also increasingly popularized in the application that area is gone sight-seeing and community turns out for work.It is last 3 kilometers of optimal works of riding instead of walk of going on a journey after subway and automobile Tool.Particularly promoted recently as urbanization, urban and suburban roads is intensive, traffic congestion, and more and more people's short distance starts to select Two wheeler is gone on a journey, can when the vehicle that is commonly encountered it is stolen the problem of, cause property loss, extreme influence social production life to the common people It is living.
Existing technology is using standard machinery formula padlock, coded lock, disposable seal or the electronics of rough repacking Lock etc. cannot effectively prevent such thing and occur, it is easy to and opened by technology or directly night trailer is committed a crime, therefore how Supervision is effectively improved, prevents similar incidents, is a vital task in current communications and transportation and trip work.
In Management of Modern Physical Distribution, the transportation safety of article is highly important, but existing technical management falls behind, artificially not The situation of profit needs and the combination of new technology, finally turns out for work and rides instead of walk for above, and short distance two wheeler shares lease also increasingly There is an urgent need to change, using mobile Internet of Things new technical means, change existing traffic trip and Management and Operation Model and transition Welcome new opportunities.
Therefore, in order to solve above-mentioned problems, it is necessary to which the burglary-resisting system of a set of brand-new Internet of Things intercommunication, i.e., will solve quilt Alert notice is stolen, facilitates the common people to be authenticated without key again and uses, there is provided connect the hommization to-be-experienced product end-to-end service shared.
In summary, the existing technology has inconveniences and defects in actual use, so it is necessary to be improved.
And such as application number:201510417411.5, the smart lock described in 201510415524.1 will be significantly more efficient full Sufficient Internet of Things locks the shared trip industry development in the managerial demand of vehicular traffic, more adapting to future, and people are without key product Matter life requirement.
But the process of the unlocking of smart lock is there are the potential risk of security, and pass through telecommunication mode (GSM nets Network when) unlocked when, it is possible to since signal is not strong or suspension or continues to pay dues or abnormal and cause to there is a situation where to unlock, The stability in use of smart lock will be reduced, destroy user experience.
The content of the invention
Present invention solves the technical problem that it is, there is provided a kind of method for unlocking based on smart lock, to realize the fast of intelligence The unlocking of speed, safety.
Further, when user and smart lock are in closely, it is ensured that its realization stablized is unlocked.
To solve the above problems, the invention discloses a kind of method for unlocking based on smart lock, including:
Step 1, a user terminal is established with the smart lock and connected;
Step 2, upon establishment of a connection, which returns to an identification data to the user end;
Step 3, encrypted unlocking instruction is passed through in the user end using identification data generation;
Step 4, which verifies the unlocking instruction, is unlocked when verifying successfully.
In the step 1, the user end is connected by bluetooth with the smart lock.
In the step 2, which is a random number.
In the step 2, which produces the identification data by a tandom number generator, which leads to Cross hardware or software is realized.
The step 2 further comprises:
Step 21, the user end sends acquisition token directive to the smart lock;
Step 22, which parses the acquisition token directive, generates random number token;
Step 23, which sends the random number token to the user end.
The step 3 further comprises:
Step 31, the user end utilizes an instruction generator, which is encrypted and generates the unlocking instruction, And the unlocking instruction is sent to the smart lock.
The step 3 further comprises:It is encrypted based on AES128.
The step 4 further comprises:When verifying successfully, unlocking success message is returned to the user end, is failed in verification When, unlocking failed message is returned to the user end.
The smart lock is provided with ultralow Power Regulation consumption main control chip to perform the method.
The user end uses following instruction format with the smart lock:
CMD1 CMD2 LEN DATA1…DATAN TOKEN[N]
Wherein, CMD1 CMD2 are instruction, and LEN is the length of DATA, and for DATA to instruct corresponding parameter, TOKEN [N] is N Byte random number token, N are positive integer.
The user terminal of the present invention can by bluetooth (but not only limit this connection mode, can be it is other such as zigbee, rfid, The Internet of Things such as nfc, LaRo, NB-IOT net mode) it is connected with smart lock, there is higher reliability when closely connecting, keep away When having exempted to unlock using telecommunication mode, it is possible to due to the situation about can not unlock that signal is not strong and occurs, have good User experience and using ensure.
Brief description of the drawings
Fig. 1 show a kind of flow chart of method for unlocking based on smart lock of the present invention.
Embodiment
With reference to embodiments, what detailed description was of the invention realizes process.
The smart lock of the present invention has the mechanical structure portion of lockset, also realizes that the signal processing unlocked etc. is soft by chip Part flow elements.The chip is, for example, TI CC2541 SOC chips, including but not only limit, other can realize it is of the present invention The chip of unlocking flow is also in the range of disclosure of the invention.Low-power consumption, modularization can be realized using the chip.The smart lock needs Matched with a user terminal, user terminal may be, for example, the mechanical, electrical brain of proficiency, PDA.One application software is installed on the user end APP.It can be realized by application software APP and be interacted with smart lock.
It is as shown in Figure 1 a kind of flow chart of method for unlocking based on smart lock of the invention.
Step 1, user starts APP, establishes the connection at the user end and the smart lock.
Wherein, the user end can be connected by bluetooth with the smart lock.
Step 2, upon establishment of a connection, which returns to an identification data to the user end.
The identification data can be a random number, which can be produced by a tandom number generator, random number production Raw device is realized by hardware or software.
In the step 2, specifically, further comprise:
Step 21, upon establishment of a connection, the user end sends acquisition token directive to the smart lock;
Step 22, which parses the acquisition token directive, generates random number token;
That is, the tandom number generator set in the chip produces a random number, and generate random number token;
Step 23, which sends the random number token to the user end.
Step 3, encrypted unlocking instruction is passed through in the user end using identification data generation;
In the step 3, specifically, further comprise:
When user sends unlocking instruction, the user end utilizes an instruction generator, which is encrypted The unlocking instruction is generated, and send the unlocking instruction to the smart lock, instruction generator to be encrypted based on AES128.
Step 4, which verifies the unlocking instruction, is unlocked when verifying successfully.
The smart lock verifies the unlocking instruction according to the random number, that is, carries out the verification of random number token, When verifying successfully, unlocking success message is returned to the user end, meanwhile, drive the lock structure of smart lock to realize and unlock, During verification failure, unlocking failed message is returned to the user end.
Then being used cooperatively by user terminal and smart lock so that user need not carry the key of any entity, but logical Cross user terminal and be directly realized by unlocking with interacting for smart lock.Meanwhile the identity of user can be realized in the APP of user terminal in advance Verification, and only connection is established with being pre-established with the smart lock of authentication relationship.
Due to being randomly generated when random number is connected for each user terminal with smart lock, equivalent to one interim key, and it is every Bar instructs, and particularly can all include random number token in unlocking instruction, it is ensured that and every instruction is only just effective when when secondary connection, To ensure the security to communicate every time.
The user end uses following instruction format with the smart lock:
CMD1 CMD2 LEN DATA1…DATAN TOKEN[N]
Wherein, CMD1 CMD2 are instruction, and LEN is the length of DATA, and for DATA to instruct corresponding parameter, TOKEN [N] is N Byte random number token, N can be positive integer.In one embodiment, N may be selected 4, can ensure the premise of lower data transmission quantity Under, increase the complexity of random number, improve security.
In fact, communication interaction each between smart lock and user terminal, can be encrypted to increase security, such as It is to be encrypted based on AES128, other cryptographic means are also in the range of disclosure of the invention.
Further, since the user terminal of the present invention can be connected by bluetooth with smart lock, so have when closely connecting Higher stability, is avoided when being unlocked using telecommunication mode, it is possible to due to signal is not strong and occur can not The situation of unlocking, has good user experience.

Claims (10)

  1. A kind of 1. method for unlocking based on smart lock, it is characterised in that including:
    Step 1, a user terminal is established with the smart lock and connected;
    Step 2, upon establishment of a connection, which returns to an identification data to the user end;
    Step 3, encrypted unlocking instruction is passed through in the user end using identification data generation;
    Step 4, which verifies the unlocking instruction, is unlocked when verifying successfully.
  2. 2. the method as described in claim 1, it is characterised in that in the step 1, the user end passes through bluetooth and the smart lock Connection.
  3. 3. the method as described in claim 1, it is characterised in that in the step 2, which is a random number.
  4. 4. the method as described in claim 1, it is characterised in that in the step 2, which passes through a tandom number generator The identification data is produced, which is realized by hardware or software.
  5. 5. the method as described in claim 1, it is characterised in that the step 2 further comprises:
    Step 21, the user end sends acquisition token directive to the smart lock;
    Step 22, which parses the acquisition token directive, generates random number token;
    Step 23, which sends the random number token to the user end.
  6. 6. method as claimed in claim 5, it is characterised in that the step 3 further comprises:
    Step 31, the user end utilizes an instruction generator, which is encrypted and generates the unlocking instruction, concurrently The unlocking instruction is given to the smart lock.
  7. 7. the method as described in claim 1, it is characterised in that the step 3 further comprises:It is encrypted based on AES128.
  8. 8. the method as described in claim 1 or 5 or 6 or 7, it is characterised in that the step 4 further comprises:Verifying successfully When, unlocking success message is returned to the user end, when verifying failure, returns to unlocking failed message to the user end.
  9. 9. the method as described in claim 1, it is characterised in that the smart lock is provided with TI CC2541SOC chips to perform State method.
  10. 10. the method as described in claim 1, it is characterised in that the user end uses following instruction format with the smart lock:
    CMD1CMD2LEN DATA1…DATAN TOKEN[N]
    Wherein, CMD1CMD2 is instruction, and LEN is the length of DATA, and for DATA to instruct corresponding parameter, TOKEN [N] is N byte Random number token, N are positive integer.
CN201610915408.0A 2016-10-20 2016-10-20 A kind of method for unlocking based on smart lock Pending CN107978032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610915408.0A CN107978032A (en) 2016-10-20 2016-10-20 A kind of method for unlocking based on smart lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610915408.0A CN107978032A (en) 2016-10-20 2016-10-20 A kind of method for unlocking based on smart lock

Publications (1)

Publication Number Publication Date
CN107978032A true CN107978032A (en) 2018-05-01

Family

ID=62004294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610915408.0A Pending CN107978032A (en) 2016-10-20 2016-10-20 A kind of method for unlocking based on smart lock

Country Status (1)

Country Link
CN (1) CN107978032A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255864A (en) * 2018-08-02 2019-01-22 深圳市朗仁科技有限公司 Shared bicycle bluetooth method for unlocking and device
CN110264596A (en) * 2019-06-10 2019-09-20 宁波埃迪五金工贸有限公司 A kind of lock unit
CN111260829A (en) * 2020-01-17 2020-06-09 多点(深圳)数字科技有限公司 Shopping cart intelligent lock data transmission encryption method
CN111815810A (en) * 2020-06-22 2020-10-23 北京智辉空间科技有限责任公司 Safe unlocking method and device for electronic lock

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021112A (en) * 2007-03-20 2007-08-22 姜君凯 Trick lock mechanism
CN102682506A (en) * 2012-05-25 2012-09-19 北京华大信安科技有限公司 Intelligent Bluetooth door access control method and device based on symmetric cryptographic technique
CN104821031A (en) * 2015-05-27 2015-08-05 重庆大学 Dynamic authentication method for intelligent lock control system of Bluetooth mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021112A (en) * 2007-03-20 2007-08-22 姜君凯 Trick lock mechanism
CN102682506A (en) * 2012-05-25 2012-09-19 北京华大信安科技有限公司 Intelligent Bluetooth door access control method and device based on symmetric cryptographic technique
CN104821031A (en) * 2015-05-27 2015-08-05 重庆大学 Dynamic authentication method for intelligent lock control system of Bluetooth mobile phone

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109255864A (en) * 2018-08-02 2019-01-22 深圳市朗仁科技有限公司 Shared bicycle bluetooth method for unlocking and device
CN110264596A (en) * 2019-06-10 2019-09-20 宁波埃迪五金工贸有限公司 A kind of lock unit
CN111260829A (en) * 2020-01-17 2020-06-09 多点(深圳)数字科技有限公司 Shopping cart intelligent lock data transmission encryption method
CN111815810A (en) * 2020-06-22 2020-10-23 北京智辉空间科技有限责任公司 Safe unlocking method and device for electronic lock

Similar Documents

Publication Publication Date Title
CN107978032A (en) A kind of method for unlocking based on smart lock
CN104118392B (en) A kind of engine anti-theft authentication method of engine theftproof system and device
CN100543780C (en) GPS automobile safety-protection system and car-mounted terminal equipment thereof
CN100579878C (en) Container freight safety system
CN107154115A (en) A kind of electric automobile rent method, apparatus and system
US11716194B2 (en) Vehicle communication for authorized entry
WO2020051730A1 (en) Methods and devices for shared vehicle management
CN106976501A (en) Bicycle-shared on-board control device and management method thereof
CN112888607B (en) Method and device for identifying transported passengers and goods
CN110598811A (en) Off-line anti-counterfeiting identification method for vehicle filter element
CN105099702A (en) Safety certificate method and system for leasing of urban public bikes
CN108696353A (en) A kind of distribution method of quantum key and system, service station
CN106161441A (en) The security diagnostics communication means of a kind of LAN in car and system
CN108830953B (en) Intelligent parking charging management system
CN105346638A (en) Intelligent running system of electric bicycle
CN207934654U (en) A kind of Novel Internet intelligent door lock
CN105160715A (en) Variable-permission parking lot management system based on radio frequency identification technology
CN106454825A (en) Vehicle auxiliary authentication method in Internet of Vehicles environment
CN106792550B (en) Shared vehicle use system based on position and use method
CN106494253B (en) A kind of system and method for battery package location identification and status information monitoring
CN105894633A (en) Access control system and unlocking method thereof
CN107230269A (en) Device and method for goods intelligent transport
CN105812133A (en) Message authentication and group key negotiation method based on vehicle-mounted short distance communication network
CN107424279A (en) A kind of intelligent bicycle lock
CN107093240A (en) Electric locking, lock control method and device

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180501