CN110084923A - Control method for door lock, device, system, electronic equipment and storage medium - Google Patents

Control method for door lock, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN110084923A
CN110084923A CN201910253291.8A CN201910253291A CN110084923A CN 110084923 A CN110084923 A CN 110084923A CN 201910253291 A CN201910253291 A CN 201910253291A CN 110084923 A CN110084923 A CN 110084923A
Authority
CN
China
Prior art keywords
door lock
intelligent door
setting
user
state
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.)
Granted
Application number
CN201910253291.8A
Other languages
Chinese (zh)
Other versions
CN110084923B (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.)
Shenzhen Lumi United Technology Co Ltd
Original Assignee
Shenzhen Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lumi United Technology Co Ltd filed Critical Shenzhen Lumi United Technology Co Ltd
Priority to CN201910253291.8A priority Critical patent/CN110084923B/en
Publication of CN110084923A publication Critical patent/CN110084923A/en
Application granted granted Critical
Publication of CN110084923B publication Critical patent/CN110084923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • H04L12/2827Reporting to a device within the home network; wherein the reception of the information reported automatically triggers the execution of a home appliance functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

This application discloses a kind of control method for door lock, device, system, electronic equipment and storage medium, which includes: the door lock state for detecting intelligent door lock;When the door lock state is unlocking condition, interior locating for the intelligent door lock is detected with the presence or absence of setting user;If there are the setting users for the interior, control instruction is generated, the control instruction is used to indicate the intelligent door lock and locks.This method can promote intelligent door lock for the convenience of routine matter.

Description

Control method for door lock, device, system, electronic equipment and storage medium
Technical field
This application involves Smart Home technical fields, more particularly, to a kind of control method for door lock, device, system, electricity Sub- equipment and storage medium.
Background technique
With the continuous development of science and technology with the continuous improvement of living standards of the people, modern people are increasingly not content with existing Current life style, instead the urgent pursuit to more comfortable high-grade living environment, smart home thus (smart home, home automation) also gives birth to therewith, and so-called smart home is to utilize synthesis using house as platform Wiring technique, network communication technology, security precautions technology, automatic control technology, audio and video technology are set home life is related It applies integrated, constructs the management system of efficient housing facilities and family's schedule affairs, promote house security, convenience, comfortable Property, artistry, and realize the living environment of environmental protection and energy saving.
Currently, intelligent door lock the equipment important role of performer, intelligent door lock in the safeguard protection of smart home refer to area Not in tradition machinery lock on the basis of it is improved, user security, identification, the more intelligent easy of managerial aspect lock Tool, can in door lock the built-in network module for supporting network communication protocol, with other equipment in smart home system etc. into Row communication, to realize the intelligent control of door lock.Intelligent door lock in actual use, intelligent door lock often door close Certain time is waited to lock afterwards, but for the convenience of practical routine matter deficiency.
Summary of the invention
In view of the above problems, present applicant proposes a kind of control method for door lock, device, system, electronic equipment and storages to be situated between Matter, to promote intelligent door lock for the convenience of routine matter.
In a first aspect, the embodiment of the present application provides a kind of control method for door lock, which comprises detection intelligent door lock Door lock state;When the door lock state is unlocking condition, detects interior locating for the intelligent door lock and used with the presence or absence of setting Family;If there are the setting users for the interior, control instruction is generated, the control instruction is used to indicate the intelligent door lock It locks.
Second aspect, the embodiment of the present application provide a kind of door-lock controller, and described device includes: state-detection mould Block, user's detection module and control execution module, wherein the state detection module is used to detect the door lock shape of intelligent door lock State;User's detection module is used for when the door lock state is unlocking condition, and detecting interior locating for the intelligent door lock is It is no to there is setting user;If the control execution module is for described indoor in the presence of setting user, generation control instruction is described Control instruction is used to indicate the intelligent door lock and locks.
The third aspect, the embodiment of the present application provide a kind of control method for door lock, which comprises the intelligent door lock It detects the door lock state of the intelligent door lock and sends the door lock state to the gateway;The gateway receives institute Door lock state is stated, and the intelligent door lock institute is detected when determining that the door lock state is unlocking condition according to the door lock state With the presence or absence of setting user in sections;If interior, there are the setting user, the gateway generates control instruction, and will The control instruction is sent to the intelligent door lock;The intelligent door lock receives the control instruction and is referred to according to the control It enables, locks.
Fourth aspect, the embodiment of the present application provide a kind of door lock control system, the system comprises: gateway and Intelligent door lock, wherein the intelligent door lock is used to detect the door lock state of the intelligent door lock and sends to the gateway The door lock state;The gateway, according to the door lock state, determines the door lock for receiving the door lock state When state is unlocking condition, interior locating for the intelligent door lock is detected with the presence or absence of setting user;The gateway is also used to If interior has setting user, control instruction is generated, and the control instruction is sent to the intelligent door lock;The intelligence Door lock is also used to receive the control instruction and according to the control instruction, locks.
5th aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: memory;Processor;It is one or more Application program, wherein one or more of application programs are stored in the memory and are configured as by the processor It executes, one or more of programs are configured to carry out the control method for door lock that above-mentioned first aspect provides.
6th aspect, the embodiment of the present application provides a kind of computer-readable storage medium, described computer-readable Program code is stored in storage medium, said program code can be called the door lock for executing above-mentioned first aspect and providing by processor Control method.
Scheme provided by the present application, by detecting the door lock state of intelligent door lock, when door lock state is unlocking condition, inspection Interior locating for intelligent door lock is surveyed with the presence or absence of setting user, if indoor have setting user, generates control instruction, which refers to Order is used to indicate intelligent door lock and locks, to realize intelligent door lock in unlatching, determines indoor ability after there is setting user It locks, promotes intelligent door lock for the convenience of routine matter.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows a kind of schematic diagram of application scenarios suitable for the embodiment of the present application.
Fig. 2 shows the control method for door lock flow charts according to the application one embodiment.
Fig. 3 shows the control method for door lock flow chart according to another embodiment of the application.
Fig. 4 shows a kind of flow chart of step S230 in the control method for door lock according to another embodiment of the application.
Fig. 5 shows another process of step S230 in the control method for door lock according to another embodiment of the application Figure.
Fig. 6 shows another process of step S230 in the control method for door lock according to another embodiment of the application Figure.
Fig. 7 shows another process of step S230 in the control method for door lock according to another embodiment of the application Figure.
Fig. 8 shows a kind of block diagram of the door-lock controller according to the application one embodiment.
Fig. 9 shows the control method for door lock flow chart according to the application a still further embodiment.
Figure 10 shows a kind of block diagram of the door lock control system according to the application one embodiment.
Figure 11 is the embodiment of the present application for executing the electronic equipment of the control method for door lock according to the embodiment of the present application Block diagram.
Figure 12 is the embodiment of the present application for saving or carrying the door lock controlling party realized according to the embodiment of the present application The storage unit of the program code of method.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
In traditional smart home system, control for intelligent door lock, which is mostly intelligent door lock, is closed detecting After closing, control motor rotation, so that lock tongue stretching be driven to lock.Also there is part intelligent door lock detecting a closing certainly Afterwards, it can wait and control lock tongue stretching after certain time length again and lock.
Inventor is by the discovery that studies for a long period of time, and intelligent door lock is locked or waited after detection door is closed and is certain at present Duration is locked, but in home environment, usually there are multiple users, the time that user goes home may be different, in this way If, user usually requires repeatedly to carry out locking operation, brings great inconvenience to users.In view of the above-mentioned problems, inventor passes through It crosses and studies and propose control method for door lock provided by the embodiments of the present application, device, system, electronic equipment for a long time and deposit Storage media is determined and is just locked after interior has setting user in intelligent door lock when opening, and promotes intelligent door lock for day The convenience of ordinary affair business.
The application scenarios of control method for door lock provided by the embodiments of the present application are introduced below.
Referring to Fig. 1, the application scenario diagram of control method for door lock provided by the embodiments of the present application is shown, the application scenarios Including smart home system 10, which includes: gateway 100, intelligent door lock 200, router 300, clothes Business device 400 and mobile terminal 500.Wherein, intelligent door lock 200 is connect with gateway 100, for example, can pass through Zigbee The connection of the communication modes such as (purple honeybee) communication, Bluetooth communication, realizes the data communication and friendship of intelligent door lock 200 and gateway 100 Mutually.Gateway 100 can be communicated to connect with router 300, and mobile terminal 500 can be communicated to connect with server 400, thus Realize the data communication and interaction between mobile terminal 500, server 400, gateway 100 and intelligent door lock 200.When So, mobile terminal 500 can also be communicated to connect with router 300, so that mobile terminal 500 is set with router 300 and gateway Standby 100 in same local area network, realizes that the data between mobile terminal 500, gateway 100 and intelligent door lock 200 are logical Letter and interaction.In addition, mobile terminal 500 can also by communication modes such as Zigbee, bluetooths, directly with intelligent door lock 200 into Row communication.
Based on above-mentioned smart home system, the embodiment of the present application provides a kind of control method for door lock, device, system, electricity Sub- equipment and storage medium, when door lock state is open state, detect intelligent door by detecting the door lock state of intelligent door lock Lock is locating indoor with the presence or absence of setting user, if indoor have setting user, generates control instruction, the control instruction is for referring to Show that intelligent door lock is locked, to realize intelligent door lock when opening, determine and just lock after interior has setting user, Intelligent door lock is promoted for the convenience of routine matter.
It describes in detail below to the control method for door lock of the embodiment of the present application.
Referring to Fig. 2, the embodiment of the present application provides a kind of control method for door lock, which may include:
Step S110: the door lock state of intelligent door lock is detected.
Intelligent door lock in smart home system during the work time, can examine the door lock state of intelligent door lock It surveys.Wherein, door lock state includes the unlocking condition that intelligent door lock is unlocking and the state that intelligent door lock is locking.
In some embodiments, it can be detected by door lock state of the intelligent door lock to intelligent door lock.Intelligent door lock When detecting its door lock state, its state parameter can detecte, and according to state parameter, determine the door lock state of intelligent door lock. For example, expression intelligent door lock is unlocking condition when above-mentioned state parameter is 0, when state parameter is 1, indicate that intelligent door lock is upper Lock status, it is of course also possible to be state parameter be 0 when, expressions intelligent door lock be locked state, state parameter be 1 when, expression intelligence Energy door lock is unlocking condition.
In some embodiments, it can be detected by door lock state of the gateway to intelligent door lock.Gateway It, can be by sending inquiry instruction to intelligent door lock when detecting the door lock state of intelligent door lock, which is used to indicate Intelligent door lock detects its state parameter, and state parameter is sent to gateway.Corresponding, gateway can receive intelligence The state parameter that energy door lock returns, and according to state parameter, determine the door lock state of intelligent door lock.For example, when intelligent door lock returns When the state parameter returned is 0, then gateway determines that intelligent door lock is unlocking condition, when the state parameter that intelligent door lock returns is When 1, then gateway determines that intelligent door lock is locked state, it is of course also possible to when the state parameter that intelligent door lock returns is 0 When, then gateway determines that intelligent door lock is locked state, when the state parameter that intelligent door lock returns is 1, then gateway Determine that intelligent door lock is unlocking condition.
In some embodiments it is possible to be detected by door lock state of the server to intelligent door lock.Server exists It, can be by sending inquiry instruction to gateway when detecting the door lock state of intelligent door lock, gateway is receiving inquiry After instruction, which can be issued to intelligent door lock, which is used to indicate intelligent door lock and detects its state ginseng Number, and state parameter is sent to gateway, it can receive the state parameter of intelligent door lock return after gateway, and The state parameter is sent to server, last server determines the door lock state of intelligent door lock according to state parameter.
In some embodiments, it can also be detected by door lock state of the mobile terminal to intelligent door lock.It is mobile whole It end, can be by server transmission inquiry instruction to gateway, then when the door lock state to intelligent door lock detects The inquiry instruction is issued to intelligent door lock by gateway, which is used to indicate intelligent door lock and detects its state parameter, And state parameter is sent to gateway, it can receive the state parameter of intelligent door lock return after gateway, and lead to It crosses server and the state parameter is sent to mobile terminal, last mobile terminal determines the door of intelligent door lock according to state parameter Lock status.In addition, when mobile terminal and intelligent door lock are communicated to connect in the way of Zigbee or bluetooth etc., mobile terminal Above-mentioned state parameter directly can be obtained from intelligent door lock, and determine the door lock state of intelligent door lock according to state parameter.
In the embodiment of the present application, the door lock state of intelligent door lock is detected, is can be in real time to intelligent door lock Door lock state is detected.It is also possible to detect intelligent door lock according to certain detection frequency, i.e., at interval of a timing The long door lock state to intelligent door lock detects primary.It, can be according to setpoint frequency, to the door lock of intelligent door lock as a kind of mode State is detected, for example, can be according to the frequency for detecting 6 times per hour, it can also be according to the frequency for detecting 12 times per hour The door lock state of intelligent door lock is detected.
Certainly, specifically the mode of the door lock state of detection intelligent door lock in the embodiment of the present application can be not as restriction.
Step S120: when the door lock state is unlocking condition, detecting interior locating for the intelligent door lock whether there is Set user.
When the door lock state for detecting intelligent door lock is unlocking condition, then it can determine whether intelligent door lock needs to carry out Locking, after being unlocked to avoid user, and intelligent door lock is not locked, and leads to the damage to property of user.
In the embodiment of the present application, when the door lock state for detecting intelligent door lock is unlocking condition, it can detecte intelligence Interior locating for door lock is with the presence or absence of setting user, to determine whether intelligent door lock locks.Wherein, user is set as record Enter the user of the unlocking information of above-mentioned intelligent door lock, i.e. the typing one of unlocking mode or a variety of unlockings that have intelligent door lock The user of the corresponding unlocking information of mode just carries out when in addition setting user can be pre-set need in interior The user of lock.It is understood that when there is setting user in the interior locating for the intelligent door lock, then it represents that pre-set to need to locate The setting user just to lock when interior has gone home and has entered the room, thus may determine that intelligent door lock needs carry out Lock.And there is no when setting user for the interior locating for the intelligent door lock, then it represents that it is pre-set need in it is indoor when just progress The setting user of locking does not enter interior also, and door lock is in unlocking condition at this time, may go home to enter the room for other users and Intelligent door lock is set to be in unlocking condition, thus may determine that intelligent door lock does not need to lock.
In some embodiments, the indoor interior information according to locating for intelligent door lock, determines locating for intelligent door lock Interior is with the presence or absence of setting user.Indoor information may include locating for the indoor network information, intelligent door lock locating for intelligent door lock Indoor power information locating for the image information of indoor camera acquisition, intelligent door lock, user use when unlocking to intelligent door lock Unlocking manner and the use information of home equipment etc..Wherein, the network information may include network speed, data traffic etc., It can determine that indoor whether there is sets user, for example, can be in network speed according to information such as network speed, data traffics Or data traffic be certain value when, determine interior locating for intelligent door lock exist set user.According to sections, intelligent door lock institute The image information of interior camera acquisition can be by identifying that camera is adopted when determining indoor user with the presence or absence of setting user With the presence or absence of the face of setting user in the image of collection, and determine interior locating for intelligent door lock with the presence or absence of user.Intelligent door lock Locating indoor power information may include electricity consumption speed, electricity consumption etc., for example, can be one in electricity consumption speed or electricity consumption When definite value, determine that interior locating for intelligent door lock has setting user.Unlock side when being unlocked according to user to intelligent door lock Formula, when determining interior locating for intelligent door lock with the presence or absence of user, can determine user to the unlocking mode of intelligent door lock whether be Specific mode, when unlocking mode of the user to intelligent door lock is specific mode, it is determined that interior locating for intelligent door lock, which exists, to be used Family.In the use information according to home equipment, when determining interior locating for intelligent door lock with the presence or absence of user, it can be determined that current family Whether the service condition for occupying equipment is identical in history service condition of the current point in time to home equipment as setting user, works as the two When identical, determine that interior locating for intelligent door lock has setting user.
Certainly, specifically interior locating for detection intelligent door lock in the embodiment of the present application may be used with the presence or absence of the mode of setting user Not as restriction.
In addition, in the embodiment of the present application, detecting interior locating for intelligent door lock whether there is the executing subject of setting user, It can be above-mentioned intelligent door lock, be also possible to above-mentioned gateway, be also possible to above-mentioned server, be also possible to above-mentioned Mobile terminal.Wherein, interior locating for intelligent door lock, server and mobile terminal detection intelligent door lock is used with the presence or absence of setting When family, it can indicate that gateway obtains information in associated chamber from indoor equipment, for example, indicating gateway from indoor road Above-mentioned indoor information is obtained by equipment such as device, camera, intelligent electric meters, to determine sections, intelligent door lock institute according to indoor information It is interior to whether there is setting user.It, can be from above-mentioned when gateway detects interior locating for intelligent door lock with the presence or absence of user is set Indoor equipment obtains information in associated chamber, and determines that interior locating for intelligent door lock is used with the presence or absence of setting according to indoor information Family.
Step S130: if there are the setting users for the interior, control instruction is generated, the control instruction is for referring to Show that the intelligent door lock is locked.
, then can according to testing result after the interior locating for detection intelligent door lock is with the presence or absence of setting user, determination is It is no to lock to the intelligent door lock in unlocking condition.If detecting that interior locating for intelligent door lock has setting user, i.e., It sets user and is in interior locating for intelligent door lock in the case where it is unlocking condition that intelligent door lock, which is unlocked, indicate pre-set The setting user just to lock when will be in interior is in interior, therefore can lock to intelligent door lock, specifically, can To generate the control instruction for being used to indicate intelligent door lock and locking, locked with controlling intelligent door lock.
In some embodiments, when detecting the indoor user in the presence of setting, it can be intelligent door lock and generate above-mentioned control System instruction.In addition, the control instruction to be transmitted to the associated drives module of intelligent door lock, to indicate that drive module control lock tongue is stretched Out, to realize the locking of intelligent door lock.
In some embodiments, when detecting the indoor user in the presence of setting, it is above-mentioned to be also possible to gateway generation Control instruction.Specifically, the control instruction is issued to intelligent door lock, later after control instruction being generated by gateway Intelligent door lock is locked according to control instruction.
In some embodiments, when detecting the indoor user in the presence of setting, mobile terminal or service be can also be Device generates above-mentioned control instruction.Specifically, after control instruction being generated by mobile terminal or server, then the instruction sent out It send to gateway, the control instruction is issued to intelligent door lock by gateway later, so that intelligent door lock is according to control instruction It locks.Certainly, when mobile terminal and intelligent door lock are communicated to connect in the way of Zigbee or bluetooth etc., mobile terminal Above-mentioned control instruction directly can be sent to intelligent door lock, intelligent door lock can lock according to control instruction.
Certainly, the mode and executing subject that specifically control intelligent door lock is locked in the embodiment of the present application may not be used As restriction.
To, when detecting that intelligent door lock is in unlocking condition, and setting user and be in interior locating for intelligent door lock, Lock to intelligent door lock, can in order to set user go home and in it is indoor when just lock so that other users It is being gone home after opening intelligent door lock before setting user, setting user goes home not needing to carry out unlocking operation, can enter room It is interior, promote convenience.
In addition, i.e. setting user opens in intelligent door lock if detecting interior locating for intelligent door lock there is no setting user Be not in interior locating for intelligent door lock in the case that lock is unlocking condition, indicate it is pre-set will in it is indoor when just progress The setting user of locking is not in interior.It is entered the room after intelligent door lock may being opened for other users at this time, and sets user It does not go home yet and is in interior, or setting after user gos out makes intelligent door lock be in unlocking condition, therefore can examine It measures after the preset duration after unlocking condition, control intelligent door lock is locked.It should be understood that in above-mentioned intelligent door Lock is in unlocking condition, and when setting user and being not in interior, for the property and life safety for ensureing user, prevent criminal It enters the room, therefore no matter whether interior has other users, after detecting the preset duration after unlocking condition, control intelligence Door lock is locked.
Control method for door lock provided by the embodiments of the present application is detecting intelligence by detecting the door lock state of intelligent door lock When the door lock state of energy door lock is unlocking condition, interior locating for intelligent door lock is detected with the presence or absence of setting user, works as intelligent door lock When locating interior has setting user, control instruction is just generated, is locked with controlling intelligent door lock, returned convenient for setting user Family and in it is indoor when just lock, when so that intelligent door lock being unlocking condition, setting user does not need progress unlocking operation, It can enter the room, promote convenience.
Referring to Fig. 3, the application is another embodiment provides for a kind of control method for door lock, which can be with Include:
Step S210: the door lock state of intelligent door lock is detected.
In the embodiment of the present application, step S210 can be refering to the content of above-described embodiment, and details are not described herein.
Step S220: when the door lock state is unlocking condition, judges that the corresponding door of the intelligent door lock is in and close Whether the duration of state is greater than setting duration.
In the embodiment of the present application, when detecting door lock state is unlocking condition, it can determine that intelligent door lock is corresponding Whether the duration that door is in close state is greater than setting duration.It should be understood that when opening the door, control intelligent door lock is user Unlocking condition, it is subsequent door is closed after, intelligent door lock not will do it locking, and be to maintain the unlocking condition of intelligent door lock.And it grows Time keeps intelligent door lock to be in unlocking condition, then will appear security risk.Therefore, it is possible to judge that at the corresponding door of intelligent door lock Whether it is greater than setting duration in the duration of closed state, if the duration that the corresponding door of intelligent door lock is in close state, table Show that user is longer in the duration after closing the door again of opening the door, then can detecte interior locating for intelligent door lock at this time and used with the presence or absence of setting Family, to determine whether to lock to intelligent door lock.And if it is judged that the corresponding door of intelligent door lock be in close state when It fails to grow up when setting duration, then can continue the unlocking condition for keeping intelligent door lock.
In some embodiments, above-mentioned door can be detected in closing shape by being set to the door and window sensor of above-mentioned door State, and when detecting that above-mentioned door is in close state, gateway carries out timing, to obtain at the corresponding door of intelligent door lock In the duration of closed state.
In the embodiment of the present application, intelligent door lock, gateway, mobile terminal and server may determine that intelligent door lock Whether the duration that corresponding door is in close state is greater than setting duration.When intelligent door lock, mobile terminal or server judge When whether the duration that above-mentioned door is in close state is greater than setting duration, then above-mentioned door can be obtained by gateway and is in pass The duration of closed state, and judge whether the duration is greater than setting duration.When gateway judges what above-mentioned door was in close state When whether duration is greater than setting duration, then it can obtain the corresponding door of intelligent door lock according to the duration of above-mentioned timing and be in closing The duration of state, and judge whether the duration is greater than setting duration.
Step S230: if it is greater than setting duration, then interior locating for the intelligent door lock is detected with the presence or absence of the setting User.
In the embodiment of the present application, it grows up when step S220 judges that the corresponding door of intelligent door lock is in close state When setting duration, then it can detecte interior locating for intelligent door lock with the presence or absence of user.Wherein, user is set as the above-mentioned intelligence of typing The user of the unlocking information of energy door lock, in addition, setting user just carries out when can be pre-set needs in interior The user of lock.
As a kind of mode, Fig. 4 is referred to, interior locating for intelligent door lock is detected with the presence or absence of setting user, may include:
Step S231A: whether the corresponding mobile terminal of the detection setting user accesses to net locating for the intelligent door lock Network.
In the embodiment of the present application, due to usual user indoors when, indoor wireless network can be connected into, therefore can lead to Cross whether the corresponding mobile terminal of detection setting user accesses network locating for intelligent door lock, to determine whether setting user is in intelligence Interior locating for energy door lock.Wherein, the access of the network that network locating for intelligent door lock can be accessed by intelligent door lock, i.e. intelligent door lock Gateway and the wireless network that is constituted of the equipment such as router, in the wireless network, mobile terminal be can connect to routing Device, so that the wireless network be added.
In some embodiments, the link information of associated mobile terminal can be obtained from router, and is believed according to connection Breath determines whether the mobile terminal of setting user is connected to above-mentioned wireless network.Wherein, above-mentioned link information may include connection To the device identification (such as device id) of the mobile terminal of router, set so as to judge to whether there is in above equipment mark The corresponding device identification of mobile terminal for determining user is determined when the corresponding device identification of the mobile terminal that there is setting user The mobile terminal of setting user accesses to above-mentioned wireless network, i.e. the mobile terminal of setting user accesses to net locating for intelligent door lock Network.
Step S232A: if the corresponding mobile terminal of the setting user accesses to network locating for the intelligent door lock, Determine that there are the setting users for interior locating for the intelligent door lock.
It, then can basis after judging whether set the corresponding mobile terminal of user accesses to network locating for intelligent door lock Judging result determines interior locating for intelligent door lock with the presence or absence of setting user.When above-mentioned mobile terminal accesses to above-mentioned network, It can then determine that interior locating for intelligent door lock has setting user and then may be used when above-mentioned mobile terminal does not access to above-mentioned network To determine that there is no setting users for interior locating for intelligent door lock.
In some embodiments, when judging that setting the corresponding mobile terminal of user accesses to network locating for intelligent door lock When, whether the duration that can also further determine that mobile terminal accesses the network is more than specified duration or upload/downloading flow It whether is more than specified threshold
In the embodiment of the present application, above-mentioned setting user can be set to the corresponding all families in interior locating for intelligent door lock User can then determine intelligence when detecting that the mobile terminal of all domestic consumers is connected to network locating for above-mentioned intelligent door lock There is setting user in interior locating for energy door lock.Indicate at this time it is all it is home-use gone home per family, then it is subsequent can be to intelligent door lock It locks, to guarantee safety.And when the mobile terminal of any domestic consumer is not connected to network locating for above-mentioned intelligent door lock, Can then determine still has domestic consumer not go home, and being judged to determining interior locating for intelligent door lock at this time, there is no setting users, and And the subsequent unlocking condition that can keep intelligent door lock, in order to which the user not gone home subsequent can enter room without unlocking It is interior.
Alternatively, Fig. 5 is referred to, interior locating for intelligent door lock is detected with the presence or absence of setting user, can wrap It includes:
Step S231B: the electricity consumption data of indoor electrical equipment locating for the intelligent door lock is obtained.
In the embodiment of the present application, due to usual user indoors when, will use indoor electrical equipment, and consume electricity Amount.In addition, will use electrical equipment when user goes home to enter the room and electricity consumption speed caused to be accelerated.
Therefore, the electricity consumption data of the indoor electrical equipment according to locating for intelligent door lock determines sections, intelligent door lock institute It is interior to whether there is setting user.Specifically, above-mentioned indoor electricity consumption data can be obtained from ammeter.The ammeter can be with gateway It is attached, and carries out data transmission.Wherein, electricity consumption data may include the data such as electricity consumption, electricity consumption speed.
Step S232B: it is based on the electricity consumption data, judges the current power speed and preset time period of the electrical equipment Whether the difference of history electricity consumption speed before belongs to preset threshold range, and the preset threshold range is according to the setting user History electricity consumption data setting.
After the electricity consumption data for obtaining above-mentioned indoor electrical equipment, then it can be based on electricity consumption data, determine above-mentioned interior Electrical equipment current power speed and the history electricity consumption speed before preset time period.Wherein, preset time period can be with Length for the period of the certain time length before current time, specific period can be not as restriction, such as can be 5 points Clock, or 10 minutes etc..When electricity consumption data includes electricity consumption speed, then can be read directly above-mentioned current power speed and Above-mentioned history electricity consumption speed.It is of course also possible to which electricity consumption, calculates above-mentioned current power speed and above-mentioned history electricity consumption speed.
After obtaining above-mentioned current power speed and above-mentioned history electricity consumption speed, then current power speed can be calculated With the difference of history electricity consumption speed, there is increment so that whether the current electricity consumption speed of determination compares electricity consumption speed before this, and really Whether the fixed increment is corresponding with setting user.Therefore, it can judge that the difference is by above-mentioned difference compared with preset threshold range It is no to belong to preset threshold range, wherein preset threshold range can preset threshold according to the history electricity consumption data setting of setting user Value may range from what the minimum value of the incrementss of electricity consumption speed and minimum value when setting user goes home in interior were constituted Range.
Step S233B: if belonging to the preset threshold range, it is determined that interior locating for the intelligent door lock has setting User.
It should be understood that if the difference of above-mentioned current power speed and above-mentioned history electricity consumption speed belongs to above-mentioned default threshold It is worth range, then it represents that the incrementss of electricity consumption speed are corresponding with the history electricity consumption data of setting user, thus may determine that intelligence There are setting users for interior locating for door lock, if the difference of above-mentioned current power speed and above-mentioned history electricity consumption speed is not belonging to Above-mentioned preset threshold range can then determine that there is no setting users for interior locating for intelligent door lock.
In the embodiment of the present application, above-mentioned setting user can be set to the corresponding all families in interior locating for intelligent door lock User, when the incrementss for detecting electricity consumption speed are gone home with all domestic consumers, the incrementss of electricity consumption speed are to corresponding Shi Zeke To determine that interior locating for intelligent door lock has setting user.Indicate at this time it is all it is home-use gone home per family, then it is subsequent can be right Intelligent door lock is locked, to guarantee safety.And when the incrementss for detecting electricity consumption speed are not gone home with all domestic consumers The incrementss of electricity consumption speed can then determine still have domestic consumer not go home to when corresponding to, and be judged to determining intelligent door lock institute at this time There is no user, and the subsequent unlocking condition that can keep intelligent door lock is set in sections, in order to which the user not gone home can It is entered the room with subsequent without unlocking.
As another mode, Fig. 6 is referred to, interior locating for intelligent door lock is detected with the presence or absence of setting user, can wrap It includes:
Step S231C: obtaining the unlocking data of the intelligent door lock in set period of time, and the unlocking data include unlocking Event and its corresponding unlocking mode, the set period of time are arranged according to the history uncaging time of the setting user.
In the embodiment of the present application, corresponding unlocking mode, and each user are provided with since user corresponds to intelligent door lock The corresponding time for going home to unlock daily may be different.It therefore, can be according to the unlocking mode and uncaging time of intelligent door lock, really Surely whether setting user unlocks to intelligent door lock and is in interior locating for intelligent door lock.Specifically, can be obtained from intelligent door lock The unlocking data of set period of time, unlocking data may include unlocking event and its corresponding unlocking mode.Wherein, setting time Section is arranged according to the history uncaging time of setting user.For example, the history uncaging time of setting user was usually 18 o'clock sharps to 19 O'clock sharp, then set period of time can be 18 o'clock sharps to 19 o'clock sharps, and certainly, set period of time can also be less times greater than the history of user The uncaging time corresponding period, for example, above-mentioned set period of time can for 17 points 10 50 minutes to 19:.
Step S232C: judging with the presence or absence of the specified corresponding unlocking event of unlocking mode in the set period of time, described Specified unlocking mode is the corresponding unlocking mode of setting user.
Step S233C: if there is the unlocking event of the specified unlocking mode, it is determined that sections, the intelligent door lock institute Inside there is the setting user.
It should be understood that if it is judged that there is the specified corresponding unlocking event of unlocking mode in set period of time, then table Show that the unlocking event corresponding time is corresponding with the setting history uncaging time of user, thus may determine that this time unlocking event is Setting user goes home and controls intelligent door lock unlocking, so that it is determined that interior locating for intelligent door lock has setting user.And if sentenced There is no the specified corresponding unlocking event of unlocking mode in disconnected set period of time out, then interior locating for intelligent door lock can be determined not In the presence of setting user.
In the embodiment of the present application, above-mentioned setting user can be set to the corresponding all families in interior locating for intelligent door lock User is detecting in the corresponding uncaging time section of all domestic consumers that there are the unlocking modes pair of each domestic consumer setting The unlocking event answered can then determine that interior locating for intelligent door lock has setting user, indicate at this time it is all it is home-use per family It goes home, then it is subsequent to lock to intelligent door lock, to guarantee safety.And in the corresponding uncaging time section of any domestic consumer The interior corresponding unlocking event of unlocking mode that domestic consumer setting is not present, then can determine still has domestic consumer not return Family, being judged to determining interior locating for intelligent door lock at this time, there is no set user, and the subsequent unlocking that can keep intelligent door lock State, in order to which the user not gone home subsequent can enter the room without unlocking.
As yet another approach, Fig. 7 is referred to, interior locating for intelligent door lock is detected with the presence or absence of setting user, can wrap It includes:
Step S231D: the indoor camera locating for the intelligent door lock obtains the interior that the camera currently acquires Image.
It should be understood that can be by indoor camera off-the-air picture collected locating for intelligent door lock, to determine intelligence Interior locating for energy door lock is with the presence or absence of setting user.Wherein, for the quantity of camera not as restriction, camera can be indoor more A camera.The camera can be attached with gateway, and be carried out data transmission.
Step S232D: judge in the off-the-air picture with the presence or absence of setting user.
After getting off-the-air picture, then the content in off-the-air picture can be identified, to determine in off-the-air picture With the presence or absence of setting user.As a kind of mode, the facial image of content and setting user in off-the-air picture can be carried out Matching, if the content in off-the-air picture has the facial image of setting user, then it represents that there is setting user in off-the-air picture, If there is no the facial image of setting user, then it represents that there is no setting users in off-the-air picture.
Step S233D: if there are the setting users in the off-the-air picture, it is determined that set described in the interior presence Determine user.
After to judging to whether there is setting user in off-the-air picture, then intelligent door lock can be determined according to judging result It is locating indoor with the presence or absence of setting user.It should be understood that if there is setting user in off-the-air picture, it is determined that intelligent door lock It is locating indoor in the presence of setting user, if there is no setting users in off-the-air picture, it is determined that do not deposit interior locating for intelligent door lock In setting user.
In the embodiment of the present application, above-mentioned setting user can be set to the corresponding all families in interior locating for intelligent door lock User is detecting that above-mentioned off-the-air picture includes all domestic consumers, then can determine that interior locating for intelligent door lock exists and set Determine user, indicate at this time it is all it is home-use gone home per family, then it is subsequent to lock to intelligent door lock, to guarantee safety. And include any domestic consumer detecting above-mentioned off-the-air picture not, then can determine still has domestic consumer not go home, at this time It is judged to determining interior locating for intelligent door lock and setting user, and the subsequent unlocking condition that can keep intelligent door lock is not present, with User convenient for not going home subsequent can enter the room without unlocking.
In the embodiment of the present application, interior locating for above-mentioned detection intelligent door lock, can also be by intelligence with the presence or absence of setting user Energy door lock, gateway, mobile terminal or server are completed, and the executing subject of specific steps S230 can be not as limit It is fixed.
In the embodiment of the present application, interior locating for above-mentioned detection intelligent door lock can also be with the presence or absence of the mode of setting user In conjunction with progress.For example, can detect whether the corresponding mobile terminal of setting user accesses to network locating for intelligent door lock simultaneously, examine Survey mobile terminal accesses whether the duration of the network is more than specified duration or whether upload/downloading flow is more than specified threshold, It detects in set period of time with the presence or absence of the specified corresponding unlocking event of unlocking mode, detects the current power speed of electrical equipment It is with whether the difference of the history electricity consumption speed before preset time period belongs in preset threshold range, and detection off-the-air picture It is no to there is setting user, in the case that conditions above is all satisfied, that is, detect that the corresponding mobile terminal of setting user accesses to Network locating for intelligent door lock, it is more than specified duration or upload/downloading flow more than finger that mobile terminal, which accesses the duration of the network, Determine threshold value, there is the specified corresponding unlocking event of unlocking mode in set period of time, the current power speed of electrical equipment and pre- If the difference of the history electricity consumption speed before the period belongs to preset threshold range, and there are the feelings of setting user in off-the-air picture Under condition, determine that interior locating for smart machine has setting user.Certainly, interior locating for the above detection intelligent door lock whether there is and set Determine the mode of user, can also be combined and be carried out in a manner of any number of, specific that the mode detected is combined to be not intended as limiting, example Such as, after being also possible to detect in set period of time with the presence or absence of the specified corresponding unlocking event of unlocking mode, refer to when existing When determining the corresponding unlocking event of unlocking mode, detect with the presence or absence of setting user in off-the-air picture, when there is no specified unlocking sides When the corresponding unlocking event of formula, then terminate to detect, and determines that indoor there is no setting users;If there is setting in off-the-air picture User, it is determined that there is setting user in interior,.
Step S240: if there are the setting users for the interior, control instruction is generated, the control instruction is for referring to Show that the intelligent door lock is locked.
In the embodiment of the present application, step S240 can be refering to the content of above-described embodiment, and details are not described herein.
To, when above-mentioned setting user includes all domestic consumers, detecting above-mentioned indoor presence so domestic consumer, Indicate at this time it is all it is home-use gone home per family, then lock to intelligent door lock, to guarantee safety.And detecting above-mentioned room It does not inside include any domestic consumer, then can determine still has domestic consumer not go home, is judged to determining locating for intelligent door lock at this time Interior then keeps the unlocking condition of intelligent door lock there is no setting user, in order to the user that does not go home can it is subsequent without It unlocks and enters the room, promote convenience.
Control method for door lock provided by the embodiments of the present application is detecting intelligence by detecting the door lock state of intelligent door lock When the door lock state of energy door lock is unlocking condition, when whether the time that the corresponding door of detection intelligent door lock is in closing is greater than setting It is long, when being greater than setting duration, interior locating for intelligent door lock is detected with the presence or absence of setting user, and provides a variety of detection intelligence Mode of the interior locating for door lock with the presence or absence of setting user.When the interior locating for the intelligent door lock has setting user, just generates and control System instruction, is locked with controlling intelligent door lock, convenient for setting user go home and in it is indoor when just lock so that intelligence When energy door lock is unlocking condition, setting user does not need to carry out unlocking operation, can enter the room, and promotes convenience.
Referring to Fig. 3, another embodiment of the application provides a kind of control method for door lock, gateway can be applied to, The control method for door lock may include:
Step S210: the door lock state of intelligent door lock is detected.
It should be understood that gateway detect intelligent door lock door lock state when, can by send inquiry instruction extremely Intelligent door lock, which is used to indicate intelligent door lock and detects its state parameter, so that gateway can receive intelligence The state parameter that door lock returns, and according to state parameter, determine the door lock state of intelligent door lock.
Step S220: when the door lock state is unlocking condition, judges that the corresponding door of the intelligent door lock is in and close Whether the duration of state is greater than setting duration.
In the embodiment of the present application, to be adjusted convenient for user to above-mentioned setting duration, which may be used also To include:
The duration adjustment instruction that server is sent is received, the duration adjustment instruction is by the server according to user terminal The duration adjustment request of transmission generates;According to the duration adjustment instruction, the setting duration is adjusted.
Above-mentioned setting duration is adjusted it should be understood that user can use mobile terminal, can specifically pass through shifting Dynamic terminal sends duration adjustment instruction to server, wherein duration adjustment instruction may include set duration need to adjust to Target value, gateway can receive the above-mentioned duration adjustment instruction of server transmission later, and be based on duration adjustment instruction, Setting duration is adjusted to above-mentioned target value.Certainly, duration adjustment instruction can also carry the increased increase of setting duration needs Amount needs reduced reduction amount, and gateway can be based on duration adjustment instruction, and setting duration is increased above-mentioned incrementss Or reduce above-mentioned reduction amount.
Step S230: if it is greater than setting duration, then interior locating for the intelligent door lock is detected with the presence or absence of the setting User.
In the embodiment of the present application, it when the executing subject of the control method for door lock is gateway, can equally be based on Interior locating for intelligent door lock is detected in above-described embodiment to carry out with the presence or absence of the mode of setting user.For example, gateway detects When whether the corresponding mobile terminal of setting user accesses to network locating for intelligent door lock, gateway can be obtained from router to be connected Information is connect, and determines whether very red section of movement of setting user access to network locating for intelligent door lock according to link information, if The mobile terminal of setting user accesses to network locating for intelligent door lock, then can determine that interior locating for intelligent door lock has setting and uses Family.In another example gateway can obtain electricity consumption data from ammeter, and it is based on electricity consumption data, the current power of electrical equipment Whether the difference of the history electricity consumption speed before speed and preset time period belongs to preset threshold range, if the difference belong to it is pre- If threshold range, it is determined that interior locating for intelligent door lock has setting user.For another example gateway can be obtained from intelligent door lock The unlocking mode of intelligent door lock in set period of time is taken, and is judged corresponding with the presence or absence of specified unlocking mode in set period of time Unlocking event, if there is the unlocking event of specified unlocking mode, it is determined that interior locating for intelligent door lock has setting user.Also For example, gateway can obtain the off-the-air picture that the camera currently acquires from indoor camera locating for intelligent door lock, Then judge with the presence or absence of setting user in off-the-air picture, if there is setting user in off-the-air picture, it is determined that intelligent door lock It is locating indoor in the presence of setting user.
Step S240: if there are the setting users for the interior, control instruction is generated, the control instruction is for referring to Show that the intelligent door lock is locked.
In the embodiment of the present application, when detecting the indoor user in the presence of setting, gateway, which can be generated, to be used to indicate After the control instruction that intelligent door lock is locked, which is issued to intelligent door lock, intelligent door lock then can root later It locks according to control instruction.
Control method for door lock provided by the embodiments of the present application, gateway can detecte the door lock state of intelligent door lock, When the door lock state for detecting intelligent door lock is unlocking condition, gateway detect the corresponding door of intelligent door lock be in close when Between whether be greater than setting duration, when being greater than setting duration, detect interior locating for intelligent door lock with the presence or absence of user is set, and mention Supply interior locating for a variety of detection intelligent door locks with the presence or absence of the mode of setting user.In addition, gateway can be according to duration Adjustment instruction is adjusted above-mentioned setting duration.When the interior locating for the intelligent door lock has setting user, just generates to control and refer to Enable, locked with controlling intelligent door lock, convenient for setting user go home and in it is indoor when just lock so that intelligent door When lock is unlocking condition, setting user does not need to carry out unlocking operation, can enter the room, and promotes convenience.
Referring to Fig. 3, another embodiment of the application provides a kind of control method for door lock, intelligent door lock can be applied to, The control method for door lock may include:
Step S210: the door lock state of intelligent door lock is detected.
It should be understood that intelligent door lock can determine the door number of intelligent door lock according to the status parameter values of its door lock state State.
Step S220: when the door lock state is unlocking condition, judges that the corresponding door of the intelligent door lock is in and close Whether the duration of state is greater than setting duration.
In the embodiment of the present application, intelligent door lock can obtain the intelligent door lock pair that gateway detects from gateway The duration that the door answered is in close state, and judge whether the duration is greater than setting duration.
Step S230: if it is greater than setting duration, then interior locating for the intelligent door lock is detected with the presence or absence of the setting User.
In the embodiment of the present application, step S230 can be refering to locating for intelligent door lock detection intelligent door lock in above-described embodiment Mode of the interior with the presence or absence of setting user.
Step S240: if there are the setting users for the interior, control instruction is generated, the control instruction is for referring to Show that the intelligent door lock is locked.
In the embodiment of the present application, when detecting the indoor user in the presence of setting, intelligent door lock, which can be generated, to be used to indicate The control instruction is transmitted to the drive module of intelligent door lock by the control instruction that intelligent door lock is locked, to indicate driving mould Block controls lock tongue and stretches out, to realize the locking of intelligent door lock.
Control method for door lock provided by the embodiments of the present application, intelligent door lock can detecte the door lock state of intelligent door lock, When the door lock state for detecting intelligent door lock is unlocking condition, intelligent door lock detect the corresponding door of intelligent door lock be in close when Between whether be greater than setting duration, when be greater than setting duration when, detect intelligent door lock locating for interior with the presence or absence of sets user.Separately Outside, intelligent door lock can be adjusted above-mentioned setting duration according to duration adjustment instruction.The interior presence locating for the intelligent door lock When setting user, just generate control instruction, locked with controlling intelligent door lock, convenient for setting user go home and in indoor When just lock so that intelligent door lock be unlocking condition when, setting user do not need carry out unlocking operation, room can be entered It is interior, promote convenience.
Referring to Fig. 3, the application further embodiment provides a kind of control method for door lock, mobile terminal can be applied to, The control method for door lock may include:
Step S210: the door lock state of intelligent door lock is detected.
It should be understood that the status parameter values of mobile terminal available intelligent door lock detection, according to the status parameter values, Determine the door number state of intelligent door lock.
Step S220: when the door lock state is unlocking condition, judges that the corresponding door of the intelligent door lock is in and close Whether the duration of state is greater than setting duration.
In the embodiment of the present application, mobile terminal can obtain the intelligent door lock pair that gateway detects from gateway The duration that the door answered is in close state, and judge whether the duration is greater than setting duration.
Step S230: if it is greater than setting duration, then interior locating for the intelligent door lock is detected with the presence or absence of the setting User.
In the embodiment of the present application, step S230 can be refering to locating for mobile terminal detection intelligent door lock in above-described embodiment Mode of the interior with the presence or absence of setting user.
Step S240: if there are the setting users for the interior, control instruction is generated, the control instruction is for referring to Show that the intelligent door lock is locked.
In the embodiment of the present application, when detecting the indoor user in the presence of setting, mobile terminal, which can be generated, to be used to indicate The control instruction that intelligent door lock is locked, and the control instruction is transmitted to intelligent door lock by gateway, to indicate intelligence Energy door lock is locked.
Control method for door lock provided by the embodiments of the present application, mobile terminal can detecte the door lock state of intelligent door lock, When the door lock state for detecting intelligent door lock is unlocking condition, mobile terminal detect the corresponding door of intelligent door lock be in close when Between whether be greater than setting duration, when be greater than setting duration when, detect intelligent door lock locating for interior with the presence or absence of sets user.Work as intelligence When interior locating for energy door lock has setting user, mobile terminal just generates control instruction, is locked with controlling intelligent door lock, just In set user go home and in it is indoor when just lock, when so that intelligent door lock being unlocking condition, set user and be not required to Unlocking operation is carried out, can be entered the room, convenience is promoted.
Referring to Fig. 3, the application a still further embodiment provides a kind of control method for door lock, server can be applied to, it should Control method for door lock may include:
Step S210: the door lock state of intelligent door lock is detected.
It should be understood that the status parameter values of the available intelligent door lock detection of server, according to the status parameter values, really Determine the door number state of intelligent door lock.
Step S220: when the door lock state is unlocking condition, judges that the corresponding door of the intelligent door lock is in and close Whether the duration of state is greater than setting duration.
In the embodiment of the present application, it is corresponding can to obtain the intelligent door lock that gateway detects from gateway for server The duration that is in close state of door, and judge whether the duration is greater than setting duration.
Step S230: if it is greater than setting duration, then interior locating for the intelligent door lock is detected with the presence or absence of the setting User.
In the embodiment of the present application, step S230 can detect sections, intelligent door lock institute refering to server in above-described embodiment The interior mode with the presence or absence of setting user.
Step S240: if there are the setting users for the interior, control instruction is generated, the control instruction is for referring to Show that the intelligent door lock is locked.
In the embodiment of the present application, when detecting the indoor user in the presence of setting, server, which can be generated, is used to indicate intelligence The control instruction that energy door lock is locked, and the control instruction is transmitted to intelligent door lock by gateway, with indicating intelligent Door lock is locked.
Control method for door lock provided by the embodiments of the present application, server can detecte the door lock state of intelligent door lock, examine When the door lock state for measuring intelligent door lock is unlocking condition, the time that the corresponding door of server detection intelligent door lock is in closing is It is no to be greater than setting duration, when being greater than setting duration, interior locating for intelligent door lock is detected with the presence or absence of setting user.Work as intelligent door When the locating interior of lock has setting user, server just generates control instruction, is locked with controlling intelligent door lock, convenient for setting User go home and in it is indoor when just lock, when so that intelligent door lock being unlocking condition, set user and do not need to carry out Unlocking operation can enter the room, and promote convenience.
Referring to Fig. 8, it illustrates a kind of structural block diagram of plant control unit 500 provided by the embodiments of the present application, it should Plant control unit 800 includes: state detection module 810, user's detection module 820 and control execution module 830.Wherein, The state detection module 810 is used to detect the door lock state of intelligent door lock;User's detection module 820 is used in the door When lock status is unlocking condition, interior locating for the intelligent door lock is detected with the presence or absence of setting user;The control execution module If 830 are used for the interior, there are the setting users, generate control instruction, the control instruction is used to indicate the intelligence Door lock is locked.
As a kind of mode, user's detection module 820 can be specifically used for: the detection setting user is corresponding mobile whole Whether end accesses to network locating for the intelligent door lock;If the corresponding mobile terminal of the setting user accesses to the intelligence Network locating for door lock, it is determined that there are the setting users for interior locating for the intelligent door lock.
Further, if the corresponding mobile terminal of the setting user accesses to network locating for the intelligent door lock, User's detection module 820 determines that there are the setting users for interior locating for the intelligent door lock, if may include: the setting The corresponding mobile terminal of user accesses to network locating for the intelligent door lock, judge the mobile terminal access the network when Whether long be more than specified duration or whether upload/downloading flow is more than specified threshold;If it exceeds specified duration or upload/downloading Whether flow is more than specified threshold, it is determined that there are the setting users for interior locating for the intelligent door lock.
Alternatively, user's detection module 820 can be specifically used for: obtain indoor locating for the intelligent door lock The electricity consumption data of electrical equipment;Based on the electricity consumption data, the current power speed and preset time of the electrical equipment are judged Whether the difference of the history electricity consumption speed before section belongs to preset threshold range, and the preset threshold range is used according to the setting The history electricity consumption data at family is arranged;If belonging to the preset threshold range, it is determined that interior presence locating for the intelligent door lock Set user.
As another mode, user's detection module 820 can be specifically used for: obtain the intelligent door in set period of time The unlocking data of lock, the unlocking data include unlocking event and its corresponding unlocking mode, and the set period of time is according to institute State the history uncaging time setting of setting user;Judge that unlocking mode is corresponding to be opened with the presence or absence of specifying in the set period of time Lock event, the specified unlocking mode are the corresponding unlocking mode of setting user;If there is opening for the specified unlocking mode Lock event, it is determined that there are the setting users for interior locating for the intelligent door lock.
As yet another approach, user's detection module 820 can be specifically used for: indoor locating for the intelligent door lock to take the photograph As head obtains the off-the-air picture that the camera currently acquires;Judge in the off-the-air picture with the presence or absence of setting user;If There are the setting users in the off-the-air picture, it is determined that there are the setting users for the interior.
In some embodiments, user's detection module 820 can be specifically used for: be unlocking condition in the door lock state When, whether the duration for judging that the corresponding door of the intelligent door lock is in close state is greater than setting duration;When if it is greater than setting It is long, then interior locating for the intelligent door lock is detected with the presence or absence of the setting user.
Further, which can also include: duration adjustment module and adjustment execution module.When Long adjustment module is used to receive the duration adjustment instruction of server transmission, the duration adjustment instruction by the server according to The duration adjustment request that family terminal is sent generates;Execution module is adjusted to be used to set described in adjustment according to the duration adjustment instruction Timing is long.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or other The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
Referring to Fig. 9, the application a still further embodiment provides a kind of control method for door lock, door lock control system can be applied to System, which may include gateway and intelligent door lock, wherein gateway and intelligent door lock communication link It connects.The control method for door lock may include:
Step S310: the intelligent door lock detects the door lock state of the intelligent door lock and sends institute to the gateway State door lock state.
It should be understood that after its door lock state being detected by intelligent door lock, and door lock state is sent to gateway and is set It is standby, so that gateway carries out relevant operation according to the door lock state of intelligent door lock.
Step S320: the gateway receives the door lock state, and according to the door lock state, determines the door lock When state is unlocking condition, interior locating for the intelligent door lock is detected with the presence or absence of setting user.
Gateway then may determine that whether above-mentioned door lock state is unlocking condition after receiving above-mentioned door lock state. When door lock state is unlocking condition, then can detecte in intelligent door lock room with the presence or absence of setting user.Gateway detects intelligence The mode for setting user can be whether there is in door lock room, can be refering to the content of above-described embodiment, details are not described herein.
Step S330: if the interior, there are the setting user, the gateway generates control instruction, and by institute It states control instruction and is sent to the intelligent door lock.
Step S340: the intelligent door lock receives the control instruction and according to the control instruction, locks.
Control method for door lock provided by the embodiments of the present application detects the door lock state of intelligent door lock by intelligent door lock, and This number state is sent to gateway, then gateway receives the door lock state, and when door lock state is unlocking condition, Interior locating for intelligent door lock is detected with the presence or absence of setting user, if there is setting user, gateway is just generated and is used to indicate The control instruction of intelligent door lock locking, and control instruction is sent to intelligent door lock, last intelligent door lock receives control instruction Afterwards, it locks.From realize setting user go home and in it is indoor when just lock so that intelligent door lock is unlocking condition When, setting user does not need to carry out unlocking operation, can enter the room, and promotes convenience.
Referring to Fig. 10, the embodiment of the present application provides a kind of door lock control system 20, which can be with Including gateway 100 and intelligent door lock 200, gateway 100 and intelligent door lock 200 are communicated to connect.Wherein, the intelligence Door lock 200 is used to detect the door lock state of the intelligent door lock 200 and sends the door lock state to the gateway 100; The gateway 100 determines the door lock state for receiving the door lock state, and according to the door lock state to unlock When state, interior locating for the intelligent door lock 200 is detected with the presence or absence of setting user;If the gateway 100 is also used to The interior generates control instruction there are the setting user, and the control instruction is sent to the intelligent door lock 200; The intelligent door lock 200 is also used to receive the control instruction and according to the control instruction, locks.
In conclusion scheme provided by the present application is to unlock in door lock state by detecting the door lock state of intelligent door lock When state, interior locating for intelligent door lock is detected with the presence or absence of setting user, if indoor have setting user, control is generated and refers to It enables, which is used to indicate intelligent door lock and locks, to realize intelligent door lock when opening, determines that interior exists and sets It just locks after determining user, promotes intelligent door lock for the convenience of routine matter.
Figure 11 is please referred to, it illustrates the structural block diagrams of a kind of electronic equipment provided by the embodiments of the present application.The electronics is set Standby 600 mobile terminal, gateway, server, the intelligent door locks etc. that can be in above-described embodiment can run application program Equipment.Electronic equipment 600 in the application may include one or more such as lower component: processor 610, memory 620 with And one or more application program, wherein one or more application programs can be stored in memory 620 and be configured as It is executed by one or more processors 610, one or more programs are configured to carry out as described in preceding method embodiment Method.
Processor 610 may include one or more processing core.Processor 610 is whole using various interfaces and connection Various pieces in a mobile terminal 600, by run or execute the instruction being stored in memory 620, program, code set or Instruction set, and the data being stored in memory 620 are called, execute the various functions and processing data of mobile terminal 600.It can Selection of land, processor 610 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 610 can integrating central processor (Central Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It can not be integrated into processor 610, be realized separately through one piece of communication chip.
Memory 620 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 620 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 620 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for Realize the instruction etc. of following each embodiments of the method.Storage data area can also store the number that terminal 600 is created in use According to (such as phone directory, audio, video data, chat record data) etc..
Figure 12 is please referred to, it illustrates a kind of structural frames of computer readable storage medium provided by the embodiments of the present application Figure.Program code is stored in the computer-readable medium 900, said program code can be called by processor and execute the above method Method described in embodiment.
Computer readable storage medium 900 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 900 includes non-volatile meter Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage Medium 900 has the memory space for the program code 910 for executing any method and step in the above method.These program codes can With from reading or be written in one or more computer program product in this one or more computer program product. Program code 910 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (14)

1. a kind of control method for door lock, which is characterized in that the described method includes:
Detect the door lock state of intelligent door lock;
When the door lock state is unlocking condition, interior locating for the intelligent door lock is detected with the presence or absence of setting user;
If there are the setting users for the interior, control instruction is generated, the control instruction is used to indicate the intelligent door Lock is locked.
2. the method according to claim 1, wherein interior locating for the detection intelligent door lock whether there is Set user, comprising:
Detect whether the corresponding mobile terminal of the setting user accesses to network locating for the intelligent door lock;
If the corresponding mobile terminal of the setting user accesses to network locating for the intelligent door lock, it is determined that the intelligent door Locking locating interior, there are the setting users.
3. according to the method described in claim 2, it is characterized in that, if the corresponding mobile terminal of the setting user accesses to Network locating for the intelligent door lock, it is determined that there are the setting users for interior locating for the intelligent door lock, comprising:
If the corresponding mobile terminal of the setting user accesses to network locating for the intelligent door lock, the mobile terminal is judged Whether the duration for accessing the network is more than specified duration or whether upload/downloading flow is more than specified threshold;
If it exceeds whether specified duration or upload/downloading flow are more than specified threshold, it is determined that sections, the intelligent door lock institute Inside there is the setting user.
4. the method according to claim 1, wherein interior locating for the detection intelligent door lock whether there is Set user, comprising:
Obtain the electricity consumption data of indoor electrical equipment locating for the intelligent door lock;
Based on the electricity consumption data, the current power speed for judging the electrical equipment and the history electricity consumption before preset time period Whether the difference of speed belongs to preset threshold range, history electricity consumption data of the preset threshold range according to the setting user Setting;
If belonging to the preset threshold range, it is determined that interior locating for the intelligent door lock has setting user.
5. the method according to claim 1, wherein interior locating for the detection intelligent door lock whether there is Set user, comprising:
The unlocking data of the intelligent door lock in set period of time are obtained, the unlocking data include unlocking event and its corresponding Unlocking mode, the set period of time are arranged according to the history uncaging time of the setting user;
Judge that, with the presence or absence of the specified corresponding unlocking event of unlocking mode in the set period of time, the specified unlocking mode is Set the corresponding unlocking mode of user;
If there is the unlocking event of the specified unlocking mode, it is determined that there are the settings for interior locating for the intelligent door lock User.
6. the method according to claim 1, wherein interior locating for the detection intelligent door lock whether there is Set user, comprising:
The indoor camera locating for the intelligent door lock obtains the off-the-air picture that the camera currently acquires;
Judge in the off-the-air picture with the presence or absence of setting user;
If there are the setting users in the off-the-air picture, it is determined that there are the setting users for the interior.
7. the method according to claim 1, wherein described when the door lock state is unlocking condition, detection Interior locating for the intelligent door lock is with the presence or absence of setting user, comprising:
When the door lock state is unlocking condition, judge whether is duration that the corresponding door of the intelligent door lock is in close state Greater than setting duration;
If it is greater than setting duration, then interior locating for the intelligent door lock is detected with the presence or absence of the setting user.
8. the method according to the description of claim 7 is characterized in that the method also includes:
The duration adjustment instruction that server is sent is received, the duration adjustment instruction is sent by the server according to user terminal Duration adjustment request generate;
According to the duration adjustment instruction, the setting duration is adjusted.
9. method according to claim 1-8, which is characterized in that described to set user as intelligent door described in typing The user of the unlocking information of lock.
10. a kind of door-lock controller, which is characterized in that described device include: state detection module, user's detection module and Control execution module, wherein
The state detection module is used to detect the door lock state of intelligent door lock;
User's detection module is used for when the door lock state is unlocking condition, and detecting interior locating for the intelligent door lock is It is no to there is setting user;
If the control execution module is for the interior, there are the setting users, generate control instruction, the control refers to Order is used to indicate the intelligent door lock and locks.
11. a kind of control method for door lock, which is characterized in that the described method includes:
The intelligent door lock detects the door lock state of the intelligent door lock and sends the door lock state to the gateway;
The gateway receives the door lock state, and according to the door lock state, determines that the door lock state is unlocking shape When state, interior locating for the intelligent door lock is detected with the presence or absence of setting user;
If there are the setting users for the interior, the gateway generates control instruction, and the control instruction is sent out It send to the intelligent door lock;
The intelligent door lock receives the control instruction and according to the control instruction, locks.
12. a kind of door lock control system, which is characterized in that the system comprises: gateway and intelligent door lock, wherein
The intelligent door lock is used to detect the door lock state of the intelligent door lock and sends the door lock shape to the gateway State;
The gateway determines that the door lock state is to open for receiving the door lock state, and according to the door lock state When lock status, interior locating for the intelligent door lock is detected with the presence or absence of setting user;
If the gateway is also used to the interior there are the setting user, control instruction is generated, and by the control Instruction is sent to the intelligent door lock;
The intelligent door lock is also used to receive the control instruction and according to the control instruction, locks.
13. a kind of electronic equipment characterized by comprising
Memory;
Processor;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by the processor, one or more of programs are configured to carry out such as the described in any item sides of claim 1-9 Method.
14. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor and execute such as the described in any item methods of claim 1-9.
CN201910253291.8A 2019-03-29 2019-03-29 Door lock control method, device, system, electronic equipment and storage medium Active CN110084923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910253291.8A CN110084923B (en) 2019-03-29 2019-03-29 Door lock control method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910253291.8A CN110084923B (en) 2019-03-29 2019-03-29 Door lock control method, device, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110084923A true CN110084923A (en) 2019-08-02
CN110084923B CN110084923B (en) 2021-08-31

Family

ID=67414001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910253291.8A Active CN110084923B (en) 2019-03-29 2019-03-29 Door lock control method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110084923B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112614252A (en) * 2020-12-01 2021-04-06 珠海格力电器股份有限公司 Control method and device of intelligent door lock, storage medium and electronic device
CN113011236A (en) * 2019-12-20 2021-06-22 佛山市云米电器科技有限公司 Information display method, intelligent door lock and computer readable storage medium
CN113870462A (en) * 2021-09-17 2021-12-31 珠海格力电器股份有限公司 Control method and device of intelligent door lock, intelligent door lock and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088758A1 (en) * 2008-10-06 2010-04-08 Fujitsu Limited Security system, security method and recording medium storing security program
CN104616456A (en) * 2014-12-25 2015-05-13 惠州Tcl移动通信有限公司 System and method for preventing omission of mobile terminal
CN108843140A (en) * 2018-07-05 2018-11-20 胡渐佳 The automatic locking method of intelligent door lock and lockset
US20180340350A1 (en) * 2013-03-15 2018-11-29 August Home, Inc. Intelligent door lock system with manual operation and push notification
CN109188927A (en) * 2018-10-15 2019-01-11 深圳市欧瑞博科技有限公司 Appliance control method, device, gateway and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088758A1 (en) * 2008-10-06 2010-04-08 Fujitsu Limited Security system, security method and recording medium storing security program
US20180340350A1 (en) * 2013-03-15 2018-11-29 August Home, Inc. Intelligent door lock system with manual operation and push notification
CN104616456A (en) * 2014-12-25 2015-05-13 惠州Tcl移动通信有限公司 System and method for preventing omission of mobile terminal
CN108843140A (en) * 2018-07-05 2018-11-20 胡渐佳 The automatic locking method of intelligent door lock and lockset
CN109188927A (en) * 2018-10-15 2019-01-11 深圳市欧瑞博科技有限公司 Appliance control method, device, gateway and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011236A (en) * 2019-12-20 2021-06-22 佛山市云米电器科技有限公司 Information display method, intelligent door lock and computer readable storage medium
CN112614252A (en) * 2020-12-01 2021-04-06 珠海格力电器股份有限公司 Control method and device of intelligent door lock, storage medium and electronic device
CN112614252B (en) * 2020-12-01 2022-03-18 珠海格力电器股份有限公司 Control method and device of intelligent door lock, storage medium and electronic device
CN113870462A (en) * 2021-09-17 2021-12-31 珠海格力电器股份有限公司 Control method and device of intelligent door lock, intelligent door lock and storage medium

Also Published As

Publication number Publication date
CN110084923B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN110084923A (en) Control method for door lock, device, system, electronic equipment and storage medium
CN205485359U (en) Intelligence house sensor centralized data processing system
CN101408754B (en) Intelligent house optimizing system based on data excavation
CN206710818U (en) Intelligent home control system based on ZigBee and cloud computing
CN100385874C (en) Integrative intelligent system of digitization community
CN109413515A (en) Apparatus control method, device, mobile terminal and server
CN108401013A (en) A kind of smart home Internet of Things communication device
CN109548116A (en) ZigBee gateway batch method of network entry, device and equipment based on NFC
CN104407517A (en) Smart home security method based on Internet of Things technology
CN108803460A (en) A kind of wisdom lavatory method for managing and monitoring and system
CN109756404A (en) Sharing method, device, storage medium and the computer equipment of equipment control
CN102333020A (en) Sub-district terminal network oriented security system
CN108052022A (en) A kind of intelligent door opening method, electronic equipment, storage medium and system based on double mode
CN110956721A (en) Intelligent electronic coded lock early warning system and method and information data processing terminal
CN107148022B (en) A kind of anti-loiter network based reminding method and relevant device
CN106302039A (en) A kind of method and apparatus of security control intelligent appliance
CN113329206B (en) Control method and device of visual intercom system, electronic equipment and storage medium
CN109917664A (en) A kind of home-use management system based on wireless sensor network
CN206656471U (en) Air conditioner and monitoring system based on air conditioner
CN109408720A (en) Information recommendation method, system and medium based on electronics lock screen
CN110232786B (en) Method and device for obtaining or occupying free storage space of intelligent storage cabinet
CN107942713A (en) A kind of intelligent domestic system
CN107526314A (en) A kind of building intelligent storage cabinet based on Internet of Things
CN110717561B (en) Intelligent wardrobe based on radio frequency identification technology and control method thereof
CN207318983U (en) A kind of building intelligent storage cabinet based on Internet of Things

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