CN109816832B - Unlocking method and device - Google Patents

Unlocking method and device Download PDF

Info

Publication number
CN109816832B
CN109816832B CN201910103365.XA CN201910103365A CN109816832B CN 109816832 B CN109816832 B CN 109816832B CN 201910103365 A CN201910103365 A CN 201910103365A CN 109816832 B CN109816832 B CN 109816832B
Authority
CN
China
Prior art keywords
unlocking
electronic equipment
unlocking information
information
sim card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910103365.XA
Other languages
Chinese (zh)
Other versions
CN109816832A (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.)
Beijing Huada Zhibao Electronic System Co Ltd
Original Assignee
Beijing Huada Zhibao Electronic System 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 Beijing Huada Zhibao Electronic System Co Ltd filed Critical Beijing Huada Zhibao Electronic System Co Ltd
Priority to CN201910103365.XA priority Critical patent/CN109816832B/en
Publication of CN109816832A publication Critical patent/CN109816832A/en
Application granted granted Critical
Publication of CN109816832B publication Critical patent/CN109816832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an unlocking method and an unlocking device, which are used for establishing wireless connection with electronic equipment, performing connection authentication on the electronic equipment, taking the electronic equipment as target electronic equipment if the electronic equipment passes the connection authentication, keeping the wireless connection with the target electronic equipment, acquiring wireless signal intensity data between a door lock and the target electronic equipment, determining whether a user holding the target electronic equipment has door opening intention or not based on the wireless signal intensity data, acquiring unlocking data from the target electronic equipment if the door lock has the door opening intention, and executing unlocking operation based on the unlocking data. According to the invention, the target electronic equipment is wirelessly connected with the door lock, so that whether the door opening intention exists can be known without unlocking the unlocking software, the door lock can wirelessly receive the unlocking data sent by the target electronic equipment, the unlocking data does not need to be input at the intelligent door lock end, the unlocking is simple, the user experience is improved, and the problems of leakage and easy stealing caused by inputting the unlocking data at the door lock end can be prevented.

Description

Unlocking method and device
Technical Field
The invention relates to the field of intelligent door locks, in particular to an unlocking method and device.
Background
With the progress of science and technology, more and more users install intelligent door locks.
When using intelligent lock, the user can use password or fingerprint to unblock, and to this type of intelligent lock, the user inputs password or fingerprint on intelligent lock, but password or fingerprint easily are peened and then easily are stolen, and the security can not be guaranteed.
Disclosure of Invention
In view of this, the present invention provides an unlocking method and device to solve the problem that a password or a fingerprint is easily stolen when a user inputs the password or the fingerprint into an intelligent door lock.
In order to solve the technical problems, the invention adopts the following technical scheme:
an unlocking method is applied to a door lock and comprises the following steps:
establishing a wireless connection with an electronic device; the electronic equipment comprises a body of the electronic equipment and a SIM card built in the electronic equipment, or only comprises the body of the electronic equipment;
performing connection authentication on the electronic equipment, and if the electronic equipment passes the connection authentication, taking the electronic equipment as target electronic equipment and keeping wireless connection with the target electronic equipment;
acquiring wireless signal intensity data between the door lock and the target electronic equipment;
determining whether a user holding the target electronic device has an intention to open a door based on the wireless signal strength data;
and if so, acquiring unlocking data from the target electronic equipment, and executing unlocking operation based on the unlocking data.
Preferably, the determining whether the user holding the target electronic device has an intention to open a door based on the wireless signal strength data comprises:
determining distance change data between the door lock and the target electronic device based on the wireless signal strength data;
if the distance change data shows that the distance between the door lock and the target electronic equipment is in a trend of continuously decreasing, determining that a user holding the target electronic equipment has an intention of opening the door;
and if the distance change data shows that the distance between the door lock and the target electronic equipment does not tend to be reduced continuously, determining that the user holding the target electronic equipment does not have the door opening intention.
Preferably, if the electronic device only includes the body of the electronic device, acquiring unlocking data from the target electronic device, and executing an unlocking operation based on the unlocking data, including:
sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
receiving unlocking information fed back by the body of the target electronic equipment; the body of the electronic equipment performs encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment is wirelessly connected with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
Preferably, if the electronic device includes the body of the electronic device and a SIM card built in the electronic device, obtaining unlocking data from the target electronic device, and executing an unlocking operation based on the unlocking data, including:
sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
acquiring unlocking information fed back to the body of the electronic equipment by the SIM card; the body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment is wirelessly connected with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
Preferably, if the electronic device includes the body of the electronic device and a SIM card built in the electronic device, obtaining unlocking data from the target electronic device, and executing an unlocking operation based on the unlocking data, including:
sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
receiving unlocking information fed back by the SIM card; the body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment and the SIM card are respectively in wireless connection with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
Preferably, if the electronic device includes the body of the electronic device and a SIM card built in the electronic device, obtaining unlocking data from the target electronic device, and executing an unlocking operation based on the unlocking data, including:
sending an unlocking authentication instruction to the SIM card so that the SIM card sends unlocking prompt information to the body of the target electronic equipment in the form of STK active command, and a display interface of the body of the target electronic equipment displays the prompt information through an STK menu; the prompt message is used for prompting a user to input initial unlocking information;
receiving unlocking information fed back by the SIM card; the SIM card carries out encryption operation on the received initial unlocking information to obtain the unlocking information; the SIM card is in wireless connection with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
Preferably, the unlocking information includes biometric information and/or a password.
Preferably, the target electronic device comprises a mobile phone.
Preferably, the target electronic device is connected with the door lock through bluetooth.
An unlocking method is applied to electronic equipment, wherein the electronic equipment comprises a body of the electronic equipment and a SIM card built in the electronic equipment or only comprises the body of the electronic equipment; the unlocking method comprises the following steps:
establishing wireless connection with a door lock and performing connection authentication operation;
and if the connection authentication is passed, determining unlocking information and feeding back the unlocking information to the door lock.
Preferably, the determining and feeding back the unlocking information to the door lock comprises:
receiving an unlocking authentication instruction sent by the door lock;
displaying prompt information on a display interface of the electronic equipment; the prompt message is used for prompting a user to input initial unlocking information;
the method comprises the steps of obtaining initial unlocking information input by a user, encrypting the initial unlocking information to obtain unlocking information, and feeding back the unlocking information to the door lock.
Preferably, if the electronic device includes the body of the electronic device, displaying a prompt message on a display interface of the electronic device, including:
after the operating software or the plug-in the body of the electronic equipment receives the unlocking authentication instruction, displaying acquisition prompt information on a display interface of the body of the electronic equipment to remind a user of inputting biological characteristic information;
or displaying an input box on a display interface of the body of the electronic equipment so that the user inputs password information in the input box;
the initial unlocking information includes the biometric information and the password information.
Preferably, the electronic device includes only the body of the electronic device, obtains initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds back the unlocking information to the door lock, including:
the method comprises the steps that an electronic device body obtains initial unlocking information input by a user, and the initial unlocking information is encrypted to obtain unlocking information;
the body of the target electronic equipment feeds back the unlocking information to the door lock; the body of the target electronic equipment is in wireless connection with the door lock.
Preferably, the electronic device includes a body of the electronic device and a SIM card built in the electronic device, obtains initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds the unlocking information back to the door lock, including:
the body of the electronic equipment acquires the initial unlocking information;
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the body of the electronic equipment;
the body of the electronic equipment feeds the unlocking information back to the door lock; the body of the target electronic equipment is in wireless connection with the door lock.
Preferably, the electronic device includes a body of the electronic device and a SIM card built in the electronic device, obtains initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds the unlocking information back to the door lock, including:
the body of the electronic equipment acquires the initial unlocking information;
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the door lock; the body of the target electronic equipment and the SIM card are respectively in wireless connection with the door lock.
Preferably, the electronic device includes a body of the electronic device and a SIM card built in the electronic device, obtains initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds the unlocking information back to the door lock, including:
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the door lock; the SIM card is in wireless connection with the door lock.
Preferably, if the electronic device includes a body of the electronic device and a SIM card embedded in the electronic device, displaying a prompt message on a display interface of the electronic device, including:
the SIM card generates unlocking prompt information according to the unlocking authentication instruction;
the SIM card sends unlocking prompt information to the body of the target electronic equipment in the form of STK active command;
the display interface of the body of the target electronic equipment displays prompt information through an STK menu; the prompt message is used for prompting a user to input initial unlocking information.
An unlocking device applied to a door lock comprises:
the wireless connection module is used for establishing wireless connection with the electronic equipment; the electronic equipment comprises a body of the electronic equipment and a SIM card built in the electronic equipment, or only comprises the body of the electronic equipment;
the connection authentication module is used for performing connection authentication on the electronic equipment, and if the electronic equipment passes the connection authentication, the electronic equipment is used as target electronic equipment and keeps wireless connection with the target electronic equipment;
the data acquisition module is used for acquiring wireless signal intensity data between the door lock and the target electronic equipment;
an intention determining module for determining whether a user holding the target electronic device has an intention to open a door based on the wireless signal strength data;
and the unlocking module is used for acquiring unlocking data from the target electronic equipment and executing unlocking operation based on the unlocking data if the intention determining module determines that the user holding the target electronic equipment has the intention of opening the door.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides an unlocking method and device, wherein target electronic equipment is wirelessly connected with a door lock, the door lock can wirelessly receive unlocking data sent by the target electronic equipment, the unlocking data does not need to be input at an intelligent door lock end, and the problems of leakage and easy stealing caused by the input of the unlocking data at the door lock end can be prevented.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method applied to an unlocking method of a door lock according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for unlocking a door lock according to an embodiment of the present invention;
fig. 3 is a flowchart of a method of an unlocking method applied to a door lock according to another embodiment of the present invention;
fig. 4 is a flowchart of a method of an unlocking method applied to a door lock according to another embodiment of the present invention;
fig. 5 is a flowchart of a fifth method for unlocking a door lock according to an embodiment of the present invention;
fig. 6 is a flowchart of a sixth method for unlocking a door lock according to an embodiment of the present invention;
fig. 7 is a flowchart of an unlocking method applied to an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an unlocking device applied to a door lock according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an unlocking method, which is applied to a door lock and can comprise the following steps of:
and S11, establishing a wireless connection with the electronic equipment.
The electronic equipment comprises a body of the electronic equipment and a SIM card built in the electronic equipment, or only comprises the body of the electronic equipment.
Preferably, the electronic device can be a mobile phone, a tablet and the like which can be provided with a built-in SIM card. Namely, the embodiment of the invention only needs to use the conventional electronic equipment of the user, and does not need to additionally purchase equipment specially used for unlocking. The main body of the electronic device is a part other than the built-in SIM card, and the main body of the electronic device can perform functions such as data processing and data communication.
The wireless connection may include, but is not limited to, a bluetooth, near field communication, NFC, connection. When the electronic equipment approaches the door lock, the door lock can establish wireless connection with the electronic equipment.
And S12, performing connection authentication on the electronic equipment, and if the electronic equipment passes the connection authentication, taking the electronic equipment as target electronic equipment and keeping wireless connection with the target electronic equipment.
Specifically, after the electronic equipment is wirelessly connected with the door lock, the door lock performs connection authentication operation on the electronic equipment, and the connection authentication operation only needs to be performed by adopting conventional wireless connection authentication operation, for example, if the smart door lock sends an authentication request to a mobile phone end, the mobile phone end is required to perform authentication operation; cell-phone end and intelligent lock authentication success then both establish the bluetooth and continue to connect, otherwise the bluetooth connection interrupt, send the relevant instruction information of lock cell-phone software APP in the cell-phone before the interrupt, require APP to pop out the prompt dialog box: "bluetooth authentication fails and equipment needs to be replaced".
And if the body of the target electronic equipment is wirelessly connected with the door lock, a first wireless communication channel is established, and if the SIM card is wirelessly connected with the door lock, a second wireless communication channel is established.
In this embodiment, connect the authentication to electronic equipment, can guarantee that only the user of the permission of unblanking can unblank. For example, two door locks in close proximity, one of which is the target door lock (own door lock) and the other of which is the non-target door lock (neighboring home door lock). However, when the electronic device is connected, the authentication of the electronic device to the non-target door lock fails, that is, only the home door lock can be successfully authenticated, and it is ensured that the user can only open the home door lock.
And S13, acquiring the wireless signal strength data between the door lock and the target electronic equipment.
Specifically, for example, bluetooth wireless connection, the built-in bluetooth module that has in the lock, bluetooth module can use RSSI technique to measure the bluetooth signal strength between lock and the target electronic equipment.
The rssi (received Signal Strength indication) is a positioning technique that measures the distance between a Signal point and a receiving point according to the Strength of the received Signal and then performs positioning calculation according to corresponding data.
For example, when a user holds a mobile phone (bluetooth is opened) and approaches to the smart door lock, the bluetooth low energy BLE bluetooth module in the smart door lock is always in a broadcast state, and along with the approach of the smart phone, the bluetooth signal intensity between the mobile phone and the BLE bluetooth module continuously changes, and the BLE bluetooth module acquires the continuously changing bluetooth signal intensity.
S14, judging whether the user holding the target electronic equipment has door opening intention; if yes, go to step S15; if not, the process is ended.
Specifically, still taking bluetooth wireless connection as an example, based on the bluetooth signal intensity data, it is determined whether a user holding the target electronic device has an intention to open a door, and the target electronic device is connected to the door lock through bluetooth.
Specifically, the BLE Bluetooth module in the intelligent door lock measures and calculates the Bluetooth signal intensity according to the received Bluetooth signal intensity data and by combining a corresponding algorithm, determines the distance change between the BLE Bluetooth module and the Bluetooth module according to the change of the Bluetooth signal intensity, and determines whether the user is close to the door lock or far away from the door lock by combining the current door lock state, thereby determining whether the user has the door opening intention.
Optionally, on the basis of this embodiment, referring to fig. 2, step S12 may include:
and S21, determining distance change data between the door lock and the target electronic equipment based on the wireless signal strength data.
Specifically, taking the bluetooth wireless connection as an example, if the bluetooth signal becomes strong, it indicates that the distance between the door lock and the target electronic device becomes short; if the Bluetooth signal is weakened, the distance between the door lock and the target electronic equipment is increased.
And S22, if the distance change data shows that the distance between the door lock and the target electronic equipment is a trend of continuously decreasing, determining that the user holding the target electronic equipment has door opening intention.
And S23, if the distance change data shows that the distance between the door lock and the target electronic equipment does not trend to be reduced continuously, determining that the user holding the target electronic equipment does not have door opening intention.
If the distance between the target electronic equipment and the door lock is continuously shortened and the current door lock state is the locking state, the situation that the user approaches the door lock and the door is opened is shown. If the distance between the target electronic equipment and the door lock becomes longer or is close, it indicates that the user does not intend to open the door. Or if the current door lock state is the open state, subsequent operation is not needed.
It should be noted that, in order to avoid the user to trigger the unlocking inside the door, the bluetooth signal of the shield door lock inside the room can be mechanically designed.
In addition, the step of accurately judging whether the door opening intention exists or not according to the wireless signal intensity data needs to be combined with a corresponding algorithm in practical application.
And S15, acquiring unlocking data from the target electronic equipment, and executing unlocking operation based on the unlocking data.
It should be noted that steps S11 and S12 are performed as a connection operation, steps S13, S14 and S15 are performed as an intention determination operation, and the connection operation and the intention determination operation are not performed sequentially, may be performed sequentially, or may be performed simultaneously.
Through the embodiment of the invention, in the process that the user holds the electronic equipment to approach the door lock, the door lock can automatically realize wireless authentication connection with the target electronic equipment and give out prompt authentication information; and the door lock can receive the unlocking data sent by the target electronic equipment through the wireless channel, the unlocking data does not need to be input at the lock end of the intelligent door, the problems of leakage and easy stealing caused by inputting the unlocking data at the lock end can be prevented, and in addition, the safety of the unlocking data is further improved by processing the user unlocking data by the SIM card.
In addition, the strength of the signal can be converted into the distance measurement and calculation by collecting the wireless signal strength data between the door lock and the target electronic equipment, and then whether the user has the intention of opening the door or not can be presumed.
And thirdly, the inside of the door lock and the electronic equipment automatically carries out authorization and authentication, the continuous Bluetooth connection can be established only when the authentication is passed, the Bluetooth connection is automatically disconnected when the authentication is not passed, and a corresponding error prompt is popped up through mobile phone software.
Fourthly, through the embodiment of the invention, the mobile phone which is carried about can be used for realizing quick unlocking without carrying a card or a key separately.
Optionally, on the basis of any of the above embodiments, the step S14 may have four implementation manners, which are described separately, according to different contents included in the electronic device.
1. If the electronic device only includes the main body of the electronic device, referring to fig. 3, step S15 may include:
s31, sending an unlocking authentication instruction to the body of the target electronic equipment, so that prompt information is displayed on a display interface of the body of the target electronic equipment.
The prompt message is used for prompting a user to input initial unlocking information.
Specifically, if it is determined that the user has the unlocking intention, an unlocking authentication instruction is sent to the target electronic device, so that the user inputs unlocking information through the target electronic device.
After receiving the unlocking authentication instruction, displaying acquisition prompt information on a display interface of the body of the electronic equipment by using software or a plug-in running in a background in the body of the electronic equipment to remind a user of inputting unlocking information; the unlocking information comprises biological characteristic information and/or a password, for example, the biological characteristic information can be characteristics of fingerprints, voice, human faces and the like.
Or displaying an input box on a display interface of the body of the electronic equipment so that the user inputs password information in the input box;
the initial unlocking information includes the biometric information and the password information.
The embodiment of the invention can input the biological characteristic information such as fingerprint and the like, and can also input the password information such as PIN code. If the biological characteristic information is collected, the display interface displays collection prompt information, such as a dialog box, and prompts a user to input the biological characteristic information. If the password information is collected, an input box appears, and the user can input the password.
The fingerprint collection is taken as an example for explanation, the mobile phone APP at the mobile phone end receives the unlocking authentication instruction sent by the intelligent door lock end, a prompt box pops up at the mobile phone interface, and the user is required to input the fingerprint by using a fingerprint identification key on the mobile phone.
By taking a password as an example for explanation, the mobile phone APP at the mobile phone end receives an unlocking authentication instruction sent by the intelligent door lock end, and a prompt box pops up on a mobile phone interface to require a user to input an authentication password.
Besides displaying the acquisition prompt information or the input box on the display interface, a confirmation key and a cancel key are also displayed, if the user approaches the door lock but does not need to open the door, the cancel key needs to be popped out of the popped prompt box, the user clicks the cancel key to enable the door lock not to execute the door opening operation, and if the user does not click any more, the door lock is also regarded as not executing the door opening operation.
And clicking a confirmation key by the user, and if the acquired biological characteristic information is the biological characteristic information, jumping to a corresponding data acquisition interface, such as a fingerprint information acquisition interface and a face image acquisition interface by opening a camera. If the password information is acquired, the password information input by the user can be acquired after clicking a confirmation key.
And S32, receiving unlocking information fed back by the body of the target electronic equipment.
The body of the electronic equipment performs encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment is in wireless connection with the door lock.
Taking a fingerprint as an example, a user inputs a preset fingerprint into a fingerprint identification key of a mobile phone, encrypts a part (predetermined, for example, one fourth of the upper left) of the fingerprint by using a personal private key, and transmits the encrypted part to a door lock through a body of a target electronic device and a first wireless communication channel of the door lock.
In this embodiment, the body of the electronic device receives the unlocking authentication instruction, displays the prompt information, collects the initial unlocking information, encrypts the initial unlocking information to obtain the unlocking information, and feeds the unlocking information back to the door lock. That is, all operations in the present embodiment are performed by the body of the electronic device. And only the body of the electronic device needs to be connected to the door lock.
And S33, decrypting the unlocking information by using a preset key to obtain the decrypted unlocking information.
The preset key is an unlocking key which is stored in advance and corresponds to the unlocking information.
And S34, comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
Specifically, taking the fingerprint as an example, the smart door lock end receives the unlocking information that the encryption operation is performed. The unlocking information is decrypted by using the prestored public key corresponding to the individual private key, the public key is compared with the prestored fingerprint corresponding part, unlocking is executed if the public key is compared with the prestored fingerprint corresponding part, and the unlocking success is fed back to the mobile phone APP through the wireless communication channel. Otherwise, the unlocking is failed, if the unlocking is failed, the door lock needs to be fed back to the mobile phone APP through the wireless communication channel, and the user is prompted to perform authentication again.
2. If the electronic device includes the body of the electronic device and the SIM card embedded in the electronic device, referring to fig. 4, step S15 may include:
s41, sending an unlocking authentication instruction to the body of the target electronic equipment, so that prompt information is displayed on a display interface of the body of the target electronic equipment.
The prompt message is used for prompting a user to input initial unlocking information.
And S42, acquiring unlocking information fed back to the body of the electronic equipment by the SIM card.
The body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card performs encryption operation on the initial unlocking information by using an internal pre-stored personal private key to obtain the unlocking information; the body of the target electronic equipment is in wireless connection with the door lock.
And S43, decrypting the unlocking information by using a preset key to obtain the decrypted unlocking information.
The preset secret key is an unlocking secret key which is stored in advance and corresponds to the unlocking information, namely a public key corresponding to an individual private key in the SIM card.
And S44, comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
The embodiment is different from the embodiment in that the body of the electronic equipment receives an unlocking authentication instruction, displays prompt information and collects initial unlocking information, the SIM card encrypts the initial unlocking information to obtain unlocking information, and the body of the electronic equipment feeds the unlocking information back to the door lock. And only the body of the electronic equipment is required to be connected with the door lock, and the body of the electronic equipment is in communication with the door lock. No SIM card is required to be connected to the door lock. The SIM card communicates with the body of the electronic equipment through an ISO7816 contact channel.
The operation of steps S41-S44 is similar to that of steps S31-S34, and the explanation is only needed.
3. If the electronic device includes the main body of the electronic device and the SIM card embedded in the electronic device, referring to fig. 5, step S15 may include:
s51, sending an unlocking authentication instruction to the body of the target electronic equipment, so that prompt information is displayed on a display interface of the body of the target electronic equipment.
The prompt message is used for prompting a user to input initial unlocking information.
And S52, receiving the unlocking information fed back by the SIM card.
The body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card performs encryption operation on the initial unlocking information by using an internal pre-stored personal private key to obtain the unlocking information; the body of the target electronic equipment and the SIM card are respectively in wireless connection with the door lock.
And S53, decrypting the unlocking information by using a preset key to obtain the decrypted unlocking information.
The preset secret key is an unlocking secret key which is stored in advance and corresponds to the unlocking information, namely a public key corresponding to an individual private key in the SIM card.
And S54, comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
The embodiment is different from the embodiment in that the body of the electronic device receives an unlocking authentication instruction, displays prompt information and collects initial unlocking information, the SIM card encrypts the initial unlocking information by using an internal pre-stored personal private key to obtain unlocking information, and the unlocking information is fed back to the door lock. And the body of the electronic equipment and the SIM card are required to be respectively connected with the door lock, the body of the electronic equipment is communicated with the door lock through a first wireless communication channel, and the SIM card is communicated with the door lock through a second wireless communication channel. The SIM card communicates with the body of the electronic equipment through an ISO7816 contact channel.
The operation of steps S51-S54 is similar to that of steps S31-S34, and the explanation is only needed.
4. If the electronic device includes the main body of the electronic device and the SIM card embedded in the electronic device, referring to fig. 6, step S15 may include:
and S61, sending an unlocking authentication instruction to the SIM card so that the SIM card sends unlocking prompt information to the body of the target electronic equipment in the form of STK active command, and displaying the prompt information on the display interface of the body of the target electronic equipment through the STK menu.
The prompt message is used for prompting a user to input initial unlocking information.
Specifically, after receiving an unlocking instruction sent by the door lock, the SIM card analyzes the unlocking instruction, arranges the prompt information into an active command and sends the active command to the body through the ISO7816 contact channel, displays the active command to a user in an STK menu mode through the body display screen, inputs unlocking information through the STK menu, and feeds acquired data back to the SIM card through the ISO7816 contact channel in the active command mode.
And S62, receiving the unlocking information fed back by the SIM card.
The SIM card carries out encryption operation on the received initial unlocking information by utilizing a pre-stored person in the SIM card to obtain the unlocking information, and the SIM card is in wireless connection with the door lock.
And S63, decrypting the unlocking information by using a preset key to obtain the decrypted unlocking information.
The preset secret key is an unlocking secret key which is stored in advance and corresponds to the unlocking information, namely a public key corresponding to an individual private key in the SIM card.
And S64, comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
The embodiment is different from the embodiment in that the SIM card receives an unlocking authentication instruction, the body of the electronic device displays prompt information and collects initial unlocking information, the SIM card encrypts the initial unlocking information to obtain unlocking information, and the unlocking information is fed back to the door lock. And only the SIM card is required to be connected with the door lock, and the SIM card communicates with the door lock through the second wireless communication channel. The SIM card communicates with the body of the electronic equipment through an ISO7816 contact channel.
In the embodiment, the interaction process of the electronic equipment and the door lock under different use scenes is given, and then the electronic equipment and the door lock are interacted by using an adaptive interaction method when the internal configuration of the electronic equipment is different.
In addition, by receiving the decryption information on which the encryption operation is performed, the security of information transmission is improved. Optionally, on the basis of the above embodiment of the unlocking method applied to the door lock, another embodiment of the present invention provides an unlocking method applied to an electronic device, where the electronic device includes a body of the electronic device and a SIM card built in the electronic device, or includes only the body of the electronic device. Referring to fig. 7, the unlocking method includes:
s71, establishing wireless connection with the door lock and performing connection authentication operation;
and S72, if the connection authentication is passed, determining unlocking information and feeding back the unlocking information to the door lock.
Optionally, on the basis of this embodiment, step S72 may include:
1) receiving an unlocking authentication instruction sent by the door lock;
2) displaying prompt information on a display interface of the electronic equipment; the prompt message is used for prompting a user to input initial unlocking information;
3) the method comprises the steps of obtaining initial unlocking information input by a user, encrypting the initial unlocking information to obtain unlocking information, and feeding back the unlocking information to the door lock.
Optionally, on the basis of the previous embodiment, if the electronic device includes the body of the electronic device, displaying a prompt message on a display interface of the electronic device, where the prompt message includes:
after the operating software or the plug-in the body of the electronic equipment receives the unlocking authentication instruction, displaying acquisition prompt information on a display interface of the body of the electronic equipment to remind a user of inputting biological characteristic information;
or displaying an input box on a display interface of the body of the electronic equipment so that the user inputs password information in the input box;
the initial unlocking information includes the biometric information and the password information.
In this embodiment, the door lock obtains the unlocking information and unlocks through the interaction between the electronic device and the door lock.
It should be noted that, please refer to the corresponding descriptions in the above embodiments for each step in this embodiment, which is not described herein again.
On the basis of any one of the above embodiments of the unlocking method applied to the electronic device, the electronic device includes only the body of the electronic device, obtains initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds the unlocking information back to the door lock, and the method includes:
the method comprises the steps that an electronic device body obtains initial unlocking information input by a user, and the initial unlocking information is encrypted to obtain unlocking information;
the body of the target electronic equipment feeds back the unlocking information to the door lock; the body of the target electronic equipment is in wireless connection with the door lock.
Further, the electronic device includes the body of the electronic device and the SIM card built in the electronic device, acquires initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds the unlocking information back to the door lock, including:
the body of the electronic equipment acquires the initial unlocking information;
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the body of the electronic equipment;
the body of the electronic equipment feeds the unlocking information back to the door lock; the body of the target electronic equipment is in wireless connection with the door lock.
Further, the electronic device includes the body of the electronic device and the SIM card built in the electronic device, acquires initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds the unlocking information back to the door lock, including:
the body of the electronic equipment acquires the initial unlocking information;
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the door lock; the body of the target electronic equipment and the SIM card are respectively in wireless connection with the door lock.
In the embodiment, the interaction process of the electronic equipment and the door lock under different use scenes is given, and then the electronic equipment and the door lock are interacted by using an adaptive interaction method when the internal configuration of the electronic equipment is different.
It should be noted that, please refer to the corresponding descriptions in the above embodiments for each step in this embodiment, which is not described herein again.
Optionally, on the basis of the embodiment corresponding to fig. 7, the electronic device includes a body of the electronic device and a SIM card embedded in the electronic device, obtains initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds the unlocking information back to the door lock, including:
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the door lock; the SIM card is in wireless connection with the door lock.
Further, if the electronic device includes the body of the electronic device and the SIM card built in the electronic device, displaying a prompt message on a display interface of the electronic device, including:
the SIM card generates unlocking prompt information according to the unlocking authentication instruction;
the SIM card sends unlocking prompt information to the body of the target electronic equipment in the form of STK active command;
the display interface of the body of the target electronic equipment displays prompt information through an STK menu; the prompt message is used for prompting a user to input initial unlocking information.
In this embodiment, an interaction process between the electronic device and the door lock is given, and then when the internal configuration of the electronic device is different, the electronic device interacts with the door lock by using an adaptive interaction method.
It should be noted that, please refer to the corresponding descriptions in the above embodiments for each step in this embodiment, which is not described herein again.
Optionally, on the basis of the above embodiment of the unlocking method applied to the door lock, another embodiment of the present invention provides an unlocking device applied to the door lock, including:
a wireless connection module 101, configured to establish a wireless connection with an electronic device; the electronic equipment comprises a body of the electronic equipment and a SIM card built in the electronic equipment, or only comprises the body of the electronic equipment;
a connection authentication module 102, configured to perform connection authentication on the electronic device, and if the electronic device passes the connection authentication, use the electronic device as a target electronic device and maintain a wireless connection with the target electronic device;
the data acquisition module 103 is used for acquiring wireless signal intensity data between the door lock and the target electronic equipment;
an intention determining module 104 for determining whether a user holding the target electronic device has an intention to open a door based on the wireless signal strength data;
and the unlocking module 105 is configured to, if the intention determining module determines that the user holding the target electronic device has an intention to open the door, acquire unlocking data from the target electronic device, and perform an unlocking operation based on the unlocking data.
Optionally, the intent determination module 104 may include:
the data determination sub-module is used for determining distance change data between the door lock and the target electronic equipment based on the wireless signal strength data;
the first determining submodule is used for determining that a user holding the target electronic equipment has an intention of opening the door if the distance change data shows that the distance between the door lock and the target electronic equipment is in a trend of continuously decreasing;
and the second determining submodule is used for determining that the user holding the target electronic equipment has no door opening intention if the distance change data shows that the distance between the door lock and the target electronic equipment does not trend to be reduced continuously.
Optionally, if the electronic device only includes the body of the electronic device, the unlocking module 105 may include:
the first sending submodule is used for sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
the first receiving submodule is used for receiving unlocking information fed back by the body of the target electronic equipment; the body of the electronic equipment performs encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment is wirelessly connected with the door lock;
the first unlocking submodule is used for decrypting the unlocking information by using a preset secret key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and the first comparison sub-module is used for comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, unlocking operation is executed.
Optionally, if the electronic device includes a body of the electronic device and a SIM card embedded in the electronic device, the unlocking module 105 may include:
the second sending submodule is used for sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
the second receiving submodule is used for acquiring unlocking information fed back to the body of the electronic equipment by the SIM card; the body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment is wirelessly connected with the door lock;
the second unlocking submodule is used for decrypting the unlocking information by using a preset secret key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and the second comparison submodule is used for comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, unlocking operation is executed.
Optionally, if the electronic device includes a body of the electronic device and a SIM card embedded in the electronic device, the unlocking module 105 may include:
the third sending submodule is used for sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
the third receiving submodule is used for receiving the unlocking information fed back by the SIM card; the body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment and the SIM card are respectively in wireless connection with the door lock;
the third unlocking submodule is used for carrying out decryption operation on the unlocking information by using a preset secret key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and the third comparison submodule is used for comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, unlocking operation is executed.
Optionally, if the electronic device includes a body of the electronic device and a SIM card embedded in the electronic device, the unlocking module 105 may include:
the fourth sending submodule is used for sending an unlocking authentication instruction to the SIM card so that the SIM card sends unlocking prompt information to the body of the target electronic equipment in the form of an STK active command, and a display interface of the body of the target electronic equipment displays the prompt information through an STK menu; the prompt message is used for prompting a user to input initial unlocking information;
the fourth receiving submodule is used for receiving the unlocking information fed back by the SIM card; the SIM card carries out encryption operation on the received initial unlocking information to obtain the unlocking information; the SIM card is in wireless connection with the door lock;
the fourth unlocking submodule is used for carrying out decryption operation on the unlocking information by using a preset secret key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and the fourth comparison submodule is used for comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, unlocking operation is executed.
Optionally, the unlocking information includes biometric information and/or a password.
Optionally, the target electronic device includes a mobile phone.
Optionally, the target electronic device is connected to the door lock via bluetooth.
Through the embodiment of the invention, in the process that the user holds the electronic equipment to approach the door lock, the door lock can automatically realize wireless authentication connection with the target electronic equipment and give out prompt authentication information; and the door lock can receive the unlocking data sent by the target electronic equipment through the wireless channel, the unlocking data does not need to be input at the lock end of the intelligent door, the problems of leakage and easy stealing caused by inputting the unlocking data at the lock end can be prevented, and in addition, the safety of the unlocking data is further improved by processing the user unlocking data by the SIM card.
In addition, the strength of the signal can be converted into the distance measurement and calculation by collecting the wireless signal strength data between the door lock and the target electronic equipment, and then whether the user has the intention of opening the door or not can be presumed.
And thirdly, the inside of the door lock and the electronic equipment automatically carries out authorization and authentication, the continuous Bluetooth connection can be established only when the authentication is passed, the Bluetooth connection is automatically disconnected when the authentication is not passed, and a corresponding error prompt is popped up through mobile phone software.
Fourthly, through the embodiment of the invention, the mobile phone which is carried about can be used for realizing quick unlocking without carrying a card or a key separately.
It should be noted that, for the working processes of each module, sub-module, and unit in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of the above embodiment of the unlocking method applied to the electronic device, another embodiment of the present invention provides an unlocking apparatus applied to an electronic device, where the electronic device includes a body of the electronic device and a SIM card built in the electronic device, or includes only the body of the electronic device; the unlocking means includes:
the wireless connection module is used for establishing wireless connection with the door lock and performing connection authentication operation;
and the information feedback module is used for determining unlocking information and feeding the unlocking information back to the door lock if the connection authentication is passed.
Optionally, the information feedback module may include:
the instruction receiving submodule is used for receiving an unlocking authentication instruction sent by the door lock;
the display sub-module is used for displaying prompt information on a display interface of the electronic equipment; the prompt message is used for prompting a user to input initial unlocking information;
and the information feedback submodule is used for acquiring initial unlocking information input by a user, encrypting the initial unlocking information to obtain unlocking information and feeding the unlocking information back to the door lock.
Optionally, if the electronic device includes the body of the electronic device, the display sub-module is configured to, when displaying the prompt information on the display interface of the electronic device, specifically:
after the operating software or the plug-in the body of the electronic equipment receives the unlocking authentication instruction, displaying acquisition prompt information on a display interface of the body of the electronic equipment to remind a user of inputting biological characteristic information;
or displaying an input box on a display interface of the body of the electronic equipment so that the user inputs password information in the input box;
the initial unlocking information includes the biometric information and the password information.
Optionally, the electronic device only includes the body of the electronic device, and the information feedback sub-module may include:
the first processing unit is used for acquiring initial unlocking information input by a user by the body of the electronic equipment and encrypting the initial unlocking information to obtain unlocking information;
the first feedback unit is used for feeding back the unlocking information to the door lock by the body of the target electronic equipment; the body of the target electronic equipment is in wireless connection with the door lock.
Optionally, the electronic device includes a body of the electronic device and a SIM card embedded in the electronic device, and the information feedback sub-module may include:
the first acquisition unit is used for acquiring the initial unlocking information by the body of the electronic equipment;
the first sending unit is used for sending the initial unlocking information to the SIM card by the body of the electronic equipment;
the second processing unit is used for the SIM card to execute encryption operation on the initial unlocking information to obtain the unlocking information;
the second sending unit is used for feeding back the unlocking information to the body of the electronic equipment by the SIM card;
the second feedback unit is used for feeding back the unlocking information to the door lock by the body of the electronic equipment; the body of the target electronic equipment is in wireless connection with the door lock.
Optionally, the electronic device includes a body of the electronic device and a SIM card embedded in the electronic device, and the information feedback sub-module may include:
the second acquisition unit is used for acquiring the initial unlocking information by the body of the electronic equipment;
a third sending unit, configured to send the initial unlocking information to the SIM card by the body of the electronic device;
the third processing unit is used for the SIM card to carry out encryption operation on the initial unlocking information to obtain the unlocking information;
the third feedback unit is used for feeding back the unlocking information to the door lock by the SIM card; the body of the target electronic equipment and the SIM card are respectively in wireless connection with the door lock.
Optionally, the electronic device includes a body of the electronic device and a SIM card embedded in the electronic device, and the information feedback sub-module may include:
a fourth sending unit, configured to send the initial unlocking information to the SIM card by the body of the electronic device;
a fourth processing unit, configured to perform, by the SIM card, an encryption operation on the initial unlocking information to obtain the unlocking information;
the fourth feedback unit is used for feeding back the unlocking information to the door lock by the SIM card; the SIM card is in wireless connection with the door lock.
Optionally, on the basis of the previous embodiment, if the electronic device includes the body of the electronic device and the SIM card built in the electronic device, the display sub-module is specifically configured to, when displaying the prompt information on the display interface of the electronic device:
the SIM card generates unlocking prompt information according to the unlocking authentication instruction;
the SIM card sends unlocking prompt information to the body of the target electronic equipment in the form of STK active command;
the display interface of the body of the target electronic equipment displays prompt information through an STK menu; the prompt message is used for prompting a user to input initial unlocking information.
In this embodiment, an interaction process between the electronic device and the door lock is given, and then when the internal configuration of the electronic device is different, the electronic device interacts with the door lock by using an adaptive interaction method.
It should be noted that, for the working processes of each module, sub-module, and unit in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. An unlocking method is characterized by being applied to a door lock and comprising the following steps:
establishing a wireless connection with an electronic device; the electronic equipment comprises a body of the electronic equipment and a SIM card built in the electronic equipment, or only comprises the body of the electronic equipment;
performing connection authentication on the electronic equipment, and if the electronic equipment passes the connection authentication, taking the electronic equipment as target electronic equipment and keeping wireless connection with the target electronic equipment;
acquiring wireless signal intensity data between the door lock and the target electronic equipment;
determining whether a user holding the target electronic device has an intention to open a door based on the wireless signal strength data;
if yes, acquiring unlocking data from the target electronic equipment, and executing unlocking operation based on the unlocking data;
if the electronic device only comprises the body of the electronic device, acquiring unlocking data from the target electronic device, and executing an unlocking operation based on the unlocking data, wherein the unlocking operation comprises the following steps:
sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display acquisition prompt information; the prompt message is used for prompting a user to input initial unlocking information;
receiving unlocking information fed back by the body of the target electronic equipment; the body of the electronic equipment performs encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment is wirelessly connected with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation;
the display interface of the body of the target electronic equipment can also display a confirmation key and a cancel key, and if the target electronic equipment receives the click of the cancel key by the user, the cancel key clicked by the user is responded, and the execution of door opening operation is determined to be forbidden; if the target electronic equipment does not receive that the user clicks the confirm key or the cancel key, determining to forbid executing door opening operation; if the target electronic equipment receives the click of the user on the determination key, the display interface of the body of the target electronic equipment jumps to a corresponding data acquisition interface or acquires password information input by the user;
if the electronic equipment comprises the body of the electronic equipment and the SIM card arranged in the electronic equipment, acquiring unlocking data from the target electronic equipment, and executing unlocking operation based on the unlocking data, wherein the unlocking operation comprises the following steps:
sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
receiving unlocking information fed back by the SIM card; the body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment and the SIM card are respectively in wireless connection with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation;
or;
sending an unlocking authentication instruction to the SIM card so that the SIM card sends unlocking prompt information to the body of the target electronic equipment in the form of STK active command, and a display interface of the body of the target electronic equipment displays the prompt information through an STK menu; the prompt message is used for prompting a user to input initial unlocking information;
receiving unlocking information fed back by the SIM card; the SIM card carries out encryption operation on the received initial unlocking information to obtain the unlocking information; the SIM card is in wireless connection with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
2. The unlocking method of claim 1, wherein determining whether a user holding the target electronic device has an intention to open a door based on the wireless signal strength data comprises:
determining distance change data between the door lock and the target electronic device based on the wireless signal strength data;
if the distance change data shows that the distance between the door lock and the target electronic equipment is in a trend of continuously decreasing, determining that a user holding the target electronic equipment has an intention of opening the door;
and if the distance change data shows that the distance between the door lock and the target electronic equipment does not tend to be reduced continuously, determining that the user holding the target electronic equipment does not have the door opening intention.
3. The unlocking method according to claim 1, wherein if the electronic device includes a main body of the electronic device and a SIM card built in the electronic device, the method further includes:
sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
acquiring unlocking information fed back to the body of the electronic equipment by the SIM card; the body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment is wirelessly connected with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
4. The unlocking method according to any one of claims 1 and 3, wherein the unlocking information includes biometric information and/or a password.
5. The unlocking method according to claim 1, wherein the target electronic device includes a mobile phone.
6. The method for unlocking a door according to claim 1, wherein the target electronic device is connected to the door lock via bluetooth.
7. An unlocking method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a body of the electronic equipment and a SIM card built in the electronic equipment or only comprises the body of the electronic equipment; the unlocking method comprises the following steps:
establishing wireless connection with a door lock and performing connection authentication operation;
if the connection authentication is passed, determining unlocking information and feeding the unlocking information back to the door lock;
the electronic equipment includes the body of electronic equipment and the interior SIM card of placing in electronic equipment, confirm the unblock information and feed back to the lock, include:
receiving an unlocking authentication instruction sent by the door lock;
displaying prompt information on a display interface of the electronic equipment; the prompt message is used for prompting a user to input initial unlocking information;
the body of the electronic equipment acquires the initial unlocking information;
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the door lock, so that the door lock decrypts the unlocking information by using a preset secret key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information; comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation; the body of the electronic equipment and the SIM card are respectively in wireless connection with the door lock;
or;
the electronic equipment includes the body of electronic equipment and the interior SIM card of placing in electronic equipment, confirm the unblock information and feed back to the lock, include:
receiving an unlocking authentication instruction sent by the door lock;
the SIM card generates unlocking prompt information according to the unlocking authentication instruction;
the SIM card sends unlocking prompt information to the body of the electronic equipment in the form of STK active command;
the display interface of the body of the electronic equipment displays prompt information through an STK menu; the prompt message is used for prompting a user to input initial unlocking information;
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the door lock, so that the door lock decrypts the unlocking information by using a preset secret key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information; comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation; the SIM card is in wireless connection with the door lock.
8. The unlocking method according to claim 7, wherein if the electronic device includes a body of the electronic device, displaying a prompt message on a display interface of the electronic device, including:
after the operating software or the plug-in the body of the electronic equipment receives the unlocking authentication instruction, displaying acquisition prompt information on a display interface of the body of the electronic equipment to remind a user of inputting biological characteristic information;
or displaying an input box on a display interface of the body of the electronic equipment so that the user inputs password information in the input box;
the initial unlocking information includes the biometric information and the password information.
9. The unlocking method according to claim 8, wherein the electronic device includes only a body of the electronic device, obtains initial unlocking information input by a user, encrypts the initial unlocking information to obtain unlocking information, and feeds the unlocking information back to the door lock, and the unlocking method includes:
the method comprises the steps that an electronic device body obtains initial unlocking information input by a user, and the initial unlocking information is encrypted to obtain unlocking information;
the body of the electronic equipment feeds the unlocking information back to the door lock; the body of the electronic equipment is in wireless connection with the door lock.
10. The unlocking method according to claim 8, wherein the electronic device includes a body of the electronic device and a SIM card built in the electronic device, the method further comprising:
the body of the electronic equipment acquires the initial unlocking information;
the body of the electronic equipment sends the initial unlocking information to the SIM card;
the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information;
the SIM card feeds the unlocking information back to the body of the electronic equipment;
the body of the electronic equipment feeds the unlocking information back to the door lock; the body of the electronic equipment is in wireless connection with the door lock.
11. An unlocking device, characterized in that, be applied to the lock, include:
the wireless connection module is used for establishing wireless connection with the electronic equipment; the electronic equipment comprises a body of the electronic equipment and a SIM card built in the electronic equipment, or only comprises the body of the electronic equipment;
the connection authentication module is used for performing connection authentication on the electronic equipment, and if the electronic equipment passes the connection authentication, the electronic equipment is used as target electronic equipment and keeps wireless connection with the target electronic equipment;
the data acquisition module is used for acquiring wireless signal intensity data between the door lock and the target electronic equipment;
an intention determining module for determining whether a user holding the target electronic device has an intention to open a door based on the wireless signal strength data;
the unlocking module is used for acquiring unlocking data from the target electronic equipment if the intention determining module determines that the user holding the target electronic equipment has the intention of opening the door, and executing unlocking operation based on the unlocking data;
if the electronic device only includes the body of the electronic device, the unlocking module includes:
the first sending submodule is used for sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display acquisition prompt information; the prompt message is used for prompting a user to input initial unlocking information;
the first receiving submodule is used for receiving unlocking information fed back by the body of the target electronic equipment; the body of the electronic equipment performs encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment is wirelessly connected with the door lock;
the first unlocking submodule is used for decrypting the unlocking information by using a preset secret key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
the first comparison sub-module is used for comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, unlocking operation is executed;
the display interface of the body of the target electronic equipment can also display a confirmation key and a cancel key, and if the target electronic equipment receives the click of the cancel key by the user, the cancel key clicked by the user is responded, and the execution of door opening operation is determined to be forbidden; if the target electronic equipment does not receive that the user clicks the confirm key or the cancel key, determining to forbid executing door opening operation; if the target electronic equipment receives the click of the user on the determination key, the display interface of the body of the target electronic equipment jumps to a corresponding data acquisition interface or acquires password information input by the user;
if the electronic equipment comprises the body of the electronic equipment and the SIM card arranged in the electronic equipment, the unlocking module is specifically used for:
sending an unlocking authentication instruction to the body of the target electronic equipment so as to enable a display interface of the body of the target electronic equipment to display prompt information; the prompt message is used for prompting a user to input initial unlocking information;
receiving unlocking information fed back by the SIM card; the body of the electronic equipment sends the initial unlocking information to the SIM card, and the SIM card carries out encryption operation on the initial unlocking information to obtain the unlocking information; the body of the target electronic equipment and the SIM card are respectively in wireless connection with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation;
or;
sending an unlocking authentication instruction to the SIM card so that the SIM card sends unlocking prompt information to the body of the target electronic equipment in the form of STK active command, and a display interface of the body of the target electronic equipment displays the prompt information through an STK menu; the prompt message is used for prompting a user to input initial unlocking information;
receiving unlocking information fed back by the SIM card; the SIM card carries out encryption operation on the received initial unlocking information to obtain the unlocking information; the SIM card is in wireless connection with the door lock;
decrypting the unlocking information by using a preset key to obtain decrypted unlocking information; the preset key is an unlocking key which is stored in advance and corresponds to the unlocking information;
and comparing the decrypted unlocking information with preset unlocking information, and if the decrypted unlocking information is consistent with the preset unlocking information, executing unlocking operation.
CN201910103365.XA 2019-02-01 2019-02-01 Unlocking method and device Active CN109816832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910103365.XA CN109816832B (en) 2019-02-01 2019-02-01 Unlocking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910103365.XA CN109816832B (en) 2019-02-01 2019-02-01 Unlocking method and device

Publications (2)

Publication Number Publication Date
CN109816832A CN109816832A (en) 2019-05-28
CN109816832B true CN109816832B (en) 2021-11-16

Family

ID=66605237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910103365.XA Active CN109816832B (en) 2019-02-01 2019-02-01 Unlocking method and device

Country Status (1)

Country Link
CN (1) CN109816832B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021023276A1 (en) 2019-08-06 2021-02-11 云丁网络技术(北京)有限公司 Smart lock control method and device
CN112446985A (en) * 2019-08-14 2021-03-05 云丁网络技术(北京)有限公司 Intelligent door lock unlocking method and device
CN112688979B (en) 2019-10-17 2022-08-16 阿波罗智能技术(北京)有限公司 Unmanned vehicle remote login processing method, device, equipment and storage medium
CN111063083B (en) * 2019-12-16 2021-11-16 腾讯科技(深圳)有限公司 Access control method and device, computer readable storage medium and computer equipment
CN113611016A (en) * 2021-07-30 2021-11-05 重庆五州门业开发有限公司 Bluetooth unlocking method, anti-theft lock and anti-theft door
CN113808302B (en) * 2021-08-12 2022-09-09 荣耀终端有限公司 Door lock control method and electronic equipment
CN114005200B (en) * 2021-10-26 2023-06-16 珠海格力电器股份有限公司 Intelligent door lock control method, device and system
CN115294678A (en) * 2022-07-26 2022-11-04 广东好太太智能家居有限公司 Door lock control method and device, electronic equipment and related products

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661639A (en) * 2009-09-11 2010-03-03 王远洲 Method and system for controlling intelligent door lock
CN201562306U (en) * 2009-09-11 2010-08-25 王远洲 Intelligent door lock control system
CN203596046U (en) * 2013-12-05 2014-05-14 浙江万里学院 Electronic lock device based on mobile terminal
CN104050742A (en) * 2014-06-27 2014-09-17 青岛歌尔声学科技有限公司 Intelligent door and control method and system thereof
CN105303656A (en) * 2015-09-22 2016-02-03 广州盛华信息服务有限公司 Intelligent access control system based on CA (certification authority) technical application identification
US9526010B2 (en) * 2015-05-14 2016-12-20 Yuan-Chou Chung System for controlling key access using an internet-connected key box device
CN107369231A (en) * 2017-06-29 2017-11-21 山东千沐云物联科技股份有限公司 A kind of smart lock control method and device
CN107464320A (en) * 2017-08-04 2017-12-12 深圳市鹏力凯科技有限公司 The intelligent door lock and system of a kind of high safety
CN107633572A (en) * 2017-07-21 2018-01-26 王峰 The door-locking system and open method of safe and intelligent
CN107680205A (en) * 2016-08-02 2018-02-09 吴明 Use SIM card certification and the safety device of Electronic Coding technology
CN107705399A (en) * 2017-09-15 2018-02-16 南京右转信息科技有限公司 The control system and control method of a kind of intelligent entrance guard
CN108038951A (en) * 2018-01-16 2018-05-15 五邑大学 A kind of intelligent access control system based on Bluetooth control
CN108230504A (en) * 2017-12-29 2018-06-29 浙江九州量子信息技术股份有限公司 A kind of method based on intelligent terminal bluetooth manipulation door lock

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574960A (en) * 2014-10-17 2016-05-11 慧锐通智能科技股份有限公司 Entrance guard control system and method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661639A (en) * 2009-09-11 2010-03-03 王远洲 Method and system for controlling intelligent door lock
CN201562306U (en) * 2009-09-11 2010-08-25 王远洲 Intelligent door lock control system
CN203596046U (en) * 2013-12-05 2014-05-14 浙江万里学院 Electronic lock device based on mobile terminal
CN104050742A (en) * 2014-06-27 2014-09-17 青岛歌尔声学科技有限公司 Intelligent door and control method and system thereof
US9526010B2 (en) * 2015-05-14 2016-12-20 Yuan-Chou Chung System for controlling key access using an internet-connected key box device
CN105303656A (en) * 2015-09-22 2016-02-03 广州盛华信息服务有限公司 Intelligent access control system based on CA (certification authority) technical application identification
CN107680205A (en) * 2016-08-02 2018-02-09 吴明 Use SIM card certification and the safety device of Electronic Coding technology
CN107369231A (en) * 2017-06-29 2017-11-21 山东千沐云物联科技股份有限公司 A kind of smart lock control method and device
CN107633572A (en) * 2017-07-21 2018-01-26 王峰 The door-locking system and open method of safe and intelligent
CN107464320A (en) * 2017-08-04 2017-12-12 深圳市鹏力凯科技有限公司 The intelligent door lock and system of a kind of high safety
CN107705399A (en) * 2017-09-15 2018-02-16 南京右转信息科技有限公司 The control system and control method of a kind of intelligent entrance guard
CN108230504A (en) * 2017-12-29 2018-06-29 浙江九州量子信息技术股份有限公司 A kind of method based on intelligent terminal bluetooth manipulation door lock
CN108038951A (en) * 2018-01-16 2018-05-15 五邑大学 A kind of intelligent access control system based on Bluetooth control

Also Published As

Publication number Publication date
CN109816832A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109816832B (en) Unlocking method and device
CN107113315B (en) Identity authentication method, terminal and server
US8893234B2 (en) Method of securing access to a proximity communication module in a mobile terminal
CN112822630B (en) Data processing method of device and computer-readable storage medium
KR101300788B1 (en) Method and System for Controlling a Car using Smart Phone
CN104955031A (en) Information transmission method and device
WO2007027290A2 (en) Method and apparatus for user authentication
CN110738776B (en) Method and system for opening Bluetooth access control, Bluetooth device and working method thereof
US10615554B2 (en) Multi-functional cord apparatus and system
CN109920100B (en) Unlocking method and system of intelligent lock
WO2017166355A1 (en) Method, device and system for processing information, mobile terminal and smart lock
WO2015156035A1 (en) Locking control device, locking control system, and locking control method
CN105096419B (en) Unlocking method and device, door lock and intelligent wearable equipment
CN105848091A (en) Vehicle control method and device without keys
CN105631271A (en) Unlocking method, unlocking device, wearable intelligent equipment and terminal
CN110278083A (en) ID authentication request treating method and apparatus, equipment replacement method and apparatus
CN108696361A (en) Configuration method, generation method and the device of smart card
KR101763140B1 (en) Authentification Method by User Terminal Connecting Access Controller, Software therefor, and Program Distributing Server Storing the Software
KR20120129388A (en) Method for Processing Transaction of Electronic Cash by using Near Field Communication, Handheld Device and Automatic Teller Machine
CN107016541B (en) Encrypted card
EP2806370A1 (en) Portable authentication tool and method
KR101674125B1 (en) Method and apparatus for connecting multi-terminal by using authentication
CN107808090A (en) Electronic equipment unlocking method, electronic equipment and computer-readable recording medium
CN107085899A (en) The identity identifying method at finance self-help end and finance self-help end
CN113596811A (en) Data transmission method and terminal equipment

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