Summary of the invention
The purpose of the present invention is to provide a kind of control methods of the WIFI module of intelligent door lock, intelligent door lock control systemAnd intelligent door lock, it is intended to solve the problem of that the WIFI module in existing intelligent door lock need to be electrified for a long time and power supply is caused to waste.
Technical scheme is as follows:
A kind of control method of the WIFI module of intelligent door lock, wherein comprising steps of
When having detected unlocking operation event, the WIFI module that control is currently at off-position is powered.
The control method, wherein the WIFI module that the control is currently at off-position can also wrap after being poweredIt includes:
The unlocking operation event is sent to server by the WIFI module, is grasped the unlocking by the serverThe mobile terminal of user is fed back to as event to notify the user.
The control method, wherein described that the unlocking operation event is sent to service by the WIFI moduleIt may also include that after device
The confirmation for receiving user, which is unlocked, to be indicated;
Execute unlocking operation.
The control method, wherein described that the unlocking operation event is sent to service by the WIFI moduleIt may also include that after device
It controls the WIFI module and enters off-position.
A kind of intelligent door lock control system, wherein include: door lock main controller, WIFI module, in which: the door lock master controlWhen device has detected unlocking operation event, the WIFI module that control is currently at off-position is powered.
The control system, wherein when the WIFI module is powered, the door lock main controller grasps the unlockingMake event and server is sent to by the WIFI module, the unlocking operation event is transmitted to user's by the serverMobile terminal is to notify the user.
The control system, wherein after the door lock main controller sends the unlocking operation event, described in controlWIFI module enters off-position.
The control system, wherein the control WIFI module enters off-position and includes:
The WIFI module sends a request signal to door lock main controller;
If door lock main controller receives the request signal, WIFI module power-off is controlled;
If door lock main controller does not receive the request signal, when reaching preset time threshold, WIFI module is automatically controlledPower-off.
A kind of intelligent door lock, wherein including control system as described above.
A kind of storage equipment, is stored thereon with a plurality of instruction, wherein described instruction is suitble to be loaded by processor and executed such asThe upper method.
The utility model has the advantages that the control method of the WIFI module of intelligent door lock provided by the invention, controls WIFI module in intelligenceEnergization when door lock carries out unlocking operation and powered off at other so that WIFI module in intelligent door lock only intelligent door lock intoRow unlocking operation needs to consume power supply, and other within the most of the time all in power-off resting state, it is thus possible to realization hasEffect saves power supply, while extending the service life of battery and WIFI module.The present invention solves in existing intelligent door lockThe problem of WIFI module need to be electrified for a long time, power supply is caused to waste.
Specific embodiment
The present invention provides control method, intelligent door lock control system and the intelligent door of a kind of WIFI module of intelligent door lockLock, to make the purpose of the present invention, technical solution and effect clearer, clear and definite, the present invention is described in more detail below.It answersWork as understanding, the specific embodiments described herein are merely illustrative of the present invention, is not intended to limit the present invention.
The workflow of WIFI module is main in normal procedure intelligent door-locking system are as follows: powers on -> connect router -> login clothesBusiness device -> monitoring serial data.When door lock has manipulation, for example unlock or someone's picking lock, WIFI then will receive serial data,Then it reports and is given to server, then WIFI module is at wait state, waits the arrival of serial data next time.
The present invention provides a kind of control method of the WIFI module of intelligent door lock, wherein as shown in Figure 1, comprising steps of
Whether S1, detecting have unlocking operation event;
If S2, having detected unlocking operation event, the WIFI module that control is currently at off-position is powered.
In present invention, it is desirable to the state of real-time monitoring intelligent door lock and detected whether unlocking operation, when having detected outWhen lock operation, the WIFI module energization just controlled in intelligent door lock works, and the WIFI at other, in intelligent door lockIn power-off resting state when module, without consuming power supply, and to be longer than out in view of starting the other times except operationThe time of operation is locked, thus this method can greatly save the electrical source consumption in WIFI module, can also extend battery uses the longevityLife, because simultaneously as WIFI module is in resting state within the most of the time, thus also can without frequently replacing batteryIt avoids WIFI module from continuing, is in running order for a long time, extending the service life of WIFI module.
In present invention, it is desirable to a switching circuit is preset, for receiving the control WIFI module of door lock main controller sendingThe instruction for being powered or powering off carries out energization or power operation to WIFI module.
Namely the power supply process of heretofore described intelligent door lock is: battery is powered to door lock main controller, and master control is given againWIFI module power supply, one switching circuit of place design that master control is powered to WIFI module, can arbitrarily open, close WIFI mouldThe power supply of block.
The control method of the WIFI module of intelligent door lock provided by the present invention further comprises the steps of: after step S2
The unlocking operation event is sent to server by the WIFI module, is grasped the unlocking by the serverThe mobile terminal of user is fed back to as event to notify the user.
After WIFI module powers on, door lock main controller is established with WIFI module communicate to connect immediately, while WIFI mouldBlock connects the router pre-set immediately, and the router is connected with server, and then door lock main controller will test and obtainThe unlocking operation information got is sent to WIFI module in the form of serial data, then is sent to road through wireless network by WIFI moduleBy device, server is then transmitted to by router, server can parse the serial data, then grasp the unlocking parsedThe mobile terminal of user is transmitted to notify user as information, specifically can be transmitted to corresponding APP, such user can obtain in real timeKnow the state of door lock in family.
In step S2, as a wherein specific embodiment, the unlocking operation event is being passed through into the WIFI mouldAfter block is sent to server, controls the WIFI module and enter off-position.Namely it in this embodiment of the invention, detectsWhen unlocking operation event, control WIFI module is powered and unlocking operation is fed back to user, and user can remotely know intelligent doorWhether lock is unlocked, but lock can be opened directly, not by the long-range control of user.
And after unlocking operation event is sent to server by WIFI module, work as subtask and completed, then can enterResting state, thus can control WIFI module and carry out power operation.Specifically, serial data can be sent in WIFI moduleTo server, a request signal is fed back to intelligent door lock, for requesting the control WIFI module power-off of door lock main controller, in door lockAfter main controller receives request signal, show that serial data is successfully uploaded to server by WIFI module, thus can controlWIFI module processed is powered off, to be powered on again when unlocking operation next time.It is of course possible to which will appear other reasons causesWIFI module slowly gives itself power-off not over sending request signal notice door lock main controller, then in WIFI module by serial ports numberAccording to be sent to reach preset time threshold after server when, directly control WIFI module power-off.Preferably, being incited somebody to action in WIFI moduleWhen serial data is sent to the time after server and reaches 15 seconds, powered off directly to WIFI module.
The unlocking operation event includes key unlocking, card unlocking, fingerprint recognition unlocking, face recognition unlocking and picking lockDeng, can WIFI module after being powered, router be forwarded to mobile terminal after being uploaded to server, inform door in user familyLock status can inform in time user when accident or emergency occurs if any thief's picking lock.
If server show that the unlocking operation for including in serial data is picking lock behavior through parsing, a urgent letter is sentIt ceases to mobile terminal, especially to remind user, while user can confirm that the picking lock behavior is autonomous operation by return informationStill there is stranger's invasion, if server does not receive user's confirmation operation, automatically dial alarm, to guarantee in the given timeUser's property is not encroached on.
In step S2, as further embodiment, the unlocking operation event is being sent out by the WIFI moduleSend to server, further comprise the steps of: receive user confirmation unlock indicate and execute unlocking, then control rustling sound WIFI module intoEnter off-position.In present embodiment, after detecting unlocking operation event, control WIFI module is powered and will detect unlockingAction event is sent to the mobile terminal of user through WIFI module, then waits the confirmation of user to unlock and indicates, if receiving useThe confirmation at family, which is unlocked, to be indicated, then controls intelligent door lock unlocking, is then controlled WIFI module and is entered off-position;If not receiving useThe confirmation at family, which is unlocked, to be indicated, then abandons the unlocking operation event.Namely in present embodiment, locked not when having unlocking operation eventIt can open, but to unlocking operation is just executed after the feedback for after user feedback unlocking operation event, obtaining user, so notBut user can be allowed to know door lock state, and can be further ensured that door lock safety.
Further, when door lock main controller is to user feedback unlocking operation event, current unlocking operation thing can be acquiredThe environment picture of part or the information of attacker are transferred to user and identify, execute unlocking operation again after customer acceptance,WIFI module is controlled again after unlocking and enters off-position, to allow client that can more clearly know current ambient conditions or openWhom lock person is, guarantees property safety.
In the further embodiment, after unlocking operation event is sent to server by WIFI module, if connecingConfirmation by user, which is unlocked, to be indicated, then controls door lock and open and control WIFI module power-off into off-position;If in WIFIAfter unlocking operation event is sent to server by module, the confirmation for not receiving user in preset time threshold, which is unlocked, to be indicated,It then controls door lock and guarantees to close and control WIFI module power-off to enter off-position.
Based on the above method, also a kind of storage equipment of the present invention is stored thereon with a plurality of instruction, wherein described instruction is suitableConjunction is loaded by processor and executes method as described above.
Based on the above method, also a kind of intelligent door lock control system of the present invention, as shown in Fig. 2, wherein, comprising: door lock masterControl device 100, WIFI module 200, in which: when the door lock main controller has detected unlocking operation event, control is currently at disconnectedThe WIFI module of electricity condition is powered.
The control system, wherein when the WIFI module is powered, the door lock main controller is by the unlocking operationEvent is sent to server by the WIFI module, and the unlocking operation event is transmitted to the shifting of user by the serverTerminal is moved to notify the user.
The control system, wherein after the door lock main controller sends the unlocking operation event, described in controlWIFI module enters off-position.
The control system, wherein the control WIFI module enters off-position and includes:
The WIFI module sends a request signal to door lock main controller;
If door lock main controller receives the request signal, WIFI module power-off is controlled;
If door lock main controller does not receive the request signal, when reaching preset time threshold, WIFI module is automatically controlledPower-off.
Technical detail and benefit about above-mentioned intelligent door lock control system and storage equipment have carried out in the above-mentioned methodsIt elaborates, details are not described herein again.
Based on above-mentioned intelligent door lock control system, the present invention also provides a kind of intelligent door locks, including the intelligent doorLock control system.
In conclusion the control method of intelligent door lock WIFI module provided by the invention, controls WIFI module in intelligenceEnergization when door lock carries out unlocking operation and powered off at other so that WIFI module in intelligent door lock only intelligent door lock intoRow unlocking operation needs to consume power supply, and other within the most of the time all in power-off resting state, it is thus possible to realization hasEffect saves power supply, while extending the service life of battery and WIFI module.The present invention solves in existing intelligent door lockThe problem of WIFI module need to be electrified for a long time, power supply is caused to waste.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills canWith improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present inventionProtect range.