Door lock control method, device, door lock and storage medium
By detecting the target object distance and residence time on the smart door lock, automatically determining whether the door lock is opened, the complex unlocking operation in the existing technology is solved, and the convenience and safety of unlocking from the indoors are improved.
Patent Information
- Application Number
- CN202110717162.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-28
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-06-28
AI Technical Summary
The existing smart door lock unlocking method is complex and is not suitable for unlocking from the room, especially when the user is not carrying a mobile phone or carrying more items.
When the door lock is closed, it is determined whether the target indoor object is within a specific distance range of the door lock, and whether the door lock is opened based on the distance between the target object and the door lock and the residence time.
It realizes that the door lock is automatically opened without manual operation. When the target object is detected to have a need to go out, it ensures that the door lock is automatically opened at the appropriate time, which improves the convenience and safety of operation.
Smart Images

Figure CN115546929B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of door locks, and in particular, relates to a door lock control method, device, door lock and storage medium. Background Art
[0002] At present, smart door lock products on the market usually need to be unlocked with the help of a mobile phone or manually. For example, the smart door lock communicates with the mobile phone through wireless communication methods such as Bluetooth, WiFi, NFC, etc., and the user controls the smart door lock to unlock by controlling the mobile phone, or the smart door lock has a fingerprint unlocking function, and the user uses the fingerprint to control the smart door lock to unlock. For the scenario of unlocking from indoors, the user is usually empty-handed without a mobile phone or full-handed with many items. The existing unlocking method is complicated to operate and is not suitable for the scenario of unlocking from indoors. Summary of the invention
[0003] The embodiments of the present application provide a door lock control method, device, door lock and storage medium to solve the problem that the existing unlocking method is complicated to operate and is not suitable for unlocking from indoors.
[0004] A first aspect of an embodiment of the present application provides a door lock control method, comprising:
[0005] When the door lock is closed, detecting whether the indoor target is within the first distance range of the door lock;
[0006] When the target object is within a first distance range of the door lock, detecting the distance between the target object and the door lock;
[0007] When the target object is within the second distance range of the door lock, detecting the residence time of the target object within the second distance range of the door lock;
[0008] When the residence time of the target object within the second distance range of the door lock is within the first time range, the door lock is unlocked.
[0009] A second aspect of an embodiment of the present application provides a door lock control device, comprising:
[0010] A first detection unit, used to detect whether a target object in the room is within a first distance range of the door lock when the door lock is closed;
[0011] a second detection unit, configured to detect the distance between the target object and the door lock when the target object is within a first distance range of the door lock;
[0012] a third detection unit, configured to detect a residence time of the target object within the second distance range of the door lock when the target object is within the second distance range of the door lock;
[0013] A control unit is used to unlock the door lock when the target object stays within the second distance range of the door lock for a period of time within a first time range.
[0014] A third aspect of an embodiment of the present application provides a door lock, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the door lock control method described in the first aspect of the embodiment of the present application when executing the computer program.
[0015] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the door lock control method as described in the first aspect of the embodiments of the present application.
[0016] The door lock control method provided by the first aspect of the embodiment of the present application detects whether a target object in a room is within a first distance range of the door lock when the door lock is closed; when the target object is within the first distance range of the door lock, detects the distance between the target object and the door lock; when the target object is within the second distance range of the door lock, detects the residence time of the target object within the second distance range of the door lock; and when the residence time of the target object within the second distance range of the door lock is within the first time range, unlocks the door lock. The door lock can be automatically opened when it is detected that the target object has a need to go out, without the need for any manual operation.
[0017] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 This is a first flow chart of the door lock control method provided in the embodiment of the present application;
[0020] Figure 2 This is a second flow chart of the door lock control method provided in the embodiment of the present application;
[0021] Figure 3 This is a third flow chart of the door lock control method provided in the embodiment of the present application;
[0022] Figure 4This is a fourth flow chart of the door lock control method provided in the embodiment of the present application;
[0023] Figure 5 This is a fifth flow chart of the door lock control method provided in the embodiment of the present application;
[0024] Figure 6 is a schematic diagram of the distance range around the door lock provided in an embodiment of the present application;
[0025] Figure 7 is a schematic diagram of the structure of a door lock control device provided in an embodiment of the present application;
[0026] Figure 8 It is a schematic diagram of the structure of the door lock provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0028] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0029] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0031] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0032] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. "Multiple" means two or more.
[0033] An embodiment of the present application provides a door lock control method, which is applied to a door lock and is specifically executed by a processor of the door lock when running a computer program with corresponding functions.
[0034] In application, the door lock may include at least one sensor or be connected to at least one external sensor for detecting the distance between the target object in the room and the door lock and the residence time of the target object around the door lock. The door lock described in the embodiments of the present application does not constitute a limitation on the door lock, and the door lock may include more or fewer components, or combine certain components, or arrange the components differently.
[0035] like Figure 1 As shown, the door lock control method provided in the embodiment of the present application includes the following steps S101 to S104:
[0036] Step S101: When the door lock is closed, detect whether a target object in the room is within a first distance range of the door lock.
[0037] In the application, the target object can be a living object such as a human body or a pet, or a movable device such as an automatic guided vehicle or a mobile robot. That is, the door lock control method can be applied not only to indoor unlocking scenarios in home places, but also to indoor unlocking scenarios in factories, office buildings, stadiums and other places.
[0038] In one embodiment, step S101 includes:
[0039] The first sensor detects whether the indoor target object is within the first distance range of the door lock.
[0040] In application, when the door lock is closed, a first sensor arranged on the door body can be used to detect whether the target object is within a first distance range. The first sensor can be a part of the door lock or an external device that is communicatively connected to the door lock. In a first application scenario of the first sensor, the sensing range of the first sensor can be set to a first distance range, that is, as long as the first sensor senses the target object, it can be considered that the target object is within the first distance range of the door lock. For this application scenario, the first sensor can be a capacitive or resistive proximity sensor, a passive infrared sensor (Passive Infra-Red sensor, PIR), etc., which does not actively emit a detection signal and only generates a sensing signal after sensing the target object. Specifically, when the target object is a living body, the first sensor can be a passive infrared sensor; in a second application scenario of the first sensor, the distance between the target object and the door lock can be detected by the first sensor, and then the distance is sent to the processor of the door lock, and the processor determines whether the distance is within the first distance range. For this application scenario, the first sensor can be a photoelectric proximity sensor, an active infrared sensor, an ultrasonic sensor or a laser ranging sensor, etc., which actively emits a detection signal and generates a sensing signal after detecting the detection signal reflected by the human body. Specifically, when the target object is a living body, the first sensor can be an active infrared sensor.
[0041] In the application, for the first application scenario of the first sensor, the first distance range is a fixed range determined by the detection range of the first sensor. For the second application scenario of the first sensor, the first distance range can be set by the user according to the range of activities around the door lock when the user needs to go out, for example, [0cm, 100cm].
[0042] In one embodiment, for the second application scenario of the first sensor, before step S101, the following steps are included:
[0043] Receiving a first distance range setting instruction sent by a user;
[0044] According to the first distance range setting instruction, the first distance range is set.
[0045] In the application, the first distance range can be customized by the user according to actual needs or the default setting of the door lock when it leaves the factory can be adopted. The user can directly input the first distance range setting instruction through the human-computer interaction device of the door lock. The human-computer interaction device of the door lock may include at least one of a physical button, a touch sensor, a gesture recognition sensor and a voice recognition unit, so that the user can input the first distance range setting instruction through the corresponding touch mode, gesture control mode or voice control mode.
[0046] In the application, the physical buttons and touch sensors can be set at any position of the door lock, for example, the control panel of the door lock. The touch mode of the physical buttons can be pressing or toggling. The touch mode of the touch sensor can be pressing or touching, etc. The gesture recognition sensor can be set at any position of the door lock, and the gestures used to control the door lock can be customized by the user according to actual needs or adopt the factory default settings. The voice recognition unit can include a microphone and a voice recognition chip, or it can only include a microphone and the voice recognition function is implemented by the processor of the door lock. The voice used to control the door lock can be customized by the user according to actual needs or adopt the factory default settings.
[0047] In the application, the user can also control the user device to send the first distance range setting instruction to the door lock through any human-computer interaction method supported by the user device. The user device can be a remote control, a wired controller, a mobile phone, a smart bracelet, a tablet computer, a laptop computer, a netbook, a personal digital assistant (PDA), or other electronic device with wired or wireless communication functions that can communicate with the door lock. The embodiment of the present application does not impose any restrictions on the specific type of the user device. The human-computer interaction method supported by the user device can be the same as that of the door lock, and will not be repeated here.
[0048] Step S102: When the target object is within a first distance range of the door lock, detecting the distance between the target object and the door lock;
[0049] Step S103: when the target object is within a second distance range of the door lock, detecting the residence time of the target object within the second distance range of the door lock, where the second distance range is a subset of the first distance range;
[0050] Step S104: when the target object stays within the second distance range of the door lock for a period of time within the first time range, unlock the door lock.
[0051] In the application, when the target is within the first distance range of the door lock, it can be preliminarily determined that the target has the intention to go out, but the target may just pass by the door lock. Therefore, it is necessary to further detect the distance between the target and the door lock and the time it stays around the door lock to further determine the target's intention to go out. When it is determined that the target really needs to go out according to these judgment conditions, the door lock is opened. If the door lock itself is open, no operation is performed on the switch state of the door lock. By setting the three judgment conditions with a progressive relationship, namely the first distance range, the second distance range and the first time range, the door lock can be opened only when it is determined that the target really needs to go out, avoiding the target passing by the door lock, staying in front of the door lock for a short time or staying in front of the door lock for a long time, and falsely triggering the door lock to open. The second distance range is a subset of the first distance range. The second distance range is set according to the activity range of the target to prepare for going out around the door lock, for example, [30cm, 100cm]. The first time range is set according to the length of time the target prepares for going out around the door lock, for example, [2S, 30S).
[0052] In one embodiment, step S102 includes:
[0053] Detecting the distance between the target object and the door lock by a second sensor;
[0054] Step S103 includes:
[0055] The residence time of the target object within the second distance range of the door lock is detected by the second sensor.
[0056] In application, the distance between the target and the door lock and the residence time of the target around the door lock can be detected by a second sensor arranged on the door body. The second sensor can be a part of the door lock or an external device connected to the door lock. The distance between the target and the door lock is detected by the second sensor, and then the distance is sent to the processor of the door lock, which determines whether the distance is within the second distance range. The second sensor can be an active sensor that actively emits a detection signal, such as a photoelectric proximity sensor, an active infrared sensor, an ultrasonic sensor, or a laser ranging sensor, and generates an induction signal after detecting the detection signal reflected by the human body. Specifically, the second sensor can be a laser ranging sensor.
[0057] In one embodiment, before step S102, the following steps are included:
[0058] receiving a second distance range setting instruction sent by a user;
[0059] Setting the second distance range according to the second distance range setting instruction;
[0060] Before step S103, the following steps are included:
[0061] receiving a first time range setting instruction sent by a user;
[0062] According to the first time range setting instruction, the first time range is set.
[0063] In the application, the second distance range and the first time range can be customized by the user according to actual needs or the default settings of the door lock when it leaves the factory can be used. The way in which the door lock receives the second distance range setting instruction and the first time range setting instruction can be the same as the way in which the door lock receives the first distance range setting instruction, which will not be repeated here.
[0064] like Figure 2 As shown, in one embodiment, after step S101, the method further includes:
[0065] Step S105: When the target object is not within the first distance range of the door lock, the door lock is not opened.
[0066] In the application, when the target object is not within the first distance range of the door lock, it is determined that the target object has no intention of going out, and the door lock is not opened and maintained closed.
[0067] like Figure 3 As shown, in one embodiment, after step S103, the method further includes:
[0068] Step S106: When the target object stays within the second distance range of the door lock for a period of time within a second time range, the door lock is not opened, and the upper limit value of the second time range is less than the lower limit value of the first time range.
[0069] In the application, when the distance between the target object and the door lock satisfies the first distance range and the second distance range respectively, but the stay time is within the second time range, it can be determined that the target object has no need to go out, but just stays in front of the door lock for a short time, and the door lock is not opened at this time. The upper limit of the second time range is set to a shorter time according to actual needs, for example, 1S, and correspondingly, the second time range can be (0S, 1S).
[0070] In one embodiment, before step S106, the following steps are included:
[0071] receiving a second time range setting instruction sent by a user;
[0072] The second time range is set according to the second time range setting instruction.
[0073] In the application, the second time range can be customized by the user according to actual needs or the default setting of the door lock when it leaves the factory can be adopted. The way in which the door lock receives the second time range setting instruction can be the same as the way in which the door lock receives the first distance range setting instruction, which will not be repeated here.
[0074] like Figure 4 As shown, in one embodiment, after step S102, the method further includes:
[0075] Step S107: When the target object is within a third distance range of the door lock, the door lock is not opened, and the upper limit value of the third distance range is less than the lower limit value of the second distance range.
[0076] In the application, the upper limit of the third distance range is set to be smaller than the lower limit of the second distance range. When the target is within the third distance range of the door lock, it indicates that the target is close to the door lock. It may be standing at the door and looking outside (for example, looking at the peephole), or it may be passing by the door without the need to go out. Therefore, the door lock is not opened. The third distance range is set with reference to the lower limit of the second distance range, for example, (0cm, 20cm).
[0077] In one embodiment, before step S107, the following steps are included:
[0078] receiving a third distance range setting instruction sent by a user;
[0079] The third distance range is set according to the third distance range setting instruction.
[0080] In the application, the third distance range can be customized by the user according to actual needs or the default setting of the door lock when it leaves the factory can be adopted. The way in which the door lock receives the third distance range setting instruction can be the same as the way in which the door lock receives the first distance range setting instruction, which will not be repeated here.
[0081] like Figure 5 As shown, in one embodiment, the door lock control method provided by the embodiment of the present application further includes the following steps S108 to S111:
[0082] Step S108: When the door lock is opened, detect whether the target object in the room is outside the first distance range of the door lock.
[0083] In the application, for the application scenario where the door lock is open and the target is indoors, it is necessary to determine whether the target still needs to go out. If not, the door lock needs to be closed to ensure access security. The first sensor can be used to detect whether the target is outside the first distance range of the door lock. In the first application scenario of the first sensor, when the first sensor does not sense the target, it can be considered that the target is outside the first distance range of the door lock; in the second application scenario of the first sensor, the first sensor can detect the distance between the target and the door lock, and then send the distance to the processor of the door lock, which determines whether the distance is outside the first distance range.
[0084] Step S109: when the target object is outside the first distance range of the door lock, detecting the distance between the target object and the door lock;
[0085] Step S110: when the target object is within the fourth distance range of the door lock, detecting the residence time of the target object within the fourth distance range of the door lock, wherein the lower limit value of the fourth distance range is greater than the upper limit value of the second distance range;
[0086] Step S111: When the residence time of the target object within the fourth distance range of the door lock is within the third time range, closing the door lock, and the lower limit value of the third time range is greater than the upper limit value of the first time range.
[0087] In the application, when the target object is outside the first distance range of the door lock, it can be preliminarily determined that the target object has no intention to go out, but in order to further determine, it is necessary to further detect the distance between the target object and the door lock and the residence time around the door lock to further determine the target object's intention to go out. When it is determined based on these judgment conditions that the target object does not really need to go out, the door lock is closed. If the door lock itself is closed, no operation is performed on the switch state of the door lock. By setting the first distance range, the fourth distance range and the third time range, three judgment conditions with a progressive relationship, the door lock can be closed only when it is determined that the target object does not really need to go out, avoiding the door lock from being mistakenly triggered to close when the target object still needs to go out, causing the door lock to be opened again, and by automatically closing the door lock when it is determined that the user does not really need to go out, access control security can be guaranteed. The lower limit value of the fourth distance range is greater than the upper limit value of the second distance range, which is a longer distance. The fourth distance range is set according to the activity range of the target object outside the door lock when it does not need to go out, for example, (100cm, +∞). The lower limit of the third time range is greater than the upper limit of the first time range, which is a longer time length. The third time range is set according to the time length of the target object's activity range outside the door lock when it does not need to go out, for example, (30S, +∞).
[0088] In one embodiment, before step S110, the following steps are included:
[0089] receiving a fourth distance range setting instruction sent by a user;
[0090] Setting the fourth distance range according to the fourth distance range setting instruction;
[0091] Before step S111, the following steps are included:
[0092] receiving a third time range setting instruction sent by a user;
[0093] The third time range is set according to the third time range setting instruction.
[0094] In the application, the fourth distance range and the third time range can be customized by the user according to actual needs or the default settings of the door lock when it leaves the factory can be used. The way in which the door lock receives the fourth distance range setting instruction and the third time range setting instruction can be the same as the way in which the door lock receives the first distance range setting instruction, which will not be repeated here.
[0095] like Figure 6 As shown, a schematic diagram of the distance range around a door lock is shown as an example.
[0096] The door lock control method provided in the embodiment of the present application can automatically open the door lock when it is detected that the target object has a need to go out, and automatically close the door lock when it is detected that the target object has no need to go out, without the need for any manual operation.
[0097] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0098] The embodiment of the present application also provides a door lock control device, which is applied to a door lock, and the door lock control device is used to execute the method steps in the above-mentioned door lock control method embodiment. The door lock control device can be a virtual appliance in the door lock, which is run by the processor of the door lock, or it can be the door lock itself.
[0099] like Figure 7 As shown, the door lock control device 100 provided in the embodiment of the present application includes:
[0100] The first detection unit 101 is used to detect whether a target object in the room is within a first distance range of the door lock when the door lock is closed;
[0101] A second detection unit 102, configured to detect the distance between the target object and the door lock when the target object is within a first distance range of the door lock;
[0102] A third detection unit 103, configured to detect a residence time of the target object within the second distance range of the door lock when the target object is within the second distance range of the door lock;
[0103] The control unit 104 is configured to unlock the door lock when the target object stays within the second distance range of the door lock for a period of time within a first time range.
[0104] In one embodiment, the door lock control device further includes:
[0105] A receiving unit, configured to receive a first distance range setting instruction sent by a user;
[0106] The parameter setting unit is used to set the first distance range according to the first distance range setting instruction.
[0107] In one embodiment, the receiving unit is further configured to receive a second distance range setting instruction sent by a user;
[0108] The parameter setting unit is further used to set the second distance range according to the second distance range setting instruction;
[0109] The receiving unit is further used to receive a first time range setting instruction sent by a user;
[0110] The parameter setting unit is further used to set the first time range according to the first time range setting instruction.
[0111] In one embodiment, the control unit is further configured to not unlock the door lock when the target object is not within a first distance range of the door lock.
[0112] In one embodiment, the control unit is also used to not open the door lock when the target object stays within a second distance range of the door lock within a second time range, and the upper limit value of the second time range is less than the lower limit value of the first time range.
[0113] In one embodiment, the receiving unit is further configured to receive a second time range setting instruction sent by a user;
[0114] The parameter setting unit is further used to set the second time range according to the second time range setting instruction.
[0115] In one embodiment, the control unit is further used to not open the door lock when the target object is within a third distance range of the door lock, and the upper limit value of the third distance range is less than the lower limit value of the second distance range.
[0116] In one embodiment, the receiving unit is further configured to receive a third distance range setting instruction sent by a user;
[0117] The parameter setting unit is further used to set the third distance range according to the third distance range setting instruction.
[0118] In one embodiment, the first detection unit is further used to detect whether a target object in the room is outside a first distance range of the door lock when the door lock is opened;
[0119] The second detection unit is further used to detect the distance between the target object and the door lock when the target object is outside the first distance range of the door lock;
[0120] a third detection unit, further configured to detect a residence time of the target object within a fourth distance range of the door lock when the target object is within a fourth distance range of the door lock, wherein a lower limit value of the fourth distance range is greater than an upper limit value of the second distance range;
[0121] The control unit is also used to close the door lock when the target object stays within the fourth distance range of the door lock within a third time range, and the lower limit value of the third time range is greater than the upper limit value of the first time range.
[0122] In one embodiment, the receiving unit is further configured to receive a fourth distance range setting instruction sent by a user;
[0123] The parameter setting unit is further used to set the fourth distance range according to the fourth distance range setting instruction;
[0124] The receiving unit is further used to receive a third time range setting instruction sent by a user;
[0125] The parameter setting unit is further used to set the third time range according to the third time range setting instruction.
[0126] In application, each unit in the door lock control device may be a software program unit, or may be implemented by different logic circuits integrated in a processor, or may be implemented by multiple distributed processors.
[0127] like Figure 8 As shown, the embodiment of the present application also provides a door lock 200, including: at least one processor 201 ( Figure 8 Only one processor is shown in the figure), a memory 202, a computer program 203 stored in the memory 202 and executable on at least one processor 201, a first sensor 204 and a second sensor 205, and when the processor 201 executes the computer program 203, the steps in the above-mentioned door lock control method embodiments are implemented.
[0128] In the application, the door lock may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 8This is only an example of a door lock and does not constitute a limitation of the door lock. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input and output devices, network access devices, etc. The input and output devices may include the aforementioned human-computer interaction devices, and may also include a display screen for displaying the working parameters of the door lock. The network access device may include a communication unit for the door lock to communicate with the user terminal.
[0129] In applications, the processor may be a central processing unit (CPU), which may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0130] In application, the memory may be an internal storage unit of the door lock in some embodiments, such as a hard disk or memory of the door lock. In other embodiments, the memory may also be an external storage device of the door lock, such as a plug-in hard disk equipped on the door lock, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. The memory may also include both an internal storage unit of the door lock and an external storage device. The memory is used to store an operating system, an application program, a boot loader (Boot Loader), data, and other programs, such as program code of a computer program. The memory may also be used to temporarily store data that has been output or is to be output.
[0131] In applications, the display screen can be a thin film transistor liquid crystal display (TFT-LCD), a liquid crystal display (LCD), an organic electroluminesence display (OLED), a quantum dot light emitting diode (QLED) display screen, a seven-segment or eight-segment digital tube, etc.
[0132] In the application, the communication unit can be set to any device that can directly or indirectly perform long-distance wired or wireless communication with the user terminal according to actual needs. For example, the communication unit can provide communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth, Zigbee, mobile communication networks, global navigation satellite systems (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to network equipment. The communication unit may include an antenna, and the antenna may have only one array element or an antenna array including multiple array elements. The communication unit can receive electromagnetic waves through the antenna, frequency modulate and filter the electromagnetic wave signal, and send the processed signal to the processor. The communication unit can also receive the signal to be sent from the processor, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0133] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0134] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0135] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various door lock control method embodiments can be implemented.
[0136] An embodiment of the present application provides a computer program product. When the computer program product is run on a door lock, the door lock can implement the steps in the above-mentioned embodiments of the door lock control method.
[0137] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the door lock, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0138] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0139] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0140] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0142] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A door lock control method, characterized in that: include: When the door lock is closed, detecting whether the target object in the room is within the first distance range of the door lock to preliminarily determine whether the target object intends to go out; When the target object is within a first distance range of the door lock, it is preliminarily determined that the target object intends to go out, and the distance between the target object and the door lock is detected; When the target object is within a second distance range of the door lock, detecting the residence time of the target object within the second distance range of the door lock to further determine whether the target object intends to go out, the second distance range being a subset of the first distance range; When the target object stays within the second distance range of the door lock for a period of time within the first time range, it is determined that the target object does have a need to go out, and the door lock is unlocked; When the target object is within the third distance range of the door lock, it indicates that the target object has no need to go out, and the door lock is not opened, and the upper limit value of the third distance range is less than the lower limit value of the second distance range; When the door lock is opened, detecting whether the target object in the room is outside the first distance range of the door lock to preliminarily determine whether the target object intends to go out; When the target object is outside the first distance range of the door lock, it is preliminarily determined that the target object has no intention of going out, and the distance between the target object and the door lock is detected; When the target object is within a fourth distance range of the door lock, detecting the residence time of the target object within the fourth distance range of the door lock to further determine whether the target object intends to go out, and the lower limit value of the fourth distance range is greater than the upper limit value of the second distance range; When the target object stays within the fourth distance range of the door lock for a time within the third time range, it is determined that the target object does not need to go out, the door lock is closed, and the lower limit value of the third time range is greater than the upper limit value of the first time range.
2. The door lock control method according to claim 1, characterized in that: After the detection of whether the target object in the room is within the first distance range of the door lock, the method further includes: When the target object is not within the first distance range of the door lock, the door lock is not opened.
3. The door lock control method according to claim 1, characterized in that: After detecting the residence time of the target object within the second distance range of the door lock, the method further includes: When the target object stays within the second distance range of the door lock for a period of time within a second time range, the door lock is not opened, and the upper limit value of the second time range is less than the lower limit value of the first time range.
4. The door lock control method according to claim 1, characterized in that: The detecting whether the target object in the room is within the first distance range of the door lock includes: Detecting by a first sensor whether a target object in the room is within a first distance range of the door lock; The detecting the distance between the target object and the door lock comprises: Detecting the distance between the target object and the door lock by a second sensor; The detecting the residence time of the target object within the second distance range of the door lock includes: The residence time of the target object within the second distance range of the door lock is detected by the second sensor.
5. The door lock control method according to claim 4, characterized in that: The first sensor is an infrared sensor, and the second sensor is a laser ranging sensor.
6. A door lock control device, characterized in that: include: A first detection unit is used to detect whether a target object in the room is within a first distance range of the door lock when the door lock is closed, so as to preliminarily determine whether the target object intends to go out; A second detection unit is used to preliminarily determine that the target object has an intention to go out when the target object is within a first distance range of the door lock, and detect the distance between the target object and the door lock; a third detection unit, configured to detect, when the target object is within a second distance range of the door lock, a residence time of the target object within the second distance range of the door lock, so as to further determine whether the target object intends to go out, the second distance range being a subset of the first distance range; A control unit, configured to determine that the target object does have a need to go out, and unlock the door lock when the target object stays within the second distance range of the door lock for a period of time within the first time range; The control unit is further configured to, when the target object is within a third distance range of the door lock, indicate that the target object has no need to go out, and not unlock the door lock, and an upper limit value of the third distance range is less than a lower limit value of the second distance range; The first detection unit is further used to detect whether the target object in the room is outside the first distance range of the door lock when the door lock is opened, so as to preliminarily determine whether the target object intends to go out; The second detection unit is further configured to, when the target object is outside the first distance range of the door lock, preliminarily determine that the target object has no intention to go out, and detect the distance between the target object and the door lock; The third detection unit is further used to detect the residence time of the target object in the fourth distance range of the door lock when the target object is in the fourth distance range of the door lock, so as to further determine whether the target object has an intention to go out, and the lower limit value of the fourth distance range is greater than the upper limit value of the second distance range; The control unit is also used to determine that the target object does not have the need to go out and close the door lock when the residence time of the target object within the fourth distance range of the door lock is within the third time range, and the lower limit value of the third time range is greater than the upper limit value of the first time range.
7. A door lock, characterized in that: The method comprises a first sensor, a second sensor, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the door lock control method as claimed in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the door lock control method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Smart lock opening method based on human body infrared sensing
CN108830988A
Intelligent door lock control method and device, computer equipment and storage medium
CN111508107A