A wake-up method, an electronic device, and a computer-readable storage medium

By introducing a PIR detector, a TOF sensor, and a microphone into the smart lock, and combining this with an MCU to optimize the wake-up process, the system can intelligently determine the wake-up timing, thus solving the problem of invalid wake-ups caused by neighbors entering or leaving the lock and extending the smart lock's battery life.

CN116206386BActive Publication Date: 2025-12-02HUAWEI DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111448823.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2025-12-02
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

Ineffective wake-up of smart locks when neighbors enter or leave leads to increased power consumption, and existing technologies have not been able to effectively solve this problem.

Method used

By introducing a passive infrared PIR detector, a time-of-flight (TOF) sensor, a microphone, and a microcontroller unit (MCU) into the smart door lock, and combining the multimedia subsystem and the WIFI subsystem, the wake-up process is optimized. The microphone is used to collect sound signals and the detection results of the TOF sensor to intelligently determine the wake-up timing and reduce invalid wake-ups.

Benefits of technology

It effectively reduces power consumption caused by invalid wake-ups and extends the battery life of smart door locks, especially avoiding unnecessary full-machine wake-ups when neighbors enter or leave.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116206386B_ABST
    Figure CN116206386B_ABST
Patent Text Reader

Abstract

This application relates to a wake-up method, an electronic device, and a computer-readable storage medium. The electronic device includes: a PIR detector for detecting infrared radiation from the space surrounding a door, and a microphone for acquiring sound signals; when the MCU, TOF sensor, and target device are in a sleep state, the MCU is woken up when the PIR detector detects infrared radiation within a preset wavelength range or the TOF sensor acquires a sound signal; the MCU is used to wake up the TOF sensor after being woken up; the TOF sensor is used to determine, after being woken up, whether a moving object is detected within a preset range in the space surrounding the door; the MCU is also used to, after being woken up, if one or more of the sound signal acquired by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor meet a first preset condition, prohibit the wake-up of the target device, thereby saving power consumption caused by invalid wake-ups.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a wake-up method, electronic device, and computer-readable storage medium. Background Technology

[0002] Smart locks are becoming increasingly common, bringing great convenience to users. The latest smart locks integrate functions such as screens, facial recognition, and peepholes. However, these functions pose a challenge to the power consumption of smart locks. Taking a smart lock without a peephole and camera as an example, the battery life of 8 dry cell batteries can reach 18 months, while after adding a peephole and camera, the battery life of the smart lock is only 3 to 5 months.

[0003] In urban homes, many doors are close together. In such cases, a neighbor's exit or entry can easily trigger a full-scale wake-up of the smart lock. This ineffective wake-up is common throughout the smart lock's lifespan, leading to increased power consumption. To mitigate this impact, current smart lock wake-up processes involve keeping the passive infrared (PIR) detector constantly active. When the PIR detector detects a person approaching, it wakes up the microcontroller unit (MCU), which simultaneously activates the Time-of-Flight (TOF) ranging system. Only when the distance between the person and the lock is less than 1 meter does a full-scale wake-up occur, activating the multimedia system and Wi-Fi. However, this wake-up scheme still doesn't completely eliminate the impact of ineffective wake-ups during neighbor exits or entry on the lock's power consumption. Summary of the Invention

[0004] This application provides a wake-up method, an electronic device, and a computer-readable storage medium that can reduce power consumption caused by invalid wake-ups.

[0005] In a first aspect, this application provides an electronic device installed on a door, the electronic device comprising: a passive infrared PIR detector, a flight ranging (TOF) sensor, a microphone, a microcontroller unit (MCU), and a target device, the target device comprising at least one of a multimedia subsystem and a WIFI subsystem;

[0006] A PIR detector is used to detect infrared radiation from the space surrounding the door; and wakes up the MCU when infrared radiation within a preset wavelength range is detected while the MCU, TOF sensor and target device are in sleep mode.

[0007] The microphone is used to collect sound signals and send them to the MCU; it also wakes up the MCU when a sound signal is collected while the MCU, TOF sensor, and target device are in sleep mode.

[0008] The MCU is used to wake up the TOF sensor after it has been activated.

[0009] A TOF sensor is used to determine whether a moving object is detected within a preset range of space around the door after being woken up.

[0010] The MCU is also used to prevent the target device from being woken up if, after being woken up, one or more of the following conditions are met: the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor.

[0011] Based on this scheme, by adding a microphone to collect sound signals, and combining the status of the electronic device with the detection results of the TOF sensor, the wake-up process of the electronic device can be optimized, and the timing of the target device being woken up can be determined more intelligently, thereby saving the power consumption of the electronic device.

[0012] In one possible design, the first precondition includes any one of the following (1) to (4):

[0013] (1) The electronic device is turned on, and the TOF sensor does not detect any moving object in the preset range of the space around the door before the electronic device is turned on. This design can avoid the invalid wake-up process caused by family members leaving the house, thereby saving the power consumption of the electronic device.

[0014] (2) The electronic device turns on within a preset time after the TOF sensor detects a moving object in a preset range of space around the door. This design can avoid invalid wake-up process caused by family members entering the door, thereby saving power consumption of electronic devices.

[0015] (3) The sound signal collected by the microphone is the sound of the door opening. The electronic device is not turned on when the microphone collects the sound of the door opening. Before the microphone collects the sound of the door opening, the TOF sensor does not detect any moving objects in the preset range of the space around the door. This design can avoid the invalid wake-up process caused by the neighbor leaving the house, thereby saving the power consumption of the electronic device.

[0016] (4) The TOF sensor detects a moving object within a preset range of the space surrounding the door, and the microphone collects a sound signal indicating that the door is opening within a preset time after the TOF sensor detects the moving object within the preset range of the space surrounding the door. The electronic device is not turned on when the microphone collects the sound of the door opening. This design can avoid invalid wake-up processes caused by neighbors entering the door, thereby saving power consumption of electronic devices.

[0017] In one possible design, the MCU is also used to: control the electronic device to turn on upon receiving a power-on command instructing it to do so; and control itself and the TOF sensor to enter a sleep state after the electronic device is turned off. This design can avoid an invalid wake-up process caused by family members entering the room, thereby saving power consumption of the electronic device.

[0018] In one possible design, the MCU is also used to: wake up the target device when one or more of the following conditions are met: the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor; the second preset condition includes: the TOF sensor detects a moving object within a preset range of the space around the door, and the microphone does not detect the door opening sound within a preset time after the TOF sensor detects the moving object within the preset range of the space around the door, and the electronic device is not turned on.

[0019] In one possible design, the MCU is also used to: after waking up the target device, if the microphone detects a door opening sound and the electronic device is turned on when the microphone detects a door closing sound, then control the target device and the MCU to enter a sleep state after the microphone detects a door closing sound. In this design, after confirming that the door is opened and then closed, the target device enters a sleep state, and then the microcontroller unit also enters a sleep state, thereby saving power consumption of the electronic device.

[0020] Secondly, this application provides a wake-up method applied to an electronic device installed on a door. The electronic device includes a passive infrared detector, a time-of-flight (TOF) sensor, a microphone, a microcontroller unit (MCU), and a target device. The target device includes at least one of a multimedia subsystem and a Wi-Fi subsystem. The method includes: after being woken up, the MCU wakes up the TOF sensor to determine whether a moving object is detected within a preset range in the space surrounding the door; the MCU is woken up when the PIR detector detects infrared radiation from the space surrounding the door, and when the MCU, TOF sensor, and target device are in a sleep state, it detects infrared radiation within a preset wavelength range; or the microphone is woken up when it collects a sound signal while the MCU, TOF sensor, and target device are in a sleep state; and the MCU prevents the target device from being woken up if one or more of the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor meet a first preset condition.

[0021] In one possible design, the first precondition includes any one of the following (1) to (4):

[0022] (1) The electronic device is turned on, and the TOF sensor does not detect any moving object in the preset range of the space around the door before the electronic device is turned on. This design can avoid the invalid wake-up process caused by family members leaving the house, thereby saving the power consumption of the electronic device.

[0023] (2) The electronic device turns on within a preset time after the TOF sensor detects a moving object in a preset range of space around the door. This design can avoid invalid wake-up process caused by family members entering the door, thereby saving power consumption of electronic devices.

[0024] (3) The sound signal collected by the microphone is the sound of the door opening. The electronic device is not turned on when the microphone collects the sound of the door opening. Before the microphone collects the sound of the door opening, the TOF sensor does not detect any moving objects in the preset range of the space around the door. This design can avoid the invalid wake-up process caused by the neighbor leaving the house, thereby saving the power consumption of the electronic device.

[0025] (4) The TOF sensor detects a moving object within a preset range of the space surrounding the door, and the microphone collects a sound signal indicating that the door is opening within a preset time after the TOF sensor detects the moving object within the preset range of the space surrounding the door. The electronic device is not turned on when the microphone collects the sound of the door opening. This design can avoid invalid wake-up processes caused by neighbors entering the door, thereby saving power consumption of electronic devices.

[0026] In one possible design, the method further includes: after receiving an on command to instruct the electronic device to be turned on, the MCU controls the electronic device to turn on; after the electronic device is turned off, the MCU controls itself and the TOF sensor to enter a sleep state.

[0027] In one possible design, the method further includes: the MCU determining that one or more of the following conditions are met: the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor, and then waking up the target device; the second preset condition includes: the TOF sensor detects a moving object within a preset range of the space around the door, and the microphone does not detect a door opening sound within a preset time after the TOF sensor detects the moving object within the preset range of the space around the door, and the electronic device is not turned on.

[0028] In one possible design, after the MCU wakes up the target device, the method further includes: when the electronic device is turned on when the microphone picks up the sound of a door opening and the sound signal picked up by the microphone is the sound of a door opening, the MCU controls the target device and itself to enter a sleep state after the sound signal picked up by the microphone is the sound of a door closing.

[0029] Thirdly, this application also provides a wake-up device, including the module or unit described above for performing the methods in the second aspect and any possible design in the second aspect.

[0030] Fourthly, this application also provides a wake-up device, including a memory and a microcontroller unit, the microcontroller unit being coupled to the memory for executing computer program instructions stored in the memory to implement the methods in the second aspect and any possible design in the second aspect.

[0031] Fifthly, this application provides a computer-readable storage medium comprising a computer program that, when executed on an electronic device, causes the electronic device to perform the methods described in the second aspect and any possible design of the second aspect.

[0032] For the technical effects that the solutions in the second to fifth aspects mentioned above may achieve, please refer to the above description of the technical effects that the solutions in the first aspect and any possible design may achieve, which will not be repeated here. Attached Figure Description

[0033] Figure 1 This is a schematic diagram of a scenario provided for an embodiment of this application;

[0034] Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;

[0035] Figure 3 A flowchart illustrating the wake-up method provided in an embodiment of this application;

[0036] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0037] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0038] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0039] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0040] Figure 1 This is a schematic diagram of a scenario provided for an embodiment of this application. For example... Figure 1As shown, this scenario includes an electronic device 100. The electronic device 100 may include a smart lock. The electronic device 100 can be a physical device or a logical device. The logical device can be understood as a logical unit / module with the functions of a smart lock, without limitations on the type or performance of the hardware device. For example, the logical device may be one or more logical units / modules from one or more hardware devices.

[0041] In this embodiment of the application, when the electronic device 100 detects infrared radiation from the space surrounding the door or collects sound signals, it can first wake up the MCU so that it can further determine whether to wake up the target device.

[0042] like Figure 1 The scenario shown may also include a cloud server 200. The electronic device 100 can interact with the cloud server 200 through the WIFI subsystem. For example, the electronic device 100 can send acquired image data or video data to the server 200 and store it in the server 200.

[0043] For example, Figure 2 A hardware structure diagram of the electronic device in the wake-up method provided in an embodiment of this application is shown. Figure 2 As shown, the electronic device 100 may include an MCU 110, a communication module 120, a speaker 130A, a microphone 130B, a sensor module 140, a camera 150, a display screen 160, a doorbell / press component 170, a multimedia subsystem 180, a PIR detector 190A, and a TOF sensor 190B, etc. The communication module 120 may include a WIFI wireless subsystem 120A, a Bluetooth module 120B, an NFC module 120C, etc., and the sensor module 140 may include a fingerprint sensor 140A and a touch sensor 140B.

[0044] The MCU110 can connect to components such as the communication module 120, speaker 130A, microphone 130B, sensor module 140, camera 150, display screen 160, doorbell / pressing component 170, multimedia subsystem 180, PIR detector 190A, and TOF sensor 190B. The MCU110 can receive signals (or data) sent by these components and perform corresponding processing.

[0045] The communication module 120 can be a wireless communication module, which can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN), Bluetooth (BT), and near field communication (NFC). In this embodiment, the electronic device can send image, video, and other data to a cloud server via the wireless fidelity (WIFI) subsystem 120A so that the data can be stored on the cloud server.

[0046] Electronic device 100 can realize audio functions through speaker 130A, microphone 130B, etc. In this embodiment, speaker 130A and microphone 130B can be used to communicate with the user inside the door. In this embodiment, microphone 130B can collect sound signals, and wake up the MCU when the microphone collects sound signals while the MCU, TOF sensor and target device are in sleep mode.

[0047] The fingerprint sensor 140A is used to collect fingerprints. When the electronic device 100 is a smart door lock, the characteristics of the collected fingerprints can be used to achieve fingerprint unlocking. It should be understood that, in this embodiment, the electronic device 100 can collect and store the fingerprint information of at least one user.

[0048] Touch sensor 140B, also known as a "touch panel," can be located on display screen 160. The touch sensor 140B and display screen 160 together form a touchscreen, also known as a "touch display." Touch sensor 140B detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the MCU to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 160. In other embodiments, touch sensor 140B may also be located on the surface of electronic device 100, in a different position than display screen 160.

[0049] Sensor module 140 may further include vibration sensor B. The vibration sensor can detect vibration signals and transmit the detected vibration signals to MCU 110. MCU 110 can then determine whether it is a visitor knocking based on a pre-set knocking vibration waveform compared to the received vibration signal. The pre-set knocking vibration waveform can be stored locally or on a server. Optionally, when a comparison is needed, electronic device 100 can obtain the knocking vibration waveform from the server via communication module 120.

[0050] Camera 150 is used to capture images or videos. For example, when a visitor triggers the doorbell 170, the doorbell 170 can notify the MCU 110 of the trigger event, and then the MCU 110 can capture the image through the camera; for example, it can capture the facial information of the user who triggered the doorbell.

[0051] The display screen 160 can be used to display a digital interface, where users can enter numbers to generate a password. The door lock can then be opened using this password. The display screen 160 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In this embodiment, the display screen 160 is located inside the door, allowing users to monitor the situation outside the door from inside their home.

[0052] The doorbell / pressing component 170 can be integrated as a component within the electronic device. Alternatively, the electronic device 100 may not include the doorbell 170, but may be communicatively connected to the doorbell (e.g., wired or wireless communication). Touching the doorbell can trigger the electronic device to acquire visual information.

[0053] The multimedia subsystem 180 may include a camera and a peephole function, wherein the camera can capture video data or image data of the external space of the door, and the peephole function is used to display the video data or image data captured by the camera on the display screen 160.

[0054] The PIR detector 190A can detect infrared radiation from the space surrounding the door, and wake up the MCU110 when it detects infrared radiation within a preset wavelength range while the MCU110, TOF sensor 190B, and target device are in sleep mode.

[0055] The TOF sensor 190B can be used to detect whether a moving object is detected within a preset range of the space surrounding a door.

[0056] MCU110 is the control unit of the entire electronic device. In this embodiment, MCU110 can be in sleep mode when microphone 130B does not collect sound signals and PIR detector 190A does not detect infrared radiation within a preset wavelength range, and be woken up by microphone 130B when microphone 130B collects sound signals, or be woken up by PIR detector 190A when PIR detector 190A detects infrared radiation within a preset wavelength range.

[0057] The MCU110 can also wake up the TOF sensor 190B after being woken up, so that the TOF sensor 190B can determine whether a moving object is detected within a preset range of the space around the door.

[0058] MCU110 can also prevent the wake-up of a target device, including at least one of multimedia subsystem 180 and WIFI subsystem 120A, if it determines that one or more of the sound signal collected by microphone 130B, the on / off state of electronic device and the detection result of TOF sensor 190B meet a first preset condition.

[0059] Understandable, Figure 2 The illustrated structure does not constitute a specific limitation on the electronic device 100. In some embodiments of this application, the electronic device 100 may include... Figure 2 The diagram shows more or fewer components, or combinations of components, or separate components, or different arrangements of components. The components shown can be implemented in hardware, software, or a combination of both.

[0060] For example, Figure 3 A flowchart illustrating a wake-up method provided in an embodiment of this application. This wake-up method can be applied to... Figure 2 The electronic device 100 shown is mounted on a door. This electronic device 100 may include a PIR detector, a Time-of-Flight (TOF) sensor, a microphone, a microcontroller unit (MCU), and a target device. The target device includes at least one of a multimedia subsystem and a Wi-Fi subsystem, and its specific structure may be as follows: Figure 2 As shown. In Figure 2 Based on the structure shown, as Figure 3 As shown, the method may include the following steps:

[0061] S301, the PIR detector detects infrared radiation from the space surrounding the door.

[0062] In S301, the PIR detector can detect the presence of a person in the space surrounding the door by receiving infrared radiation from the surrounding space. If the PIR detector detects infrared radiation within a preset wavelength range in the space surrounding the door—for example, the preset wavelength range is the wavelength range of infrared radiation emitted by the human body, such as 5.6–15 μm—and detects infrared radiation with a wavelength of 9 μm, it means that the PIR detector has detected a person. If no infrared radiation within the preset wavelength range is detected in the space surrounding the door, then no person is present in the space surrounding the door.

[0063] In this embodiment, some components of the electronic device, such as the MCU, TOF sensor, multimedia subsystem, and WIFI subsystem, can be in a sleep state to save power consumption when these components are not needed. The sleep state can also be called the power-off state. The PIR detector can always be in an active state so that it can detect infrared radiation in the external space of the door at any time, thereby waking up other components in the electronic device (such as one or more of the MCU, TOF sensor, multimedia subsystem, and WIFI subsystem) in a timely manner when needed.

[0064] S302, when the PIR detector detects infrared radiation within a preset wavelength range while the MCU, TOF sensor, and target device are in sleep mode, it wakes up the MCU.

[0065] When the PIR sensor detects infrared radiation within a preset wavelength range, it can determine that there is a person in the space around the door and then wake up the MCU. At this time, the TOF sensor and the target device are still in a sleep state. Then the MCU further determines whether it is necessary to wake up the target device. In this way, if it is determined that the target device needs to be woken up, then the target device is woken up. If it is determined that the target device does not need to be woken up, the target device remains in a sleep state, thereby saving the power consumption of electronic devices.

[0066] S303, the microphone collects sound signals.

[0067] In this embodiment of the application, a microphone (also known as a mic) can also be called a transmitter or a transmitter.

[0068] S304, the microphone sends the collected sound signal to the MCU.

[0069] In this embodiment, the microphone can also be kept in a working state to continuously collect sound signals, so as to wake up other components in the electronic device (such as one or more of the MCU, TOF sensor, multimedia subsystem and WIFI subsystem) in a timely manner when it is necessary to wake up other components in the electronic device.

[0070] S305 wakes up the MCU when the microphone picks up a sound signal while the MCU, TOF sensor, and target device are in sleep mode.

[0071] When the microphone picks up a sound signal, it wakes up the MCU. At this time, the TOF sensor and the target device are still in sleep mode. Then the MCU further determines whether the target device needs to be woken up. If it is determined that the target device needs to be woken up, then the target device is woken up. If it is determined that the target device does not need to be woken up, the target device remains in sleep mode, thereby saving power consumption of electronic devices.

[0072] It should be noted that S301-S302 and S303-S305 can be executed in any order. S301-S302 can be executed before S303-S305, or after any or more steps in S303-S305.

[0073] S306: After the MCU is woken up, the MCU wakes up the TOF sensor.

[0074] In S306, after the MCU is woken up, the MCU can wake up the TOF sensor immediately, or it can wake up the TOF sensor within a preset time after the MCU is woken up.

[0075] When the TOF sensor is activated, the target device is still in a dormant state. The MCU can then determine whether to wake up the target device by checking if someone approaches the door using the TOF sensor.

[0076] S307, after the TOF sensor is activated, the TOF sensor determines whether a moving object is detected within a preset range of the space surrounding the door.

[0077] Here, the preset range can be a range where the distance to the TOF sensor is less than or equal to the preset distance. The preset distance can be set according to actual needs, and this application does not limit it. For example, if the preset distance is set to 1m, when someone approaches the TOF sensor and the distance between the person and the TOF sensor is within 1m, the TOF sensor can detect that someone is approaching and then send the detection result to the MCU.

[0078] S308: After the MCU is woken up, if the MCU determines that one or more of the following conditions are met: the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor, the MCU shall prohibit the wake-up of the target device.

[0079] In this embodiment, by adding a microphone to collect sound signals, and combining the status of the electronic device with the detection results of the TOF sensor, the wake-up process of the electronic device can be optimized, and the timing of the target device being woken up can be determined more intelligently, thereby saving the power consumption of the electronic device.

[0080] The above S308 has multiple implementations, and several possible implementations are provided below.

[0081] In one possible implementation, the first preset condition includes: the electronic device is turned on, and the TOF sensor did not detect a moving object within a preset range of the space surrounding the door before the electronic device was turned on.

[0082] In this embodiment, the electronic device being turned on means that the user's own door is open. Before the electronic device is turned on, the TOF sensor does not detect any moving objects within a preset range around the door, which can be identified as a family member leaving home. In this scenario, the family member needs to open the electronic device from the inside to leave. In order to prevent the TOF from detecting someone within the preset range after the family member leaves home and causing the entire device to wake up, the target device can be prevented from waking up when the electronic device is turned on. This can avoid the invalid wake-up process caused by the family member leaving home, thereby saving the power consumption of the electronic device.

[0083] In another possible implementation, the first preset condition includes: the TOF sensor detects a moving object within a preset range of the space surrounding the door, and the electronic device is turned on within a preset time after the TOF sensor detects the moving object within the preset range of the space surrounding the door.

[0084] Among them, the unlocking method of electronic devices can be any one of facial recognition, password, fingerprint, or key.

[0085] In this embodiment, the TOF sensor detects a moving object within a preset range of the space surrounding the door, indicating that a moving object is sufficiently close to the electronic device outside the door. Furthermore, if the electronic device is turned on after a preset time following the TOF sensor's detection of the moving object within the preset range, it can be determined that someone has turned on the electronic device from outside the door, thus identifying a family member entering the room. In this scenario, a family member can enter the room simply by turning on the electronic device from the outside, without needing to wake up the entire device. To prevent a family member entering the room from causing a full device wake-up, a preset time can be waited after the TOF sensor detects a moving object within the preset range of the space surrounding the door before determining whether the electronic device is turned on or has received an activation command. If the electronic device is turned on or has received an activation command within the preset waiting time, waking up the target device is prohibited. This avoids an invalid wake-up process caused by a family member entering the room, thereby saving power consumption of the electronic device.

[0086] In this embodiment, after receiving an instruction to turn on the electronic device, the microcontroller unit controls the electronic device to turn on. After a family member enters the door, the door will be closed, which will trigger the electronic device to turn off. After the electronic device turns off, the MCU controls itself and the TOF sensor to enter a sleep state. For example, the MCU can first control the TOF sensor to enter a sleep state, and then enter a sleep state itself, which can further save power consumption.

[0087] In another possible implementation, the first preset conditions include: the sound signal collected by the microphone is the sound of a door opening, and the electronic device is not turned on when the microphone collects the sound of the door opening, and the TOF sensor does not detect a moving object within a preset range of the space around the door before the microphone collects the sound of the door opening.

[0088] In this implementation, if the microphone detects a door opening sound and the electronic device is not powered on at the time of detection, it indicates that the user's neighbor is opening their door. Further, it's determined that the TOF sensor did not detect any moving object within a preset range around the door before the microphone detected the door opening sound, thus classifying it as a neighbor leaving the house. To prevent the entire device from waking up after the neighbor leaves when the TOF sensor detects a moving object within the preset range around the door, the device can be disabled when the microphone detects the door opening sound, the electronic device is not powered on at the time of detection, and there is no one within the preset range of the TOF sensor before the microphone detected the door opening sound. This avoids an invalid wake-up process caused by the neighbor leaving the house, thereby saving power consumption of the electronic device.

[0089] In one possible implementation, the first preset conditions include: the TOF sensor detects a moving object within a preset range of the space surrounding the door; the sound signal collected by the microphone after a preset time following the detection of the moving object by the TOF sensor within the preset range of the space surrounding the door is the sound of the door opening; and the electronic device is not turned on when the microphone collects the sound of the door opening.

[0090] In this embodiment, if the TOF sensor detects a moving object within a preset range of the space surrounding the door, it indicates that someone is approaching the electronic device outside the door. Furthermore, if the microphone picks up a door-opening sound within a preset time after the TOF sensor detects the moving object, and the electronic device is not turned on when the microphone picks up the door-opening sound, it can be determined that this is a neighbor entering the room. To avoid the TOF sensor detecting a person before the neighbor leaves and causing the entire device to wake up, a preset time can be waited after the TOF sensor detects the moving object within the preset range of the space surrounding the door. Then, it can be determined whether the microphone picks up a door-opening sound. If the microphone picks up a door-opening sound within the preset waiting time, and the electronic device is not turned on when the microphone picks up the door-opening sound, the target device can be prevented from waking up. This avoids invalid wake-up processes caused by a neighbor entering the room, thereby saving power consumption of the electronic device.

[0091] In some other embodiments, the above method may further include: the MCU determines that one or more of the following conditions are met: the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor, and wakes up the target device. The second preset condition includes: the TOF sensor detects a moving object within a preset range of the space around the door, and the microphone does not detect a door opening sound within a preset time after the TOF sensor detects the moving object within the preset range of the space around the door, and the electronic device is not turned on.

[0092] In this embodiment, the TOF sensor detects a moving object within a preset range of the space surrounding the door, indicating that someone is approaching the electronic device outside the door. Furthermore, if the electronic device does not receive an opening command within a preset time after the TOF sensor detects the moving object, the target device is activated. For example, the multimedia subsystem can be activated to provide the user with multimedia subsystem functions. For instance, when the camera and peephole functions are activated, the camera can collect video or image data of the external space of the door. When the peephole function is activated, the display screen on the inside of the door lights up and can display the video or image data of the external space of the door. Thus, the user of the electronic device can see the situation outside the door through the display screen to determine whether to open the door from the inside. Another example is activating the Wi-Fi subsystem, which can transmit the video or image data collected by the camera to the cloud for storage, allowing for future viewing of the video or image data.

[0093] Furthermore, after waking up the target device, if the microphone detects a door opening sound or the electronic device is turned on when the door opens, then after the microphone detects a door closing sound, the MCU controls both the target device and itself to enter a sleep state. For example, the MCU can first control the target device to enter a sleep state, and then control itself to enter a sleep state. In this way, when it is confirmed that the door has opened and then closed, the target device enters a sleep state, and then the microcontroller unit also enters a sleep state, thereby saving power consumption of the electronic device.

[0094] In this embodiment, by adding a microphone to collect sound signals, combined with the status of the electronic device and the detection results of the TOF sensor, the wake-up process of the electronic device is further optimized, and the timing of the target device being woken up is determined more intelligently, thereby saving the power consumption of the electronic device.

[0095] It should be noted that all or part of the embodiments provided in this application can be freely and arbitrarily combined with each other. The combined technical solutions are also within the scope of this application.

[0096] To achieve the functions of the methods provided in the embodiments of this application, the electronic device or the second electronic device may include a hardware structure and / or a software module, implementing the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a particular function is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0097] For example, Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4 As shown, the electronic device 400 includes: one or more microcontroller units 401; one or more memories 402; a PIR detector 403; one or more sensors 404; a multimedia subsystem 405; a WIFI subsystem 406; and one or more computer programs ( Figure 4 (Not shown in the image), the above-mentioned devices can be connected via one or more communication buses 407. For example, the electronic device 400 can be the smart door lock in the foregoing embodiments.

[0098] The aforementioned one or more sensors 404 include at least a TOF sensor. For specific functions of the TOF sensor, multimedia subsystem 405, and WIFI subsystem 406, please refer to the documentation for... Figure 2 The descriptions are repeated, so the details will not be elaborated.

[0099] The memory 402 stores one or more computer programs, which include instructions. The microcontroller unit 401 invokes the instructions stored in the memory 402, causing the microcontroller unit 401 to execute the wake-up method in the above embodiments via the PIR detector 403 and sensor 404, to disable or enable the multimedia subsystem 405 and the WIFI subsystem 406 to sleep or wake up. For example, when the electronic device 400 is a smart door lock, the microcontroller unit 401 invokes the instructions stored in the memory 402, causing the electronic device 400 to execute the wake-up method of any of the above embodiments.

[0100] In this application embodiment, the microcontroller 401 can be a general-purpose microcontroller, a digital signal microcontroller, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, and can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose microcontroller can be any conventional microcontroller. The steps of the methods disclosed in the embodiments of this application can be directly manifested as execution by the hardware microcontroller, or execution by a combination of hardware and software modules in the microcontroller. The software modules can be located in the memory 402. The microcontroller 401 reads the program instructions in the memory 402 and, in conjunction with its hardware, completes the steps of any of the above embodiments.

[0101] In this embodiment, memory 402 can be non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or it can be volatile memory, such as RAM. Memory can also be any other medium capable of carrying or storing desired program code in the form of instructions or data structures, and accessible by a computer, but is not limited thereto. The memory in this embodiment can also be a circuit or any other device capable of implementing storage functions, used to store instructions and / or data.

[0102] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0103] Based on the above embodiments, this application also provides a computer storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the method provided in the above embodiments.

[0104] This application also provides a computer program product, including instructions that, when run on a computer, cause the computer to execute the methods provided in the above embodiments.

[0105] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by instructions. These instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0106] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0107] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

Claims

1. An electronic device mounted on a door, characterized in that, The electronic device includes: a passive infrared PIR detector, a flight ranging (TOF) sensor, a microphone, a microcontroller unit (MCU), and a target device, wherein the target device includes at least one of a multimedia subsystem and a WIFI subsystem. The PIR detector is used to detect infrared radiation from the space surrounding the door; and when the MCU, the TOF sensor, and the target device are in a sleep state, the MCU is woken up when infrared radiation within a preset wavelength range is detected. The microphone is used to collect sound signals and send the collected sound signals to the MCU; and when the MCU, the TOF sensor and the target device are in a sleep state, the MCU is woken up when a sound signal is collected. The MCU is used to wake up the TOF sensor after being woken up; The TOF sensor is used to determine, after being woken up, whether a moving object is detected within a preset range of the space surrounding the door. The MCU is further configured to, upon being woken up, prevent the target device from being woken up if one or more of the following conditions are met: the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor; the first preset condition includes: the electronic device is turned on, and the TOF sensor did not detect a moving object within a preset range of the space surrounding the door before the electronic device was turned on; or, the TOF sensor detects a moving object within a preset range of the space surrounding the door, and the electronic device is turned on within a preset time period after the TOF sensor detects the moving object within the preset range of the space surrounding the door; or, the sound signal collected by the microphone is a door opening sound, the electronic device is not turned on when the microphone collects the door opening sound, and the TOF sensor did not detect a moving object within the preset range of the space surrounding the door before the microphone collects the door opening sound; or, the TOF sensor detects a moving object within a preset range of the space surrounding the door, and the sound signal collected by the microphone is a door opening sound within a preset time period after the TOF sensor detects the moving object within the preset range of the space surrounding the door, and the electronic device is not turned on when the microphone collects the door opening sound.

2. The electronic device according to claim 1, characterized in that, The MCU is also used for: Upon receiving an instruction to turn on the electronic device, the system controls the electronic device to turn on. After the electronic device is turned off, it controls itself and the TOF sensor to enter a sleep state.

3. The electronic device according to claim 1, characterized in that, The MCU is also used for: If one or more of the following conditions are met, namely the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor, the target device is woken up. The second preset condition includes: The TOF sensor detects a moving object within a preset range of the space surrounding the door, and after a preset time following the TOF sensor's detection of the moving object, the microphone does not detect a door opening sound, and the electronic device is not turned on.

4. The electronic device according to claim 3, characterized in that, The MCU is also used for: After waking up the target device, if the microphone detects a door opening sound and the electronic device is turned on when the sound signal detected by the microphone is a door opening sound, then after the sound signal detected by the microphone is a door closing sound, the target device and the MCU are controlled to enter a sleep state.

5. A wake-up method applied to an electronic device, said electronic device being mounted on a door, characterized in that, The electronic device includes a passive infrared PIR detector, a flight ranging (TOF) sensor, a microphone, a microcontroller unit (MCU), and a target device, wherein the target device includes at least one of a multimedia subsystem and a WIFI subsystem. The method includes: After being woken up, the MCU wakes up the TOF sensor so that the TOF sensor can determine whether a moving object is detected within a preset range of the space around the door. The MCU is woken up when the PIR detector detects infrared radiation from the space surrounding the door, and when the MCU, the TOF sensor, and the target device are in a sleep state, detects infrared radiation within a preset wavelength range; or when the microphone collects a sound signal when the MCU, the TOF sensor, and the target device are in a sleep state. If the MCU determines that one or more of the following conditions are met, namely the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor, the MCU shall prohibit the wake-up of the target device. The first preset condition includes: the electronic device is turned on, and the TOF sensor did not detect a moving object within a preset range of the space surrounding the door before the electronic device was turned on; or, the TOF sensor detected a moving object within a preset range of the space surrounding the door, and the electronic device is turned on within a preset time after the TOF sensor detected the moving object within the preset range of the space surrounding the door; or, the sound signal collected by the microphone is the sound of a door opening, the electronic device is not turned on when the microphone collected the sound of a door opening, and the TOF sensor did not detect a moving object within a preset range of the space surrounding the door before the microphone collected the sound of a door opening; or, the TOF sensor detected a moving object within a preset range of the space surrounding the door, and the sound signal collected by the microphone is the sound of a door opening within a preset time after the TOF sensor detected the moving object within the preset range of the space surrounding the door, and the electronic device is not turned on when the microphone collected the sound of a door opening.

6. The method according to claim 5, characterized in that, The method further includes: Upon receiving an instruction to turn on the electronic device, the MCU controls the electronic device to turn on. After the electronic device is turned off, the MCU controls itself and the TOF sensor to enter a sleep state.

7. The method according to claim 5, characterized in that, The method further includes: If the MCU determines that one or more of the following conditions are met, namely the sound signal collected by the microphone, the on / off state of the electronic device, and the detection result of the TOF sensor, the target device will be woken up. The second preset condition includes: The TOF sensor detects a moving object within a preset range of the space surrounding the door, and after a preset time following the TOF sensor's detection of the moving object, the microphone does not detect a door opening sound, and the electronic device is not turned on.

8. The method according to claim 7, characterized in that, After waking up the target device, the MCU also includes: The MCU turns on the electronic device when the microphone picks up the sound of a door opening and the sound signal picked up by the microphone is the sound of a door opening; and controls the target device and itself to enter a sleep state after the sound signal picked up by the microphone is the sound of a door closing.

9. A wake-up device, characterized in that, Includes modules or units for performing the method as described in any one of claims 5-8.

10. A wake-up device, characterized in that, It includes a memory and a microcontroller unit coupled to the memory for executing computer program instructions stored in the memory to implement the method as described in any one of claims 5-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 5-8.

Citation Information

Patent Citations

  • Wireless communication awakening method and device applied to intelligent lock, intelligent door lock and door

    CN108193951A

  • Human body sensing biological recognition intelligent lock

    CN110080621A

  • Intelligence lock system

    CN208088998U