Target object detection method and device, and intelligent door lock

By acquiring target reflection parameters in smart locks and using preset ranges and thresholds to determine the type of reflection source, the problem of false detection in smart locks is solved, achieving more accurate target object recognition and reduced power consumption.

CN115201830BActive Publication Date: 2026-05-12SHENZHEN LUMIUNITED TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN LUMIUNITED TECH CO LTD
Filing Date
2022-07-18
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Existing smart lock detection devices are prone to false detections, leading to unnecessary increases in power consumption and a decline in user experience.

Method used

By acquiring the target reflection parameters of the target area, the movement parameters of the reflection source are determined, and the type of reflection source is judged using preset ranges and thresholds, thus distinguishing between moving target objects and interference sources and reducing false detections.

Benefits of technology

It reduces the possibility of misjudgment, lowers device power consumption, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115201830B_ABST
    Figure CN115201830B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a target object detection method and related device, the method comprises: obtaining a target reflection parameter of a target area; determining a movement parameter of a reflection source based on the target reflection parameter, and judging whether the movement parameter is located in a first preset range; if the movement parameter is located in the first preset range, confirming that the type of the reflection source is a moving target object; if the movement parameter is not located in the first preset range, confirming that the type of the reflection source is the interference source. By setting a preset range as a trigger condition, the detected movement parameter and the trigger condition are compared, only when the trigger condition is met, the corresponding functional element is started, the possibility of misjudgment is reduced, the power consumption of the device is reduced to a certain extent, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of sensing and detection technology, and more particularly to a target object detection method, device, and smart door lock. Background Technology

[0002] Currently, with the rapid development of the internet and the Internet of Things (IoT), more and more people are using smart locks. Typically, smart locks are equipped with detection devices to monitor movement. When movement is detected, the device activates the camera, turns on the keypad indicator, or activates the doorbell light. However, current detection devices are prone to false detections. Summary of the Invention

[0003] In view of this, the present invention provides a target object detection method and related equipment to solve the problem of false detection that easily occurs in existing detection devices. To achieve one, some, or all of the above objectives, or other objectives, embodiments of the present invention provide a target object detection method, comprising:

[0004] Obtain the target reflection parameters of the target area;

[0005] Based on the target reflection parameters, the movement parameters of the reflection source are determined, and it is determined whether the movement parameters are within a first preset range, wherein the first preset range does not include the interference movement parameters determined in advance based on the interference signal of the interference source received by the detection module.

[0006] If the movement parameter is within the first preset range, the type of the reflection source is confirmed to be a moving target object;

[0007] If the movement parameter is not within the first preset range, confirm whether the type of the reflection source is the interference source.

[0008] Optionally, the step of confirming whether the type of the reflection source is an interference source if the movement parameter is not within the first preset range includes:

[0009] When it is determined that the movement parameter is not within the first preset range and is not lower than the first preset threshold, the microcontroller module identifies whether the reflection source is an interference source. When the microcontroller module determines that the movement parameter is within the second preset range, it confirms that the reflection source is an interference source. The first preset threshold is not within the first preset range. The second preset range is not within the first preset range and is not lower than the first preset threshold.

[0010] Optionally, the method for obtaining the second preset range includes:

[0011] Obtain the interference signal emitted by the interference source;

[0012] The second preset range is determined based on the interference signal; wherein the second preset range includes interference movement parameters determined in advance based on the interference signal of the interference source received by the detection module.

[0013] Optionally, the step of obtaining the target reflection parameters of the target area may further include:

[0014] The system receives a scanning command output from the difference control circuit and scans the target area according to the scanning command; wherein the difference control circuit is used to control the scanning frequency accuracy of the detection module.

[0015] Furthermore, the step of confirming whether the type of the reflection source is an interference source if the movement parameter is not within the first preset range includes:

[0016] When it is determined that the movement parameter is not within the first preset range and is lower than the first preset threshold, the detection module confirms that the reflection source is the interference source.

[0017] Optionally, the difference control circuit improves the scanning frequency accuracy of the detection module by using a clock module with an accuracy higher than a set accuracy threshold.

[0018] Optionally, the difference control circuit uses a logic AND gate module to prevent the scan command from being sent to the microcontroller module and trigger the microcontroller module when the clock module outputs a trigger signal.

[0019] Optionally, after the step of confirming that the type of the reflection source is a moving target object if the movement parameter is within the first preset range, the method further includes:

[0020] The functional element is awakened and activated; the functional element is used to collect target object information.

[0021] On the other hand, embodiments of this application also provide a target object detection device, including:

[0022] The detection module is used to acquire the target reflection parameters of the target area;

[0023] The microcontroller module is connected to the detection module;

[0024] The detection module or the microcontroller module is configured to: determine the movement parameters of the reflection source based on the target reflection parameters, and determine whether the movement parameters are within a first preset range, wherein the first preset range does not include interference movement parameters determined in advance based on interference signals from interference sources received by the detection module; if the movement parameters are within the first preset range, confirm that the type of the reflection source is a moving target object; if the movement parameters are not within the first preset range, confirm whether the type of the reflection source is the interference source.

[0025] Optionally, the detection module is further configured to determine whether the reflection source is an interference source by means of the microcontroller when the movement parameter is not located in the first preset range and is not lower than the first preset threshold, and the microcontroller is configured to confirm that the reflection source is an interference source when the movement parameter is located in the second preset range; the first preset threshold is not located in the first preset range; the second preset range is not located in the first preset range and is not lower than the first preset threshold.

[0026] Optionally, the detection module is further configured to acquire the interference signal emitted by the interference source;

[0027] The detection module or the microcontroller module is further configured to: determine the second preset range based on the interference signal; wherein the second preset range includes interference movement parameters determined in advance based on the interference signal of the interference source received by the detection module.

[0028] Optionally, the device further includes:

[0029] A difference control circuit, connected between the microcontroller module and the detection module, is used to improve the scanning frequency accuracy of the detection module when different detection modules of the same type exist in the same preset area, and to issue scanning commands to the detection module.

[0030] Furthermore, the detection module is used to scan the target area in response to the scanning command, and when it determines that the movement parameter is not within the first preset range and is lower than the first preset threshold, it confirms that the reflection source is the interference source.

[0031] Optionally, the difference control circuit includes:

[0032] The clock module has an accuracy higher than a set accuracy threshold and is used to output trigger signals at preset time intervals.

[0033] A pulse generation module, connected between the clock module and the detection module, is used to output the scan command to the detection module in response to the trigger signal.

[0034] Optionally, the difference control circuit further includes: an AND gate module, which is connected to the microcontroller module, the pulse generation module, and the detection module respectively; the AND gate module is used to prevent the scan command from being sent to the microcontroller module and triggering the microcontroller module when the clock module outputs the trigger signal.

[0035] Optionally, the clock module is used to output the trigger signal to the pulse generation module and the logic AND gate module at the preset time interval; the logic AND gate module responds to the trigger signal to keep the logic AND gate module in a closed state so that the scan command is not responded to by the logic AND gate module.

[0036] Optionally, the detection module is used to confirm the reflection source as the interference source when it determines that the movement parameter is not within the first preset range and is lower than the first preset threshold; it is also used to wake up the microcontroller module through the logic AND gate module when it determines that the movement parameter is not within the first preset range and is not lower than the first preset threshold, so as to identify whether the reflection source is the interference source through the microcontroller module.

[0037] Optionally, the logic AND gate module includes a first input terminal, a second input terminal, and an output terminal. The first input terminal is connected to the output terminal of the clock module and the input terminal of the pulse generation module, respectively. The second input terminal is connected to the output terminal of the pulse generation module and the detection module, respectively, so as to prevent the scan command from being sent to the microcontroller module and triggering the microcontroller module when the clock module outputs the trigger signal.

[0038] Optionally, the pulse generating module includes: a capacitor, a resistor, and a switching unit;

[0039] One end of the capacitor is connected to the output terminal of the clock module and the first input terminal of the AND gate module, respectively; the other end of the capacitor is connected to one end of the resistor and the control terminal of the switching unit, respectively; the other end of the resistor is connected to the external power supply and the first terminal of the switching unit, respectively; the second terminal of the switching unit is connected to the detection module and the second input terminal of the AND gate module, respectively; and the output terminal of the AND gate module is connected to the microcontroller module.

[0040] On the other hand, this application provides a smart door lock, including:

[0041] The detection module is used to acquire the target reflection parameters of the target area;

[0042] The microcontroller module is connected to the detection module;

[0043] The detection module or the microcontroller module is configured to: determine the movement parameters of the reflection source based on the target reflection parameters, and determine whether the movement parameters are within a first preset range, wherein the first preset range does not include interference movement parameters determined in advance based on interference signals from interference sources received by the detection module; if the movement parameters are within the first preset range, confirm that the type of the reflection source is a moving target object; if the movement parameters are not within the first preset range, confirm whether the type of the reflection source is the interference source.

[0044] Optionally, the smart lock may also include functional elements;

[0045] The microcontroller module is used to activate the functional element after confirming that the target object is a moving target object; the functional element is used to collect target object information.

[0046] Implementing the embodiments of the present invention will have the following beneficial effects:

[0047] The system acquires target reflection parameters of the target area; determines the movement parameters of the reflection source based on the target reflection parameters, and judges whether the movement parameters are within a first preset range; if the movement parameters are within the first preset range, the type of the reflection source is confirmed as a moving target object; if the movement parameters are not within the first preset range, the type of the reflection source is confirmed as the interference source. By setting a preset range as a trigger condition, the detected movement parameters are compared with the trigger condition, reducing the possibility of false judgments, reducing device power consumption to a certain extent, and improving the user experience. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] in:

[0050] Figure 1 A schematic diagram illustrating the principle of ultrasonic testing is shown.

[0051] Figure 2 This diagram illustrates another principle of ultrasonic testing.

[0052] Figure 3 This illustration shows an application scenario diagram of a target object detection method provided in an embodiment of this application;

[0053] Figure 4This paper illustrates a flowchart of a target object detection method provided in an embodiment of this application.

[0054] Figure 5 A schematic diagram illustrating the principle of a target object detection method provided in an embodiment of this application is shown;

[0055] Figure 6 A flowchart of a target object detection method according to another embodiment of this application is shown;

[0056] Figure 7 A flowchart of a target object detection method according to another embodiment of this application is shown;

[0057] Figure 8 The figure shows an embodiment of a target object detection method provided in this application.

[0058] Figure 9 This illustration shows another application scenario of a target object detection method provided in an embodiment of this application;

[0059] Figure 10 A schematic diagram of a smart door lock provided in an embodiment of this application is shown;

[0060] Figure 11 A partial circuit diagram of a smart door lock provided in an embodiment of this application is shown. Detailed Implementation

[0061] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0062] With the development of internet and IoT technologies, more and more people are using smart home appliances, such as smart door locks. Among these, the object detection function is crucial. When a smart door lock detects an object, it can activate the camera to take photos or videos of the area in front of the door, or control the keypad light, doorbell light, etc., to facilitate user operation of the lock, such as entering a password.

[0063] The sensor detection module can detect the presence of a target object, thereby determining whether to activate devices such as cameras. For example, an ultrasonic transmitter and receiver emits ultrasonic waves of equal amplitude into the detected area and receives the reflected waves. When no target object enters the detected area, the reflected ultrasonic waves are of equal amplitude; when a target object enters the detected area, the amplitude of the reflected ultrasonic waves becomes unequal and changes continuously as the target object moves. The receiver circuit detects this change and therefore considers the presence of a moving target object within the detected area. Please refer to [further details omitted]. Figure 1 and Figure 2 After the ultrasonic transmitter and receiver emits an ultrasonic wave, it continuously detects the energy of the reflected wave. Using time as the x-axis (representing the actual distance from the reflection point to the ultrasonic transmitter module) and the reflected energy amplitude as the y-axis (representing the sum of ultrasonic energy reflected from all spatial reflection points at a fixed distance from the origin), the reflected energy curve of the ultrasonic wave in this environment can be obtained. For example... Figure 2 As shown, the dashed line represents the reflection energy curve obtained from the previous detection, and the solid line represents the reflection energy curve obtained from the subsequent detection. If there is a significant change between the two reflection energy curves, it can be assumed that a target object is moving within the detection area. The target object can be a human body, an animal, etc.

[0064] However, the inventors discovered in their research that the detection module based on the aforementioned sensor is easily interfered with by other devices that can also emit ultrasonic waves. This can cause the system to mistakenly identify the interfering ultrasonic waves emitted by other devices as moving objects, leading to incorrect judgments about the presence of users. Consequently, the system may activate devices such as cameras when no user is nearby, resulting in increased power consumption of the smart lock.

[0065] Figure 3 This illustration shows an application scenario for the control method of the functional element provided in this application embodiment, namely, it can be applied to a smart door lock 300, which includes a detection module 310, a microcontroller module 320, and a functional element 330. The microcontroller module 320 is connected to both the detection module 310 and the functional element 330.

[0066] The detection module 310 is used to acquire the movement parameters of the target object. These movement parameters may include movement speed, movement amplitude, etc., and can be obtained based on the time interval between two scans by the detection module and the movement distance within that time interval. The detection module 310 transmits the scan results to the microcontroller module 320. In some embodiments, the detection module 310 may be a device integrating a transmitting module and a receiving module, or it may include separate transmitting and receiving modules; no limitation is made here.

[0067] For example, the detection module also has a calculation function to determine the movement parameters of the reflection source and to determine whether the movement parameters are within a first preset range, wherein the first preset range does not include interference movement parameters determined in advance based on interference signals from interference sources received by the detection module; if the movement parameters are within the first preset range, the type of the reflection source is confirmed to be a moving target object; if the movement parameters are not within the first preset range, the type of the reflection source is confirmed to be the interference source. In one embodiment, the detection module 310 is an ultrasonic module, and the interference signal is an interference ultrasonic signal.

[0068] The microcontroller module 320 can integrate interfaces and circuits such as memory, counter, universal serial bus, and analog-to-digital converter onto a single chip, forming a chip-level computer. In some implementations, the microcontroller module 320 is used to receive data sent by the detection module 310, determine whether the trigger condition is met, and if the trigger condition is met, control the functional element 330 to work.

[0069] For example, when the detection module 310 does not perform calculations, the process of determining the reflection source is performed by the microcontroller module 320. That is, the microcontroller module 320 is used to determine the movement parameters of the reflection source and determine whether the movement parameters are within a first preset range. The first preset range does not include interference movement parameters determined in advance based on the interference signal of the interference source received by the detection module. If the movement parameters are within the first preset range, the type of the reflection source is confirmed to be a moving target object. If the movement parameters are not within the first preset range, the type of the reflection source is confirmed to be the interference source.

[0070] Functional element 330 is used to operate in response to the start signal of microcontroller module 320. In some embodiments, functional element 330 may include a camera, input keyboard, indicator light, etc. When microcontroller module 320 determines that the trigger condition is met, it sends a start signal to functional element 330, at which time functional element 330 can start working.

[0071] In some implementations, the detection module 310 is used to acquire the movement parameters of the target object, and the micro-control module 320 is used to activate the corresponding functional element 330 if the movement parameters meet the triggering conditions; if the movement parameters do not meet the triggering conditions, it controls the detection module 310 to acquire the movement parameters of the target object. Specific methods can be found in subsequent embodiments.

[0072] like Figure 4 As shown, this application provides a target object detection method, including:

[0073] S401. Obtain the target reflection parameters of the target area;

[0074] For example, in some implementations, the movement parameters of the target object can be obtained through the detection module. This is because the signal emitted by the detection module generates a reflected wave when it encounters the target object, and this reflected wave is reflected back to the detection module and detected by it. Furthermore, since the parameters of the signal emitted by the detection module propagating through the air can be considered a known constant, the movement distance of the signal can be calculated based on a certain time interval. Therefore, it can be seen that the movement distance of the signal within the time interval between two scans can be calculated, and based on this time interval and the movement distance within that time interval, the movement parameters of the target object can be obtained.

[0075] Furthermore, for some implementation methods, please refer to [link / reference]. Figure 5 The time from when the detection module emits a signal to when it receives the reflected signal can be used as the x-axis, representing the distance between the target object and the detection module. The energy of the signal received by the detection module can be used as the y-axis, representing the energy of the signal reflected back to the detection module. Therefore, it is possible to base the following on... Figure 5 The coordinate graph shown represents the reflection energy curve of the detection module in the current environment. It is easy to see that when there is no target object in the current environment, the reflected signal energy should be a relatively flat line. When a target object appears in the current environment, the signal will be reflected upon encountering the target object, reflecting back to the detection module earlier, thus... Figure 5 The image shows abrupt changes in reflected energy. By repeatedly transmitting and receiving signals, and based on the time difference of each energy abrupt change, the movement distance of the target object can be determined.

[0076] Please continue reading. Figure 5 , Figure 5The dashed lines correspond to the previous transmitted and received signals of the detection module, and the solid lines correspond to the subsequent transmitted and received signals. Since the signal travels twice the distance from the transmission point to the reflection point from transmission to reception, the distance obtained based on the time difference between the energy mutation points corresponding to the previous and subsequent signals is twice the distance the target object moves within that time difference. Specifically, in some implementations, if the time difference between the energy mutation points corresponding to the previous and subsequent signals is Δt, and twice the distance the target object moves within that time difference Δt is ΔS, and the signal transmission speed is v0, then the distance ΔS, twice the distance the target object moves within that time difference Δt, can be obtained using the formula ΔS = Δt * v0. For example, if the time difference Δt = 1 ms and the signal transmission speed v0 = 340 m / s, then ΔS = Δt * v0 = 1 ms * 340 m / s = 0.34 m. Where ms is the unit of time (millisecond), m is the unit of distance (meter), and s is the unit of time (second).

[0077] Furthermore, in some implementations, based on the aforementioned distance twice the distance the target object moves within the time difference, the speed of the target object can be obtained based on the time interval between the two signal transmissions. Specifically, in some implementations, if the time interval between the two ultrasonic signal transmissions is T... s If the target object's moving speed is V, then it can be determined based on the formula:

[0078]

[0079] Obtain the movement speed of the target object. For example, if the time interval T... s =200ms, and ΔS = 0.34m, then the moving speed of the target object can be obtained.

[0080]

[0081] In other implementations, the distance the target object moves within each time difference can be calculated based on the time difference between multiple signal energy abrupt changes. Then, the average of these twice-times within each time difference is taken to reduce measurement error and improve the accuracy of the obtained target object movement distance. For example, if twice the target object movement distance between the first and second energy abrupt changes is ΔS1, and twice the target object movement distance between the second and third energy abrupt changes is ΔS2, then the formula can be used...

[0082] ΔS=(ΔS1+ΔS2) / 2

[0083] The distance the target object moves within the time difference is twice the distance it traveled. Furthermore, based on this twice-distance travel, the method for obtaining the target object's movement parameters is the same as described above, and will not be repeated here.

[0084] S402. Determine the movement parameters of the reflection source based on the target reflection parameters, and determine whether the movement parameters are within a first preset range, wherein the first preset range does not include the interference movement parameters determined in advance based on the interference signal of the interference source received by the detection module.

[0085] The first preset range is the parameter range of the moving target object. The first preset range does not include the interference movement parameters determined in advance based on the interference signal of the interference source received by the detection module. For example, the first preset range does not include the movement parameter range of other ultrasonic emitting devices received in advance by the detection module.

[0086] For example, by pre-setting a range of movement parameters, that is, by pre-confirming the range of movement parameters of the interference source, the type of reflection source can be confirmed by judging whether the movement parameters are within the preset range. This is simple and quick, does not require tedious calculations, can be easily implemented on a microcomputer, and does not require large computing resources and memory.

[0087] S403. If the movement parameter is within the first preset range, confirm that the type of the reflection source is a moving target object.

[0088] For example, if the smart lock detects a target object with movement parameters each time based on the ultrasonic element, thus triggering the functional element, interference may cause the functional element to be activated incorrectly, wasting resources and reducing the user experience. Therefore, in one embodiment provided in this application, a trigger condition can be set, and the movement parameters of the target object collected by the detection module can be compared with the trigger condition. When the trigger condition is met, the corresponding functional element is activated. This can reduce the occurrence of functional element activation due to interference, save system resources, and improve the user experience.

[0089] Furthermore, in some implementations, the trigger condition can be pre-stored in the microcontroller module, which then determines whether the movement parameter meets the trigger condition. If the trigger condition is met, the microcontroller module controls the corresponding functional element to operate, such as activating the camera, illuminating the input keyboard light, or illuminating the ambient light. Detailed methods for obtaining the trigger condition can be found in subsequent embodiments.

[0090] In other implementations, the triggering condition can be pre-stored in the detection module. The detection module determines whether the movement parameters in the acquired signal meet the triggering condition. When the triggering condition is met, the detection module can send a trigger signal to the microcontroller module, which then controls the corresponding functional element.

[0091] In one embodiment provided in this application, the smart lock can determine whether to activate the corresponding functional element by whether it receives a start signal. Specifically, if the smart lock receives the start signal, it determines that the movement parameters meet the triggering conditions and activates the corresponding functional element; if the smart lock does not receive the start signal, it determines that the movement parameters do not meet the triggering conditions and returns to the step of obtaining the movement parameters of the detection target through the detection module.

[0092] S404. If the movement parameter is not within the first preset range, confirm that the type of the reflection source is the interference source.

[0093] For example, the interference source is other ultrasonic-emitting devices that the detection module in this embodiment can receive.

[0094] In some implementations, when the movement parameter is detected to not meet the trigger condition, the process can return to step S401 to re-obtain the movement parameter of the target object through the detection module, ensuring that the smart lock will not miss any detections. In other words, when a user approaches the smart lock, the user can be detected quickly without any delay, thus improving the user experience.

[0095] For example, the target object detection method described in this application can be applied to smart home devices such as smart door locks. The detection module inside the smart door lock scans a target area within a certain range in front of the door. When the signal emitted by the detection module encounters a target object, it generates a reflected wave, which is reflected back to the detection module and detected by it. Since the parameters of the signal emitted by the detection module propagating in the air can be considered as known constants, the distance the signal travels can be calculated based on a certain time. The calculation of the signal's travel distance is performed by the detection module or microcontroller module inside the smart door lock. The detection module or microcontroller module determines whether the travel parameter is within a preset range. The preset range is determined based on the influence of other ultrasonic wave emitting devices around the smart door lock on the detection module inside the smart door lock. If the travel parameter is within the preset range, the type of the reflection source is confirmed to be a moving target object; if the travel parameter is not within the preset range, the type of the reflection source is confirmed to be not a moving target object. The smart door lock responds to the moving target object, thereby completing a more accurate identification process.

[0096] The target object detection method provided in this embodiment first obtains the movement parameters of the target object through the detection module, and then determines whether the movement parameters meet the trigger conditions. If the movement parameters meet the trigger conditions, the reflection source is confirmed as the moving target object, and corresponding operations can then be performed, such as activating the corresponding functional element. If the movement parameters do not meet the trigger conditions, the reflection source is confirmed as an interference source, and the process can then return to the step of obtaining the movement parameters of the target object through the detection module. Since interference signals may cause the detection module to obtain interference movement parameters, if the corresponding functional element is activated based on whether movement parameters are obtained, the interference signal may be mistakenly detected as a user, resulting in misjudgment. This application sets trigger conditions and compares the detected movement parameters with the trigger conditions. Only when the trigger conditions are met is the subsequent operation performed, such as activating the corresponding functional element, which reduces the possibility of misjudgment and also reduces the power consumption of the device to a certain extent.

[0097] In one possible implementation, the step of confirming that the type of the reflection source is an interference source if the movement parameter is not within the first preset range includes:

[0098] When it is determined that the movement parameter is not within the first preset range and is not lower than the first preset threshold, the microcontroller module identifies whether the reflection source is an interference source. When the microcontroller module determines that the movement parameter is within the second preset range, it confirms that the reflection source is an interference source. The first preset threshold is not within the first preset range. The second preset range is not within the first preset range and is not lower than the first preset threshold.

[0099] For example, when it is determined that the movement parameter is not within the first preset range and is not lower than the first preset threshold, the microcontroller module is woken up so that the microcontroller module can identify whether the reflection source is an interference source. The microcontroller module can be in a sleep state before being woken up to save power.

[0100] For example, when the moving speed of the interference source is relatively high (e.g., the moving speed is greater than or equal to a first preset threshold), the microcontroller module can identify the interference source. The detection module performs cyclic scanning at a fixed frequency; that is, the frequency of the cyclic scanning detection by the detection module is a fixed value, and the frequency of the ultrasonic waves emitted by the detection module is fixed, which is then expressed by the formula:

[0101]

[0102] It is known that the speed of the false targets generated by the interference source is also constant. By using the speed of the false targets generated by the interference source as the first preset threshold, the microcontroller module can distinguish the type of moving objects within the scanning range, and then the microcontroller module can perform targeted elimination, thereby eliminating false triggering.

[0103] For example, the detection module can identify the interference source based on the first preset threshold. If the moving speed is low, the detection module can identify and eliminate the interference source without transmitting data to the microcontroller module or waking up the microcontroller module, thus reducing data interaction and resource consumption.

[0104] For example, the step by which the microcontroller module identifies whether the reflection source is not a moving target object includes:

[0105] When the microcontroller determines that the moving speed is within the second preset range, it confirms that the ultrasonic wave reflection source is an interference source; the second preset range is not within the first preset range and is not lower than the first preset threshold.

[0106] For example, when the moving speed is within a second preset range, that is, the moving speed is not within the first preset range and is not lower than the first preset threshold, it proves that the reflection source corresponding to the moving speed is not another ultrasonic emitting device. Then, the micro-control module performs a second screening of the emission source to filter out the influence of other influencing factors other than other ultrasonic emitting devices on the target object detection process.

[0107] In one possible implementation, the method for obtaining the second preset range includes:

[0108] Obtain the interference signal emitted by the interference source;

[0109] The second preset range is determined based on the interference signal.

[0110] For example, the detection module obtains the interference signal emitted by the interference source, calculates the distance the signal travels within the time interval between two scans, and then obtains the movement parameters of the target object based on the time interval and the distance traveled within the time interval, that is, obtains the second preset range corresponding to the interference source.

[0111] For example, the step of confirming that the type of the reflection source is an interference source if the movement parameter is not within the first preset range includes:

[0112] When it is determined that the movement parameter is not within the first preset range and is lower than the first preset threshold, the detection module confirms that the reflection source is the interference source.

[0113] By using movement parameters that clearly do not conform to human movement as the first screening criterion, the process of data interaction and calculation for movement parameters that clearly do not conform to human movement is avoided, thereby reducing resource consumption while ensuring accuracy.

[0114] For example, when two or more identical detection modules exist within a preset area, such as when multiple users on the same floor have at least two door locks with the same detection module, if the ultrasonic element itself has high precision (i.e., the frequency of the cyclic scanning detection by the detection module is relatively stable, the frequency of the ultrasonic waves emitted by the detection module is stable, and the difference in the operating parameters of the ultrasonic element in actual operation is also small), then the difference t_scan in the scanning frequency T_scan when two identical detection modules are scanning will be small. Diff In cases where the value is small, the formula is:

[0115]

[0116] It can be seen that the moving speed of the ultrasonic interference source is related to the difference t between the scanning frequencies Tscan of the two identical detection modules. Diff Proportional, that is, t Diff The smaller the speed, the lower the moving speed of the ultrasonic interference source. When the moving speed of the ultrasonic interference source is sufficiently small, it can be distinguished from the normal walking speed of a human body. Therefore, false triggering can be eliminated when the moving speed of the ultrasonic interference source is below a certain threshold, such as 10 cm / s, which is significantly lower than the normal walking speed of a human. By improving the accuracy of the detection module's cyclic scanning frequency, the interference speed generated by the same type of detection module in the same area can be made sufficiently small, ensuring that the interference speed is within the filtering range of the detection module. This allows the detection module itself to filter out such interference speeds without outputting a high-level signal to the microcontroller module, preventing the microcontroller module from being woken up and reducing power consumption.

[0117] In one possible implementation, the step of obtaining the target reflection parameters of the target area includes the following prior steps:

[0118] Acquire type data of multiple detection modules within the same preset area;

[0119] Based on the type data, it is determined that there are different detection modules of the same type within the same preset area;

[0120] For different detection modules of the same type within the same preset area, a scanning command is received from the differential control circuit. The detection module scans the target area according to the scanning command. The differential control circuit controls the scanning frequency accuracy of the detection module when different detection modules of the same type exist within the same preset area. This ensures that the scanning frequency of the detection module reaches a high accuracy, so that the movement parameters generated by other detection modules of the same type within the same area are lower than the first preset threshold. As a result, the movement parameters generated by these other detection modules can be filtered out by the detection module without triggering the microcontroller module or activating the functional elements.

[0121] Furthermore, the step of confirming that the type of the reflection source is an interference source if the movement parameter is not within the first preset range is as follows:

[0122] When it is determined that the movement parameter is not within the first preset range and is lower than the first preset threshold, the reflection source is confirmed as the interference source.

[0123] For example, the difference control circuit controls the scanning frequency accuracy of the detection module through a clock module with an accuracy higher than a set accuracy threshold, so that the scanning frequency difference between different detection modules in the same preset area is lower than a second preset threshold, so that the moving speed generated by the detection module is lower than the first preset threshold.

[0124] For example, adding a high-precision clock as a trigger source can improve the scanning frequency accuracy of the detection module, thereby controlling the time interval difference between different detection modules within a relatively small range. This greatly slows down the movement speed of the false targets generated by the interference source, making them distinguishable from the normal movement speed of the human body. This allows for the identification of whether the detected moving object is a real target or a false target generated by the same series of products, thus eliminating false triggering.

[0125] By improving the scanning frequency accuracy of the detection module, the difference in scanning frequency between two high-precision products is reduced when two similar products exist in the environment. Diff Furthermore, based on the aforementioned method for calculating the moving speed, the moving speed of the interference source between two high-precision products is much lower than the moving speed range of everyday objects, and the movement can be ignored.

[0126] For example, when two or more identical detection modules exist within a preset area, such as when multiple users on the same floor have at least two door locks with the same detection module, if the accuracy of the ultrasonic element itself is low (i.e., the accuracy of the frequency of the cyclic scanning detection by the detection module is low), the operating parameters of the ultrasonic element will vary greatly in actual operation. Consequently, the moving speed of the interference source generated by the ultrasonic interference source will also be relatively large, and the difference in scanning frequency t between products will also be significant. Diff When the noise level is too high, the speed at which the ultrasonic interference source moves is close to the normal walking speed of a person, causing false triggering.

[0127] Therefore, when there are two or more identical detection modules within a preset area, a difference control circuit can be set up for the detection modules. For example, a high-precision clock can be used as a trigger source to increase the frequency of the cyclic scanning detection of the detection modules, thereby improving the accuracy of the cyclic scanning detection. Then, the difference t between the scanning frequencies of the detection modules... Diff Decrease, according to the formula:

[0128]

[0129] It can be seen that the moving speed of the ultrasonic interference source is related to the difference t between the scanning frequencies Tscan detected by the two identical ultrasonic modules. Diff Proportional, that is, t Diff The smaller the value of V, the slower the moving speed of the ultrasonic interference source, making it easier to distinguish from the normal walking speed of a person. For example, as shown in the formula, V sound Set the scanning frequency T to 340 m / s. scan If the scan frequency difference t is 100ms, then... Diff 1%T scan, That is, 1ms means the moving speed is 1.7m / s, which is within the normal moving speed range of an object.

[0130] By incorporating a high-precision clock, the scanning frequency t is controlled. Diff For example, 0.005% T scan, That is, 5us (5x10) -6 If S), the resulting moving speed is 8.5 mm / s, which is significantly lower than the moving speed range of everyday objects. This moving speed can be filtered out by the ultrasonic module and is negligible. This is to avoid the ultrasonic interference source moving at a speed close to the normal walking speed of a person, which could cause false triggering.

[0131] For example, when different types of detection modules are used in the same preset area, since different types of detection modules perform cyclic scanning at different fixed frequencies, the frequency of ultrasonic waves emitted by different types of detection modules is also fixed. As a result, when different types of detection modules become interference sources, the movement parameters generated by different types of detection modules are also fixed. When performing application detection in advance, the interference movement parameters can be measured based on the interference signals emitted by other types of detection modules received by this detection module. In this way, the interference signals caused by other types of detection modules can be specifically eliminated, thereby eliminating false triggering.

[0132] In one possible implementation, the step of determining the movement parameters of the reflection source based on the target reflection parameters includes:

[0133] Based on at least two consecutive target reflection parameters for the same reflection source, determine the time interval and energy amplitude difference between at least two consecutive target reflection parameters, wherein the energy amplitude represents the sum of ultrasonic energy reflected within a space at a fixed distance from the origin of emission;

[0134] The movement parameters of the reflection source are determined based on the difference between the time interval and the energy amplitude.

[0135] For example, since the signal travels a distance twice the distance from the transmission point to the reception point, the distance obtained based on the time difference between the energy change point corresponding to the previous signal and the energy change point corresponding to the next signal is twice the distance the target object moves within that time difference. Based on the aforementioned distance of twice the distance the target object moves within the time difference, the movement parameters of the target object can be obtained based on the time interval between the two transmitted signals.

[0136] In one possible implementation, after the step of confirming that the type of the reflection source is a moving target object if the movement parameter is within the first preset range, the method further includes:

[0137] The functional element is awakened and activated; the functional element is used to collect target object information.

[0138] For example, if the movement parameters of the target object are detected to be within the first preset range, where the first preset range is the range of the movement parameters of the target object, then the type of the reflection source is confirmed to be a moving target object, thereby waking up and activating the functional element.

[0139] For example, please refer to Figure 6 , Figure 6 This application illustrates a target object detection method provided by an embodiment of the present application. This method can be applied to the control scenario of the functional elements in the aforementioned embodiments, namely, a smart door lock 300. The smart door lock 300 includes a detection module 310, a microcontroller module 320, and a functional element 330. The microcontroller module 320 is connected to both the detection module 310 and the functional element 330. Specifically, the method includes steps S601 to S605.

[0140] Step S601: In the setting mode, the detection module continuously scans the interference signal emitted by the ultrasonic interference source, and determines the interference movement parameter corresponding to the interference source based on the interference time interval between two consecutive scans of the interference signal and the energy change of the interference signal within the interference time interval.

[0141] In some implementations, other interference sources may exist within the smart lock application scenario. These interference sources can emit interference signals, which can be detected by the smart lock's detection module, potentially leading to accidental activation of corresponding functional modules. Therefore, to avoid this, trigger conditions can be set, activating the corresponding functional module only when these conditions are met. These trigger conditions can be pre-determined based on the ultrasonic interference signals received by the detection module from the smart lock's application scenario. For example, the interfering ultrasonic waves emitted by the interference source can be pre-acquired, and based on these waves, their corresponding characteristic quantities can be obtained. These characteristic quantities are then stored as trigger conditions in the smart lock, allowing it to identify the interference source. Specifically, interference movement parameters can be obtained based on the interfering ultrasonic waves emitted by the interference source, and the trigger conditions can be determined based on these parameters.

[0142] In some implementations, the smart lock may include a setting mode, in which it can be assumed that no objects are moving in the environment where the smart lock is currently located. In this mode, the interference movement parameters corresponding to the interference source can be determined by repeatedly scanning to obtain the interference time interval of the interference signal and the energy change of the interference signal within the interference time interval. Specifically, the method for obtaining the interference movement parameters is similar to the method for obtaining the movement parameters of the target object in the aforementioned embodiments, and will not be described again here.

[0143] Step S602: Determine the triggering condition based on the interference movement parameters.

[0144] Once the interference movement parameters are obtained using the above method, triggering conditions can be set based on these parameters.

[0145] In one embodiment provided in this application, the triggering condition may include a preset parameter range, wherein the preset parameter range does not include the interference movement parameter. For example, if the interference movement parameter is a movement speed, and the movement speed can be 0.2 m / s, then the triggering condition can be set to a movement speed of 0 m / s to 1 m / s, excluding 0.2 m / s.

[0146] In other implementations, the trigger condition can be set to exclude only the interfering movement parameter, without setting a preset parameter range. For example, if the interfering speed is 0.2 m / s, the trigger condition can be set to any speed range excluding 0.2 m / s.

[0147] Step S603: Obtain the movement parameters of the target object through the detection module. The movement parameters are obtained based on the time interval between two scans by the detection module and the movement distance within the time interval.

[0148] Step S604: If the movement parameters meet the triggering conditions, activate the corresponding functional element.

[0149] Step S605: If the movement parameters do not meet the triggering conditions, return to the step of obtaining the movement parameters of the target object through the detection module.

[0150] Steps S603 to S605 have been described in detail in the foregoing embodiments and will not be repeated here.

[0151] Please see Figure 7 , Figure 7 This application illustrates a target object detection method provided by an embodiment of the present application. This method can be applied to the control scenario of the functional elements in the aforementioned embodiments, namely, a smart door lock 300. The smart door lock 300 includes a detection module 310, a microcontroller module 320, and a functional element 330. The microcontroller module 320 is connected to both the detection module 310 and the functional element 330. Specifically, the method includes steps S701 to S704.

[0152] Step S701: In the setting mode, adjust the scanning frequency of the first ultrasonic detection module based on the scanning frequency of the second ultrasonic detection module, so that the difference between the scanning frequency of the second ultrasonic detection module and the scanning frequency of the first ultrasonic detection module is less than a preset value.

[0153] The smart lock's detection module can be a first ultrasonic detection module. In the application environment of this smart lock, a second ultrasonic detection module may also exist. This second ultrasonic detection module can interfere with the first ultrasonic detection module, causing the smart lock to misjudge and activate the corresponding functional module. For example, in the application environment of this smart lock, if there are multiple smart locks with detection modules, the detection modules in the current environment will interfere with each other.

[0154] In some implementations, the speed at which the interference generated by the second ultrasonic detection module moves within the first ultrasonic detection module can be determined based on the difference in scanning frequencies between the first and second ultrasonic detection modules, and the scanning frequency of the first ultrasonic detection module. Specifically, if the difference in scanning frequencies between the first and second ultrasonic detection modules is t... D The scanning frequency of the first ultrasonic detection module is T. s If the speed of ultrasonic signal transmission is v0 and the speed of the interference movement is V, then it can be determined using the formula...

[0155]

[0156] The interference movement speed V is obtained. The method for obtaining the interference movement speed V is similar to the method for obtaining the movement speed of the target unit in the previous embodiment, and will not be described again here.

[0157] Furthermore, regarding the above formula, if the ultrasonic signal transmission speed v0 is 340 m / s, the scanning frequency T of the first ultrasonic type... s The scan frequency difference is t = 100ms. D 1%T s If 1ms is the value, then the result can be calculated.

[0158]

[0159] At this time, the interference's moving speed is 1.7 m / s. Since this interference's moving speed is within the normal moving speed range of an object, the first ultrasonic detection module will take this interference's moving speed as the normal moving speed of the target object, thus causing a misjudgment, resulting in the corresponding functional module malfunctioning and wasting system resources.

[0160] As shown in the above formula, reducing the difference in scanning frequencies between the first and second ultrasonic detection modules can decrease the speed of the interference. When the interference speed is reduced to a small value, it can be determined that the speed is the interference speed, thus preventing misjudgment. Specifically, in some implementations, the scanning frequency of the first ultrasonic detection module can be adjusted based on the scanning frequency of the second ultrasonic detection module, so that the difference between the scanning frequencies of the second and first ultrasonic detection modules is less than a preset value. Of course, for similar products, i.e., when the first and second ultrasonic detection modules are of the same type, the ultrasonic scanning frequency and scanning accuracy of such products can be uniformly controlled to prevent mutual interference when similar products exist in the same area. Further details can be found in the following sections. Figure 8 Step S701 may also include step S711.

[0161] Step S711: In the setting mode, if the difference between the scanning interval (i.e., the scanning frequency difference) and the scanning frequency of the first ultrasonic module is greater than the threshold, dynamic synchronization correction is performed through the program stored in the ultrasonic module.

[0162] In some implementations, the smart lock may include a setting mode, in which it can be assumed that no objects are moving in the environment where the smart lock is currently located. When the smart lock is in setting mode, the difference between the scanning interval and the scanning frequency of the first ultrasonic module can be detected, wherein the scanning interval is the difference between the scanning frequency of the second ultrasonic detection module and the scanning frequency of the first ultrasonic detection module. A threshold can be set; when the difference between the scanning interval and the scanning frequency of the first ultrasonic module is detected to be greater than the threshold, the first ultrasonic detection module can be dynamically synchronized and corrected to ensure that the difference between the scanning frequency of the second ultrasonic detection module and the scanning frequency of the first ultrasonic detection module is less than a preset value.

[0163] For example, in one embodiment provided in this application, the threshold can be set to 0.005%. If the obtained scanning interval is 1 ms and the scanning frequency of the first ultrasonic module is 100 ms, then the difference between the scanning interval and the first ultrasonic module is 1 ms / 100 ms = 1%. Since 1% is greater than the threshold of 0.005%, dynamic synchronization correction can be performed on the first ultrasonic detection module. If the synchronized scanning interval is 4 μs, then the difference between the synchronized scanning interval and the first ultrasonic module is 4 μs / 100 ms = 0.004%. Since 0.004% is less than the threshold of 0.005%, where μs is the unit of time (microsecond).

[0164] In some implementations, a preset value can be set such that the difference between the scanning frequency of the first ultrasonic detection module and the scanning frequency of the second ultrasonic detection module after dynamic correction is less than the preset value. For example, if the preset value is 5µs, and the scanning frequency of the first ultrasonic detection module is 100ms and the scanning frequency of the second ultrasonic detection module is 101ms, then the difference between the scanning frequencies of the first and second ultrasonic detection modules is 1ms, which is greater than 5µs. After dynamic synchronization correction, the scanning frequency of the first ultrasonic detection module can be 100.996ms, at which point the difference between the scanning frequencies of the first and second ultrasonic detection modules is 4µs, which is less than 5µs.

[0165] Specifically, a trigger source can be used to synchronize and correct the first ultrasonic detection module. In one embodiment provided in this application, the trigger source can be a clock.

[0166] Furthermore, in some implementations, after synchronously correcting the first ultrasonic detection module, the interference movement speed generated by the second ultrasonic detection module can be obtained. Based on the interference movement speed, a trigger condition can be set and stored in the first ultrasonic detection module. When the movement speed of the target object is detected to meet the trigger condition, the corresponding functional element is activated.

[0167] Step S702: Obtain the movement parameters of the target object through the detection module. The movement parameters are obtained based on the time interval between two scans by the detection module and the movement distance within the time interval.

[0168] Step S703: If the movement parameters meet the triggering conditions, activate the corresponding functional element.

[0169] Step S704: If the movement parameters do not meet the triggering conditions, return to the step of obtaining the movement parameters of the target object through the detection module.

[0170] Steps S702 to S704 have been described in detail in the foregoing embodiments and will not be repeated here.

[0171] The target object detection method and smart lock provided in this application first determine the trigger condition based on the interference signal of the interference source, then obtain the movement parameters of the target object through the detection module, and then determine whether the movement parameters meet the trigger condition. If the movement parameters meet the trigger condition, the corresponding functional element is activated; if the movement parameters do not meet the trigger condition, the process returns to the step of obtaining the movement parameters of the target object through the detection module. Since the interference signal may cause the detection module to obtain interference movement parameters, if the detection of movement parameters is directly used as the trigger condition to activate the corresponding functional element, the interference signal may be mistakenly detected as a user, resulting in misjudgment. This application embodiment sets the trigger condition in advance based on the characteristics of the possible interference source, compares the detected movement parameters with the trigger condition, and only activates the corresponding functional element when the trigger condition is met, reducing the possibility of misjudgment and also reducing the power consumption of the device to a certain extent.

[0172] Please see Figure 9 , Figure 9This application illustrates a target object detection device provided in an embodiment of the present application. This device can be applied to a control scenario for a functional element, namely a smart door lock 900. The smart door lock 900 includes a detection module 910, a microcontroller module 920, a functional element 930, and a clock circuit 940. The clock circuit 940 further includes a clock module 941, a pulse module 942, and a filtering module 943. The microcontroller module 920 is connected to the clock module 941, the functional element 930, and the detection module 910. The clock module 941 is connected to the microcontroller module 920, the pulse module 942, the filtering module 943, and the detection module 910. The filtering module 943 is connected to the microcontroller module 920, the clock module 941, the pulse module 942, and the detection module 910. The pulse module 942 is connected to the clock module 941, the filtering module 943, and the detection module 910. The detection module 910 is connected to the pulse module 942, the filtering module 943, and the microcontroller module 920.

[0173] Furthermore, in some implementations, the clock module 941 is connected to the control pin of the detection module 910 to receive a clock signal and generate a trigger signal, such as a jitter trigger signal, based on the clock signal; the pulse module 942 is connected to the output pin of the clock module 941 to receive the jitter trigger signal and generate a pulse signal based on the jitter trigger signal; the input / output pin of the detection module 910 is connected to the output pin of the pulse module 942 to receive the pulse signal and perform scanning based on the pulse signal; the first pin of the filtering module 943 is connected to the output pin of the clock module 941 to receive the jitter trigger signal; the second pin of the filtering module 943 is connected to the output pin of the pulse module 942 and the input / output pin of the detection module 910 to receive the pulse signal and the scanning signal of the detection module 910; the filtering module 943 generates a start signal based on the jitter trigger signal, the pulse signal, and the scanning signal, wherein the filtering module is the aforementioned AND gate module, and the clock module is the aforementioned difference control circuit.

[0174] Please see Figure 10 , Figure 10 An embodiment of the present application shows a smart door lock 1000, which includes a detection module 1010, a microcontroller module 1020, and a functional element 1030. The microcontroller module 1020 is connected to both the detection module 1010 and the functional element 1030.

[0175] In some implementations, the detection module 1010 is used to acquire movement parameters of the target object, which are obtained based on the time interval between two scans by the detection module and the movement distance within that time interval. The microcontroller module 1020 is used to activate the corresponding functional element 1030 if the movement parameters meet the trigger conditions; otherwise, it controls the detection module 1010 to acquire the movement parameters of the target object.

[0176] On the other hand, embodiments of this application also provide a target object detection device, including:

[0177] The detection module is used to acquire the target reflection parameters of the target area;

[0178] The micro-control module is used to determine the movement parameters of the reflection source based on the target reflection parameters, and to determine whether the movement parameters are within a preset range, wherein the preset range does not include the interference movement parameters determined in advance based on the interference signal of the ultrasonic interference source received by the detection module; if the movement parameters are within the preset range, it is confirmed that the type of the reflection source is a moving target object; if the movement parameters are not within the preset range, it is confirmed that the type of the reflection source is not a moving target object.

[0179] In one possible implementation, the device further includes:

[0180] Clock module and pulse module;

[0181] The clock module is used to output a low-jitter trigger signal to the pulse module at a preset time interval. The clock module is connected in series with the input terminal of the pulse module. The pulse module is used to output a scanning command to the detection module in response to the jitter trigger signal. The detection module scans the target area in response to the scanning command.

[0182] In one possible implementation, the device further includes: a logic AND gate module;

[0183] The logic AND gate module includes a first input terminal, a second input terminal, and an output terminal. The first input terminal is connected to the output terminal of the clock module and the input terminal of the pulse generation module, respectively. The second input terminal is connected to the output terminal of the pulse generation module and the detection module, respectively, so as to prevent the scan command from being sent to the microcontroller module and triggering the microcontroller module when the clock module outputs the trigger signal.

[0184] For example, please refer to Figure 11 The functions of the AND gate module U2 include:

[0185] The trigger scan commands generated by the clock module U1 and the pulse module U3 are filtered out and directly sent to the MCU's INT to prevent the MCU from being falsely triggered. That is, when the clock module U1 is triggered, the second pin of the logic AND gate module U2 receives a short low level from the CLK_OUT of the clock module U1. At this time, the AND gate is in a closed state. During this period, the pulse module U3 will output a shorter positive pulse. Regardless of the level signal received by the first pin of the logic AND gate module U2, the output of the AND gate remains at a low level, thereby filtering out the trigger scan commands and preventing the MCU from being falsely woken up.

[0186] The detection module U4 generates the correct INT interrupt wake-up signal to the MCU. When the timer of U1 has not expired and no negative pulse is generated, CLK_OUT maintains a high level output to the first pin of U2, keeping the AND gate in the open state. When the detection module detects a moving object, it sends a high-level INT interrupt to the second pin of U2, and then outputs a high level to MCU_INT to wake up the MCU and start the camera to take pictures.

[0187] The presence of the AND gate module U2 allows the signal input port of the detection module U4 receiving the signal from the pulse module U3 and the signal output port of the detection module U4 sending the identification signal to the MCU to be the same port, which does not require the use of additional pins of the MCU and the detection module, thus reducing costs.

[0188] In one possible implementation, the detection module is further configured to generate a start signal when the target reflection parameters are sent to the microcontroller module, and send the start signal to the clock module. The clock module responds to the start signal by outputting a low-jitter trigger signal to the first input terminal of the pulse module and the AND gate module at a preset time interval. The first input terminal of the AND gate module responds to the low-jitter trigger signal by keeping the AND gate module in a closed state, so that the scanning command output by the pulse module to the detection module is not responded to by the AND gate module.

[0189] In one possible implementation, the clock module outputs a high level to the first input terminal of the AND gate module within a preset time interval, so that the AND gate module remains open.

[0190] When the microcontroller module confirms that the type of the reflection source is a moving target object, the detection module outputs a high level to the second input terminal of the AND gate module, so that the output terminal of the AND gate module outputs a wake-up signal to wake up and start the functional element.

[0191] In one possible implementation, the pulse module includes: a capacitor, a resistor, and a MOSFET;

[0192] One end of the capacitor is connected to the output terminal of the clock module, and the other end of the capacitor is connected in series with the detection module through the MOS transistor. One end of the resistor is connected to the first terminal of the MOS transistor, and the other end of the resistor is connected to the end of the capacitor away from the clock module, so that the pulse module responds to the jitter trigger signal and outputs a scan command to the detection module.

[0193] On the other hand, embodiments of this application provide a smart door lock, including:

[0194] The detection module is used to acquire the target reflection parameters of the target area;

[0195] The micro-control module is used to determine the movement parameters of the reflection source based on the target reflection parameters, and to determine whether the movement parameters are within a preset range, wherein the preset range does not include the interference movement parameters determined in advance based on the interference signal of the ultrasonic interference source received by the detection module; if the movement parameters are within the preset range, it is confirmed that the type of the reflection source is a moving target object; if the movement parameters are not within the preset range, it is confirmed that the type of the reflection source is not a moving target object.

[0196] In one possible implementation, the smart lock further includes functional elements;

[0197] If the movement parameter is within the preset range, after confirming that the type of the target object is a target object, the functional element is activated, and the functional element is used to collect target object information.

[0198] For example, in some implementation methods, such as Figure 10 As shown, clock circuit 1052 is used to generate a trigger signal, and jitter trigger signal is used to wake up pulse circuit 1051 or filter circuit 1053; pulse circuit 1051 is used to receive jitter trigger signal and generate pulse signal; filter circuit 1053 is used to receive jitter trigger signal or pulse signal, wherein clock circuit 1052 is the aforementioned clock module, pulse circuit 1051 is the aforementioned pulse module, and filter circuit 1053 is the aforementioned logic AND gate module.

[0199] For example, the clock circuit 1052 is connected to the control pin of the detection module to receive a clock signal and generate a trigger signal, such as a jitter trigger signal, based on the clock signal. The pulse circuit 1051 is connected to the output pin of the clock circuit 1052 to receive the trigger signal and generate a pulse signal based on the trigger signal; the input / output pin of the detection module is connected to the output pin of the pulse circuit 1051 to receive the pulse signal; the first pin of the filter circuit 1053 is connected to the output pin of the clock circuit 1052 to receive the trigger signal; the second pin of the filter circuit 1053 is connected to the output pin of the pulse circuit 1051 to receive the pulse signal; and the filter circuit 1053 generates a start signal based on the trigger signal and the pulse signal.

[0200] Furthermore, in some implementations, the wake-up signal can be controlled by the filter circuit 1053 to prevent false triggering of the trigger circuit 1070. The wake-up signal is only output to wake up the trigger circuit 1070 when both inputs of the filter circuit 1053 are at a high-level threshold trigger condition.

[0201] Specifically, if the trigger signal does not meet the high-level threshold trigger condition, the filtering circuit 1053 is turned off. For example, when the pulse circuit 1051 receives a jitter trigger signal sent by the clock circuit 1052, it will output a pulse signal and send it to the acquisition circuit 1060. In one embodiment provided by this application, the jitter trigger signal is at a low level, so the jitter trigger signal does not meet the high-level threshold trigger condition, and the filtering circuit 1053 is turned off. Therefore, the output pulse signal will not cause false triggering of the trigger circuit 1070.

[0202] Furthermore, if the trigger signal meets the high-level threshold trigger condition, but the pulse signal does not, the filtering circuit 1053 is turned off. For example, after the clock circuit 1052 sends the jitter signal, its output will remain high, and after the pulse circuit 1051 sends the pulse signal, its output will remain low. In this case, the filtering circuit does not meet the threshold trigger condition that both inputs are high, so the trigger circuit 1070 is turned off.

[0203] Furthermore, if the trigger signal meets the high-level threshold trigger condition and the pulse signal meets the high-level threshold trigger condition, the wake-up signal is generated to wake up the smart door lock 1000. For example, after sending the jitter signal, the clock circuit 1052 will maintain a high level at its output, and after sending the pulse signal, the pulse circuit 1051 will maintain a low level at its output. If the acquisition circuit 1060 detects a target object, the pulse signal will become a high-level threshold, causing both inputs of the filtering circuit 1053 to meet the high-level threshold trigger condition. At this time, a wake-up signal is generated and sent to the trigger circuit 1070, which wakes up the smart door lock 1000. In one embodiment provided by this application, the trigger circuit 1070 can wake up the camera, which can be used to acquire image information of the target object.

[0204] Please see Figure 11 The pulse circuit 1051 may further include a power supply terminal VCC, an input terminal, an output terminal, a capacitor C1, a resistor R1, and a control transistor Q1. In one embodiment provided in this application, the control transistor Q1 may be a field-effect transistor (FET). One end of the capacitor C1 is connected to the input terminal, and the other end is connected to the gate of the control transistor Q1. One end of the resistor R1 is connected to the gate of the control transistor Q1, and the other end is connected to the power supply terminal. The source of the control transistor Q1 is connected to the power supply terminal, and the drain of the control transistor Q1 is connected to the output terminal.

[0205] In some implementations, when the clock circuit 1052 does not generate a trigger signal, the input of the pulse circuit 1051 remains at a high level, and the other end of capacitor C1 is pulled high by the power supply VCC. When the clock circuit 1052 sends a trigger signal, the input of the pulse circuit 1051 receives a low-level signal, and the level at the other end of capacitor C1 will slowly charge from a low level to a high level through the power supply VCC. That is, the gate of the control transistor Q1, which is connected to the other end of capacitor C1, will receive a voltage signal from high level to low level and then back to high level. For the control transistor Q1, when the gate of the control transistor Q1 is at a high level, the control transistor Q1 is cut off, that is, the source and drain of the control transistor Q1 are open, and there is no signal output at the output of the pulse circuit 1051. When the gate of the control transistor Q1 is at a low level, the control transistor Q1 is turned on, that is, the source and drain of the control transistor Q1 are connected, and the output of the pulse circuit 1051 is connected to the power supply VCC, outputting a high-level signal. Therefore, when the clock circuit 1052 sends a jitter trigger signal, the control transistor Q1 first changes from the cutoff state to the on state, and then back to the cutoff state.

[0206] This application provides a target object detection method and a smart lock. The method first obtains the movement parameters of the target object through the detection module, then determines whether the movement parameters meet the triggering conditions. If the movement parameters meet the triggering conditions, the corresponding functional element is activated; if the movement parameters do not meet the triggering conditions, the process returns to the step of obtaining the movement parameters of the target object through the detection module. This application also uses an intelligent control circuit to control the smart lock. Because the jitter trigger signal generated by the clock circuit or the pulse signal generated by the pulse circuit may cause the triggering circuit to be falsely triggered, thereby waking up the smart lock, resulting in unnecessary resource waste and a reduced user experience. This application, by setting a filtering circuit, prevents the jitter trigger signal generated by the clock circuit or the pulse signal generated by the pulse circuit from causing false triggering of the triggering circuit, reducing the probability of falsely waking up the smart lock, saving system resources, and improving the user experience.

[0207] The above description discloses only preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. Therefore, equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for detecting a target object, characterized in that, include: The target reflection parameters of the target area are obtained; the target reflection parameters are obtained by scanning through the scanning command output by the difference control circuit; wherein, the difference control circuit is used to control the scanning frequency accuracy of the detection module, and the difference control circuit improves the scanning frequency accuracy of the detection module by using a clock module with an accuracy higher than a set accuracy threshold, so as to avoid interference from similar detection devices. Based on the target reflection parameters, the movement parameters of the reflection source are determined, and it is determined whether the movement parameters are within a first preset range. The first preset range does not include interference movement parameters determined in advance based on interference signals from interference sources received by the detection module. The interference source includes similar detection devices that emit ultrasonic waves. If the movement parameter is within the first preset range, the type of the reflection source is confirmed to be a moving target object; If the movement parameter is not within the first preset range and is not lower than the first preset threshold, then the reflection source is identified as an interference source; if the movement parameter is within the second preset range, the reflection source is confirmed as an interference source; the second preset range is determined based on the signals of interference sources in the target area obtained in advance; the second preset range is determined based on the interference signals emitted by the interference source.

2. The target object detection method as described in claim 1, characterized in that, The first preset threshold is not located within the first preset range; the second preset range is not located within the first preset range and is not lower than the first preset threshold.

3. The target object detection method as described in claim 2, characterized in that, The method for obtaining the second preset range includes: Obtain the interference signal emitted by the interference source; The second preset range is determined based on the interference signal; wherein the second preset range includes interference movement parameters determined in advance based on the interference signal of the interference source received by the detection module.

4. The target object detection method as described in claim 2, characterized in that, Before the step of obtaining the target reflection parameters of the target area, the following also applies: The target area is scanned according to the scanning command; wherein, the difference control circuit is used to control the scanning frequency accuracy of the detection module; Furthermore, the step of confirming that the type of the reflection source is an interference source if the movement parameter is not within the first preset range includes: When it is determined that the movement parameter is not within the first preset range and is lower than the first preset threshold, the detection module confirms that the reflection source is the interference source.

5. The target object detection method as described in claim 4, characterized in that, The detection module is an ultrasonic module.

6. The target object detection method as described in claim 5, characterized in that, The difference control circuit uses a logic AND gate module to prevent the scan command from being sent to the microcontroller module when the clock module outputs a trigger signal, thereby triggering the microcontroller module.

7. The target object detection method according to any one of claims 1 to 6, characterized in that, After confirming that the type of the reflection source is a moving target object if the movement parameter is within the first preset range, the method further includes: The functional element is awakened and activated; the functional element is used to collect target object information.

8. A target object detection device, characterized in that, include: The detection module is used to acquire the target reflection parameters of the target area. The target reflection parameters are obtained by scanning through the scanning command output by the difference control circuit. The difference control circuit is used to control the scanning frequency accuracy of the detection module, and the difference control circuit improves the scanning frequency accuracy of the detection module by using a clock module with an accuracy higher than a set accuracy threshold, so as to avoid interference from similar detection devices. The microcontroller module is connected to the detection module; The detection module or the microcontroller module is configured to: determine the movement parameters of the reflection source based on the target reflection parameters, and determine whether the movement parameters are within a first preset range, wherein the first preset range does not include interference movement parameters determined in advance based on interference signals from interference sources received by the detection module; the interference source includes similar detection devices that emit ultrasonic waves; if the movement parameters are within the first preset range, confirm that the type of the reflection source is a moving target object; if the movement parameters are not within the first preset range and are not lower than a first preset threshold, identify whether the reflection source is an interference source; if the movement parameters are within a second preset range, confirm that the reflection source is an interference source; the second preset range is determined based on signals from interference sources in the target area obtained in advance; the second preset range is determined based on interference signals emitted by the interference source.

9. The target object detection device as described in claim 8, characterized in that, The first preset threshold is not located within the first preset range; the second preset range is not located within the first preset range and is not lower than the first preset threshold.

10. The target object detection device as described in claim 9, characterized in that, The detection module is also used to acquire the interference signal emitted by the interference source; The detection module or the microcontroller module is further configured to: determine the second preset range based on the interference signal; wherein the second preset range includes interference movement parameters determined in advance based on the interference signal of the interference source received by the detection module.

11. The target object detection device as described in claim 9, characterized in that, Also includes: A difference control circuit is connected between the microcontroller module and the detection module, used to control the scanning frequency accuracy of the detection module and to send scanning commands to the detection module; Furthermore, the detection module is used to scan the target area in response to the scanning command, and when it determines that the movement parameter is not within the first preset range and is lower than the first preset threshold, it confirms that the reflection source is the interference source.

12. The target object detection device as described in claim 11, characterized in that, The difference control circuit includes: The clock module has an accuracy higher than a set accuracy threshold and is used to output trigger signals at preset time intervals. A pulse generation module, connected between the clock module and the detection module, is used to output the scan command to the detection module in response to the trigger signal.

13. The target object detection device as described in claim 12, characterized in that, The difference control circuit further includes: a logic AND gate module, which is connected to the microcontroller module, the pulse generation module, and the detection module respectively; the logic AND gate module is used to prevent the scan command from being sent to the microcontroller module and triggering the microcontroller module when the clock module outputs the trigger signal.

14. The target object detection device as described in claim 13, characterized in that, The clock module is used to output the trigger signal to the pulse generation module and the logic AND gate module at the preset time interval; the logic AND gate module responds to the trigger signal to keep the logic AND gate module in a closed state so that the scan command is not responded to by the logic AND gate module.

15. The target object detection device as described in claim 13, characterized in that, The detection module is used to determine that when the movement parameter is not within the first preset range and is lower than the first preset threshold, the reflection source is confirmed as the interference source; it is also used to determine that when the movement parameter is not within the first preset range and is not lower than the first preset threshold, the microcontroller module is woken up by the logic AND gate module so that the microcontroller module can identify whether the reflection source is an interference source.

16. The target object detection device as described in claim 13, characterized in that, The logic AND gate module includes a first input terminal, a second input terminal, and an output terminal. The first input terminal is connected to the output terminal of the clock module and the input terminal of the pulse generation module, respectively. The second input terminal is connected to the output terminal of the pulse generation module and the detection module, respectively, so as to prevent the scan command from being sent to the microcontroller module and triggering the microcontroller module when the clock module outputs the trigger signal.

17. The target object detection device according to any one of claims 13 to 16, characterized in that, The pulse generation module includes: a capacitor, a resistor, and a switching unit; One end of the capacitor is connected to the output terminal of the clock module and the first input terminal of the AND gate module, respectively; the other end of the capacitor is connected to one end of the resistor and the control terminal of the switching unit, respectively; the other end of the resistor is connected to the external power supply and the first terminal of the switching unit, respectively; the second terminal of the switching unit is connected to the detection module and the second input terminal of the AND gate module, respectively; and the output terminal of the AND gate module is connected to the microcontroller module.

18. A smart door lock, characterized in that, include: The detection module is used to acquire the target reflection parameters of the target area; the target reflection parameters are obtained by scanning through the scanning command output by the difference control circuit; wherein, the difference control circuit is used to control the scanning frequency accuracy of the detection module, and the difference control circuit improves the scanning frequency accuracy of the detection module by using a clock module with an accuracy higher than a set accuracy threshold, so as to avoid interference from similar detection devices. The microcontroller module is connected to the detection module; The detection module or the microcontroller module is configured to: determine the movement parameters of the reflection source based on the target reflection parameters, and determine whether the movement parameters are within a first preset range, wherein the first preset range does not include interference movement parameters determined in advance based on interference signals from interference sources received by the detection module; the interference source includes similar detection devices that emit ultrasonic waves; if the movement parameters are within the first preset range, confirm that the type of the reflection source is a moving target object; if the movement parameters are not within the first preset range and are not lower than a first preset threshold, identify whether the reflection source is an interference source; if the movement parameters are within a second preset range, confirm that the reflection source is an interference source; the second preset range is determined based on signals from interference sources in the target area obtained in advance; the second preset range is determined based on interference signals emitted by the interference source.

19. The smart door lock as described in claim 18, characterized in that, The smart lock also includes functional components; The microcontroller module is used to activate the functional element after confirming that the target object is a moving target object; the functional element is used to collect target object information.