Detection circuit, radar module detection method, device, equipment and storage medium

By connecting the switch circuit and control unit to the output interface of the radar module, the display screen is controlled to light up or turn off, which solves the problem of indistinguishable display screen status when the radar module is abnormal, and realizes the intuitive reflection of the radar module status in different environments and ensures that the display screen works normally.

CN113534075BActive Publication Date: 2025-08-08QINGDAO ECONOMIC AND TECHNOLOGICAL DEVELOPMENT ZONE HAIER WATER HEATER CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110714810.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-25
Publication Date
2025-08-08
Estimated Expiration
2041-06-25

AI Technical Summary

Technical Problem

In the prior art, when the radar module of an electrical appliance is abnormal, the display screen status is the same as that of a person, and it is difficult to determine whether the radar module is abnormal.

Method used

By connecting the switch circuit and the control unit to the output interface of the radar module, the switching circuit is controlled to turn on or off, and the display screen is turned on or off according to the level signal. The status of the display screen in the state of the switch circuit is turned off reflects whether the radar module is abnormal.

Benefits of technology

It realizes that in a person or unmanned environment, the working status of the radar module is reflected intuitively by lighting up or off the display screen, ensuring that the display screen does not affect the display when the radar module is abnormal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113534075B_ABST
    Figure CN113534075B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of electrical technology, and specifically relates to a detection circuit, a radar module detection method, an apparatus, a device, and a storage medium, which are used to determine whether a radar module in an electronic device is abnormal. In the present application, the detection circuit includes a switching circuit, a power module, and a control unit: the first port of the control unit is connected to the switching circuit, the second port of the control unit is connected to the radar module of the electronic device and the second port is connected to the power module via the switching circuit, the third port of the control unit is connected to the display screen of the electronic device, and the control unit is used to control the conduction or disconnection of the switching circuit, and, according to the level signal at the second port, control the lighting or extinguishing of the display screen; wherein, when the switching circuit is in the disconnected state, if the radar module is working normally, the display screen is lit, and if the radar module is abnormal, the display screen is extinguished. Thus, the detection of whether the radar module in the electronic device is abnormal is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electrical technology, and specifically relates to a detection circuit, a radar module detection method, a device, an equipment and a storage medium. Background Art

[0002] To save energy on the appliance's display, a radar module can be used to detect whether there are people nearby. If a person is detected, the radar module outputs a high level, triggering the appliance's display to light up; otherwise, the radar module outputs a low level, triggering the appliance's display to turn off.

[0003] At present, in order to improve the stability of the operation of the radar module in electrical appliances, a pull-up resistor is generally connected to the output interface of the radar module to ensure that the radar module outputs a high level even when it is abnormal, thereby ensuring that the display screen of the electrical appliance can light up normally when the radar module is abnormal.

[0004] However, in the above method, the state of the display screen when there is someone around the appliance is the same as the state of the display screen when the radar module is abnormal, and in the production environment of appliances, there are basically people around the appliances, making it difficult to determine whether the radar module in the appliance is abnormal. Summary of the Invention

[0005] In order to solve the above-mentioned problems in the prior art, that is, to determine whether a radar module in an electronic device is abnormal, the present application provides a detection circuit, a radar module detection method, an apparatus, a device and a storage medium.

[0006] In a first aspect, the present application provides a detection circuit, the detection circuit comprising: a switch circuit, a power module, and a control unit;

[0007] A first port of the control unit is connected to the switch circuit, a second port of the control unit is connected to a radar module of the electronic device, and the second port is connected to the power module via the switch circuit, and a third port of the control unit is connected to a display screen of the electronic device. The control unit is configured to control the on / off state of the switch circuit and, based on a level signal at the second port, control the lighting or extinguishing of the display screen.

[0008] Among them, when the switch circuit is in the disconnected state, if the radar module works normally, the level signal is a high-level signal and the display screen lights up; if the radar module is abnormal, the level signal is a low-level signal and the display screen goes out.

[0009] In a possible implementation, the control unit is specifically configured to control the switch circuit to be disconnected within a first preset time period after the control unit is started, where the first preset time period is less than or equal to a startup time period of the display screen.

[0010] In one possible implementation, the control unit is specifically used to: read the level signal after a second preset time after the control unit is started, the second preset time is less than the first preset time, and the second preset time is greater than or equal to the initialization time of the radar module.

[0011] In a possible implementation, the control unit is specifically configured to control the switch circuit to be turned on after the first preset time period after the control unit is started.

[0012] In a possible implementation, the detection circuit further includes: a first resistor and a second resistor, wherein the resistance of the first resistor is smaller than the resistance of the second resistor;

[0013] The first resistor is arranged between the radar module and the switching circuit, the connection end between the first resistor and the radar module is also connected to the second port and one end of the second resistor respectively, and the other end of the second resistor is grounded.

[0014] In a possible implementation, the detection circuit further includes: a third resistor and a fourth resistor;

[0015] The third resistor is arranged between the radar module and the second port, and the fourth resistor is arranged between the first port and the switch circuit.

[0016] In a second aspect, the present application provides a radar module detection method, which is applied to an electronic device, wherein the electronic device includes a radar module, a display screen, and the detection circuit as described in the first aspect or any possible embodiment of the first aspect. The radar module detection method includes:

[0017] After the electronic device is started, controlling the switch circuit in the detection circuit to be disconnected;

[0018] During a time period when the switch circuit is disconnected, detecting whether the display screen is lit;

[0019] Among them, if the display screen is on, the radar module is working normally, and if the display screen is off, the radar module is abnormal.

[0020] In a possible implementation, after the electronic device is started, controlling the switch circuit in the detection circuit to be disconnected includes:

[0021] The switch circuit is controlled to be disconnected within a first preset time period after the electronic device is started, and the first preset time period is less than or equal to the start-up time period of the display screen.

[0022] In a possible implementation, detecting whether the display screen is lit during a time period when the switch circuit is disconnected includes:

[0023] After a second preset time period after the electronic device is started, detecting whether the display screen is lit, the second preset time period is less than the first preset time period, and the second preset time period is greater than or equal to the initialization time period of the radar module.

[0024] In a possible implementation, after detecting whether the display screen is lit, the radar module detection method further includes:

[0025] The switch circuit is controlled to be turned on.

[0026] In a third aspect, the present application provides a radar module detection device, applied to an electronic device, the electronic device including a radar module, a display screen, and the detection circuit according to the first aspect or any possible embodiment of the first aspect, the radar module detection device including:

[0027] a control module, configured to control the switch circuit in the detection circuit to be disconnected after the electronic device is started;

[0028] a detection module, configured to detect whether the display screen is lit during a time period when the switch circuit is disconnected;

[0029] Among them, if the display screen is on, the radar module is working normally, and if the display screen is off, the radar module is abnormal.

[0030] In a fourth aspect, the present application provides an electronic device, comprising:

[0031] processor and memory;

[0032] The memory stores a computer program;

[0033] When the processor executes the computer program stored in the memory, the radar module detection method provided by the second aspect or any possible implementation manner of the second aspect is implemented.

[0034] In a fifth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the radar module detection method provided in the second aspect or any possible implementation method of the second aspect.

[0035] In a sixth aspect, the present application provides a chip, comprising:

[0036] processor and memory;

[0037] The memory stores a computer program;

[0038] When the processor executes the computer program stored in the memory, the radar module detection method provided by the second aspect or any possible implementation manner of the second aspect is implemented.

[0039] In a seventh aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the radar module detection method provided in the above-mentioned second aspect or any possible implementation method of the second aspect.

[0040] Those skilled in the art will appreciate that, in the present application, the detection circuit includes a switching circuit, a power module, and a control unit. On the control unit, a first port is connected to the power module via the switching circuit, a second port is connected to the radar module of the electronic device and the second port is connected to the power module via the switching circuit, and a third port is connected to the display screen of the electronic device. The control unit is configured to control the switching circuit to be turned on or off, and to control the display screen to be turned on or off based on the level signal at the second port. In the detection circuit, when the switching circuit is in the off state, the level signal at the second port is the level signal output by the radar module. If the radar module is operating normally, the level signal at the second port is a high level signal, and the display screen is turned on. If the radar module is abnormal, the level signal at the second port is a low level signal, and the display screen is turned off. Therefore, by controlling the switching circuit to be off, the display screen can be turned on or off to reflect whether the radar module is operating normally or abnormally, thereby detecting whether the radar module is abnormal. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The following describes preferred embodiments of the radar module detection method, apparatus, device, and storage medium of the present application with reference to the accompanying drawings.

[0042] Figure 1 A schematic diagram of the structure of a detection circuit provided in one embodiment of the present application;

[0043] Figure 2 A schematic structural diagram of a detection circuit provided in another embodiment of the present application;

[0044] Figure 3 A schematic structural diagram of a detection circuit provided in another embodiment of the present application;

[0045] Figure 4 A schematic structural diagram of a detection circuit provided in another embodiment of the present application;

[0046] Figure 5 1 is a flow chart of a radar module detection method provided by an embodiment of the present application;

[0047] Figure 6A schematic structural diagram of a radar module detection device provided in one embodiment of the present application;

[0048] Figure 7 A schematic structural diagram of an electronic device provided in one embodiment of the present application.

[0049] Description of reference numerals:

[0050] 110 - switching circuit; 120 - power module; 130 - control unit; 131 - first port; 132 - second port; 133 - third port; 210 - display screen; 220 - radar module. DETAILED DESCRIPTION

[0051] First, those skilled in the art should understand that these embodiments are merely used to explain the technical principles of this application and are not intended to limit the scope of protection of this application. Those skilled in the art may adjust them as needed to suit specific applications.

[0052] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "an" and "the" used in the embodiments of the present application are also intended to include plural forms unless the context clearly indicates otherwise.

[0053] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, A and / or B can be expressed as: A alone, A and B simultaneously, or B alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0054] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.

[0055] It should also be noted that the terms "include," "comprises," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a product or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such product or system. In the absence of further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the product or system comprising the element.

[0056] In electrical appliances, the radar module outputs a high-level signal when it detects that there are people around, triggering the display screen of the appliance to light up; when the radar module detects that there are no people around the appliance, it outputs a low-level signal, triggering the display screen of the appliance to go out, reducing the power consumption of the appliance.

[0057] To prevent the appliance's display from failing to illuminate due to a radar module malfunction, a pull-up resistor can be connected to the radar module's output port. In the event of a radar module malfunction, the pull-up resistor's voltage divider maintains a high signal level at the control chip's port connected to the radar module, keeping the display illuminated. However, with this approach, the display remains illuminated regardless of whether the appliance is occupied, making it difficult to determine whether the radar module is malfunctioning based on the display's status.

[0058] To enable the determination of whether a radar module in an electronic device is abnormal by the state of the display screen even when a person is present, an embodiment of the present application provides a detection circuit. In this detection circuit, a first port of a control unit is connected to a switch circuit, a second port of the control unit is connected to the radar module of the electronic device, and the second port is connected to a power module via the switch circuit, and a third port of the control unit is connected to the display screen of the electronic device. When the switch circuit is in the off state, the level signal at the second port is the level signal output by the radar module. If the radar module is abnormal, the level signal at the second port is a low-level signal, and the display screen is off; if the radar module is operating normally, the level signal at the second port is a high-level signal, and the display screen is illuminated. Therefore, in both a present and unpresent environment, the detection circuit can control the switch circuit to be off, and based on whether the display screen is illuminated or off when the switch circuit is off, it can reflect whether the radar module is operating normally or abnormal, thereby detecting whether the radar module is abnormal.

[0059] Optionally, in various embodiments of the present application, the radar module abnormality includes at least one of the following: a missing radar module, a poorly plugged radar module, a damaged radar module, or an abnormality in the wiring harness connected to the radar module. Examples of wiring harness abnormalities include poor wiring harness contact (e.g., a loose connection wire), incorrect wiring harness sequence, wiring harness quality issues, or a disconnected wiring harness.

[0060] Optionally, after detecting an abnormality in the radar module, the specific abnormality of the radar module can be determined through a troubleshooting method. For example, after detecting an abnormality in the radar module, the radar module is re-plugged and the radar module is re-tested for abnormality. If the radar module abnormality is still detected, the radar module is not plugged in properly or the radar module is not properly plugged in. For another example, after detecting an abnormality in the radar module, the wiring harness connected to the radar module is checked and / or replaced. After confirming that there are no problems with the wiring harness and the connection of the wiring harness, the radar module is re-tested for abnormality. If the radar abnormality is still detected, the wiring harness connected to the radar module is ruled out as abnormal. For another example, after detecting an abnormality in the radar module, the radar module is replaced and the radar module is re-tested for abnormality. If the radar abnormality is still detected, the radar module is ruled out as damaged. The above troubleshooting methods can be combined with each other to determine the ultimate cause of the radar module abnormality.

[0061] For example, the electronic devices of the various embodiments of the present application are household appliances such as water heaters, air conditioners, heaters, smart speakers, and home central control screens.

[0062] Figure 1 This is a schematic diagram of the structure of the detection circuit provided in one embodiment of the present application. Figure 1 As shown, the detection circuit includes: a switch circuit 110, a power module 120, and a control unit 130. On the control unit 130: a first port 131 is connected to the switch circuit 110; a second port 132 is connected to the radar module 220 of an electronic device (not shown), and the second port is connected to the power module 120 through the switch circuit 110; and a third port 133 is connected to the display screen 210 of the electronic device.

[0063] The control unit 130 is used to control the on / off state of the switch circuit 110. The control unit 130 may send a control signal to the switch circuit 110 via the first port 131, and instruct the switch circuit 110 to be on or off via the control signal.

[0064] The control unit 130 is configured to control the display screen 210 to turn on or off according to the level signal at the second port 132. Specifically, when the control unit 130 reads a high-level signal at the second port 132, it sends a control signal to the display screen 210 via the third port 133, instructing the display screen 210 to turn on. When the control unit 130 reads a low-level signal at the second port 132, it sends a control signal to the display screen 210 via the third port 133, instructing the display screen 210 to turn off.

[0065] When the switch circuit 110 is turned on, the connection between the second port 132 and the power module 120 is connected. If the radar module 220 works normally, the level signal at the second port 132 is determined by the level signal output by the radar module 220; if the radar module 220 is abnormal, the level signal at the second port 132 is affected by the power module 120 and maintains a high level signal.

[0066] When the switch circuit 110 is disconnected, the connection between the second port 132 and the power module 120 is disconnected. Regardless of whether the radar module 220 is working normally or abnormal, the level signal at the second port 132 is determined by the level signal output by the radar module 220.

[0067] Specifically, the working principle of the detection circuit is as follows:

[0068] (1) The switch circuit 110 is turned on and the radar module 220 is normal:

[0069] When the electronic device is near a person, the radar module 220 outputs a high-level signal, the second port receives a high-level signal, and the control unit 130 controls the display screen 210 to light up. When the electronic device is near an unmanned environment, the radar module 220 outputs a low-level signal, the second port 132 receives a low-level signal, and the control unit 130 controls the display screen 210 to turn off. Thus, the display screen 210 is controlled to light up or off depending on whether there is a person nearby, achieving energy conservation.

[0070] (2) The switch circuit 110 is turned on and the radar module 220 is abnormal:

[0071] When the electronic device is in a human or human environment, the abnormal radar module 220 cannot output a level signal to affect the level signal at the second port 132. Due to the influence of the power module 120, the level signal at the second port 132 remains high, and the control unit 130 controls the display screen 210 to illuminate. Therefore, when the radar module 220 is abnormal, the display screen 210 can remain illuminated without being affected by the abnormality of the radar module 220.

[0072] (3) The switch circuit 110 is disconnected

[0073] When the switch circuit 110 is turned off, the level signal at the second port 132 is determined by the radar module 220 .

[0074] If radar module 220 is functioning normally, then when the electronic device is in a manned environment, radar module 220 outputs a high-level signal, the second port 132 receives a high-level signal, and control unit 130 controls display screen 210 to illuminate. If the electronic device is in an unmanned environment, radar module 220 outputs a low-level signal, the second port 132 receives a low-level signal, and control unit 130 controls display screen 210 to extinguish. If radar module 220 is functioning abnormally, then regardless of whether the electronic device is in a manned or unmanned environment, the level signal at second port 132 is a low-level signal, and control unit 130 reads the low-level signal at second port 132 and controls display screen 210 to extinguish.

[0075] Given that the production environment, maintenance environment of electronic equipment, or the environment in which users check whether the radar module is abnormal, is usually an environment with people, when the switch circuit 110 is in the disconnected state, if the radar module 220 works normally, the radar module 220 outputs a high-level signal, the level signal at the second port 132 is a high-level signal, and the display screen 210 lights up; if the radar module 220 is abnormal, the level signal at the second port 132 is a low-level signal, and the display screen 210 is off.

[0076] Therefore, in the embodiment of the present application, in the above-mentioned detection circuit, by controlling the switch circuit 110 to be disconnected, the display screen 210 can be turned on or off to promptly provide feedback to people around the electronic device whether the radar module 220 is operating normally or abnormally. If a user observes that the display screen 210 is off near the electronic device, it can be determined that there may be an abnormality in the radar module 220, and the radar module 220 can be repaired or a maintenance personnel can be contacted in a timely manner.

[0077] In some embodiments, the control unit 130 is specifically configured to control the switch circuit 110 to be disconnected within a first preset duration after the control unit 130 is activated, where the first preset duration is less than or equal to the activation duration of the display screen 210. Thus, within the first preset duration after the control unit 130 is activated, the radar module 220 is detected to be operating normally or abnormally. The first preset duration is less than or equal to the activation duration of the display screen 210, thereby preventing the detection of whether the radar module 220 is operating normally or abnormally from affecting the normal display of the display screen 210 after activation.

[0078] Specifically, when the control unit 130 is activated, the electronic device starts up, and the display screen 210 also starts up. For a first preset period of time after the control unit 130 is activated, the control unit 130 controls the switch circuit 110 to remain in the off state. If the display screen 210 is illuminated, the radar module 220 is functioning normally. If the display screen 210 is off, the radar module 220 is malfunctioning. This allows the radar module 220 to be detected before the display screen 210 completes its startup process.

[0079] For example, if the display screen 210 takes 2.2 seconds to activate, the control unit 130 may control the switch circuit 110 to be disconnected within 0 to 2.2 seconds after activation. If the display screen 210 lights up within 0 to 2.2 seconds, it can be determined that the radar module 220 is functioning normally. If the display screen 210 turns off within 0 to 2.2 seconds, it can be determined that the radar module 220 is malfunctioning.

[0080] In some embodiments, the control unit 130 is specifically configured to read the level signal at the second port 132 after a second preset time period has elapsed since the control unit 130 was activated. The second preset time period is less than the first preset time period and is greater than or equal to the radar initialization time period. Therefore, given that the level signal output by the radar module 220 may be unstable during initialization, the radar module 220 is detected to determine whether it is functioning normally or abnormally after the radar module 220 is initialized and before the display screen 210 completes startup. This prevents the radar module 220's detection from affecting the normal display of the display screen 210 after startup and improves detection accuracy.

[0081] Specifically, the control unit 130 controls the switch circuit 110 to be disconnected within a first preset time period after startup, and reads the level signal at the second port 132 after a second preset time period after startup. Based on the read level signal at the second port 132, the display screen 210 is turned on or off. If the radar module 220 is functioning normally, a high level signal will be present at the second port 132 after the second preset time period, turning the display screen 210 on. If the radar module 220 is malfunctioning, a low level signal will be present at the second port 132 after the second preset time period, turning the display screen 210 off.

[0082] For example, if the startup time of the display screen 210 is 2.2 seconds and the initialization time of the radar module 220 is 1.5 seconds, the first preset time may be 2.2 seconds and the second preset time may be 1.5 seconds. The control unit 130 may control the switch circuit 110 to be off within the period of 0 to 2.2 seconds after startup, read the level signal at the second port 132 within the period of 1.5 to 2.2 seconds after startup, and control the display screen 210 to be turned on or off according to the read level signal. If the display screen 210 is on within 1.5 to 2.2 seconds, it can be determined that the radar module 220 is operating normally. If the display screen 210 is off within 1.5 to 2.2 seconds, it can be determined that the radar module 220 is operating normally. If the display screen 210 is off within 1.5 to 2.2 seconds, it can be determined that the radar module 220 is abnormal.

[0083] In some embodiments, the control unit 130 is specifically configured to control the switch circuit 110 to be turned on after a first preset time period after the control unit 130 is activated. Thus, the radar module 220 is detected within the first preset time period after the control unit 130 is activated. After the first preset time period, the display screen 210 is ensured to be turned off in an unmanned environment when the radar module 220 is operating normally and to be turned on in a manned environment, and to remain illuminated in the event of an abnormality in the radar module 220.

[0084] Specifically, after the first preset time after the control unit 130 is started, the control unit 130 sends a control signal to the switch circuit 110 through the first port 131 to instruct the switch circuit 110 to turn on, so that the switch circuit 110 is turned on after the first preset time after the control unit 130 is started.

[0085] For example, if the display screen 210 takes 2.2 seconds to start up, the first preset time period may be 2.2 seconds, and the control unit 130 may control the switch circuit 110 to be off within 0 to 2.2 seconds after startup, and control the switch circuit 110 to be on after 2.2 seconds after startup. Furthermore, if the radar module 220 has an initialization time period of 1.5 seconds, the control unit 130 may control the switch circuit 110 to be off within 0 to 2.2 seconds after startup, read the level signal at the second port 132 within 1.5 seconds to 2.2 seconds after startup, and control the switch circuit 110 to be on after 2.2 seconds after startup.

[0086] Furthermore, after the control unit 130 is powered on, it can control the display screen 210 to light up and control the switch circuit 110 to be disconnected within a first preset time. After a second preset time after powering on, it reads the level signal at the second port 132 and controls the display screen 210 to light up or turn off according to the read level signal. After the first preset time after lighting up, it controls the switch circuit 110 to be turned on. At this time:

[0087] 1) If radar module 220 is functioning properly, display screen 210 will remain lit after control unit 130 is powered on. Therefore, if display screen 210 remains lit after control unit 130 is powered on in a human-occupied environment, radar module 220 can be confirmed to be functioning properly.

[0088] 2) If radar module 220 is abnormal, display screen 210 will illuminate within a second preset duration after control unit 130 is powered on. After the second preset duration and within the first preset duration, display screen 210 will be off. After the first preset duration, display screen 210 will illuminate again. Therefore, in a human-occupied environment, if the display screen 210 changes state from on to off to on after control unit 130 is powered on, it can be determined that radar module 220 is abnormal.

[0089] For example, consider a water heater as an electronic device, with a first preset duration of 2.2 seconds and a second preset duration of 1.5 seconds: When the water heater is initially powered on, the display screen lights up. If the level signal at second port 132 is high from 1.5 to 2.2 seconds after power-on, the display screen remains on. If the level signal at second port 132 is low from 1.5 to 2.2 seconds after power-on, the display screen turns off. After 2.2 seconds, the display screen returns to the on state. Therefore, if the display screen turns off and then back on after the water heater is powered on, it is determined that the water heater's radar module is abnormal. If the display screen remains on after the water heater is powered on, it is determined that the water heater's radar module is normal.

[0090] Furthermore, when the environment in which the electronic device is located switches back and forth between a manned environment and an unmanned environment, the level signal output by the radar module 220 frequently changes between a high-level signal and a low-level signal. In this case, in order to avoid the display screen frequently lighting up and off and causing visual fatigue to the user, the level signal at the second port 132 can be read again after the display screen 210 is lit for a preset period of time, so that the display screen 210 is kept lit for at least a preset period of time each time.

[0091] The preset duration is, for example, 30 seconds.

[0092] Figure 2 This is a schematic diagram of the structure of a detection circuit provided by another embodiment of the present application. Figure 2 As shown, in Figure 1 In addition to the detection circuit shown above, the detection circuit further includes a first resistor R1 and a second resistor R2. The first resistor R1 is disposed between the radar module 220 and the switch circuit 110. The connection between the first resistor R1 and the radar module 220 is further connected to the second port 132 and one end of the second resistor R2, respectively. The other end of the second resistor R2 is grounded. The resistance of the first resistor R1 is smaller than that of the second resistor R2.

[0093] When the switch circuit 110 is turned on, the power module 120, the switch circuit 110, the first resistor R1, and the power module 120 form a path. The first resistor R1 and the second resistor R2 act as voltage divider resistors in this path. Because the first resistor R1 is smaller than the second resistor R2, the voltage corresponding to the first resistor R1 is greater than the voltage corresponding to the second resistor R2. Therefore, when the radar module 220 malfunctions, the voltage divider effect of the first resistor R1 and the second resistor R2 maintains a high-level signal at the second port 132, and the display screen 210 remains illuminated, unaffected by the malfunction of the radar module 220.

[0094] When the switch circuit 110 is disconnected, the path between the first resistor R1 and the power module 120 is disconnected. The second resistor R1 has one end connected to the second port 132 and the other end grounded, acting as a pull-down resistor. When the switch circuit 110 is disconnected and the radar module 220 is malfunctioning, the second resistor R2, with one end grounded, keeps the signal level at the second port 132 low, and the display screen 210 is off. When the switch circuit 110 is disconnected and the radar module 220 is operating normally, the signal level at the second port 132 is the signal level output by the radar module 220. When a person is near the radar module 220, the display screen 210 illuminates. Thus, when the switch circuit 110 is disconnected, the presence of the display screen 210 can be used to determine whether the radar module 220 is malfunctioning.

[0095] exist Figure 1 or Figure 2 The detection circuit shown is based on Figure 2 Take the detection circuit shown as an example, Figure 3 This is a schematic diagram of the structure of a detection circuit provided by another embodiment of the present application. Figure 3 As shown, the detection circuit also includes a third resistor R3 and a fourth resistor R4. The third resistor R3 is disposed between the radar module 220 and the second port 132, and the fourth resistor R4 is disposed between the first port 131 and the switch circuit 110. The third resistor R3 and the fourth resistor R4 are current-limiting resistors. The third resistor R3 is used to protect the radar module 220 from excessive current, and the fourth resistor R4 is used to protect the switch circuit 110 from excessive current.

[0096] In some embodiments, based on the detection circuit in any of the aforementioned embodiments, the switch circuit 110 is a triode, the base of the switch circuit 110 is connected to the first port 131 of the control unit 130, the emitter of the switch circuit 110 is connected to the power module 120, and the collector of the switch circuit 110 is connected to the second port 132 of the control unit 130. Specifically, after the base of the switch circuit 110 receives a control signal from the control unit 130 instructing the switch circuit 110 to turn on, the emitter and collector of the switch circuit 110 are turned on; after the base of the switch circuit 110 receives a control signal from the control unit 130 instructing the switch circuit 110 to turn off, the emitter and collector of the switch circuit 110 are turned off.

[0097] Further, such as Figure 4 As shown, the base of the switch circuit 110 is connected to the first port 131 through the fourth resistor R4, and the fourth resistor R4 is used to prevent the current of the base of the switch circuit 110 from being too large. Figure 4 The supply voltage VCC is shown.

[0098] In some embodiments, the radar module 220 uses the Doppler radar sensing principle to detect whether there are people around the electronic device, so as to improve the accuracy of the radar module 220 in detecting whether there are people.

[0099] When using the Doppler radar sensing principle, the front-end transmitting circuit (not shown) in radar module 220 includes a processor, an oscillator circuit, and an antenna. Within the front-end transmitting circuit, electromagnetic waves are regulated and then transmitted through the antenna. For example, the frequency of the transmitted electromagnetic waves is f1. When a person enters the sensing range of radar module 220, the electromagnetic waves are reflected by the person and received by the receiving antenna of radar module 220. If the person is moving in the opposite direction of the transmitted electromagnetic wave, the frequency of the reflected electromagnetic wave is f1 + fd. If the person is moving in the same direction as the transmitted electromagnetic wave, the frequency of the reflected electromagnetic wave is f1 - fd. Here, fd is the Doppler frequency, which is proportional to the person's speed. The transmitted and reflected electromagnetic waves are mixed, amplified, and frequency-selected to determine fd. If fd is non-zero, it indicates that a person is near the electronic device, and radar module 220 outputs a high-level signal. Otherwise, it indicates that no one is near the electronic device, and radar module 220 outputs a low-level signal.

[0100] The present application also provides a radar module detection method. In this method, the detection circuit provided in any of the aforementioned embodiments is used to detect whether the radar module is abnormal. The radar module detection method will be described in detail below using the embodiments.

[0101] Illustratively, the execution subject of the method embodiment of the present application is an electronic device, which includes a radar module, a display screen, and a detection circuit as described in any of the aforementioned embodiments.

[0102] Figure 5 FIG1 is a flow chart of a radar module detection method provided in one embodiment of the present application. Figure 5 As shown, the radar module detection method includes:

[0103] S501: After the electronic device is started, the switch circuit in the detection circuit is controlled to be disconnected.

[0104] Specifically, after the electronic device is started, the control unit in the detection circuit is powered on and started. After starting, the control unit controls the switch circuit in the detection circuit to disconnect. The process of the control unit controlling the switch circuit to disconnect can be referred to the description of the above embodiment and will not be repeated here.

[0105] In some embodiments, after the electronic device is started, if a user request to start the display screen of the electronic device is received, the switch circuit in the control detection circuit is disconnected, so that the radar module is detected before the display screen is used, so as to facilitate timely detection of abnormalities in the radar module.

[0106] In some embodiments, after the electronic device is started, the time of the last detection of the radar module is obtained. If the time interval between the current time and the time of the last detection of the radar module is greater than a preset threshold, the switch circuit in the detection circuit is controlled to disconnect, thereby avoiding the radar module not being detected for a long time, and facilitating timely detection of abnormalities of the radar module.

[0107] S502. During the time period when the switch circuit is disconnected, detect whether the display screen is on. If the display screen is on, the radar module is operating normally. If the display screen is off, the radar module is abnormal.

[0108] Specifically, after the control switch circuit is disconnected, the switch circuit is in an off state. During the time period when the switch circuit is in the off state, according to the detection circuit described in any of the aforementioned embodiments, it can be seen that: if the radar module is operating normally, the display screen will light up in a manned environment and will turn off in an unmanned environment; if the radar module is abnormal, the display screen will turn off in both manned and unmanned environments. Given that the production environment, maintenance environment, or the environment where users check whether the radar module is abnormal are usually manned environments, during the time period when the switch circuit is disconnected, it is detected whether the display screen is lit. If it is lit, the radar module is operating normally; if it is off, the radar module is abnormal. Therefore, the lighting or extinguishing of the display screen during the time period when the switch circuit is disconnected provides feedback to the user as to whether the radar module is operating normally or abnormally.

[0109] In an embodiment of the present application, after the electronic device is started, a switch circuit in the detection circuit is controlled to be disconnected. During the period of time when the switch circuit is disconnected, the display screen of the electronic device is detected to see if it is illuminated. In a human-occupied environment, if the display screen is illuminated, it indicates that the radar module of the electronic device is functioning normally; if the display screen is off, it indicates that the radar module of the electronic device is abnormal. Thus, based on the detection circuit, it is possible to detect whether the radar module in the electronic device is abnormal, and the display screen of the electronic device intuitively reflects whether the radar module is abnormal, making it easier for the user to observe.

[0110] In some embodiments, after detecting whether the display screen is lit, the switch circuit is controlled to be turned on. Thus, after completing the detection of the radar module, by controlling the switch circuit to be turned on, if the radar module is abnormal, the display screen of the electronic device remains permanently lit, so that the abnormality of the radar module does not affect the display of the electronic device's display screen.

[0111] In some embodiments, a possible implementation of S501 includes: controlling the switch circuit to be disconnected within a first preset time after the electronic device is started, and the first preset time is less than or equal to the startup time of the display screen. The startup of the electronic device means that the control unit in the detection circuit is started, and after the electronic device is started, the display screen is also started. Controlling the switch circuit to be disconnected within the first preset time after the electronic device is started, that is, controlling the switch circuit to be disconnected after the electronic device is started, and the duration of the time period in which the switch circuit is in the disconnected state is the first preset time. The first preset time is less than or equal to the startup time of the display screen, and thus, the radar module is detected during the startup process of the display screen. Compared with detecting the radar module after the display screen is started, detecting the radar module during the startup process of the display screen does not affect the display of the display screen after startup.

[0112] Among them, examples of the first preset time length can be referred to the aforementioned embodiment and will not be repeated here.

[0113] In some embodiments, a possible implementation of S502 further includes: detecting whether the display screen is illuminated after a second preset time period after the electronic device is activated. The second preset time period is less than the first preset time period and is greater than or equal to the initialization time period of the radar module. When the electronic device is activated, the control unit in the detection circuit is activated, and the display screen of the electronic device is activated. If no abnormality occurs in the radar module of the electronic device, the radar module is also activated. Within the first preset time period after the electronic device is activated, the switch circuit is controlled to be disconnected. After the second preset time period after the electronic device is activated, the display screen is detected to be illuminated. Because the second preset time period is greater than or equal to the initialization time period of the radar module, detecting whether the display screen is illuminated after the second preset time period after the electronic device is activated avoids detecting whether the display screen is illuminated during the initialization time period of the radar module. This fully accounts for the potential instability of the level signal output by the radar module during the initialization process, thereby effectively improving the accuracy of detecting whether the radar module is abnormal.

[0114] Among them, examples of the second preset time length can be referred to the aforementioned embodiment and will not be repeated here.

[0115] In some embodiments, after a first preset time period after the electronic device is started, the switch circuit is controlled to be turned on. Thus, during the use of the electronic device, if the radar module is abnormal, the display screen of the electronic device will always be on, and the abnormality of the radar module will not affect the display of the display screen of the electronic device.

[0116] In some embodiments, after the electronic device is powered on, the display screen can be controlled to illuminate, and a switch circuit can be controlled to be disconnected for a first preset duration, and then controlled to be connected after the first preset duration. In this case, in a human-occupied environment, if the display screen remains illuminated after the electronic device is powered on, the radar module can be determined to be normal. If the display screen illuminates within a second preset duration after the electronic device is powered on, then turns off after the second preset duration and within the first preset duration, and then illuminates again after the first preset duration, the radar module can be determined to be abnormal.

[0117] Therefore, in a human environment, if you observe that the status of the display screen changes from on-off-on after the electronic device is turned on, it can be determined that the radar module is abnormal.

[0118] In some embodiments, when the environment in which the electronic device is located switches back and forth between a manned environment and an unmanned environment, the level signal output by the radar module frequently changes between a high-level signal and a low-level signal. In this case, in order to avoid the display screen frequently lighting up and off and causing visual fatigue to the user, the display screen can be kept on for a preset time after it is lit.

[0119] In some embodiments, during the period when the switch circuit is off, a user may be prompted that the radar module is being tested for proper operation. The user may also be prompted with a method for determining whether the radar module is properly operating. The method for determining whether the radar module is properly operating is to observe whether the display screen is illuminated. If illuminated, the radar module is properly operating; if unlit, the radar module is malfunctioning. Thus, during the period when the switch circuit is off, a user near the electronic device can determine whether the radar module is properly operating based on whether the display screen is illuminated or unlit.

[0120] For example, in a home setting, if a home user observes that the display screen is off, they can contact maintenance personnel to repair the radar module. In another example, in the production, inspection, or maintenance of electronic equipment, if a professional observes that the display screen is off, they can open the electronic equipment and check the connection of the radar module. After ensuring that the radar module is properly plugged in, if the display screen is still off during the time when the switch circuit is disconnected during the restart process of the electronic equipment, the radar module may be damaged.

[0121] In some embodiments, if the electronic device detects that the display screen is on, it determines that the radar module is operating normally; if it detects that the display screen is off, it determines that the radar module is abnormal. Therefore, the electronic device can automatically detect whether the radar module is operating normally or abnormally.

[0122] In some embodiments, after the electronic device determines that the radar module is abnormal, it controls the switch circuit to be turned on and the display screen is lit, thereby preventing the display screen from being affected by the abnormality of the radar module and failing to light up.

[0123] In some embodiments, after the electronic device determines that the radar module is abnormal, it can output a prompt message of the radar module abnormality on the display screen after controlling the switch circuit to be turned on, or remind the user of the radar module abnormality through sound reminders or voice reminders.

[0124] Figure 6 This is a schematic diagram of the structure of a radar module detection device provided in one embodiment of the present application. The radar module detection device is applied to an electronic device, which includes a radar module, a display screen, and a detection circuit as described in any of the above embodiments. Figure 6 As shown, the device includes:

[0125] The control module 601 is used to control the switch circuit in the detection circuit to be disconnected after the electronic device is started;

[0126] The detection module 602 is used to detect whether the display screen is lit during the time period when the switch circuit is disconnected; if the display screen is lit, the radar module is working normally; if the display screen is off, the radar module is abnormal.

[0127] In a possible implementation, the control module 601 is specifically configured to: control the switch circuit to be disconnected within a first preset time period after the electronic device is started, where the first preset time period is less than or equal to a startup time period of the display screen.

[0128] In one possible implementation, the detection module 602 is specifically used to: detect whether the display screen is lit after a second preset time after the electronic device is started, the second preset time is less than the first preset time, and the second preset time is greater than or equal to the initialization time of the radar module.

[0129] In a possible implementation, after detecting whether the display screen is lit, the control module 601 is further configured to control the switch circuit to be turned on.

[0130] Figure 6 The radar module detection device provided can execute the aforementioned corresponding method embodiments, and its implementation principles and technical effects are similar, which will not be repeated here.

[0131] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application is shown in FIG. Figure 7 As shown, the electronic device includes: a processor 701 and a memory 702; the memory 702 stores a computer program; the processor 701 executes the computer program stored in the memory to implement the steps of the radar module detection method in the above-mentioned method embodiments.

[0132] In the above-described water heater, the memory 702 and the processor 701 are electrically connected, directly or indirectly, to enable data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses or signal lines, such as a bus connection. The memory 702 stores computer-executable instructions for implementing the data access control method, including at least one software functional module that may be stored in the memory 702 in the form of software or firmware. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702.

[0133] The memory 702 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory 702 is used to store programs, and the processor 701 executes the programs after receiving execution instructions. Furthermore, the software programs and modules in the memory 702 may also include an operating system, which may include various software components and / or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.

[0134] The processor 701 can be an integrated circuit chip with signal processing capabilities. The processor 701 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor.

[0135] An embodiment of the present application further provides a chip, comprising: a processor and a memory; a computer program is stored in the memory, and when the processor executes the computer program stored in the memory, the radar module detection method provided in the above-mentioned method embodiments is implemented.

[0136] An embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the radar module detection methods provided in the above-mentioned method embodiments.

[0137] An embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the radar module detection method provided in the above-mentioned method embodiments.

[0138] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0139] Thus far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present application.

Claims

1. A detection circuit, characterized in that: The detection circuit includes: a switch circuit, a power supply module and a control unit; A first port of the control unit is connected to the switch circuit, a second port of the control unit is connected to a radar module of the electronic device, and the second port is connected to the power module via the switch circuit, and a third port of the control unit is connected to a display screen of the electronic device. The control unit is configured to control the on / off state of the switch circuit and, based on a level signal at the second port, control the lighting or extinguishing of the display screen. Wherein, when the switch circuit is in an off state, if the radar module works normally, the level signal is a high level signal and the display screen is lit; if the radar module is abnormal, the level signal is a low level signal and the display screen is off; The control unit is specifically used to control the switch circuit to disconnect within a first preset time after the control unit is started to detect whether the radar module is working normally or abnormally, and the first preset time is less than or equal to the startup time of the display screen.

2. The detection circuit according to claim 1, characterized in that The control unit is specifically used to read the level signal after a second preset time period after the control unit is started, where the second preset time period is less than the first preset time period, and the second preset time period is greater than or equal to the initialization time period of the radar module.

3. The detection circuit according to claim 1, wherein: The control unit is specifically configured to control the switch circuit to be turned on after the first preset time period after the control unit is started.

4. The detection circuit according to any one of claims 1 to 3, characterized in that: The detection circuit further includes: a first resistor and a second resistor, wherein the resistance of the first resistor is smaller than the resistance of the second resistor; The first resistor is arranged between the radar module and the switching circuit, the connection end between the first resistor and the radar module is also connected to the second port and one end of the second resistor respectively, and the other end of the second resistor is grounded.

5. The detection circuit according to any one of claims 1 to 3, characterized in that: The detection circuit further includes: a third resistor and a fourth resistor; The third resistor is arranged between the radar module and the second port, and the fourth resistor is arranged between the first port and the switch circuit.

6. A radar module detection method, characterized in that: Applied to an electronic device, the electronic device comprising a radar module, a display screen, and a detection circuit according to any one of claims 1 to 5, the radar module detection method comprising: Controlling the switch circuit to be disconnected within a first preset time period after the electronic device is started, wherein the first preset time period is less than or equal to the start-up time period of the display screen, so as to detect whether the radar module is working normally or abnormally; During a time period when the switch circuit is disconnected, detecting whether the display screen is lit; Among them, if the display screen is on, the radar module is working normally, and if the display screen is off, the radar module is abnormal.

7. The radar module detection method according to claim 6, characterized in that: The step of detecting whether the display screen is lit during a time period when the switch circuit is disconnected includes: After a second preset time period after the electronic device is started, detecting whether the display screen is lit, the second preset time period is less than the first preset time period, and the second preset time period is greater than or equal to the initialization time period of the radar module.

8. The radar module detection method according to any one of claims 6 to 7, characterized in that: After detecting whether the display screen is lit, the radar module detection method further includes: The switch circuit is controlled to be turned on.

9. A radar module detection device, characterized in that: Applicable to electronic equipment, the electronic equipment comprising a radar module, a display screen, and a detection circuit according to any one of claims 1 to 5, the radar module detection device comprising: a control module, configured to control the switch circuit to be disconnected within a first preset time period after the electronic device is started, wherein the first preset time period is less than or equal to the start-up time period of the display screen, so as to detect whether the radar module is operating normally or abnormally; a detection module, configured to detect whether the display screen is lit during a time period when the switch circuit is disconnected; Among them, if the display screen is on, the radar module is working normally, and if the display screen is off, the radar module is abnormal.

10. An electronic device, characterized in that: include: processor and memory; The memory stores a computer program; When the processor executes the computer program stored in the memory, the radar module detection method according to any one of claims 6 to 8 is implemented.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the radar module detection method according to any one of claims 6 to 8.

12. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the radar module detection method according to any one of claims 6 to 8 is implemented.

Citation Information

Patent Citations

  • Radar fault detection system, method and platform and storage medium

    CN112327263A

  • Antenna detection circuit, electronic equipment and antenna control method

    CN112367127A