CN109243017A - A kind of bluetooth method for unlocking, device and computer readable storage medium - Google Patents

A kind of bluetooth method for unlocking, device and computer readable storage medium Download PDF

Info

Publication number
CN109243017A
CN109243017A CN201810960736.1A CN201810960736A CN109243017A CN 109243017 A CN109243017 A CN 109243017A CN 201810960736 A CN201810960736 A CN 201810960736A CN 109243017 A CN109243017 A CN 109243017A
Authority
CN
China
Prior art keywords
unlocking
bluetooth
password
smart lock
module
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
CN201810960736.1A
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.)
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 CN201810960736.1A priority Critical patent/CN109243017A/en
Publication of CN109243017A publication Critical patent/CN109243017A/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/00182Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with unidirectional data transmission between data carrier and locks
    • 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
    • H04B5/72

Abstract

The embodiment of the invention provides a kind of bluetooth method for unlocking, remote server receives the first unlocking for smart lock that mobile terminal is sent and requests;Remote server is unlocked according to first requests dual lock permission to be verified;When the success of dual lock Authority Verification, Bluetooth MAC address and the current bluetooth password of smart lock are issued to the mobile terminal;After unlocking successfully, the unlocking record that the smart lock is sent is received;New bluetooth password is generated, new bluetooth password generated is sent to smart lock.Based on above scheme, due to carrying out password authentification using new bluetooth password in unlocking process each time, it is accordingly possible to ensure the nonuniqueness and high security of bluetooth password, thus, it is ensured that the absolute safety of data interaction during unlocking.Inventive embodiments additionally provide a kind of bluetooth unlocking apparatus and computer readable storage medium.

Description

A kind of bluetooth method for unlocking, device and computer readable storage medium
Technical field
The present invention relates to field of information security technology, and in particular to a kind of bluetooth method for unlocking, device and computer-readable Storage medium.
Background technique
With the continuous development of science and technology, "smart" products are gradually coated on each corner of society, such as tradition Lockset industry gradually can not meet pursuit of the people to new things, occur various intelligence in the market Lock.Compared to tradition machinery lock, smart lock have higher safety, it is easy to use and convenient for management.
In the field of present smart lock, occur much with cell phone application come the function unlocked.And it is most of such Technology is all based on the principle of bluetooth unlocking, such as: it rubs and visits bicycle etc., be by three end of Bluetooth of mobile phone, lock and remote server The process entirely unlocked is completed by necessary proprietary protocol.Therefore the integrality of entire agreement and safety decide bluetooth It unlocks and whether is easy to be cracked.
For existing technology, fixed standard, each producer do not have certainly the application protocol unlocked for bluetooth Oneself agreement and method.What most of method considered is relatively mostly convenient with fast, is then considered as safety fewer.By It works in bluetooth itself in 2.4GHz public frequency, there is no encrypting, data itself are easy to be trapped channel.If data The key for not encrypting or encrypting is leaked, and data can be cracked completely, so as to cause lock by the mobile phone of with no authorized or Person's other equipment are opened, and lose due protective effect of lock itself in this way.
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 a kind of bluetooth unlocking sides Method and computer readable storage medium.
According in a first aspect, providing a kind of bluetooth method for unlocking in a kind of embodiment, comprising:
Remote server receives the first unlocking for smart lock that mobile terminal is sent and requests;
The remote server unlocks request to the mobile terminal for sending the first unlocking request according to described first Unlocking authority is verified;
When the unlocking authority to the mobile terminal is proved to be successful, to the mobile terminal issue Bluetooth MAC address and The current bluetooth password of the smart lock;
After unlocking successfully, the unlocking record that the smart lock is sent is received;
New bluetooth password is generated, new bluetooth password generated is sent to smart lock and the intelligence described in local update The current Bluetooth password that can be locked.
Preferably, the remote server is according to request the opening to the mobile terminal for sending the request of unlocking of unlocking Lock permission is verified, comprising:
The remote server judges whether the user is described according to the username and password in the request of unlocking The legitimate user of smart lock, if it is, judging whether the user name matches with the password, if it does, then to described The unlocking authority of mobile terminal is proved to be successful.
Preferably, the method also includes:
Remote server receives the state reporting information that smart lock is sent, and the state reporting information is after smart lock powers on It is reported to remote server;
Remote server generates bluetooth password, and issues generated bluetooth password to smart lock.
According to second aspect, a kind of bluetooth method for unlocking is provided in a kind of embodiment, which comprises
Smart lock receives the second unlocking request that mobile terminal is sent, and includes bluetooth password in the second unlocking request;
The smart lock verifies the bluetooth password, when the authentication succeeds, executes unlocking action, and take to long-range Business device sends record of unlocking;
Receive the new bluetooth password that remote server is sent;
According to the local currently stored bluetooth password of the new bluetooth password update received.
Preferably, the method also includes:
Smart lock sends state reporting information when powering on, to remote server;
It receives the bluetooth password that the remote server is sent and the bluetooth password is stored in local.
According to the third aspect, a kind of bluetooth method for unlocking is provided in a kind of embodiment, which comprises
Mobile terminal sends to unlock for the first of smart lock to remote server and request;
When remote server is unlocked according to described first requests to be proved to be successful the unlocking authority of the mobile terminal, connect Receive Bluetooth MAC address and bluetooth password that the remote server is sent;
The mobile terminal connects the bluetooth of the smart lock according to the Bluetooth MAC address, and in successful connection, to The smart lock sends the second unlocking request, includes bluetooth password in the second unlocking request;
When the smart lock is to bluetooth password authentification success, the unlocking success notification that the smart lock is sent is received Message, the smart lock is opened at this time.
According to fourth aspect, a kind of bluetooth unlocking apparatus is provided in a kind of embodiment, described device is applied to long-range clothes Business device, comprising: the first receiving module, unlocking authority authentication module, the first sending module, secret generation module and first update mould Block;Wherein,
First receiving module is requested for receiving unlocking for the first of smart lock for mobile terminal transmission;
The unlocking authority authentication module, for unlocking what request the first unlocking described to transmission was requested according to described first The unlocking authority of mobile terminal is verified;
First sending module, for testing in the unlocking authority authentication module the unlocking authority of the mobile terminal When demonstrate,proving successfully, Bluetooth MAC address and the current bluetooth password of the smart lock are issued to the mobile terminal;
First receiving module, is also used to after smart lock is unlocked successfully, receives the unlocking that the smart lock is sent Record;
The secret generation module, for generating new bluetooth password;
First sending module, for bluetooth password new caused by the secret generation module to be sent to intelligence Lock;
First update module, after generating new bluetooth password in secret generation module, in local update institute State the current Bluetooth password of smart lock.
Preferably, the unlocking authority authentication module, comprising:
First judging unit, for judging whether the user is institute according to the username and password in the request of unlocking State the legitimate user of smart lock;
Second judgment unit is when being, to judge the user name and the password for the judging result in judging unit Whether match;
Confirmation unit, when matching for the confirmation user name in the second judgment unit with the password, really The unlocking authority for recognizing the mobile terminal is proved to be successful.
Preferably, the method also includes:
First receiving module is also used to receive the state reporting information of smart lock transmission, the state reporting information It is to be reported after smart lock powers on to remote server;
The secret generation module is also used to generate bluetooth password, and issues bluetooth password generated to smart lock.
According to the 5th aspect, a kind of bluetooth unlocking apparatus is provided in a kind of embodiment, described device is applied to smart lock, It include: the second receiving module, password authentication module, unlocking module, the second sending module and the second update module;Wherein,
Second receiving module, for receiving the second unlocking request of mobile terminal transmission, described second, which unlocks, is requested In include bluetooth password;
The password authentication module when the authentication succeeds, triggers unlocking mold for verifying to the bluetooth password Block;
The unlocking module when for being triggered by password authentication module, executes unlocking action;
Second sending module, for sending record of unlocking to remote server when unlocking successfully;
Second receiving module is also used to receive the new bluetooth password of remote server transmission;
Second update module, for locally currently stored bluetooth to be close according to the new bluetooth password update that receives Code.
Preferably, second sending module is also used to when smart lock powers on, and sends state reporting to remote server Information;
Second receiving module is also used to receive the bluetooth password that the remote server the is sent and bluetooth is close Code is stored in local.
According to the 6th aspect, provide a kind of bluetooth unlocking apparatus in a kind of embodiment, described device be applied to it is mobile eventually End, comprising: third sending module, third receiving module and bluetooth connection module;Wherein,
The third sending module is requested for sending to unlock for the first of smart lock to remote server;
The third receiving module, the Bluetooth MAC address and bluetooth password sent for receiving the remote server;
The bluetooth connection module, for connecting the bluetooth of the smart lock according to the Bluetooth MAC address;
The third sending module is also used in bluetooth connection success, sends the second unlocking request to the smart lock, It include bluetooth password in the second unlocking request;
The third receiving module is also used to when the smart lock is to bluetooth password authentification success, described in reception The unlocking success notification message that smart lock is sent, the smart lock is opened at this time.
According to the 7th 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, described program realized for being executed by processor such as above-mentioned first into the third aspect either side institute The method stated.
Compared with prior art, the embodiment of the present invention at least has following advantages:
The bluetooth method for unlocking provided according to embodiments of the present invention, comprising: remote server receives what mobile terminal was sent It unlocks and requests for the first of smart lock;The remote server is unlocked according to described first requests described to transmission first to unlock The unlocking authority of the mobile terminal of request is verified;When the unlocking authority to the mobile terminal is proved to be successful, to described Mobile terminal issues Bluetooth MAC address and the current bluetooth password of the smart lock;After unlocking successfully, the intelligence is received The unlocking record that lock is sent;New bluetooth password is generated, new bluetooth password generated is sent to smart lock and in local Update the current Bluetooth password of the smart lock.Based on technical solution provided by the embodiment of the present invention, due to being opened each time It locks in process and carries out password authentification using new bluetooth password, thus it is ensured that the nonuniqueness of bluetooth password, even if one Bluetooth password is cracked, and can not also predict Next Password, to substantially increase the safety of bluetooth password.As it can be seen that being based on This mode, it can be ensured that the absolute safety of data interaction, that is to say, that other people can not singly intercept from Bluetooth data channel close Code is locked to open.
Detailed description of the invention
Fig. 1 is the flow chart of bluetooth method for unlocking of the present invention in one embodiment;
Fig. 2 is the flow chart of bluetooth method for unlocking of the present invention in the second embodiment;
Fig. 3 is flow chart of the bluetooth method for unlocking of the present invention in the third embodiment;
Fig. 4 is the structural block diagram of bluetooth unlocking apparatus of the present invention in one embodiment;
Fig. 5 is the structural frames of unlocking authority authentication module in one embodiment in bluetooth unlocking apparatus of the present invention Figure;
Fig. 6 is the structural block diagram of bluetooth unlocking apparatus of the present invention in the second embodiment;
Fig. 7 is structural block diagram of the bluetooth unlocking apparatus of the present invention in the third embodiment;
Fig. 8 is a kind of exemplary physical interaction figure of bluetooth method for unlocking of the present invention.
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 like a dream, 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
The embodiment of the present invention one provides a kind of bluetooth method for unlocking, referring to Fig.1, which comprises
Step 101, remote server receive the first unlocking for smart lock that mobile terminal is sent and request;
In practical realization, the smart lock can be door lock, berth lock, optical cross box lock, logistics lock etc..
Step 102, the remote server are unlocked according to described first requests the shifting of the first unlocking request described to transmission The unlocking authority of dynamic terminal is verified;
Specifically, the remote server is according to request the opening to the mobile terminal for sending the request of unlocking of unlocking Lock permission is verified, comprising:
The remote server judges whether the user is described according to the username and password in the request of unlocking The legitimate user of smart lock, if it is, judging whether the user name matches with the password, if it does, then to described The unlocking authority of mobile terminal is proved to be successful.
Step 103, when the unlocking authority to the mobile terminal is proved to be successful, issue bluetooth matchmaker to the mobile terminal Body access control (address MAC, Media Access Control) address and the current bluetooth password of the smart lock;
The Bluetooth MAC address is the Bluetooth MAC address of the smart lock, and mobile terminal can be according to the bluetooth MAC Address and the bluetooth of the smart lock are attached.
Conversely, then returning to one when the unlocking authority authentication failed to the mobile terminal to the mobile terminal and opening Lock the notification message of Authority Verification failure.
Step 104, after unlocking successfully, receive the unlocking record that the smart lock is sent;
Step 105 generates new bluetooth password, by new bluetooth password generated be sent to smart lock and it is local more The current Bluetooth password of the new smart lock.
After receiving the unlocking record of smart lock transmission, confirmation current Bluetooth password is had been used, in failure shape State, remote server generate new bluetooth password, are handed down to the smart lock.
Meanwhile in local update bluetooth password, current Bluetooth password of the updated bluetooth password as the smart lock, Use when for unlocking next time.
In actual implementation, new bluetooth password can be generated using various Generating Random Numbers, here with no restrictions. In addition, bluetooth password can be the combination of multiple numbers and/or letter, the digit of bluetooth password can carry out according to actual needs Setting, here also with no restrictions.
In a kind of specific application example, bluetooth password can be set to the random number of 6 bit digitals, using Java line Property congruence formula generates these random numbers.
Institute in a kind of optional embodiment of the invention, between the remote server and smart lock and mobile terminal There is interaction data to be all made of Advanced Encryption Standard (AES) encryption.
In a kind of optional embodiment of the invention, the method also includes:
Remote server receives the state reporting information that smart lock is sent, and the state reporting information is after smart lock powers on It is reported to remote server;
Remote server generates bluetooth password, and issues generated bluetooth password to smart lock.
In above scheme, after smart lock electrifying startup, a state reporting can be sent to remote server at the first time Information reports the state of itself;After remote server receives this state reporting information, bluetooth password is generated, and generation Bluetooth password be handed down to the smart lock.Meanwhile bluetooth password generated can be also stored in local by remote server, be made For the current Bluetooth password of the smart lock.
To sum up, bluetooth method for unlocking provided by the embodiment of the present invention one, comprising: remote server receives mobile terminal hair Unlocking for the first of smart lock for sending is requested;The remote server unlocks request to transmission described first according to described first The unlocking authority of the mobile terminal of unlocking request is verified;When the unlocking authority to the mobile terminal is proved to be successful, to The mobile terminal issues Bluetooth MAC address and the current bluetooth password of the smart lock;After unlocking successfully, described in reception The unlocking record that smart lock is sent;Generate new bluetooth password, by new bluetooth password generated be sent to smart lock and The current Bluetooth password of smart lock described in local update.Based on technical solution provided by the embodiment of the present invention one, due to every Password authentification is carried out using new bluetooth password in primary unlocking process, thus it is ensured that the nonuniqueness of bluetooth password, i.e., So that a bluetooth password is cracked, can not also predict Next Password, to substantially increase the safety of bluetooth password.It can See, be based on this mode, it can be ensured that the absolute safety of data interaction, that is to say, that other people can not be singly logical from blue-teeth data Road intercepts password to open lock.
Embodiment two
Second embodiment of the present invention provides a kind of bluetooth method for unlocking, referring to Fig. 2, which comprises
Step 201, smart lock receive the second unlocking request that mobile terminal is sent, and include blue in the second unlocking request Tooth password;
Step 202, the smart lock verify the bluetooth password, when the authentication succeeds, execute unlocking action, and Record of unlocking is sent to remote server;
Step 203 receives the new bluetooth password that remote server is sent;
After remote server receives the unlocking record of smart lock transmission, then generates new bluetooth password and be sent to intelligence It can lock.
Step 204, according to the local currently stored bluetooth password of the new bluetooth password update that receives.
After receiving new bluetooth password, local currently stored bluetooth password update is the new indigo plant by smart lock Tooth password;The new bluetooth password will use in unlocking process next time.
In a kind of optional embodiment of the invention, the method also includes:
Smart lock sends state reporting information when powering on, to remote server;
It receives the bluetooth password that the remote server is sent and the bluetooth password is stored in local.
Institute in a kind of optional embodiment of the invention, between the smart lock and remote server and mobile terminal There is interaction data to be all made of AES encryption.
Embodiment three
The embodiment of the present invention three provides a kind of bluetooth method for unlocking, referring to Fig. 3, which comprises
Step 301, mobile terminal send to unlock for the first of smart lock to remote server and request;
Step 302 unlocks according to described first when remote server and requests to verify the unlocking authority of the mobile terminal When success, Bluetooth MAC address and bluetooth password that the remote server is sent are received;
Step 303, the mobile terminal connect the bluetooth of the smart lock according to the Bluetooth MAC address, and are connecting When success, the second unlocking request is sent to the smart lock, includes bluetooth password in the second unlocking request;
Step 304, when the smart lock is to bluetooth password authentification success, receive the unlocking that the smart lock is sent Success notification message, the smart lock is opened at this time.
Institute in a kind of optional embodiment of the invention, between the mobile terminal and smart lock and remote server There is interaction data to be all made of AES encryption.
Example IV
The embodiment of the present invention four provides a kind of bluetooth unlocking apparatus, and described device is applied to remote server, referring to figure 4, described device includes: the first receiving module 41, unlocking authority authentication module 42, the first sending module 43, secret generation module 44 and first update module 45;Wherein,
First receiving module 41 is requested for receiving unlocking for the first of smart lock for mobile terminal transmission;
The unlocking authority authentication module 42 requests the first unlocking described to transmission to be requested for unlocking according to described first The unlocking authority of mobile terminal verified;
First sending module 43, for being weighed in the unlocking authority authentication module 42 to the unlocking of the mobile terminal Limit is when being proved to be successful, and issues Bluetooth MAC address and the current bluetooth password of the smart lock to the mobile terminal;
First receiving module 41, is also used to after smart lock is unlocked successfully, receives opening for the smart lock transmission Lock record;
The secret generation module 44, for generating new bluetooth password;
First sending module 43 is also used to for bluetooth password new caused by the secret generation module being sent to Smart lock;
First update module 45, after generating new bluetooth password in secret generation module 44, it is local more The current Bluetooth password of the new smart lock.
Specifically, referring to Fig. 5, the unlocking authority authentication module 42, comprising:
First judging unit 4201, for whether judging the user according to the username and password in the request of unlocking For the legitimate user of the smart lock;
Second judgment unit 4202, for the judging result in judging unit be when, judge the user name with it is described Whether password matches;
Confirmation unit 4203, for the confirmation user name and the password phase in the second judgment unit 4202 Timing confirms that the unlocking authority of the mobile terminal is proved to be successful.
In a kind of optional embodiment of the invention, first receiving module 41 is also used to receive smart lock transmission State reporting information, the state reporting information is to report after smart lock powers on to remote server;
The secret generation module 44 is also used to generate bluetooth password, and issues bluetooth password generated to smart lock.
Embodiment five
The embodiment of the present invention five provides a kind of bluetooth unlocking apparatus, and described device is applied to smart lock, referring to Fig. 6, institute Stating device includes: the second receiving module 61, password authentication module 62, unlocking module 63, the second sending module 64 and the second update Module 65;Wherein,
Second receiving module 61, for receiving the second unlocking request of mobile terminal transmission, described second, which unlocks, is asked It include bluetooth password in asking;
The password authentication module 62 when the authentication succeeds, triggers unlocking mold for verifying to the bluetooth password Block;
The unlocking module 63 when for being triggered by password authentication module 62, executes unlocking action;
Second sending module 64, for sending record of unlocking to remote server when unlocking successfully;
Second receiving module 61 is also used to receive the new bluetooth password of remote server transmission;
Second update module 65, for according to the local currently stored bluetooth of the new bluetooth password update that receives Password.
In a kind of optional embodiment of the invention, second sending module 64 is also used to when smart lock powers on, State reporting information is sent to remote server;
Second receiving module 61 is also used to receive the bluetooth password that the remote server is sent and by the bluetooth Password is stored in local.
Embodiment six
The embodiment of the present invention six provides a kind of bluetooth unlocking apparatus, and described device is applied to mobile terminal, referring to Fig. 7, Described device includes: third sending module 71, third receiving module 72 and bluetooth connection module 73;Wherein,
The third sending module 71 is requested for sending to unlock for the first of smart lock to remote server;
The third receiving module 72, the Bluetooth MAC address and bluetooth password sent for receiving the remote server;
The bluetooth connection module 73, for connecting the bluetooth of the smart lock according to the Bluetooth MAC address;
The third sending module 71 is also used in bluetooth connection success, is sent the second unlocking to the smart lock and is asked It asks, includes bluetooth password in the second unlocking request;
The third receiving module 72 is also used to receive institute when the smart lock is to bluetooth password authentification success The unlocking success notification message of smart lock transmission is stated, the smart lock is opened at this time.
Embodiment seven
The embodiment of the present invention seven 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.
Embodiment eight
The embodiment of the present invention eight 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 two.
Embodiment nine
The embodiment of the present invention nine 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 three.
Using example
A concrete application example is named, is described in detail to bluetooth method for unlocking of the present invention.
Interaction schematic diagram of the Fig. 8 between each physical entity in bluetooth method for unlocking provided by the present invention, reference Fig. 8, Bluetooth method for unlocking provided by the present invention, may comprise steps of:
Step 801, smart lock are when powering on, to remote server uploaded state information;
Step 802, remote server generate bluetooth password, and the bluetooth password of generation is handed down to smart lock;
Step 803, smart lock save the bluetooth password received;
Step 804, smart lock are sent to remote server saves successful notification message;
Step 805, cell phone application are to remote server application unlocking authority;
Step 806, remote server dual lock permission are verified;
Step 807, the success of remote server dual lock Authority Verification, and Bluetooth MAC address, bluetooth are issued to cell phone application Password;
Step 808, cell phone application carry out bluetooth connection according to the Bluetooth MAC address received, and after bluetooth connection success, Bluetooth password is sent to smart lock, request is unlocked;
Step 809, smart lock verify the bluetooth password that cell phone application is sent, and password correctly then executes unlocking action, It unlocks successfully;
Step 810, smart lock send successful notification message of unlocking to cell phone application;
Step 811, smart lock report unlocking to record to remote server;
New bluetooth password is randomly generated in step 812, remote server;
New bluetooth password is sent to smart lock by step 813, remote server;
The bluetooth password that step 814, smart lock are locally stored according to the new bluetooth password update received;
Step 815, smart lock send the successful notification message of password update to remote server.
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 bluetooth method for unlocking, which is characterized in that the described method includes:
Remote server receives the first unlocking for smart lock that mobile terminal is sent and requests;
The remote server is unlocked according to described first requests the unlocking of the mobile terminal of the first unlocking request described to transmission Permission is verified;
When the unlocking authority to the mobile terminal is proved to be successful, Bluetooth MAC address and described is issued to the mobile terminal The current bluetooth password of smart lock;
After unlocking successfully, the unlocking record that the smart lock is sent is received;
New bluetooth password is generated, new bluetooth password generated is sent to smart lock and the smart lock described in local update Current Bluetooth password.
2. the method according to claim 1, wherein the remote server is requested according to the unlocking to transmission The unlocking authority of the mobile terminal of the request of unlocking is verified, comprising:
The remote server judges whether the user is the intelligence according to the username and password in the request of unlocking The legitimate user of lock, if it is, judging whether the user name matches with the password, if it does, then to the movement The unlocking authority of terminal is proved to be successful.
3. the method according to claim 1, wherein the method also includes:
Remote server receives the state reporting information that smart lock is sent, and the state reporting information is after smart lock powers on to remote Journey server reports;
Remote server generates bluetooth password, and issues generated bluetooth password to smart lock.
4. a kind of bluetooth method for unlocking, which is characterized in that the described method includes:
Smart lock receives the second unlocking request that mobile terminal is sent, and includes bluetooth password in the second unlocking request;
The smart lock verifies the bluetooth password, when the authentication succeeds, executes unlocking action, and to remote server Send record of unlocking;
Receive the new bluetooth password that remote server is sent;
According to the local currently stored bluetooth password of the new bluetooth password update received.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Smart lock sends state reporting information when powering on, to remote server;
It receives the bluetooth password that the remote server is sent and the bluetooth password is stored in local.
6. a kind of bluetooth method for unlocking, which is characterized in that the described method includes:
Mobile terminal sends to unlock for the first of smart lock to remote server and request;
When remote server is unlocked according to described first requests to be proved to be successful the unlocking authority of the mobile terminal, institute is received State the Bluetooth MAC address and bluetooth password of remote server transmission;
The mobile terminal connects the bluetooth of the smart lock according to the Bluetooth MAC address, and in successful connection, to described Smart lock sends the second unlocking request, includes bluetooth password in the second unlocking request;
When the smart lock is to bluetooth password authentification success, receives the unlocking success notification that the smart lock is sent and disappear Breath, the smart lock is opened at this time.
7. a kind of bluetooth unlocking apparatus, which is characterized in that described device is applied to remote server, comprising: the first receiving module, Unlocking authority authentication module, the first sending module, secret generation module and the first update module;Wherein,
First receiving module is requested for receiving unlocking for the first of smart lock for mobile terminal transmission;
The unlocking authority authentication module, for the movement requested to the first unlocking request is sent of unlocking according to described first The unlocking authority of terminal is verified;
First sending module, for the unlocking authority authentication module to the verifying of the unlocking authority of the mobile terminal at When function, Bluetooth MAC address and the current bluetooth password of the smart lock are issued to the mobile terminal;
First receiving module, is also used to after smart lock is unlocked successfully, receives the unlocking record that the smart lock is sent;
The secret generation module, for generating new bluetooth password;
First sending module, for bluetooth password new caused by the secret generation module to be sent to smart lock;
First update module, after generating new bluetooth password in secret generation module, the intelligence described in local update The current Bluetooth password that can be locked.
8. a kind of bluetooth unlocking apparatus, which is characterized in that described device is applied to smart lock, comprising: the second receiving module, password Authentication module, unlocking module, the second sending module and the second update module;Wherein,
Second receiving module wraps in the second unlocking request for receiving the second unlocking request of mobile terminal transmission Include bluetooth password;
The password authentication module when the authentication succeeds, triggers unlocking module for verifying to the bluetooth password;
The unlocking module when for being triggered by password authentication module, executes unlocking action;
Second sending module, for sending record of unlocking to remote server when unlocking successfully;
Second receiving module is also used to receive the new bluetooth password of remote server transmission;
Second update module, for according to the local currently stored bluetooth password of the new bluetooth password update that receives.
9. a kind of bluetooth unlocking apparatus, which is characterized in that described device is applied to mobile terminal, comprising: third sending module, the Three receiving modules and bluetooth connection module;Wherein,
The third sending module is requested for sending to unlock for the first of smart lock to remote server;
The third receiving module, the Bluetooth MAC address and bluetooth password sent for receiving the remote server;
The bluetooth connection module, for connecting the bluetooth of the smart lock according to the Bluetooth MAC address;
The third sending module is also used in bluetooth connection success, sends the second unlocking request to the smart lock, described It include bluetooth password in second unlocking request;
The third receiving module is also used to receive the intelligence when the smart lock is to bluetooth password authentification success The unlocking success notification message sent is locked, the smart lock is opened at this time.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes program, described Program is used to be executed by processor to realize the method as described in any item of the claims 1 to 6.
CN201810960736.1A 2018-08-22 2018-08-22 A kind of bluetooth method for unlocking, device and computer readable storage medium Pending CN109243017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810960736.1A CN109243017A (en) 2018-08-22 2018-08-22 A kind of bluetooth method for unlocking, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810960736.1A CN109243017A (en) 2018-08-22 2018-08-22 A kind of bluetooth method for unlocking, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109243017A true CN109243017A (en) 2019-01-18

Family

ID=65068512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810960736.1A Pending CN109243017A (en) 2018-08-22 2018-08-22 A kind of bluetooth method for unlocking, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109243017A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110782564A (en) * 2019-11-06 2020-02-11 北京牛电信息技术有限责任公司 Unlocking method, device and system and storage medium
CN110881182A (en) * 2019-11-28 2020-03-13 广东科徕尼智能科技有限公司 Terminal and intelligent Bluetooth lock checking method, Bluetooth lock and storage medium
CN110956798A (en) * 2019-11-27 2020-04-03 吴明远 Access control method and device and user terminal
CN112350900A (en) * 2019-10-12 2021-02-09 广州市千博网络科技有限公司 Safety switch control method and module based on Bluetooth and WeChat applet
CN113256849A (en) * 2021-04-09 2021-08-13 武汉慧联无限科技有限公司 Processing method for parking space management, server and parking space lock
CN113947823A (en) * 2020-06-30 2022-01-18 北京牛电科技有限责任公司 Vehicle unlocking method, device, system, electronic equipment and storage medium
CN114125730A (en) * 2022-01-29 2022-03-01 理工亘舒(广东)科技有限公司 Remote control method and system for cold box switch lock
CN114694283A (en) * 2022-03-11 2022-07-01 深圳市凯迪仕智能科技有限公司 Method for unlocking intelligent lock and related device
CN115273287A (en) * 2022-08-03 2022-11-01 杭州恒生数字设备科技有限公司 Bluetooth lock unlocking method and system and Bluetooth lock

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030107468A1 (en) * 2001-12-07 2003-06-12 Linda Din Entry security device
CN102426715A (en) * 2011-09-30 2012-04-25 华为技术有限公司 Unlocking method for electronic door lock, electronic door lock and electronic door lock system
CN104504796A (en) * 2015-01-06 2015-04-08 赵旭东 Intelligent machine room access control opening method and system based on wireless network
CN105976466A (en) * 2016-05-03 2016-09-28 科世达(上海)管理有限公司 Car access control opening method
CN106652117A (en) * 2016-10-14 2017-05-10 张智 Method and system for enabling dynamic passwords to realize offline unlocking, mobile terminal and server
CN107195061A (en) * 2017-07-07 2017-09-22 东峡大通(北京)管理咨询有限公司 The control method and system of a kind of intelligent bicycle lock, intelligent bicycle lock

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030107468A1 (en) * 2001-12-07 2003-06-12 Linda Din Entry security device
CN102426715A (en) * 2011-09-30 2012-04-25 华为技术有限公司 Unlocking method for electronic door lock, electronic door lock and electronic door lock system
CN104504796A (en) * 2015-01-06 2015-04-08 赵旭东 Intelligent machine room access control opening method and system based on wireless network
CN105976466A (en) * 2016-05-03 2016-09-28 科世达(上海)管理有限公司 Car access control opening method
CN106652117A (en) * 2016-10-14 2017-05-10 张智 Method and system for enabling dynamic passwords to realize offline unlocking, mobile terminal and server
CN107195061A (en) * 2017-07-07 2017-09-22 东峡大通(北京)管理咨询有限公司 The control method and system of a kind of intelligent bicycle lock, intelligent bicycle lock

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350900A (en) * 2019-10-12 2021-02-09 广州市千博网络科技有限公司 Safety switch control method and module based on Bluetooth and WeChat applet
CN112350900B (en) * 2019-10-12 2022-02-15 广州市千博网络科技有限公司 Safety switch control method based on Bluetooth and WeChat applet
CN110782564A (en) * 2019-11-06 2020-02-11 北京牛电信息技术有限责任公司 Unlocking method, device and system and storage medium
CN110956798A (en) * 2019-11-27 2020-04-03 吴明远 Access control method and device and user terminal
CN110881182A (en) * 2019-11-28 2020-03-13 广东科徕尼智能科技有限公司 Terminal and intelligent Bluetooth lock checking method, Bluetooth lock and storage medium
CN110881182B (en) * 2019-11-28 2023-09-15 广东好太太智能家居有限公司 Terminal and intelligent Bluetooth lock verification method, bluetooth lock and storage medium
CN113947823A (en) * 2020-06-30 2022-01-18 北京牛电科技有限责任公司 Vehicle unlocking method, device, system, electronic equipment and storage medium
CN113256849A (en) * 2021-04-09 2021-08-13 武汉慧联无限科技有限公司 Processing method for parking space management, server and parking space lock
CN114125730A (en) * 2022-01-29 2022-03-01 理工亘舒(广东)科技有限公司 Remote control method and system for cold box switch lock
CN114694283A (en) * 2022-03-11 2022-07-01 深圳市凯迪仕智能科技有限公司 Method for unlocking intelligent lock and related device
CN114694283B (en) * 2022-03-11 2024-04-30 深圳市凯迪仕智能科技股份有限公司 Unlocking method of intelligent lock and related device
CN115273287A (en) * 2022-08-03 2022-11-01 杭州恒生数字设备科技有限公司 Bluetooth lock unlocking method and system and Bluetooth lock

Similar Documents

Publication Publication Date Title
CN109243017A (en) A kind of bluetooth method for unlocking, device and computer readable storage medium
CN110473318B (en) Unlocking method, equipment for realizing unlocking and computer readable medium
CN101321165B (en) Authentication for licensing in an embedded system
CN101669128B (en) Cascading authentication system
CN107430658B (en) Security software certification and verifying
CN106034123B (en) Authentication method, application system server and client
CN108173822A (en) Intelligent door lock management-control method, intelligent door lock and computer readable storage medium
CN108541324A (en) A kind of unlocking method of electronic lock device, client and its electronic lock device
US10263782B2 (en) Soft-token authentication system
WO2010130709A1 (en) Method for authenticating access to a secured chip by a test device
WO2006113206A1 (en) Providing fresh session keys
CN109255873A (en) Bluetooth method for unlocking, apparatus and system
CN110147666B (en) Lightweight NFC identity authentication method in scene of Internet of things and Internet of things communication platform
US11102006B2 (en) Blockchain intelligent security implementation
CN111988779B (en) Wireless sensor network node access authentication method based on trusted connection architecture
CN112598827B (en) Intelligent lock authentication method, security chip, intelligent lock and management system thereof
CN109949461A (en) Method for unlocking and device
CN110336807A (en) A kind of identity identifying method based on Web service, equipment and storage medium
CN105636037A (en) Authentication method and apparatus and electronic device
CN109767530A (en) Smart lock control method, apparatus and system based on block chain
CA3160728A1 (en) Method of realizing intelligent equipment system, method of controlling intelligent equipement, and system
CN109995783A (en) A kind of cut-in method of trustable network, equipment and storage medium
CN109389710A (en) Intelligent door lock system based on RSA Algorithm Yu BLE low-power consumption bluetooth
CN115348107A (en) Internet of things equipment secure login method and device, computer equipment and storage medium
US8176533B1 (en) Complementary client and user authentication scheme

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190118

RJ01 Rejection of invention patent application after publication