Summary of the invention
The problem of present invention solves smart lock in life and work, enabling complex steps, it is close using smart phoneAutomatic lock, automatic lock are not having to dig out key, and auto-unlocking in the case where perhaps pressing fingerprint or swiping the card significantly facilitatesThe life of the people.
Particular technique method of the invention is as follows:
Equipment described in the present invention includes smart lock and smart phone:
(1) wherein smart lock includes at least bluetooth module, main control module, unlocking motor and power supply module, can in main control moduleTo configure and save user authentication information, the agreement and interface of Bluetooth communication are in addition also achieved, is identified by authentication informationWhether the instruction received is that certification user initiates, and come auto-unlocking and saves unlocking record according to the unlocking instruction of certification user,Notify APP unlocking successful information simultaneously, in addition the bluetooth module of smart lock can carry out Bluetooth broadcast, such intelligence at regular intervalsEnergy cell phone application can determine whether to detect that smart lock, unlocking motor are main by searching for the Bluetooth broadcast signal of smart lockBy main control module order-driven auto-unlocking, bluetooth module, which is mainly controlled according to main control module, is responsible for Bluetooth protocol communication.
(2) wherein smart phone includes bluetooth module, also includes the APP software by bluetooth with smart lock interaction, userThe distance of auto-unlocking can be configured on APP, APP software can listen to the bluetooth of smart lock by the bluetooth module of smart phoneBroadcast message is instructed apart from interior transmission auto-unlocking to smart lock according to auto-unlocking set by user, and smart lock verifying is unlockedInstruction is initiated by certification user, the drive motor auto-unlocking in the case where being certification user.
The present invention provides a kind of smart phones close to the method for smart lock auto-unlocking, and smart phone includes APP softPart, user register in APP and save the authentication information that user is connected to smart lock, these authentication informations have also been protectedThere are the main control module of smart lock, it also includes the information of the smart lock of binding, separately that authentication information, which includes user name and encrypted message,Outer user can configure the distance of triggering auto-unlocking by APP.Whether APP has by intelligent mobile phone Bluetooth module constant testingThe Bluetooth broadcast information of the smart lock of binding starts constantly measurement intelligence after detecting the Bluetooth broadcast information of binding smart lockThe bluetooth signal intensity that can be locked, the distance with smart lock is calculated according to signal strength.Whether there is binding for constant testingThe mode of the Bluetooth broadcast information of smart lock is by the intelligence learning method of comprehensive various factors, and this factor includes usuallyThe location information of unlocking, the usually statistic record etc. of uncaging time, such as pass through the position of unlocking before the APP record of smart phoneConfidence breath opens bluetooth module when smart phone is near record position information and starts frequently to detect smart lock Bluetooth broadcast letterBreath, far from front position when elongate detection cycle, it is also contemplated that time usually unlocked etc. determines detection cycleLength.
Smart phone is as follows close to the process of auto-unlocking:
(1) whether APP has the Bluetooth broadcast information of the smart lock of binding by intelligent mobile phone Bluetooth module constant testing, passes through intelligenceCan algorithm determine detection cycle;
(2) when detecting the Bluetooth broadcast information of smart lock, the Bluetooth signal for starting continuous rapid survey smart lock is strongDegree, the distance with smart lock is calculated according to signal strength;
(3) when in the thresholding that the distance with smart lock defines in APP, APP sends certification by Bluetooth encryption channelInformation (authentication information includes user name and the encrypted message of user etc.) and auto-unlocking instruction are to smart lock, and smart lock is in indigo plantAfter tooth encryption channel receives authentication information and auto-unlocking instruction, comparison authentication information first in intelligent lock system with configuringAuthentication information confirm whether authentication information effective, when control module drive motor is opened automatically in the effective situation of authentication informationLock, and record of unlocking is recorded in internal system, in addition and APP is notified to unlock successfully,
The above is only the preferential embodiment of the present invention, for those skilled in the art, is not departing from thisIn the case where aspect technical principle, some improvement and modification can also be made, these improvements and modifications also should be considered as the present inventionProtection scope.