Human body detection device
By employing a multi-source power supply design and adaptive operating mode adjustment, the problem of balancing detection performance and energy efficiency in low-power human body detection devices under limited power supply conditions has been solved, achieving a balance between performance and power consumption under different power supply conditions.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-13
AI Technical Summary
Existing low-power human body detection devices struggle to balance detection performance and energy efficiency while maintaining long operating cycles. This is especially true when relying on limited energy supplies such as batteries or solar power, where detection sensitivity and response speed are often sacrificed.
A human body detection device is provided, which adopts a multi-source power supply design. The control module can automatically identify and adaptively adjust the working mode according to the power supply type. By dynamically configuring the operating parameters of the sensing module and the communication interface, a balance between performance and energy efficiency can be achieved.
Under different power supply conditions, an adaptive balance between detection performance and power consumption is achieved, ensuring continuous monitoring capability under low power consumption operation and providing high-performance human body detection effect under sufficient power supply conditions.
Smart Images

Figure CN121657154A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of environmental condition monitoring technology, and in particular to a human body detection device. Background Technology
[0002] With the rapid development of applications such as the Internet of Things (IoT), smart homes, and smart security, a large number of distributed detection devices for environmental monitoring are being deployed in different spatial environments to intelligently detect environmental parameters or the status of specific objects. These devices are often used to collect and analyze information such as ambient light, temperature, humidity, movement, or the presence of human beings in the surrounding environment.
[0003] In low-power monitoring applications, solar power supplies are typically used as peripherals without communication capabilities, and users cannot know their specific power supply capacity. Summary of the Invention
[0004] The purpose of this disclosure is to provide a human body detection device that can report the power level of a solar power source using an existing communication module. The solar power source does not need to have communication capabilities to achieve remote power reporting, which significantly reduces the cost of the solar power source. The power level of the solar power source can be recorded on a remote server for a long time, and users can remotely view the historical trend. It is suitable for low-power scenarios, has a flexible structure, and is highly adaptable.
[0005] To achieve the above objectives, this disclosure provides a human body detection device, the human body detection device comprising: The power supply module includes: an external power supply connection unit for connecting to an external power supply that is separately configured from the detection device; The control module has a second voltage divider circuit and is electrically connected to the power supply module; The sensing module, electrically connected to the control module, is used to collect signals that characterize the presence of a human body, so that the control module can determine whether a human body is present in the current environment. When the photovoltaic power supply is connected to the detection device via the connection port of the external power supply connection unit, the control module can sample the electrical parameters of the target power supply node output from the photovoltaic power supply to the detection device through the second voltage divider circuit to obtain the photovoltaic power supply quantity used to characterize the energy storage state of the energy storage component in the photovoltaic power supply; wherein, the photovoltaic power supply does not have independent communication function and includes an energy storage component for energy storage. The control module is further configured as follows: Under preset reporting rules, the power of the solar power source is sent to a remote server via the communication module, so that the energy storage information of the solar power source can be reported by the detection device when the solar power source does not have communication capabilities.
[0006] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. The foregoing inventive descriptions can be combined in any way, and these and other objectives of this disclosure will be fully realized through the following detailed description and accompanying drawings.
[0007] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0008] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. These drawings are incorporated in and constitute a part of this specification, illustrating embodiments consistent with this application and serving together with the specification to explain the principles of this application. Obviously, the drawings described below are merely some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0009] Figure 1 This is a schematic diagram of the network environment of a detection system according to an embodiment of the present disclosure; Figure 2 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 2 ; Figure 3 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 3 ; Figure 4 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 4 ; Figure 5 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 5 ; Figure 6 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 6 ; Figure 7 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 7 ; Figure 8 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 8 ; Figure 9 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 9 ; Figure 10 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 10 ; Figure 11This is a detailed block diagram of a human body detection device according to an embodiment of the present disclosure; Figure 12 This is a detailed circuit diagram of a human body detection device according to an embodiment of the present disclosure; Figure 13 This is a structural block diagram of a power supply circuit in one embodiment of the present disclosure. Figure 1 ; Figure 14 This is a structural block diagram of a power supply circuit in one embodiment of the present disclosure. Figure 2 ; Figure 15 This is a structural block diagram of a power supply circuit in one embodiment of the present disclosure. Figure 3 ; Figure 16 This is a structural block diagram of a power supply circuit in one embodiment of the present disclosure. Figure 4 ; Figure 17 This is a structural block diagram of a power supply circuit in one embodiment of the present disclosure. Figure 5 ; Figure 18 This is a structural block diagram of a power supply circuit in one embodiment of the present disclosure. Figure 6 ; Figure 19 This is a structural block diagram of a power supply circuit in one embodiment of the present disclosure. Figure 7 ; Figure 20 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 10 one; Figure 21 This is a light acquisition circuit diagram of a human body detection device according to an embodiment of the present disclosure; Figure 22 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 10 two; Figure 23 This is a schematic diagram of the power reporting mode selection interface in one embodiment of this disclosure; Figure 24 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 10 three; Figure 25 This is a schematic diagram of a time selection interface in one embodiment of the present disclosure; Figure 26 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 10 Four; Figure 27 This is a schematic flowchart of a human body detection event reporting method according to one embodiment of the present disclosure. Figure 1 ; Figure 28 This is a schematic diagram of the interface for setting the duration of a person's activity in one embodiment of this disclosure; Figure 29 This is a schematic diagram of the discrete-time option configuration interface in one embodiment of this disclosure; Figure 30 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 10 five; Figure 31 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 10 six; Figure 32 This is a schematic flowchart of a human body detection event reporting method according to one embodiment of the present disclosure. Figure 2 ; Figure 33 This is a frame of a human body detection device in one embodiment of the present disclosure. Figure 10 seven. Detailed Implementation
[0010] The embodiments of this disclosure will now be described in detail. When the description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0011] Please refer to Figure 1 This is a schematic diagram of an exemplary network connection environment for a detection system provided in this embodiment. It can be seen that the detection system includes a detection device 100, a gateway 300, a router 400, a cloud platform 500, a mobile terminal 600, and a controlled device 700.
[0012] Figure 1 The diagram illustrates a detection device 100 and a controlled device 700. In a real system, there can be multiple detection devices 100 and controlled devices 700. The detection device 100, mobile terminal 600, controlled device 700, and gateway 300 can transmit data wirelessly, which can be based on protocols such as Bluetooth or ZigBee.
[0013] Furthermore, the detection device 100 can connect to the router 400 via the gateway 300 (e.g., a Bluetooth gateway) to access the internet and communicate with the cloud 500. The mobile terminal 600 can interact with the cloud 500 via cellular communication or Wi-Fi.
[0014] The mobile terminal 600 may include, but is not limited to, smart terminal devices such as smartphones and tablets. The controlled device 700 may include, for example, but is not limited to, lamps, air conditioners, curtain motors, etc.
[0015] When the controlled device 700 is a lighting fixture, the system also includes a switching device for controlling the lighting fixture, such as turning the light on, turning it off, and dimming it. The switching device includes, but is not limited to, the following types: Wall switch: A wall switch powered by a neutral wire and a live wire can be a traditional wall switch that switches the on / off state of a light fixture by controlling the power supply circuit of the light fixture, or a smart wall switch that controls the light fixture by wireless signal. Wireless switch: A wireless switch powered by a battery or a self-generating motor, which controls the lighting fixtures via wireless signals.
[0016] In some implementations, the detection device employs Bluetooth Low Energy (BLE) technology. Correspondingly, the control module uses a second chip integrated with Bluetooth communication capabilities (i.e., the communication module is a Bluetooth communication module, such as a Bluetooth system-on-a-chip (SoC) with a radio frequency module). The second chip actively sends data (e.g., battery information) to the Bluetooth gateway via Bluetooth communication, which is then forwarded to the remote server. The detection device itself does not receive data actively sent from the remote server via the Bluetooth gateway.
[0017] In other words, under normal operating conditions, the Bluetooth communication of the detection device is generally in a non-connectable mode. It only sends out connectable Bluetooth broadcast packets when the user triggers an operation (such as pressing a button) or when preset conditions are met. At this time, external devices such as mobile terminals can establish a direct connection with it. Therefore, in the embodiments of this disclosure, the detection device can only be configured through the mobile terminal when it is in a direct connection with the mobile terminal. After the configuration is completed, the detection device will actively report the corresponding data to the remote server through the Bluetooth gateway according to the configured functions.
[0018] The detection device 100 can be understood as a human body detection device that integrates human body sensing function and light detection function. Its possible hardware, structure, software and other implementation methods will be described in detail in subsequent embodiments.
[0019] Furthermore, the mobile terminal 600 and / or the detection device 100 are also used to execute the detection processing methods provided in the following embodiments. Therefore, the following description of the detection processing methods is essentially a detailed exposition of the software and / or hardware working processes, functions, and specific implementation methods in the mobile terminal 600 and / or the detection device 100.
[0020] It is worth noting that with the rapid development of applications such as the Internet of Things (IoT), smart homes, and smart security, a large number of distributed detection devices for environmental condition monitoring are deployed in different spatial environments to intelligently detect environmental parameters or the status of specific objects. These devices are often used to collect and analyze information such as ambient light, temperature, humidity, movement, or the presence of human beings in the surrounding environment.
[0021] In many applications, detection devices are often deployed in areas without a fixed power supply, such as ceilings, walls, outdoor brackets, or spaces far from the power grid. Therefore, these devices typically rely on wiring-free, limited-energy power sources, such as built-in batteries for recharge. Due to limited energy sources and power constraints, in order to maintain long duty cycles and monitoring accuracy, the equipment must employ a low-power design and dynamically balance detection performance with energy consumption during operation.
[0022] Taking human body detection devices as an example, some existing technologies extend battery life by using fixed low-power operating parameters (such as reducing sampling frequency, reducing data processing volume, or extending sleep cycles). However, this approach often sacrifices detection sensitivity and response speed. Conversely, if operating in high-performance mode all the time, energy will be rapidly consumed under battery power alone, making long-term stable operation difficult. Therefore, how to maintain monitoring performance while ensuring a longer operating cycle has become an urgent problem to be solved in this technical field.
[0023] Based on this, one embodiment of this disclosure provides a low-power detection device that can automatically identify the power supply type and adaptively adjust the operating mode under various power supply conditions. The detection device can flexibly select a suitable operating strategy according to the power supply margin, thereby taking into account both detection performance and energy efficiency. It is particularly suitable for long-term environmental monitoring or detection applications based on limited energy sources such as batteries or light power sources (e.g., solar panels).
[0024] Specifically, such as Figure 2 The diagram shows a schematic block diagram of a detection device according to an embodiment of the present disclosure; it can be seen that the detection device includes at least a control module, a sensing module, and a power supply module.
[0025] The control module described in this disclosure can be a hardware entity configured or programmed to perform at least one of the following operations: receiving electrical signals and identifying power supply type; determining operating mode according to pre-stored logic; sending control commands to the sensing module to adjust its operating parameters; and managing the power consumption status of the device.
[0026] The control module executes computer program instructions stored in the memory to implement the various control methods, principles, functions, and operations described in the embodiments of the present invention. Those skilled in the art will understand that the control methods can be implemented in software, embedded in hardware logic, or implemented through a combination of hardware logic and software functions.
[0027] The sensing module is electrically connected to the control module and is used to collect environmental signals so that the control module can determine the current environmental state changes.
[0028] In this embodiment, the sensing module can be understood as a single sensing unit or a combination of multiple sensing units used to collect environmental state information. When multiple sensing units are present, the sensing principles used by the multiple sensing units can be the same or different. The multiple sensing units can interact with the control module independently or work collaboratively. The sensing unit can sense and convert physical quantities or electromagnetic signals in the surrounding environment to generate electrical signals that can be recognized and processed by the control module.
[0029] In different application scenarios, the sensing module can be implemented through different sensing units and sensing mechanisms, such as optical sensing, pyroelectric sensing, microwave sensing, millimeter-wave radar detection, ultrasonic ranging, infrared radiation detection, pressure detection or gas detection, etc. Its specific composition may include one or more types of sensing units, signal conditioning circuits, and interface circuits for communication with the control module.
[0030] For example, in a human detection scenario, the sensing module is particularly used to collect signals characterizing the presence of a human body, so that the control module can determine whether a human body is present in the current environment.
[0031] The power supply module is used to supply power to the device, and it can adopt one or more different power supply methods depending on the device's structural design and usage scenario. The power supply module may include functional circuits such as energy conversion, voltage regulation, power management, and power distribution to ensure the stable operation of components such as the control module and sensing module.
[0032] In the disclosed embodiments, the power supply module is configured to be particularly suitable for power supply scenarios of low-power devices. To achieve wiring-free installation and long-term independent operation, the power supply module uses a battery as its primary power source, enabling the human body detection device to maintain its detection function for extended periods even when the external power supply is disconnected.
[0033] As can be seen, in this embodiment of the present disclosure, the control module is operatively coupled to the sensing module and the power supply module, respectively. It receives electrical signals from the power supply module to enter a working state, and receives sensing input signals from the sensing module, processes them through internal logic, and implements corresponding detection functions.
[0034] Furthermore, the power supply module supports at least two different power types. The power type can be externally powered (e.g., obtaining power from an external energy source in the form of an adapter or solar power supply) or self-powered (e.g., a coin cell battery). Specifically, as... Figure 3 As shown, the power supply module includes a main power connection unit and an external power connection unit. The main power connection unit is used to connect to the main power supply of the human body detection device. The external power connection unit is used to connect to an external power supply that is separately located from the human body detection device.
[0035] In this embodiment of the disclosure, the self-sufficient power source of the detection device can be understood as something that physically belongs to the detection device body, is an inherent component of it, and whose energy storage does not depend on a continuously supplied external power source. The power source is installed inside the housing of the device or forms an integral part with the housing. For example, a button battery, a solar panel fixed on the outer shell of the device and connected to the built-in battery or capacitor, etc., can all be regarded as a self-sufficient power source.
[0036] In this embodiment of the disclosure, an external power supply can be understood as a power supply that is physically and electrically independent of the detection device body and needs to be temporarily connected through a specific interface to provide power. For example, an adapter (for connecting to mains power) and an external solar power supply can all be regarded as a separate external power supply.
[0037] Furthermore, in this embodiment of the disclosure, the control module is configured to: The current power supply type is determined, and one power supply mode corresponding to the determined power supply type is selected from multiple operating modes of the human body detection device to match the operating state of the human body detection device with the power supply margin of the current power supply. Here, the operating mode refers to different states or modes of device operation. There are multiple operating modes, all pre-set, and differences exist between them, specifically reflected in differences in overall device performance, power consumption, etc. Power supply margin can be understood as the power supply's ability to provide electrical energy. For example, the energy of a battery is finite and will be depleted with use, while mains power (through an adapter) can theoretically be considered an energy source with unlimited energy and sufficient power. Therefore, the power supply margin of the adapter is greater than that of the battery.
[0038] Furthermore, based on the above scheme, the device provided in this embodiment adopts a multi-source power supply design to achieve adaptive power supply management. The device has multiple preset working modes, and the control module can automatically identify the current power supply characteristics according to different power types and dynamically match the corresponding working mode accordingly, thereby achieving an adaptive balance between energy utilization efficiency and detection performance, and effectively reducing power consumption while ensuring human body detection performance.
[0039] In some embodiments, the control module is further configured to employ different operation control strategies under different operating modes. These different operation control strategies involve variations in the management methods of at least one resource within the human body detection device. The operation control strategy can be understood as a comprehensive management scheme executed by the control module based on preset operating modes, considering the operating parameters, activation logic, and power consumption status of each functional unit within the device. The differences in these strategies primarily manifest in the different dynamic allocation and scheduling methods of the human body detection device's internal resources, thereby achieving a balance between performance and energy consumption under different power supply conditions or operational requirements.
[0040] For example, the resources may include, but are not limited to, at least one of the following: The activation duration or retention period of the communication interface; Data acquisition frequency or sampling period; The operating frequency of the control module's processor (MCU); The power management status of the control module (including sleep, light wake-up, deep sleep, etc.); Start-up and shutdown policies for peripheral modules (such as storage interfaces, wireless modules, timers, etc.).
[0041] By differentiating the above resources, the overall operating status of the detection device can be matched with the power supply margin of the current power source, thereby extending the battery life under limited power supply conditions (such as batteries or solar power) and achieving higher performance operation when powered by an external stable power source (such as an adapter).
[0042] In some embodiments, the sensing module is specifically used to collect environmental signals related to the human body, so that the detection device can be understood as a human body detection device specifically used to detect the presence or absence of a human body.
[0043] Specifically, such as Figure 4 As shown in this embodiment, the sensing module includes at least one sensing unit for acquiring signals characterizing the presence of a human body. Examples include radar sensors, ultrasonic sensors, infrared sensors, or other sensing elements capable of detecting human activity or presence characteristics in the environment. These sensing units can be configured individually or in combination to achieve different balances between detection accuracy and power consumption.
[0044] Furthermore, the resources include the sensing units of the sensing module. Moreover, in embodiments of this disclosure, different operational control strategies involve differences in the management methods of at least one sensing unit of the sensing module within the human body detection device.
[0045] Based on this, the control module invokes different operating modes, specifically for controlling the sensing module to enter different operating modes. The different operating modes of the sensing module correspond to differences in the operating parameter configurations of at least one sensing unit within the sensing module, and / or differences in the cooperative operating states of at least two sensing units.
[0046] The specific implementation methods corresponding to the different operating modes of the sensing module and the differences in the operating parameter configurations of at least one sensing unit in the sensing module are further explained below: The differences in the different operating modes of the detection device disclosed herein are reflected in the differences in the operating modes of the sensing modules; and the differences in the operating modes of the sensing modules are at least reflected in the differences in the configuration of the operating parameters of their internal sensing units. Different operating parameters result in different detection performance, response speed, and power consumption of the sensing units. For example, in high-performance operating mode, the sensing unit can employ a higher sampling rate, a shorter sampling period, and more complex signal processing algorithms to improve the sensitivity and accuracy of human body detection; while in low-power operating mode, methods such as reducing the sampling frequency, extending the sampling interval, and simplifying signal processing can be used to significantly reduce energy consumption, thereby improving battery life.
[0047] Therefore, by dynamically configuring the operating parameters, an adaptive balance between device operating performance and power supply margin can be achieved, enabling the device to operate with optimal power consumption under different power supply conditions.
[0048] Furthermore, the power supply module supports multiple power supply methods, and the external power source includes at least a solar power source and an adapter. Based on this, the control module is further configured as follows: In response to determining that the current power type is the main power supply and / or an external light power supply, the second operating mode is invoked to control the sensing module to operate in the second mode; In response to determining that the current power type is an adapter, a first operating mode is invoked to control the sensing module to operate in a first mode.
[0049] In this embodiment of the disclosure, the first working mode of the human body detection device is different from the second working mode, and correspondingly, the first mode and the second mode of the sensing module are also different.
[0050] In a specific example, the difference between the first and second operating modes of the human body detection device lies only in the mode in which the sensing module operates. For instance, in the second operating mode (i.e., battery and / or solar power supply), the human body detection device operates in a low-power mode, specifically by reducing the sampling rate of the sensing module; while in the first operating mode (i.e., adapter power supply), the detection device is not energy-constrained and can operate in a high-performance mode, achieving higher detection sensitivity and response speed, specifically by increasing the sampling rate of the sensing module.
[0051] Of course, in some examples, the difference between the first and second operating modes of a human body detection device lies not only in the mode of the sensing module, but also in the different operating methods of other components (such as the different sleep intervals of the control module). For example, in the second operating mode (i.e., battery and / or solar power supply), the human body detection device operates in a low-power mode, specifically by reducing the sampling rate of the sensing module and increasing the sleep interval of the control module to extend the battery life; while in the first operating mode (i.e., adapter power supply), the detection device is not constrained by energy and can use high-performance detection parameters, specifically by increasing the sampling rate of the sensing module and reducing the sleep interval of the control module (or, the control module is in a constantly operating state without sleep), to achieve higher detection sensitivity and response speed.
[0052] Furthermore, the operating parameters include, but are not limited to, the signal sampling rate. The signal sampling rate can be understood as the number of times a simulated signal characterizing changes in environmental state is acquired and processed per unit time; it is an important parameter reflecting detection accuracy and power consumption levels.
[0053] Furthermore, at least one sensing unit of the sensing module is configured to have a higher signal sampling rate in the first mode than in the second mode. Consequently, in the second mode, the power consumption of the detection device is lower than in the first mode, and the detection sensitivity and response speed are relatively reduced. This design ensures that the device prioritizes battery life under limited power supply (such as battery or solar power), while providing higher performance detection capabilities when powered by an external adapter.
[0054] In one specific application, the sensing unit includes a radar sensor, such as millimeter-wave radar or microwave radar. This radar sensor is used to detect minute movements or presence of a human body through the Doppler effect, phase difference changes, or changes in signal reflection intensity. In this specific application, the signal sampling rate can be expressed as the radar signal frame rate. The radar sensor samples and processes signals in units of "frames," each frame containing several "chirps" (linear frequency modulated pulses). The signal frame rate determines the update speed of the radar's perception of the environment. Reducing the frame rate can effectively reduce the amount of data processing and communication frequency, thereby significantly reducing power consumption.
[0055] In this embodiment of the disclosure, the radar sensor is configured such that the signal frame rate in the first mode is at least 1.5 times the signal frame rate in the second mode.
[0056] For example, in the first mode, the signal frame rate is greater than 5Hz, preferably 10Hz, in order to provide fast response and high-resolution detection results.
[0057] In the second mode, the signal frame rate is less than or equal to 5Hz. For example, a signal frame rate (e.g., 4Hz) is used in the unmanned state, while another signal frame rate (e.g., 2Hz) is used in the manned state. The signal frame rate can be dynamically adjusted according to the human detection stage (triggering manned status / maintaining manned status).
[0058] As can be seen, this presents a more refined dynamic frame rate management strategy. When no one is present, a 4Hz frame rate is used for "scanning," which is sufficient to reliably detect the entry of a person. Once someone is detected, the frame rate is not maintained at 4Hz, but further reduced to 2Hz. This is because for the task of "maintaining presence," a high frame rate is unnecessary; 2Hz is sufficient to reliably confirm that the target has not left, while power consumption is further reduced by approximately 50% compared to 4Hz. Furthermore, when relying on battery power, this dynamic frame rate adjustment further reduces average power consumption while ensuring detection reliability, significantly extending the device's single-charge battery life.
[0059] With the above settings, the present invention can intelligently switch working modes according to power supply type and human body detection status, and achieve an adaptive balance between detection performance and power consumption. This ensures continuous monitoring capability under low power consumption and high-performance human body detection effect under sufficient power supply conditions.
[0060] Furthermore, in some solutions, the sensing module may include at least two types of sensing units, and the control module invokes different operating modes, specifically for controlling the sensing module to enter different operating modes. The different operating modes of the sensing module correspond to differences in the collaborative operating states of the at least two sensing units. The collaborative operating state can be understood as the start-stop logic, data interaction relationship, and / or the way the various sensing units in the sensing module participate in detection and judgment during the operation of the detection device. Differences in the collaborative operating states can be reflected in: different operating timing sequences of different sensing units in each mode, different priorities in participating in detection, different triggering logics for wake-up and sleep, and / or differences in whether the detection results of different sensing units are fused and used in the final judgment, etc.
[0061] In another specific application, such as Figure 5 As shown, the sensing module further includes: Infrared sensors (PIR) are used to passively sense changes in human infrared radiation in order to identify human movement or presence. For example, a PIR can be an ultra-low power intelligent digital PIR with adjustable sensitivity, combined with a Fresnel lens of a specific structure, to achieve a longer sensing distance and a smaller blind zone.
[0062] In this embodiment of the disclosure, in the second mode, the infrared sensor operates continuously, while the radar sensor is in a dormant state when the infrared sensor does not detect a human body, and is activated to assist in the judgment when a human body is detected. In this mode, the average power consumption can be significantly reduced while maintaining high reliability of human body detection through the collaborative logic of "PIR main detection and radar activation assistance".
[0063] In the first mode, both the infrared sensor and the radar sensor operate continuously, and the control module determines the presence of a human body based on the combined detection results from both. This combined determination may include methods such as time-synchronized detection signal comparison, weighted averaging of results, or logical judgment. This mode achieves higher detection accuracy and better anti-interference capabilities for stationary human bodies or slightly moving targets.
[0064] Furthermore, in the first mode, the radar sensor uses a first signal frame rate; in the second mode, the radar sensor uses a second signal frame rate; the first and second signal frame rates are the same. That is, the detection strategy for different modes is achieved by controlling the order in which the two sensors start and stop, rather than by configuring parameters.
[0065] As can be seen, in this embodiment, the main difference between the first mode and the second mode lies in the different coordination methods of infrared and radar: in the first mode, the two work in parallel and verify each other; in the second mode, infrared dominates detection and radar is activated on demand.
[0066] This enables the following: when powered by batteries or solar power, environmental monitoring can be maintained with low power consumption, and detection accuracy can be intelligently improved when necessary; while when powered by an adapter, multiple sensors can be activated simultaneously for highly reliable detection, thereby achieving an adaptive balance between performance and energy efficiency.
[0067] In another specific application, also based on such Figure 5 The hardware architecture shown offers an alternative solution: In the second mode, both the infrared sensor and the radar sensor are in continuous operation. The radar sensor operates at a first signal frame rate, and the control module determines whether a human body is present based on the detection results of both sensors. In the first mode, both the infrared sensor and the radar sensor are in continuous operation, the radar sensor operates at the second signal frame rate, and the control module determines whether a human body is present based on the detection results of both sensors. The second signal frame rate is at least 1.5 times that of the first signal frame rate.
[0068] For example, the first signal frame rate can be set to less than or equal to 5Hz, such as 4Hz in an unmanned state and 2Hz in a manned state. This allows for dynamic adjustment of the signal frame rate based on the human detection stage (triggering a man / maintaining a manned state), thereby further reducing average power consumption while ensuring detection reliability. The second signal frame rate is set to greater than 5Hz, such as 8Hz or 10Hz~20Hz. Therefore, higher frequency detection and data updates can be achieved in high-performance mode, while significantly reducing the average power consumption of the radar sensor in low-power mode.
[0069] In another specific application, also based on such Figure 5 The hardware architecture shown offers an alternative solution: In the second mode, the infrared sensor works continuously, and the radar sensor is in a dormant state when the infrared sensor does not detect a human body, and is awakened when a human body is detected to assist in the judgment; when the radar sensor is awakened, it runs at a first signal frame rate, and the control module makes a comprehensive judgment on the presence of a human body based on the detection results of both. In the first mode, both the infrared sensor and the radar sensor are in continuous operation, the radar sensor operates at the second signal frame rate, and the control module determines whether a human body is present based on the detection results of both sensors. The second signal frame rate is at least 1.5 times that of the first signal frame rate.
[0070] As can be seen, in this embodiment, the differences between the first mode and the second mode are reflected in both the differences in the configuration of the operating parameters of each sensing unit (such as changes in signal frame rate) and the differences in the collaborative working states among multiple sensing units (such as different joint detection strategies for infrared and radar). Through the above-mentioned two-dimensional dynamic adjustment, the device can not only flexibly adjust power consumption and performance according to power supply conditions, but also adaptively optimize the sensor collaboration strategy under different detection scenarios, thereby maintaining a high-reliability human body detection capability under limited power supply energy.
[0071] As can be seen, in the above embodiments, the different working modes are mainly reflected in the differences in the operating state of the sensing module resource.
[0072] In some solutions, the different operating modes of the human body detection device can also be reflected in the differences in the operating states of other hardware resources. Specifically, these resources may also include communication interfaces, and thus the activation duration of the communication interface may differ between different operating modes.
[0073] Based on this, the control module is further configured as follows: When it is determined that the current power type is the main power supply and / or the optical power supply (external optical power supply), the second working mode is invoked; When the current power type is determined to be an adapter, the first working mode is invoked.
[0074] In the first operating mode, the control module maintains a continuous communication link or a direct connection state to achieve real-time data transmission; in the second operating mode, it establishes a communication link or maintains a direct connection state for a limited time only when triggered, thereby reducing the continuous energy consumption of the communication module.
[0075] Furthermore, an adaptive balance between communication performance and power consumption can be achieved under different power supply conditions. For example, when powered by an adapter, a stable connection with the mobile terminal can be maintained for a long time; while when relying on battery power, the communication link is only temporarily activated when a detection event occurs or an external command is triggered, and then automatically disconnected to save energy.
[0076] In a specific example, let's take Bluetooth communication as an example: The communication module can be, for example, a Bluetooth module. In the second operating mode, after being woken up, the control module enters a Bluetooth direct connection state, maintaining a certain time-limited window to allow the mobile terminal to establish a connection within that time period. If no connection request is detected within the time-limited period, the Bluetooth module will automatically shut down to enter a low-power standby state.
[0077] Furthermore, if the control module maintains a directly connectable state for a time-limited period in the second operating mode, the time limit is changeable. That is, the time limit can be a variable parameter, and its change can be achieved in one of the following ways: The control module automatically adjusts the time limit based on the battery level; when the battery is high, the communication window can be extended, and when the battery is low, it can be shortened. The time limit may be dynamically adjusted based on the communication frequency, the time interval between the last communication, or user-defined parameters; or, The time-limited period can also be updated by sending parameters through commands from a host computer (such as a mobile APP).
[0078] Furthermore, through this dynamic communication window mechanism, the device can significantly reduce the idle power consumption of the communication module while ensuring the necessary communication response capability, thereby further extending the power supply duration.
[0079] In some embodiments, the resources include methods for acquiring ambient light and / or temperature data.
[0080] Based on this, the control module is further configured as follows: In response to determining that the current power type is a physical power supply and / or a photovoltaic power supply, the second working mode is invoked; In response to determining that the current power type is an adapter, the first operating mode is invoked; The control module collects ambient light and / or temperature data at a first frequency in the first operating mode. The first frequency can be in the range of 0.5 Hz to 10 Hz (e.g., 2 times / second or higher) to support real-time or near real-time environmental response and remote reporting.
[0081] In the second operating mode, the ambient light and / or temperature data are acquired at an on-demand triggering mode or at a second frequency lower than the first frequency. An example of on-demand triggering is sampling only when the coprocessor detects a significant change in light / temperature; an example of the second frequency is less than or equal to the first frequency, for example, 0.1 Hz to 1 Hz.
[0082] As can be seen, this design enables the device to maintain high-frequency data updates when a stable external power supply is available, improving user experience and responsiveness; when powered only by battery or solar power, it employs low-frequency or on-demand triggering to significantly reduce average power consumption and extend device runtime. The on-demand triggering mode can be implemented by a low-power coprocessor (or comparator), which periodically or event-drivenly detects changes with extremely low quiescent current and wakes up the main controller for high-precision measurements.
[0083] In addition, existing solutions mostly rely on manual configuration or mechanical switch switching to identify the power supply mode, which has problems such as complex identification methods, low efficiency, high power consumption and insufficient reliability.
[0084] Based on this, one embodiment of this disclosure provides a power type identification scheme with a simple structure and high identification accuracy, to support the detection device to achieve adaptive operation under various power supply conditions. Specifically, as Figure 6 As shown, the detection device further includes an identification module, which can be understood as a functional circuit used to assist in identifying or determining the current power supply state or power type of the device. The identification module is electrically connected between the control module and the power supply module and is configured to generate an electrical signal characterizing the current power type attribute, thereby enabling the control module to determine the power type based on the electrical signal and perform corresponding power management and operating mode adjustments. Specifically, the control module is configured to perform an identification operation based on the electrical signal provided by the identification module to determine the current power type.
[0085] Specifically, the identification module is configured to sample the potential parameters of at least one power supply node that is directly or indirectly connected to the external power connection unit and / or the main power connection unit.
[0086] The potential parameter can be understood as any electrical quantity that can characterize the power supply type. The identification module is configured to measure these electrical parameters.
[0087] Furthermore, the control module performs an identification operation based on the electrical signal provided by the identification module, which is used to: compare the potential parameters obtained by the identification module with a preset power supply attribute range, so as to determine that the current power supply belongs to at least one of multiple candidate power supply types.
[0088] The power supply attribute range can be understood as a pre-stored set of judgment rules or data mapping tables, used to associate the value range of different potential parameters with specific power supply types. Different power supply types correspond to different power supply attribute ranges.
[0089] It is worth noting that the aforementioned power identification scheme does not rely on specific mechanical structures or dedicated communication interfaces. Instead, it achieves identification by combining conventional electrical measurements with programmable logic. Therefore, it enables plug-and-play and intelligent adaptation of the device under different power supply conditions. Without requiring manual user configuration, it automatically identifies the current power supply type and accordingly invokes the optimal operating mode (e.g., high-performance mode or low-power mode), thus achieving an intelligent balance between performance and energy consumption, significantly improving the energy efficiency of the detection device and the user experience.
[0090] In some embodiments, the potential parameter includes a voltage value.
[0091] The identification module is specifically configured to sample the voltage at the main power supply terminal and / or the output voltage of the external power connection unit; wherein the voltage at the main power supply terminal is the voltage value of the power supply node of the main power connection unit, and the output voltage of the external power connection unit is the voltage value of the power supply node of the external power connection unit.
[0092] Specifically, the identification unit may include an analog-to-digital converter (ADC) or a comparator circuit to sample the aforementioned power supply nodes and obtain the corresponding voltage values. These voltage values are then filtered and regulated before being transmitted to the control module for subsequent power type determination. The sampling process can be performed automatically upon power-on or during periodic detection tasks or interrupt-triggered conditions to ensure a balance between real-time performance and low power consumption.
[0093] The control module is further configured to compare the obtained voltage value with a preset power supply voltage range for different power supply types, so as to determine the current power supply type.
[0094] Specifically, the control module reads the real-time voltage values sampled by the identification module and compares them sequentially with a power identification table stored in its internal non-volatile memory. This table stores the upper and lower limits of the supply voltage range for each candidate power type. When a voltage value falls within a preset range, the corresponding power type can be determined. For example, when a voltage value of 5.0V is detected, the current power supply is determined to be an adapter; when the voltage value is 3.3V, it is determined to be either a solar power source or a battery.
[0095] This makes the identification logic very simple and direct, eliminating the need for complex subsequent judgments and improving the response speed and reliability when switching power supplies. The judgment result can be used by the control module to trigger different operating modes, so as to match the operating mode of the detection device with the current power supply capacity, thereby balancing performance and power consumption.
[0096] Furthermore, the supply voltage range of at least one type of power supply is specifically designed to be distinguishable from other types of power supplies in terms of numerical characteristics, so that the control module can uniquely determine the corresponding power supply type based on the sampled voltage value belonging to the voltage range of the specific design.
[0097] Specifically, the output voltage range of different power supply types can be manually set during the design phase. For example, the nominal output of an adapter is above 4V, a solar power supply outputs 2.9V to 3.8V under normal lighting conditions, while the nominal voltage of a battery is 3V to 3.3V. By maintaining the numerical differences between these ranges at the hardware level, fast and stable identification can be ensured at the software logic level.
[0098] In this way, the hardware design itself creates unambiguous conditions for software recognition, eliminating the need for complex time series analysis or communication protocol parsing, simplifying the recognition logic and reducing the computational burden.
[0099] For example, the power supply voltage range includes: a first voltage range corresponding to the adapter and a second voltage range corresponding to the photovoltaic power source; The external power supply connection unit includes a connection port, and the external power supply includes a solar power supply and an adapter. The solar power supply and the adapter share a connection port, which can be used to connect or disconnect the power supply. The first voltage range and the second voltage range do not overlap in value, so that the control module can distinguish between the solar power supply and the adapter according to the voltage range to which the output voltage of the sampled external power supply connection unit belongs, and thus the human body detection device still operates in the second working mode when the solar power supply is connected.
[0100] Taking an adapter and a solar power source as an example, the first voltage range can be set to 4V and above, and the second voltage range can be set to 2.9V to 3.8V. The specific identification process can be as follows: If the control module detects that the output voltage of the external power supply connection unit is 5V, which is greater than 4V and falls within the first voltage range, it immediately determines that the power is supplied by the adapter and switches to the high-performance first operating mode. If it detects that the output voltage of the external power supply connection unit is 3.3V, which is within the 2.9V to 3.8V range and falls within the second voltage range, it determines that the power is supplied by the solar power source and maintains or switches to the low-power second operating mode. This achieves accurate differentiation and differentiated response to different external power supplies sharing the same port.
[0101] In some embodiments, overlapping supply voltage ranges are permitted for certain types of power supplies.
[0102] The control module is further configured to: when distinguishing power supply types where the power supply voltage ranges do not overlap, if it is determined that the obtained output voltage of the external power supply connection unit belongs to the voltage range of the specific design, then the corresponding power supply type is uniquely determined; otherwise, when distinguishing power supply types where the power supply voltage ranges overlap, further auxiliary determination is made based on the voltage amplitude relationship or voltage change trend of the sampled voltage values to determine the specific power supply type.
[0103] Specifically, when a single voltage value cannot provide a definitive judgment, a decision-making logic is activated: the control module can make a judgment by analyzing the rate of change, fluctuation amplitude, or stability characteristics of the voltage within a certain time window. This design relaxes the stringent requirements on hardware design, improving its flexibility and fault tolerance.
[0104] For example, if the voltage fluctuates periodically within a short period of time, it can be identified as solar power output; if the voltage is stable and the change is less than a threshold, it can be identified as battery power. Furthermore, by introducing the dimension of "voltage dynamic characteristics," this scheme can reliably distinguish different power supply types even when static voltage ranges overlap.
[0105] For example, if the output voltage of the external power supply unit is greater than the voltage at the main power supply terminal, it is determined to be powered by solar energy; otherwise, it is determined to be powered by battery. Furthermore, by introducing the dimension of "voltage amplitude," this solution can reliably distinguish between different power supply types even when the power supply voltage ranges overlap.
[0106] For example, the power supply voltage range includes: a first voltage range corresponding to the adapter, a second voltage range corresponding to the solar power source, and a third voltage range corresponding to the battery.
[0107] The first voltage range and the second voltage range do not overlap numerically, while the second voltage range and the third voltage range partially overlap numerically. When the identification module detects that the voltage is in the overlapping range, it further determines the power source type as a solar power source or a battery based on the real-time voltage level or fluctuation trend.
[0108] Taking a solar power supply, adapter, and battery as an example: the first voltage range is set to 4V and above, the second voltage range is set to 2.9V to 3.8V, and the third voltage range is set to 3V to 3.3V. A battery with moderate charge may have a stable voltage of 3.2V, while a solar power supply with moderate illumination may also have an output voltage of 3.2V, making it indistinguishable from a single voltage value. Therefore, a more complex decision-making logic is introduced to further determine whether the power source is a solar power supply or a battery: the relationship between the output voltage of the external power connection unit and the voltage at the main power supply terminal is read in real time, and the power source corresponding to the larger value is taken as the current power source type. For example, if the voltage at the connection port is 3.2V and higher than the current battery voltage (3.0V), logically it should be a solar power supply, and thus it is determined to be a solar power supply.
[0109] Through the power identification mechanism provided in the above embodiments, the control module can accurately determine various power types (such as adapters, solar power, and batteries) based on the voltage value sampled by the identification module, combined with the preset power supply voltage range and / or voltage amplitude or dynamic characteristics.
[0110] This solution simplifies the hardware structure and reduces costs by eliminating the need for separate identification pins or communication signals between different power supplies, allowing for differentiation solely through voltage detection. Furthermore, by designing power supply voltage ranges and auxiliary judgment logic tailored to the characteristics of different power supplies, the detection device maintains high identification accuracy and stability even when power supply voltage ranges overlap between different power supply types.
[0111] In some embodiments, the external power connection unit includes a connection port configured to have a multi-lead structure for cooperating with different types of external power interfaces; different types of external power supplies share a connection port, and each external power interface and the connection port are configured such that when different types of external power supplies are connected to the connection port, different electrical characteristics are generated on the identification lead of the connection port, so that the control module can determine the power type of the external power supply through the differences in the electrical characteristics.
[0112] The identification module is configured to detect the electrical characteristic parameters of at least one identification lead in the connection port to generate an identification signal for characterizing the type of external power supply.
[0113] The control module performs the identification operation, specifically for: acquiring the identification signal and distinguishing the connected external power supply as an adapter or a solar power supply based on the identification signal; if it is identified as an adapter, it directly determines that the current power supply type is an adapter; otherwise, it further determines that the current power supply type is a solar power supply or a battery, so as to realize a hardware-level "plug and play" mechanism, without relying on complex protocol communication or high-precision voltage range judgment, making the identification process faster, more direct and reliable.
[0114] Furthermore, the connection port is a Type-C interface, and the identification lead includes the CC pin of the Type-C interface. The identification module is configured to detect the voltage signal of the CC pin.
[0115] The control module is further configured to: determine that the connected external power supply is an adapter based on the detection of a predetermined voltage on the CC pin; and further determine whether the current power supply is a solar power supply or a battery when the predetermined voltage is not detected.
[0116] Specifically, in this embodiment of the disclosure, the characteristics of the USB Type-C protocol are utilized. According to the protocol, when a standard power adapter is connected, it must provide a specific voltage (such as 0.2V, 0.4V, 0.66V, 1.23V, etc., depending on the power supply capability) on its CC pin through a pull-up resistor Rd to announce its existence and capability.
[0117] The solar power supply designed in this embodiment is a simple solar power supply for charging only, without intelligent control functions. Its interface does not integrate protocol circuitry. Therefore, when connected to the connection port, the CC pin shows no voltage or a voltage of 0. The identification module detects the CC pin voltage; as long as a valid, non-zero predetermined voltage is detected, it can immediately and definitively determine that an adapter is currently connected. The control module can then immediately call the first operating mode. If there is no voltage on the CC pin, it indicates that a standard adapter is not connected. In this case, the control module needs to further determine whether the current power supply is from the solar power supply or entirely dependent on the built-in battery, and accordingly call the corresponding second operating mode.
[0118] Furthermore, this embodiment of the disclosure utilizes the protocol characteristics of the Type-C interface to construct a two-stage, efficient, and low-cost power identification mechanism. The first stage uses the CC pin to achieve "hard" identification of the adapter, which is fast and highly reliable; the second stage further distinguishes non-protocol power types through additional judgment. This hybrid identification strategy, while taking into account versatility, provides optimal identification performance for the most common adapter access scenarios.
[0119] In some embodiments, such as Figure 7 As shown, the control module includes a main processing unit. The main processing unit can be understood as a collection of all possible implementations capable of performing "control" functions. It can integrate wireless communication functions (such as Bluetooth, Sub-GHz communication, etc.) and possess high computing power. For example, it can be a Bluetooth System-on-a-Chip (SoC) with an RF module, a highly integrated MCU or microprocessor unit (MPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a logic control circuit composed of discrete components. This main processing unit typically has multiple operating states, such as normal operating state, idle state, and sleep state, to adjust power consumption in different scenarios.
[0120] The identification module includes a coprocessor unit that is communicatively connected to the main processing unit. The static power consumption of the coprocessor unit is lower than that of the main processing unit. The coprocessor unit operates under the control of the main processing unit and can be a hardware circuit (e.g., composed of a comparator, a reference source, and simple logic gates) or a custom integrated circuit (ASIC). Therefore, the coprocessor unit is designed to focus on a single, specific monitoring task, with a highly simplified circuit structure, resulting in low power consumption and enabling uninterrupted operation at minimal cost. Specifically, in this example, the coprocessor unit uses a custom chip, and its operating power consumption is set to be less than or equal to one-fifth of the power consumption of the main processing unit.
[0121] The coprocessor unit has a circuit structure for comparing voltage magnitudes, used to compare the magnitude relationship between a first voltage directly or indirectly transmitted through the connection port and a second voltage directly or indirectly transmitted through the battery.
[0122] The main power connection unit may include a battery interface for connecting a battery, such as a battery compartment. The connection port connects to an external power supply path, the battery interface connects to the battery power supply path, a first voltage is the voltage at a power supply node on the external power supply path, and a second voltage is the voltage at a power supply node on the battery power supply path.
[0123] In this configuration, the sampling nodes (power supply nodes) corresponding to the first voltage and the second voltage are in equivalent electrical positions within their respective power supply paths. For example, both are anti-reverse diodes passing through their respective power supply paths. Of The voltage is sampled beforehand to reflect the true output voltage of the power supply; and / or, both are sampled after passing through an equivalent voltage divider circuit. Of After sampling, the voltage is reduced to the operating range adapted to the circuit structure. This equivalent signal preprocessing ensures that the circuit structure compares the "net" voltages of the two power supplies after passing through the same path loss and circuit processing, thus truly reflecting the relative strength of their driving capabilities and avoiding misjudgments caused by improper selection of the power supply node for sampling.
[0124] The control module further determines whether the power source is a solar power source or a battery, specifically for: Based on the comparison results provided by the coprocessor unit to indicate the relative magnitude relationship between the first voltage and the second voltage, the current power supply type is determined to be either a solar power source or a battery.
[0125] In this embodiment, after the main processing unit of the control module is woken up, it reads the comparison result of the circuit structure used to compare voltage magnitudes in the coprocessing unit. The comparison result in the coprocessing unit is real-time to ensure the real-time performance and accuracy of the result read by the main processing unit. The circuit structure used to compare voltage magnitudes in the coprocessing unit can be a purely analog circuit (e.g., a hysteresis comparator), whose output state flips without delay with instantaneous changes in the input voltage. After the main processing unit is woken up, it can instantly determine the critical state of "whether the external power supply voltage is higher than the battery voltage" by reading the high and low levels of a GPIO port. This is equivalent to the main processing unit having a dedicated, continuously working "analog watchdog" monitoring the power state during its sleep period. It does not need to start the ADC, perform multiple sampling and averaging, or execute complex comparison algorithms, thus achieving extremely low post-wake-up processing latency and computational overhead.
[0126] Furthermore, this solution entrusts the most energy-intensive "continuous monitoring" task to a minimalist hardware circuit, while leaving the complex "precise identification and decision-making" task to a powerful main processing unit, which is only woken up when necessary, thus combining ultra-low power static standby with fast event response.
[0127] Furthermore, existing human detection devices typically need to be compatible with multiple power supply methods, such as self-contained power sources (e.g., batteries) and external power sources (e.g., solar power or independent adapters). However, in low-power devices, power type identification is usually limited by battery life and hardware resource constraints, and cannot be performed continuously at a high frequency. Lower acquisition frequencies lead to response delays, preventing the device from capturing rapid changes in power type in a timely manner. On the other hand, high-frequency acquisition methods consume more current during the identification process, significantly increasing the device's average power consumption and directly shortening the battery life when relying on battery power, making it difficult to meet the requirements for long-term online operation. Therefore, how to balance high-sensitivity identification capabilities with low-power operating characteristics is a prominent problem faced by existing technologies.
[0128] Based on this, one embodiment of this disclosure provides a human body detection device that adopts a "dual-core collaborative, hierarchical wake-up" system architecture. The continuously running power type identification task is handled by an ultra-low-power coprocessing unit, while complex data processing, event discrimination, and communication tasks are handled by a powerful but power-intensive main processing unit. Through this division of labor, the device remains in an extremely low-power monitoring state most of the time, while simultaneously triggering the main processing unit to perform high-precision detection immediately upon detecting a change in power type. This maintains the battery life while ensuring efficient power type identification.
[0129] Specifically, such as Figure 7 As shown, the human body detection device includes: a control module, a power supply module, a sensing module, and a recognition module.
[0130] The control module includes a main processing unit. The main processing unit can be understood as a collection of all possible implementations capable of performing "control" functions. It can integrate wireless communication functions (such as Bluetooth, Sub-GHz communication, etc.) and possess high computing power. For example, it can be a Bluetooth System-on-Chip (SoC) with an RF module, a highly integrated MCU or microprocessor unit (MPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a logic control circuit composed of discrete components. This main processing unit typically has multiple operating states, such as normal operating state, idle state, and sleep state, to adjust power consumption in different scenarios.
[0131] The sensing module is electrically connected to the main processing unit and is used to collect signals that characterize the presence of a human body, so that the control module can determine whether a human body is present in the current environment.
[0132] The power supply module can be, for example, a button battery or other portable power source. Figure 7 As shown, the power supply module has: A main power connection unit is used to connect to the main power supply of the human body detection device; and An external power supply connection unit is used to connect to an external power supply that is separately installed from the human body detection device.
[0133] The identification module includes a coprocessing unit, which is electrically connected directly or indirectly to at least one power supply node of the external power supply connection unit and / or the main power supply connection unit, in order to sample the potential parameters of the power supply node.
[0134] The coprocessor unit is electrically connected to the main processing unit, and its static operating power consumption is lower than that of the main processing unit, so as to transmit a trigger signal to the main processing unit according to the collected potential parameters.
[0135] The coprocessor unit operates under the control of the main processing unit. It can be a hardware circuit (e.g., composed of comparators, reference sources, and simple logic gates) or a custom integrated circuit (ASIC). Therefore, the coprocessor unit is designed to focus on a single, specific monitoring task, with a highly simplified circuit structure, resulting in low power consumption and enabling uninterrupted operation at minimal cost. Specifically, in this example, the coprocessor unit uses a custom chip, and its operating power consumption is set to be less than or equal to one-fifth of the main processing unit's power consumption.
[0136] Static operating power consumption can be understood as the power consumption level of the processor when performing light-load tasks or standby monitoring tasks. For example, the static power consumption of the main processing unit in deep sleep mode may be tens to hundreds of microamps, while the coprocessor unit may be an ultra-low-power MCU, Sensor Hub, low-power DSP, or low-power logic circuit integrated into the sensor, and its static operating power consumption can be as low as a few microamps or even sub-microamps, enabling it to continue working for a long time without significantly affecting the overall power consumption of the device.
[0137] Furthermore, the coprocessor unit is configured to perform primary power type identification, including: The potential parameters are acquired, and when the potential parameters meet the preset trigger conditions, a trigger signal is output to the main processing unit to request the main processing unit to perform secondary identification.
[0138] The main processing unit is configured to perform secondary power type identification in response to the trigger signal to determine the current power type. Specifically, secondary power type identification is a further identification process performed by the main processing unit to determine whether a power type change is required.
[0139] In this embodiment, the most power-consuming "continuous monitoring" task is assigned to a low-power coprocessing unit, while the complex "precise identification and decision-making" task is left to a powerful main processing unit, which only intervenes when necessary, thus achieving a combination of ultra-low power static standby and fast event response.
[0140] It is worth noting that the aforementioned power identification scheme does not rely on specific mechanical structures or dedicated communication interfaces. Instead, it achieves identification by combining conventional electrical measurements with programmable logic. Therefore, it enables plug-and-play and intelligent adaptation of the device under different power supply conditions. Without requiring manual user configuration, it automatically identifies the current power supply type and accordingly invokes the optimal operating mode (e.g., high-performance mode or low-power mode), thus achieving an intelligent balance between performance and energy consumption, significantly improving the energy efficiency of the detection device and the user experience.
[0141] Furthermore, based on the above scheme, through the coordinated cooperation between the coprocessing unit and the main processing unit, the device can significantly reduce overall power consumption without sacrificing recognition sensitivity and response speed: the coprocessing unit is responsible for long-term high-frequency monitoring of power type changes, while the main processing unit is only woken up when necessary to perform confirmation operations.
[0142] In some embodiments, the main processing unit is further configured to: enter a first power consumption state after performing secondary power type identification; and be able to switch to a second power consumption state in response to the trigger signal in the first power consumption state, and perform secondary power type identification. The first power consumption state and the second power consumption state can be understood as different power operating modes of the main processing unit.
[0143] The main processing unit operates in a low-power or sleep state in the first power consumption state. In this state, the main frequency arithmetic unit, peripheral clock, or wireless communication module is turned off, and only necessary register holding and wake-up circuits are retained to reduce static power consumption. In the second power consumption state, the main processing unit operates in normal working condition. In this state, the main processing unit fully activates the processor core, peripheral modules, and communication modules, and can execute computationally complex algorithm processing tasks.
[0144] Specifically, its working process can be implemented in the following way: After the detection device is powered on, the main processing unit completes initial configuration and a first power type identification, then actively enters the first power consumption state. The coprocessing unit continuously performs primary power type identification. When it detects a change in the corresponding potential parameter that meets a preset trigger condition, it outputs a trigger signal to the main processing unit (e.g., outputting a high-level pulse to the main processing unit via the interrupt line (DIV_INT)), causing the main processing unit to switch from the first power consumption state to the second power consumption state. In the second power consumption state, the main processing unit performs a complete secondary power type identification operation, and then returns to the low-power first power consumption state to wait for a new trigger signal. This cycle repeats, realizing a hierarchical detection mechanism where "high-efficiency power type identification is performed only when necessary."
[0145] The coprocessor unit is also configured to independently perform primary power type identification when the main processing unit is in a first power consumption state. Because the coprocessor unit has extremely low static power consumption, it can maintain a high identification frequency while operating continuously for extended periods.
[0146] Understandably, while the coprocessor unit is performing power type identification, the main processing unit can be in a sleep state or a normal operating state, depending on external events or user configuration. For example, when the device is performing operations such as firmware upgrades, Bluetooth communication, or mode switching, the main processing unit can remain in the second power consumption state; while during normal detection, it will preferentially enter the first power consumption state to extend battery life. The triggering conditions for the main processing unit to be woken up from the sleep state are not limited to the trigger signal output by the coprocessor unit, but can also include triggering events such as user button clicks, external wireless communication requests, timer overflows, and abnormal state recovery. For example, when the user presses a function button on the detection device, the main processing unit can be temporarily woken up to handle user interaction without relying on the trigger signal from the coprocessor unit.
[0147] Furthermore, the above solution constructs an efficient division of labor and collaboration system: the high-power main processing unit is in sleep mode most of the time, while the low-power coprocessing unit acts as a sentinel, continuously monitoring the power status. This architecture minimizes continuous power consumption while ensuring rapid response to external events (power plugging and unplugging).
[0148] Furthermore, the external power connection unit includes a connection port, and the main power connection unit includes a battery interface. Specifically, the coprocessor is electrically connected to a power supply node directly or indirectly connected to the connection port to sample a first voltage of that power supply node, and is electrically connected to a power supply node directly or indirectly connected to the battery interface to sample a second voltage of that power supply node.
[0149] Based on the above circuit structure, in this embodiment of the disclosure, the identification module samples the potential parameters of at least one power supply node, specifically for: sampling the first voltage directly or indirectly transmitted through the connection port, and sampling the second voltage directly or indirectly transmitted through the battery interface.
[0150] The coprocessor unit has a circuit structure for comparing voltage magnitudes, specifically for comparing the magnitude relationship between a first voltage and a second voltage. The coprocessor unit is configured to generate the trigger signal when the current comparison result changes compared to the previous comparison result.
[0151] In this embodiment, the coprocessor connects the first voltage and the second voltage to the two input terminals of a circuit structure used for voltage comparison, respectively, achieving faster discrimination through hardware-level voltage comparison. When the comparison result remains unchanged, there is no need to wake up the main processing unit; when the comparison result changes (e.g., the first voltage suddenly becomes higher than the second voltage, or the second voltage changes from higher to lower than the first voltage), the coprocessor can determine that a power supply connection or power switching event may have occurred, and then generates a trigger signal to notify the main processing unit to perform secondary identification, thereby avoiding unnecessary power consumption caused by the main processing unit being in a working state for a long time.
[0152] Furthermore, it can maintain ultra-low standby power consumption while ensuring rapid response to voltage changes, providing the necessary trigger for subsequent secondary identification, thus enabling the overall identification process to have the advantages of high efficiency, low power consumption and high reliability.
[0153] Furthermore, the circuit structure used for comparing voltage magnitudes can be a comparator circuit integrated within a chip (e.g., the first chip), a separate hardware circuit built from comparators, or a voltage comparison unit composed of operational amplifiers. Regardless of the method used, the comparison logic cannot achieve continuous operation at extremely low power consumption.
[0154] In a preferred embodiment, the circuit structure includes a hysteresis comparator with a configurable hysteresis voltage threshold. The main processing unit is configured to dynamically set the hysteresis voltage threshold of the hysteresis comparator based on the identified current power supply type.
[0155] The hysteresis voltage threshold can be understood as the voltage bandwidth used to determine whether the input voltage crosses a certain threshold during the comparison process, i.e., the hysteresis interval. The hysteresis comparator uses different trigger voltages on the rising and falling edges to prevent the comparison result from frequently flipping when there are small fluctuations in the input signal.
[0156] In this embodiment, the hysteresis voltage threshold of the hysteresis comparator is not fixed but dynamically changes. After identifying whether the current power supply is battery-powered, photovoltaic-powered, or other stable external power supply, the main processing unit can dynamically set different hysteresis bandwidths based on the voltage stability, ripple amplitude, and other characteristics of each type of power supply.
[0157] Furthermore, the main processing unit dynamically sets the hysteresis voltage threshold of the hysteresis comparator based on the identified current power supply type, further used for: When a switch from battery to another power type or from another power type to battery is detected, a new hysteresis voltage threshold is sent to the coprocessor unit in real time.
[0158] Furthermore, it can maintain optimal hysteresis settings when switching between different power sources, making the identification behavior more reliable and energy-efficient.
[0159] Furthermore, when the power type is switched from battery to other power types, the hysteresis comparator has a first hysteresis voltage threshold, and when the power type is switched from other power types to battery, the hysteresis comparator has a second hysteresis voltage threshold, wherein the first hysteresis voltage threshold is less than the second hysteresis voltage threshold.
[0160] Specifically, this dynamic switching of the hysteresis voltage threshold is led by the main processing unit, which is further used to: When a switch from battery to another power type is detected, the first hysteresis voltage threshold is set less than the second hysteresis voltage threshold set when a switch from another power type to battery is detected.
[0161] For example, the range of the first hysteresis voltage threshold is 0mV to 100mV; the range of the second hysteresis voltage threshold is 50mV to 150mV, or 150mV to 300mV.
[0162] Taking a second hysteresis voltage threshold of 150 mV and a first hysteresis voltage threshold of 0 mV as an example, the specific identification process is as follows: When the power supply is identified as an external solar power source, the hysteresis (second hysteresis voltage threshold) is set to 150 mV. This ensures that the comparison result will only change when the output voltage of the solar power source is at least 150 mV greater than the battery voltage, and will not cause erroneous triggering due to short-term fluctuations. When the solar power source is disconnected and the power supply is identified as battery-powered, in order to achieve highly sensitive external power source detection, the hysteresis (first hysteresis voltage threshold) needs to be reduced to 0 mV, so that once the coprocessor unit detects that the voltage at the connection port is higher than the battery voltage, it can immediately trigger the main processing unit to perform identification.
[0163] Furthermore, the external power supply connection unit also has an external power supply path, which is configured to transfer external power to the load end when an external power supply is connected to the connection port. The main power connection unit also has a battery power supply path, which is configured to transfer battery power to the load when a battery is connected to the battery interface. The power supply module also features: A power path structure for electrically combining the battery power supply path and the external power supply path is configured to introduce a preset voltage characteristic difference between different power supply paths, so that when powered only by the battery, the output voltage of the connection port has an inherent potential difference relative to the battery interface voltage, so that the first hysteresis voltage threshold can be set to 0mV, thereby enabling the comparison circuit to distinguish the power type based on the inherent potential difference, and to cooperate with the dynamic adjustment of the hysteresis voltage range to achieve stable and low-power power switching identification.
[0164] Specifically, this inherent potential difference can be achieved by connecting a unidirectional conducting device in series in the battery power supply path. When powered solely by battery, the forward voltage drop of this unidirectional conducting device causes the junction voltage to be slightly lower than the battery interface voltage. For example, if a Schottky diode is used, with a forward voltage drop between 0.15 and 0.3 V, the coprocessor unit can use this difference to determine if it is currently in battery mode.
[0165] Furthermore, without introducing additional complex circuits, a stable and identifiable potential difference criterion can be constructed solely based on the inherent characteristics of the diode, providing a foundation for low-power detection of the coprocessor unit.
[0166] For example, such as Figure 8 As shown, the battery power supply path and the external power supply path are electrically merged at the load end to form the power path structure.
[0167] In the battery power supply path, a first diode (D3) is connected in series. The anode of the first diode is electrically connected to the battery interface (VBAT), and the cathode is electrically connected to the electrical junction point (VCC30), so that when powered only by the battery, the output voltage (LDO_3.3) of the connection port has an inherent potential difference relative to the battery interface voltage.
[0168] Furthermore, such as Figure 8As shown, a second diode (D1) can be connected in series in the external power supply path. The specific circuit structure can be, for example, using two diodes to form a "diode OR gate" structure. The working process can be, for example, when the external power supply voltage is higher than the battery voltage, the second diode D1 conducts and the first diode D3 is cut off; when the external power supply is disconnected, the first diode D3 conducts and the second diode D1 is cut off.
[0169] Preferably, the first diode D3 and the second diode D1 can be Schottky diodes, whose low forward voltage drop characteristics are used to generate an identifiable potential difference in battery-powered scenarios and provide a fast conduction path when an external power source is connected, so as to reduce switching losses and improve identification response speed.
[0170] As can be seen, in this embodiment, the power path structure of the power supply module introduces a controllable voltage characteristic difference in different power supply paths to distinguish the inherent potential of each power supply in the converged state. This voltage characteristic difference can be obtained through a diode. Therefore, when only the main power supply is providing power, the output voltage of the external power path is naturally lower than the voltage at the main power supply terminal, thus forming a hardware-level voltage criterion for power type identification. The control module can dynamically adjust the comparator threshold accordingly to achieve low-power, jitter-free power switching identification.
[0171] In some embodiments, the main processing unit is electrically connected to at least one power supply node that is directly or indirectly connected to the external power supply connection unit and / or the main power supply connection unit, to sample the potential parameters of the power supply node. The potential parameters include voltage values. Of course, in some embodiments, the potential parameters may also include: the rate of change, stability, mean, or fluctuation amplitude of the voltage within a preset time window, thereby providing richer features to assist in the determination.
[0172] Then, the main processing unit responds to the trigger signal to perform secondary power type identification, specifically for: sampling the voltage value of at least one power supply node directly or indirectly connected to the external power connection unit and / or the main power connection unit, and comparing the obtained voltage value with the power supply voltage range preset for different power types, so as to determine the current power supply type.
[0173] The power supply attribute range can be understood as a pre-stored set of judgment rules or data mapping tables, used to associate the value range of different potential parameters with specific power supply types. Different power supply types correspond to different power supply attribute ranges.
[0174] In this embodiment of the disclosure, by analyzing the output voltage characteristics of various power sources (adapters, solar power sources, and batteries) under typical operating conditions, distinct power supply voltage ranges are set for each. For example, adapters typically output a stable and relatively high DC voltage, so their corresponding first voltage range can be set to above 4.0V; the output voltage of solar power sources is affected by light intensity and exhibits fluctuations within a certain range, so their corresponding second voltage range can be set to 2.9V to 3.8V; and the output voltage of batteries decreases slowly as power is consumed, so their corresponding third voltage range can be set to 2.5V to 3.3V.
[0175] Through the above-mentioned determination mechanism, low-cost and high-reliability automatic identification of different power supply types can be achieved simply by voltage sampling and interval comparison without the need for additional communication lines or dedicated identification chips.
[0176] Furthermore, the supply voltage range of at least one type of power supply is specifically designed to be distinguishable from other types of power supplies in terms of numerical characteristics, so that the main processing unit can uniquely determine the corresponding power supply type based on the sampled voltage value belonging to the voltage range of the specific design.
[0177] For example, the power supply voltage range includes: a first voltage range corresponding to the adapter and a second voltage range corresponding to the solar power source.
[0178] The external power supply connection unit includes a connection port, and the external power supply includes a solar power supply and an adapter. The solar power supply and the adapter share a connection port, which can be used to connect or disconnect the power supply. The first voltage range and the second voltage range do not overlap in value, so that the main processing unit can distinguish between the solar power supply and the adapter according to the voltage range to which the output voltage of the sampled external power supply connection unit belongs, and thus the human body detection device can still operate in the second working mode when the solar power supply is connected.
[0179] In this embodiment, the first voltage range corresponding to the adapter and the second voltage range corresponding to the solar power supply are completely non-overlapping in value. This allows the main processing unit to uniquely determine the corresponding power type based on the specific range to which the sampled external power connection unit's output voltage belongs. Specifically, when the external port voltage is higher than 4.0V, it can be immediately determined that the adapter is powered; when the voltage is between 2.9V and 3.8V, it is determined that the solar power supply is powered.
[0180] In addition, this design ensures that when solar power is connected, it will not be misidentified as being powered by an adapter, thus enabling the human body detection device to maintain low-power second operating mode operation in solar power scenarios, prioritizing its continuous working capability under low light conditions rather than blindly improving performance.
[0181] Furthermore, the main processing unit is further configured as follows: When distinguishing power supply types where the supply voltage ranges do not overlap, if it is determined that the output voltage of the obtained external power supply connection unit belongs to the voltage range of the specific design, then the corresponding power supply type is uniquely determined; otherwise, when distinguishing power supply types where the supply voltage ranges overlap, further auxiliary determination is made based on the voltage amplitude relationship or voltage change trend of the sampled voltage values to determine the specific power supply type.
[0182] For example, the power supply voltage range includes: The first voltage range corresponds to the adapter, the second voltage range corresponds to the photovoltaic power source, and the third voltage range corresponds to the battery; Wherein, the first voltage range and the second voltage range do not overlap numerically, while the second voltage range and the third voltage range partially overlap numerically (for example, in the range of 3.0V to 3.3V). When the main processing unit detects that the voltage is in the overlapping range, it further determines the power supply type as a solar power source or a battery based on the real-time voltage level or fluctuation trend.
[0183] In this embodiment, the first voltage range and the second voltage range do not overlap, while the second voltage range and the third voltage range may partially overlap in value. To resolve the ambiguity caused by this overlapping range, when the main processing unit detects that the voltage is in the overlapping range, it can further assist in determining the power supply type based on the real-time amplitude relationship of the voltage or its trend over time.
[0184] For example, adapters typically output a stable and relatively high DC voltage, so their first voltage range can be set to above 4.0V; the output voltage of a solar power source is affected by light intensity and fluctuates within a certain range, so its second voltage range can be set to 2.9V to 3.8V; the output voltage of a battery, on the other hand, decreases slowly as the battery is consumed, so its third voltage range can be set to 2.5V to 3.3V. For instance, when an overlap region of approximately 3.1V is detected, the main processing unit can further determine whether the power source is a solar power source or a battery based on the real-time voltage level or fluctuation trend.
[0185] In the example where the main processing unit further determines whether the power source is a solar power source or a battery based on the real-time voltage fluctuation trend, the main processing unit can continuously sample the voltage value multiple times in a short period of time to analyze its dynamic characteristics: if the voltage value has slight fluctuations that are synchronized with the change in illumination, the power source is determined to be a solar power source; if the voltage value is relatively stable or shows a slow monotonous decreasing trend under a small load, the power source is determined to be a battery.
[0186] Furthermore, in the example where the main processing unit further determines whether the power source is a solar power source or a battery based on the real-time voltage level, the external power connection unit may include a connection port. The main processing unit further determines whether the power source is a solar power source or a battery, specifically for: Based on the comparison results provided by the coprocessor unit to indicate the relative magnitude relationship between the first voltage and the second voltage, the current power supply type is determined to be either a solar power source or a battery.
[0187] Specifically, the hysteresis comparator integrated within the coprocessor continuously compares the two voltages and outputs high and low level signals in real time. When the main processing unit is woken up, it doesn't need to activate the high-power ADC for remeasurement; it only needs to read the voltage level to instantly determine the strength relationship between the two voltages. This is because the coprocessor compares the two voltages in real time, and the circuit structure used for voltage comparison within the coprocessor can be a purely analog circuit (such as a hysteresis comparator). Its output state flips without delay with instantaneous changes in the input voltage, thus ensuring that the main processing unit receives the most up-to-date information on the voltage relationship. For example, if the hysteresis comparator's comparison result is 1, it is determined to be powered by solar energy; otherwise, it is determined to be powered by a battery.
[0188] Furthermore, based on the above scheme, a multi-level, intelligent power supply identification system can be constructed, encompassing rapid screening and precise discrimination. This system not only achieves accurate and rapid identification of power supply types, providing a reliable basis for adaptive switching of operating modes, but also minimizes overall power consumption while ensuring functionality through coordinated optimization of hardware and software. On the one hand, it eliminates the need for separate identification pins or communication signals between different power supplies, enabling differentiation solely through voltage detection, thereby simplifying the hardware structure and reducing costs. On the other hand, by designing power supply voltage ranges and auxiliary judgment logic tailored to the characteristics of different power supplies, the detection device maintains high identification accuracy and stability even when the power supply voltage ranges of different power supply types overlap.
[0189] In some embodiments, the main processing unit samples the voltage value of at least one power supply node directly or indirectly connected to the external power connection unit and / or the main power connection unit, specifically for: The third voltage transmitted directly or indirectly through the connection port is sampled, and the obtained voltage value is compared with the power supply voltage range preset for different power supply types to determine whether the current power supply type is an adapter. The external power supply connection unit has an external power supply path, which is configured to transmit external power to the load when an external power supply is connected to the connection port; in the external power supply path, the power supply node corresponding to the third voltage is different from the power supply node corresponding to the first voltage.
[0190] For example, such as Figure 9 As shown, the first voltage (V1) is the voltage output from the connection port through a low-dropout linear regulator (LDO); the third voltage (V3) is the voltage between the connection port and the LDO; and the second voltage (V2) is the voltage directly transmitted to the positive terminal of the battery interface.
[0191] In this embodiment, a low-dropout linear regulator is introduced into the external power supply path. The external power supply is first input to the input terminal of the low-dropout linear regulator via the connection port. After the low-dropout linear regulator regulates the input voltage, it outputs a stable first voltage to the load terminal. Because the low-dropout linear regulator has characteristics such as low voltage drop, low output ripple, and fast transient response, it can avoid the impact of voltage spikes that may occur during the insertion and removal of the external power supply on subsequent circuits, thus improving the power stability and reliability throughout the entire external power supply connection process.
[0192] The circuit structure described above ensures that even when the external power supply is of different types but its input voltage fluctuates slightly, a stable power supply voltage can still be provided by a low-dropout linear regulator, thereby improving the operational stability and anti-interference capability of the human body detection device in the second working mode.
[0193] In some embodiments, the external power connection unit has an external power supply path configured to deliver external power to the load when an external power supply is connected to the connection port.
[0194] The main processing unit samples the voltage value of at least one power supply node directly or indirectly connected to the external power supply connection unit and / or the main power supply connection unit, specifically for: The fourth voltage (V4) transmitted directly or indirectly through the battery interface is sampled to determine whether a battery is currently connected.
[0195] The main power connection unit has a battery power supply path, which is configured to transfer battery power to the load when a battery is connected to the battery interface. In this battery power supply path, the power supply node corresponding to the fourth voltage is the same as the power supply node corresponding to the second voltage (e.g., ...). Figure 9 (As shown).
[0196] like Figure 10 As shown, the identification module has a first voltage divider circuit, and the coprocessing unit includes a first chip (U13). The first chip samples the potential parameters of the power supply node through the first voltage divider circuit; the voltage divider resistor in the first voltage divider circuit has a first resistance value.
[0197] The control module also has a second voltage divider circuit. The main processing unit includes a second chip (U10). The ADC port of the second chip samples the potential parameters of the power supply node through a second voltage divider circuit. The voltage divider resistor in the second voltage divider circuit has a second resistance value.
[0198] The chip I / O port of the identification module has a first internal resistance, and the chip ADC port of the main processing unit has a second internal resistance; the ratio between the first resistance value and the second resistance value is set to at least 100 times, and the ratio between the first internal resistance and the second internal resistance is set to at least 1000 times.
[0199] In this embodiment of the disclosure, the first voltage divider circuit is used to sample the potential parameters of the corresponding power supply node so that the identification module can compare the voltage of the solar power supply and the voltage of the battery, and then the main processing unit can identify whether the current power supply type is solar power supply or battery.
[0200] The first voltage divider circuit includes a first sampling circuit and a second sampling circuit. The first sampling circuit is used to sample the first voltage transmitted directly or indirectly through the connection port. Specifically, for example... Figure 11 As shown, the first sampling circuit is used to sample the voltage output from the low-dropout linear regulator at the connection port. The second sampling circuit is used to sample the second voltage at the battery interface, specifically, as follows: Figure 11 As shown, the second sampling circuit is used to sample the voltage directly transmitted to the positive terminal of the battery interface.
[0201] Specifically, the first sampling circuit includes a first resistor (R97) and a second resistor (R98) connected in series between the output of the low-dropout linear regulator (LDO) and ground; one input of the hysteresis comparator is connected between the first and second resistors to sample the voltage value after voltage division. The second sampling circuit includes a third resistor (R95) and a fourth resistor (R96) connected in series between the positive terminal of the battery interface and ground; the other input of the hysteresis comparator is connected between the third and fourth resistors to sample the voltage value after voltage division.
[0202] like Figure 11 As shown, the hysteresis comparator is packaged in the first chip (U13). The voltage values after voltage division (VBAT_DIV and USB_DIV) are input through the GPIO port of the first chip. The first internal resistance of the GPIO port of the first chip is set to approximately 10GΩ. The resistance values of the first to fourth resistors are all set to greater than 1MΩ. For example, as... Figure 12 As shown, the first and third resistors are both set to 8.2 MΩ, and the second and fourth resistors are both set to 2 MΩ.
[0203] In this embodiment of the disclosure, the second voltage divider circuit is used to sample the potential parameters of the corresponding power supply node so that the main processing unit can identify the current power supply access status, thereby affecting the power reporting type under the user-selected reporting mode (e.g., the first reporting mode or the second reporting mode).
[0204] The second voltage divider circuit includes a third sampling circuit and a fourth sampling circuit. The third sampling circuit is used to sample the third voltage transmitted directly or indirectly through the connection port. Specifically, for example... Figure 12 As shown, the third sampling circuit is used to sample the voltage between the connection port and a low-dropout linear regulator. The fourth sampling circuit is used to sample the fourth voltage of the battery interface, specifically, as shown... Figure 12 As shown, the fourth sampling circuit is used to sample the voltage directly transmitted to the positive terminal of the battery interface.
[0205] Specifically, the third sampling circuit includes a first PMOS transistor (Q9), a fifth resistor (R102), and a sixth resistor (R103) connected in series between the VBUS pin of the TYPE-C circuit and ground. An ADC port of the second chip (U10) samples the voltage value AO_VBUS after voltage division through the fifth and sixth resistors. The source (S) and drain (D) terminals of the first PMOS transistor (Q9) are electrically connected to the VBUS pin and one end of the fifth resistor (R102), respectively. The gate (G) terminal is controlled by the second chip (U10), allowing the second chip (U10) to control the power supply and de-energization of the third sampling circuit by controlling the conduction and de-energization of the first PMOS transistor (Q9), thereby de-energizing the third sampling circuit when sampling is not required. Specifically, as... Figure 12 As shown, the second chip (U10) controls the gate level of the first PMOS transistor (Q9) through the first NMOS transistor (Q10) to control the conduction and turn-off of the first PMOS transistor (Q9).
[0206] The fourth sampling circuit includes a second PMOS transistor (Q8), a seventh resistor (R104), and an eighth resistor (R105) connected in series between the power supply node corresponding to the fourth voltage and ground. Another ADC port of the second chip (U10) samples the voltage value AO_VBAT after voltage division through the seventh resistor (R104) and the eighth resistor (R105). The source (S) and drain (D) terminals of the second PMOS transistor (Q8) are electrically connected to the positive terminal VBAT pin of the battery interface and one end of the seventh resistor (R104), respectively. The gate (G) terminal is controlled by the second chip (U10), allowing the second chip (U10) to control the power supply and de-energization of the fourth sampling circuit by controlling the conduction and de-energization of the second PMOS transistor (Q8), thereby de-energizing the fourth sampling circuit when sampling is not required. Specifically, as... Figure 12 As shown, the second chip (U10) controls the gate level of the second PMOS transistor (Q8) through the second NMOS transistor (Q11) to control the conduction and turn-off of the second PMOS transistor (Q8).
[0207] Furthermore, the second chip (U10) controls the switches in the third and fourth sampling circuits via the GPIO port CTRL2, so as to periodically (e.g., once every 30 seconds, with each control of the third and fourth sampling circuits only energized for 2ms) powering on the circuits, thereby collecting the corresponding electrical quantities. Specifically, as... Figure 12 As shown, the second chip controls the first NMOS transistor and the second NMOS transistor simultaneously through the same GPIO port to realize the synchronous power-on and power-off of the third sampling circuit and the fourth sampling circuit, and to realize the acquisition of the third voltage and the fourth voltage synchronously or asynchronously.
[0208] The ADC port of the second chip (U10) has a second internal resistance, which is set to 1~10 MΩ. The resistance values of the fifth to eighth resistors are all set to less than 5kΩ. The voltage division ratios of the third and fourth sampling circuits are different. For example, as... Figure 12 As shown, the fifth resistor has a resistance of 2 kΩ, the sixth resistor has a resistance of 3 kΩ, and the input voltage range of the VBUS pin is set to 0~5V. This 0~5V voltage range is then divided to 0~3V by the third sampling circuit before being input to one ADC port of the second chip. The seventh resistor has a resistance of 1 kΩ, the eighth resistor has a resistance of 3 kΩ, and the input voltage range of the VBAT pin is set to 0~3.3V. This 0~3.3V voltage range is then divided to 0~3V by the fourth sampling circuit before being input to another ADC port of the second chip.
[0209] In addition, such as Figure 12As shown, the first chip can be, for example, a custom chip, and the second chip can be, for example, a Bluetooth processing chip with integrated Bluetooth communication capabilities. The two communicate via IIC. The first chip connects to the voltage values VBAT_DIV (representing battery voltage) and USB_DIV (representing external power supply voltage) acquired by the first and second sampling circuits respectively through two GPIO pins. These values are compared using an internal hysteresis comparator. When the comparison result changes, the first chip outputs a high / low level signal DIV_INT to the second chip via GPIO as a trigger signal. Specifically, if the current detection result indicates battery power, USB_DIV is 0mV higher than VBAT_DIV (the first hysteresis voltage threshold), and the comparison result is 1; otherwise, the comparison result is 0. If the current detection result indicates solar power or adapter power, USB_DIV is 150mV higher than VBAT_DIV (the second hysteresis voltage threshold), and the comparison result is 1; otherwise, the comparison result is 0.
[0210] After receiving the trigger signal, the second chip reads the voltage value AO_VBUS collected by the third and fourth sampling circuits through the ADC port. Based on AO_VBUS, it determines whether the connection port is connected to an adapter or a solar power source, and based on AO_VBUS, it determines whether a battery is installed in the battery interface. Specifically, if AO_VBUS is greater than or equal to 4V, it is determined that an adapter is connected and the current power type is considered to be an adapter. Otherwise, it reads the comparison result of the hysteresis comparator in the first chip through the IIC. If the comparison result is 1, the current power type is determined to be a solar power source, meaning the solar power source supplies power to the load; otherwise, the current power type is determined to be a battery, meaning the battery supplies power to the load.
[0211] In addition, the second chip will actively read AO_VBUS and AO_VBAT when power reporting is required (e.g., when preset reporting rules are met) to identify the current power connection status, and then determine the power type corresponding to the reported power data based on the user-selected reporting mode (details will be described in detail in subsequent embodiments). Specifically, when AO_VBUS is greater than or equal to the first value (e.g., 4.1V), it is assumed that an adapter is connected to the connection port; when AO_VBUS is within the solar power setting range (e.g., [2.8V, 4.1V)), it is assumed that a solar power source is connected to the connection port; when AO_VBAT is higher than the second value, it is assumed that a button cell battery is installed in the battery interface; when AO_VBAT is lower than the third value, it is assumed that no battery is installed in the battery interface. The second and third values have a difference of at least 50mV, for example, the second value is 2.6V and the third value is 2.4V.
[0212] Furthermore, in existing technologies, low-power detection devices that rely on multiple types of power supplies (such as external adapters and built-in batteries) typically have complex power supply circuit designs. A common solution is to use mechanical switches for power switching, which are bulky, have short lifespans, and cannot achieve automatic switching.
[0213] Based on this, one embodiment of the present disclosure provides a power supply circuit that can be applied to the detection device to achieve an automatic power switching and isolation function that can be implemented in hardware without complex control logic, thereby simplifying the design, reducing costs and improving safety and reliability.
[0214] Specifically, such as Figure 13 As shown, the power supply circuit provided in this embodiment includes an external power supply connection unit and a main body power supply connection unit.
[0215] The external power supply connection unit includes: Connection port for connecting an external power source, such as an interface for a DC adapter; and, An external power supply path is configured to transfer external power to the load when an external power source is connected to the connection port.
[0216] The main body power connection unit has: A battery interface for installing batteries, which can be a button battery compartment or other types of battery connectors; and... The battery power supply path is configured to transfer battery power to the load when the battery is connected to the battery interface.
[0217] The battery power supply path is also configured to isolate the connection port from the battery interface when the battery is connected to the battery interface and the connection port is connected to an external power source, so as to prevent the power from the external power source from being transferred to the battery.
[0218] In this embodiment of the disclosure, isolation can be understood as creating a constraint on unidirectional energy flow in the circuit structure. Specifically, it can be, for example, a complete disconnection in physical connection, or the creation of a high impedance or cutoff state in electrical characteristics, so that current cannot flow back into the battery interface from the external power supply path.
[0219] In this embodiment of the disclosure, when the battery and the external power supply are simultaneously connected to the load, they are electrically isolated from each other. Therefore, this solution can effectively prevent the high voltage of the external power supply (especially the adapter) from reversing and uncontrolled charging of the battery.
[0220] Meanwhile, this solution requires no additional control signals or power consumption, achieving automatic and reliable isolation at the pure hardware level. It has a simple structure and low cost, making it very suitable for low-power devices that are sensitive to cost and power consumption.
[0221] In some embodiments, the power supply circuit further includes a power path structure for electrically combining the battery power supply path with the external power supply path, the power path structure being configured to stop outputting power from the battery when an adapter is connected to the connection port.
[0222] In this embodiment, the main power supply includes a removable battery, such as a non-rechargeable button cell battery (e.g., CR2450) or a replaceable lithium-ion battery cell. For ease of installation and maintenance, the main power supply connection unit can be a battery compartment integrated within the detection device, allowing the user to replace the battery.
[0223] The external power supply includes an adapter. The adapter converts AC power into safe, low-voltage DC power required by the device, and the connection port allows for plug-and-play access to an external adapter.
[0224] In a specific example, the connection port could be a TYPE-C port, which simplifies user operation and enables rapid power supply.
[0225] As can be seen, the key feature of this design is the automatic and seamless switching of power supply. This enables the priority use of clean and sustainable external mains power, effectively saving battery power, and completely eliminating standby battery power loss when the adapter is available, thereby fundamentally extending battery life.
[0226] Furthermore, to achieve automatic switching and isolation between the battery-powered path and the external power supply path in a simple, reliable, and passive manner, this disclosure provides a specific circuit implementation. In this embodiment, as shown... Figure 14 As shown, the battery power supply path has a first unidirectional conducting element connected in series at the positive output terminal of the main power supply, and the external power supply path has a second unidirectional conducting element connected in series at the output terminal of the connection port. The output terminals of the first unidirectional conducting element and the second unidirectional conducting element converge at the load terminal to form a common power supply node (VCC_LOAD). The first unidirectional conducting element is configured to have a predetermined on-state voltage drop, so that when powered only by the battery, the voltage output by the connection port has an inherent potential difference of at least 100mV with the battery voltage.
[0227] Based on the above circuit, such as Figure 15 As shown, taking the first unidirectional conducting element as the first diode D3 and the second unidirectional conducting element as the second diode D1 as an example, the working mechanism is described as follows: When only the battery is connected: D3 is forward biased and conducts because its anode potential (battery voltage) is higher than its cathode potential (load terminal voltage). Battery power is supplied to the load. At this time, since there is no external power supply at the connection port, the anode of D1 is floating or at a low level, and therefore is in the off state.
[0228] When both an external power supply and a battery are connected: the external power supply voltage (minus the voltage drop across D1) is applied to the common power supply node (VCC_LOAD). As long as the external power supply voltage is designed to be higher than the battery voltage, the cathode potential of D3 will be higher than its anode potential, thus immediately reversibly biasing D3 and automatically cutting it off. This process requires no control signals, achieving pure hardware-level automatic isolation and effectively preventing reverse flow of external power into the battery.
[0229] A key feature of this implementation scheme lies in the utilization and setting of the forward voltage drop of the first unidirectional conducting element. Any unidirectional conducting element (such as a diode) generates an inherent forward voltage drop across its terminals when forward conducting. For conventional silicon diodes (such as 1N4148), this voltage drop is approximately 0.6V to 0.7V; for Schottky diodes (such as BAT54), this voltage drop is lower, approximately 0.2V to 0.3V. This scheme actively utilizes this physical characteristic: When powered solely by the battery, current flows through D3, generating the predetermined on-state voltage drop (Vf) across it. Therefore, the voltage measured at the common power node (VCC_LOAD) is equal to the battery voltage (VBAT) minus this on-state voltage drop (Vf), i.e., VCC_LOAD = VBAT - Vf.
[0230] At this time, since the connection port is not connected to an external power supply, its output is internally connected to the common power supply node (VCC_LOAD) via D1. Therefore, a voltage that is approximately equal to VCC_LOAD can be measured at the connection port.
[0231] This means that the voltage at the connection port is at least Vf lower than the voltage of the battery itself. In this embodiment, by selecting a unidirectional conducting element with a specific on-state voltage drop, the voltage output from the connection port has an inherent potential difference of at least 100mV from the battery voltage when powered solely by the battery. For example, this requirement can be easily met and far exceeded by using a typical Schottky diode (Vf ≈ 0.3V) as the first unidirectional conducting element. Even ideal diode controller schemes with extremely low on-state voltage drops typically have simulated voltage drops of tens of millivolts or more, which can also meet this condition.
[0232] In some embodiments, in order to further enhance the device's battery life and achieve energy self-sufficiency, the connection port can be configured to connect to a solar power source (i.e., a solar panel).
[0233] Accordingly, the power path structure is further configured to have intelligent energy management function. Specifically, the power path structure is configured to dynamically switch between three power supply modes when a solar power source is connected to the connection port, depending on the power supply capacity of the solar power source: powered only by the battery, powered jointly by the battery and the solar power source, or powered only by the solar power source.
[0234] As can be seen, in this embodiment of the present disclosure, the power supply circuit supports the following three operating modes: Battery-powered mode: In extremely low or no light conditions (such as at night or on cloudy days), the output voltage of the solar power source is lower than the battery voltage, and it cannot effectively output electrical energy. In this case, the power path structure treats the solar power source as an invalid input, and the battery powers the load alone to ensure continuous operation of the device.
[0235] Combined battery and solar power supply mode: Under moderate light conditions, solar power can output electrical energy, but its output voltage and current are insufficient to fully meet the peak power requirements of the load. In this case, the power path structure allows both solar power and batteries to supply power to the load simultaneously. Solar power provides a portion of the base energy to reduce the discharge burden on the battery, thereby extending its lifespan.
[0236] Solar power-only mode: Under strong sunlight, the solar power supply has sufficient power capacity, its output voltage is stable and higher than the battery voltage, and the output current is sufficient to meet or even exceed the full demand of the load. In this mode, the power path structure ensures that the load is entirely powered by the solar power supply.
[0237] Furthermore, based on the above solution, the power supply circuit provided in this embodiment, by introducing a solar power source and a smart power path structure, brings the following significant advantages: Energy self-sufficiency and unlimited battery life: In well-lit environments, the device can break free from absolute dependence on battery power and achieve theoretically unlimited battery life, making it particularly suitable for outdoor IoT devices, environmental monitoring sensors, and the like.
[0238] Intelligent optimization and efficiency improvement: The system is no longer a simple choice between two power sources, but can intelligently allocate and coordinate based on the "quality" (power supply capacity) of available energy to maximize the use of free solar energy and optimize overall energy efficiency.
[0239] Extending battery life: By allowing solar power to share or even completely take over the power supply task, the number and depth of battery discharge cycles are significantly reduced, effectively extending the replacement cycle of batteries, especially non-rechargeable batteries, or the overall life of rechargeable batteries.
[0240] In some embodiments designed for extreme simplicity and reliability, the power supply circuit is configured to utilize the unidirectional conductivity and inherent voltage drop characteristics of diodes to achieve automatic dynamic switching when solar power is connected. Specifically, refer to... Figure 15 As shown, the battery power supply path and the external power supply path are electrically merged at the load end to form the power path structure.
[0241] In the battery power supply path, a first diode (D3) is connected in series. The anode of the first diode is electrically connected to the battery interface, and the cathode is electrically connected to the electrical junction point.
[0242] A second diode (D1) is connected in series in the external power supply path. The anode of the second diode is directly or indirectly connected to the connection port, and the cathode is connected to the electrical junction point (VCC_LOAD).
[0243] When the connection port is connected to a solar power source, its output voltage (Vsolar) changes drastically with the light intensity. This circuit, through the coordinated operation of the first diode (D3) and the second diode (D1), can automatically switch between three power supply modes according to the changes in Vsolar. Its working principle is as follows: When there is no light, the output voltage of the solar power supply is 0. The battery voltage is forward-biased through its diode (denoted as D_bat) to supply power to the load.
[0244] When the photovoltaic power source generates a voltage V_pv under illumination, and V_pv > V_bat (battery voltage) + V_f (diode forward voltage drop), the diode (D_pv) of the photovoltaic power source conducts. At this time, the voltage at the load end is clamped at approximately V_pv - V_f. Since the load end voltage is higher than the battery positive terminal voltage, the battery diode D_bat is reverse biased and automatically cut off, thus naturally achieving isolation of the battery power supply. At this time, if the power provided by the photovoltaic power source is sufficient to drive the load, it is powered solely by the photovoltaic power source; if the instantaneous power of the load increases, causing the load end voltage to drop, when it falls below V_bat + V_f, the battery diode D_bat will automatically conduct, jointly powering the load with the photovoltaic power source, i.e., a joint power supply state.
[0245] As can be seen, this circuit achieves automatic and smooth power supply switching without software intervention by utilizing the unidirectional conductivity of diodes. It has a simple structure and high reliability.
[0246] Furthermore, a voltage regulator unit is also provided in the external power supply path. The input of the voltage regulator unit is connected to the connection port, and the output is connected to the anode of the second diode.
[0247] Understandably, when the output voltage of the solar power supply connected to the connection port fluctuates significantly due to changes in lighting conditions, this voltage regulator unit can convert its unstable, wide-range input voltage into a stable, clean DC voltage before supplying it to the subsequent diode path. This ensures that even under unstable lighting conditions, the load can obtain a stable operating voltage, avoiding resets or malfunctions.
[0248] In a specific example, such as Figure 16 As shown, the voltage regulation unit includes a low-dropout linear regulator (LDO). LDOs have the advantages of simple circuit structure, low output noise, and low cost, and are particularly suitable for low-power applications that are sensitive to noise and have a small input-output voltage difference.
[0249] In another specific example, such as Figure 17 As shown, the voltage regulation unit includes a DC-DC converter (such as a buck converter or a buck-boost converter). DC-DC converters have higher conversion efficiency, especially when the input voltage is much higher than the required output voltage, effectively reducing energy loss in the voltage regulation stage and maximizing the energy utilization of the photovoltaic power supply. If a buck-boost architecture is selected, it can adapt to a wide range of input scenarios where the photovoltaic power supply voltage may be lower or higher than the load voltage, providing greater application flexibility.
[0250] Furthermore, in pursuit of higher efficiency and more precise control, this disclosure provides another power path structure implementation scheme. In this scheme, such as Figure 18 As shown, the battery power supply path and the external power supply path are electrically combined at the load end to form the power path structure; wherein, a first MOSFET is connected in series in the battery power supply path, the first MOSFET is electrically connected to the battery interface, and can be controlled to turn off when an adapter is connected to the battery interface.
[0251] As can be seen, in this scheme, the battery power supply path and the external power supply path are electrically converged at the load side. The core change is that a first MOSFET (such as a PMOS or NMOS, with a corresponding driving circuit) is connected in series in the battery power supply path to replace the diode.
[0252] When the first MOSFET is turned on, its on-resistance (Rds_on) can be very small (typically in the milliohm range), and its voltage drop and power loss are much lower than the forward voltage drop of a diode (typically 0.2V-0.7V). This significantly improves efficiency when powered by battery and extends battery life.
[0253] The "isolation" action in this solution is performed in a "controlled" manner. The control signal can come from a simple voltage comparator to detect the presence of an external power source, or from the GPIO of the MCU in the control module to implement intelligent power management based on software policies. This controllability allows the device to cut off battery power at specific times, improving flexibility and reliability.
[0254] Furthermore, in a specific example that integrates the above advantages, the power path structure can adopt a hybrid architecture, such as... Figure 19 As shown: A third diode (D2) is provided in the external power supply path. The anode of the third diode is directly or indirectly connected to the connection port, and the cathode is connected to the electrical junction point.
[0255] Meanwhile, in the battery power supply path, a controlled second MOSFET is used to replace the diode.
[0256] This hybrid architecture works as follows: When powered solely by the battery: the second MOSFET is controlled to conduct, and its extremely low on-resistance ensures efficient power transfer from the battery. At this time, since there is no input from the external power supply path, the third diode is naturally cut off.
[0257] When an external power source (such as an adapter or a regulated photovoltaic power source) is connected: the external power supply voltage is applied to the anode of the third diode. Once this voltage is confirmed as valid by the detection circuit or MCU, the control circuit will immediately turn off the second MOSFET.
[0258] The third diode plays a crucial role in backup isolation and preventing loop conflicts. It ensures that even if there is a slight delay or fault in the MOSFET's control signal, it can physically prevent the external power supply voltage from being reverse-fed into the battery through the MOSFET's body diode, providing dual protection.
[0259] This hybrid design of "MOSFET + diode" combines the high efficiency of battery power (the advantage of MOSFET) with the absolutely reliable isolation during dual power supply switching (the advantage of diode), making it an optimal solution that achieves a perfect balance between performance and reliability.
[0260] Furthermore, in low-power detection devices with light detection capabilities, light acquisition is usually not possible at a high frequency due to limitations in power consumption and hardware resources. A lower acquisition frequency will result in response delays, preventing the device from capturing rapid changes in ambient light in a timely manner.
[0261] Based on this, one embodiment of this disclosure provides a human body detection device that adopts a "dual-core collaborative, hierarchical wake-up" system architecture. The continuous illumination monitoring task is handled by an ultra-low-power coprocessing unit, while complex data processing, event discrimination, and communication tasks are handled by a powerful but power-intensive main processing unit. Through this division of labor, the device remains in a very low-power monitoring state most of the time, while simultaneously being able to instantly wake up the main processing unit to perform high-precision detection when a significant change in illumination is detected. This maintains the battery-powered lifespan while continuing high-frequency illumination acquisition.
[0262] Specifically, such as Figure 20 As shown in the figure, an embodiment of this disclosure provides a human body detection device, which includes: a control module, a sensing module, a power supply module, an identification module, and a light sensing unit.
[0263] The control module includes a main processing unit. The main processing unit can be understood as a collection of all possible implementations capable of performing "control" functions. It can integrate wireless communication functions (such as Bluetooth, Sub-GHz communication, etc.) and possess high computing power. For example, it can be a Bluetooth System-on-Chip (SoC) with an RF module, a highly integrated MCU or microprocessor unit (MPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a logic control circuit composed of discrete components. This main processing unit typically has multiple operating states, such as normal operating state, idle state, and sleep state, to adjust power consumption in different scenarios.
[0264] The sensing module is electrically connected to the main processing unit of the control module and is used to collect signals that characterize the presence of a human body, so that the control module can determine whether a human body is present in the current environment. The power supply module, which is electrically connected to the control module, is used to supply power to the device and supports battery power, such as button batteries or other portable power sources.
[0265] The identification module includes a coprocessing unit that is communicatively connected to the main processing unit, and its static operating power consumption is lower than that of the main processing unit.
[0266] The coprocessor unit operates under the control of the main processing unit. It can be a hardware circuit (e.g., composed of comparators, reference sources, and simple logic gates) or a custom integrated circuit (ASIC). Therefore, the coprocessor unit is designed to focus on a single, specific monitoring task, with a highly simplified circuit structure, resulting in low power consumption and enabling uninterrupted operation at minimal cost. Specifically, in this example, the coprocessor unit uses a custom chip, and its operating power consumption is set to be less than or equal to one-fifth of the main processing unit's power consumption.
[0267] Static operating power consumption can be understood as the power consumption level of the processor when performing light-load tasks or standby monitoring tasks. For example, the static power consumption of the main processing unit in deep sleep mode may be tens to hundreds of microamps, while the coprocessor unit may be an ultra-low-power MCU, Sensor Hub, low-power DSP, or low-power logic circuit integrated into the sensor, and its static operating power consumption can be as low as a few microamps or even sub-microamps, enabling it to continue working for a long time without significantly affecting the overall power consumption of the device.
[0268] The light sensing unit is electrically connected to the coprocessing unit and the main processing unit, and is used to convert ambient light intensity into an electrical signal characterizing light intensity.
[0269] The coprocessor unit is configured to perform primary illumination detection, including: The light sensing unit acquires an electrical signal characterizing the ambient light intensity, and when the electrical signal meets a preset trigger condition, it outputs a trigger signal to the main processing unit.
[0270] The main processing unit is configured to perform secondary illumination detection in response to the trigger signal to determine the current ambient illuminance.
[0271] Specifically, secondary illumination detection is a further identification process performed by the main processing unit to determine the current illumination level.
[0272] In this embodiment, the most power-consuming "continuous monitoring" task is assigned to a low-power coprocessing unit, while the complex "precise identification and decision-making" task is left to a powerful main processing unit, which only intervenes when necessary, thus achieving a combination of ultra-low power static standby and fast event response.
[0273] It is worth noting that during the primary illumination detection process, the coprocessor unit acquires an electrical signal characterizing the ambient illuminance and analyzes this signal in real time. When the illumination signal is detected to meet preset triggering conditions (such as a sudden change in light intensity exceeding a set threshold, a light change rate exceeding a preset value, or significant fluctuations occurring for several sampling cycles), the coprocessor unit outputs a trigger signal to the main processing unit (it should be noted that this trigger signal is independent of the trigger signal used to trigger the main processing unit to perform secondary power type identification as described in other embodiments; the two operate independently and do not interfere with each other), to request the main processing unit to perform secondary illumination detection.
[0274] Furthermore, based on the above scheme, through the coordinated cooperation between the coprocessing unit and the main processing unit, the device can significantly reduce overall power consumption without sacrificing recognition sensitivity and response speed: the coprocessing unit is responsible for long-term high-frequency monitoring of changes in illuminance, while the main processing unit is only woken up when necessary to perform confirmation operations.
[0275] In some embodiments, the main processing unit is further configured to: after performing secondary illumination detection, enter a first power consumption state; and be able to switch to a second power consumption state in response to the trigger signal in the first power consumption state, and perform secondary illumination detection. The first power consumption state and the second power consumption state can be understood as different power operating modes of the main processing unit.
[0276] The main processing unit operates in a low-power or sleep state in the first power consumption state. In this state, the main frequency arithmetic unit, peripheral clock, or wireless communication module is turned off, and only necessary register holding and wake-up circuits are retained to reduce static power consumption. In the second power consumption state, the main processing unit operates in normal working condition. In this state, the main processing unit fully activates the processor core, peripheral modules, and communication modules, and can execute computationally complex algorithm processing tasks.
[0277] Specifically, its working process can be implemented in the following way: After the detection device is powered on, the main processing unit completes initialization configuration and one secondary illumination detection, then actively enters the first power consumption state. The coprocessing unit continuously executes primary illumination detection. When the detected illumination signal meets the preset trigger conditions, it outputs a trigger signal to the main processing unit, causing the main processing unit to switch from the first power consumption state to the second power consumption state. In the second power consumption state, the main processing unit performs a complete secondary illumination detection and outputs the detection result, then returns to the low-power first power consumption state to wait for a new trigger signal. This cycle repeats, realizing a hierarchical detection mechanism where "high-precision illumination detection is only performed when necessary."
[0278] Furthermore, the coprocessor unit is configured to independently perform primary illumination detection when the main processing unit is in a first power consumption state. Because the coprocessor unit has extremely low static power consumption, it can maintain a high sampling frequency (e.g., 2 Hz or higher) while operating continuously for extended periods, thereby ensuring that rapid changes in illumination are not missed.
[0279] Therefore, in this embodiment, through hierarchical power consumption management and task allocation between the main processing unit and the coprocessing unit, the device can minimize the duty cycle of high-power modules while maintaining the sensitivity and accuracy of light detection. The coprocessing unit, as a continuously running "front-end monitoring core," completes the initial detection and event screening of light signals with extremely low power consumption, while the main processing unit is only activated to perform confirmation operations when necessary.
[0280] Furthermore, it's important to note that while the coprocessor unit performs primary light detection, the main processing unit can be in a sleep state or a normal operating state, depending on external events or user configuration. For example, when the device performs firmware upgrades, Bluetooth communication, or mode switching, the main processing unit can remain in the second power consumption state; while during normal detection, it preferentially enters the first power consumption state to extend battery life. The triggering conditions for the main processing unit to wake up from sleep mode are not limited to trigger signals output by the coprocessor unit; they can also include user button clicks, external wireless communication requests, timer overflows, and abnormal state recovery events. For instance, when a user presses a function button on the detection device, the main processing unit can be temporarily woken up to handle user interaction without relying on trigger signals from the coprocessor unit.
[0281] In some embodiments, the electrical signal characterizing ambient illuminance includes a voltage value representing ambient illuminance.
[0282] The coprocessing unit includes a voltage comparison circuit, which determines whether the electrical signal meets a preset trigger condition, specifically for: The voltage comparison circuit determines whether the voltage value representing ambient illuminance is within a set voltage range; if so, it is determined that the triggering condition is not met; otherwise, it is determined that the triggering condition is met, and a trigger signal is output to the main processing unit to enter the normal working state, and the voltage value representing ambient illuminance is read to determine the current illuminance.
[0283] Specifically, the upper and lower limits of the set voltage range are respectively V_low and V_high For example, V_low It can be a reference lower limit calculated based on the ambient illuminance obtained from the previous round of secondary illumination detection, for example, 80% of the previous illumination voltage value; V_highIt can be 120% of the previous illumination voltage value.
[0284] When the currently collected voltage value falls within the range [ V_low , V_high When the light intensity is within a certain range, it indicates that the change in light intensity is small, which usually means that the ambient light intensity has not changed significantly and there is no need to wake up the main processing unit.
[0285] When the currently collected voltage value is higher than V_high or below V_low When the light intensity is high, it indicates that there is a large fluctuation in the light intensity, such as occlusion, people passing by, or sudden changes in ambient brightness. At this time, the coprocessing unit determines that the triggering condition is met and outputs a trigger signal to wake up the main processing unit to perform secondary light intensity detection.
[0286] Furthermore, the above-mentioned scheme can ensure that the coprocessing unit only triggers the main processing unit when the illumination changes significantly, thereby enabling timely response to environmental change events and avoiding unnecessary wake-ups caused by slight noise or small brightness fluctuations, effectively reducing overall power consumption.
[0287] Furthermore, the main processing unit is also configured to reset the set voltage range for the coprocessing unit each time the trigger signal is acquired.
[0288] Specifically, after completing the secondary illumination detection, the main processing unit recalculates the upper and lower limits of the set voltage range applicable to the next sampling cycle based on the newly detected illumination level, and sends the new range parameters (upper and lower limits of the set voltage range) to the coprocessing unit, enabling the coprocessing unit to perform primary detection based on more accurate reference thresholds (upper and lower limits of the set voltage range).
[0289] Furthermore, this enables the voltage comparison process to remain adaptive to the current ambient brightness, thereby improving detection sensitivity and noise immunity.
[0290] Furthermore, the main processing unit resets the set voltage range for the coprocessing unit, specifically for: The coprocessor resets the set voltage range based on the newly acquired ambient light intensity, so that the upper and lower limits of the set voltage range are positively correlated with the newly acquired ambient light intensity.
[0291] In some embodiments, the main processing unit acquires an electrical signal to determine the current ambient illuminance, specifically for: directly reading the voltage signal characterizing the ambient illuminance transmitted by the light sensing unit.
[0292] In other words, during the secondary illumination detection process, the main processing unit performs simulated readings from the sensing nodes of the illumination sensing unit itself, rather than obtaining the converted illumination data from the coprocessing unit.
[0293] This approach simplifies the structure and logic of the coprocessor unit and avoids the decrease in accuracy caused by insufficient resolution or update delay of the output sample values of the coprocessor unit. This allows the main processing unit to re-determine the cause of the illumination change with higher sampling accuracy, such as distinguishing between "gradual change in ambient brightness" and "instantaneous occlusion event".
[0294] In some embodiments, the coprocessing unit acquires an electrical signal characterizing ambient illuminance through the light sensing unit, specifically for: The electrical signal is acquired intermittently with a sampling period of no more than 1 second. Within each sampling period, the energization time of the light sensing unit does not exceed 1 / 100 of the period duration, thereby controlling the overall power consumption of the co-processing unit and the light sensing unit during the primary detection process to within 10 microamps. Specifically, as follows... Figure 21 As shown, the first chip (U13) can control the on / off state of Q7 through the CE pin to control the power on and off of the light sensor unit.
[0295] As can be seen, in this embodiment of the present disclosure, by shortening the power-on time of the light sensing unit and adopting a sleep sampling method, extremely low average power consumption can be achieved while maintaining a high sampling frequency.
[0296] Furthermore, the light sensing unit includes a photosensitive device (e.g., Figure 21 The photosensitive sensor U14 and the start-up circuit that works with the photosensitive device (e.g., Figure 21 The light sensing unit, which consists of the filter capacitor C90 and the voltage divider resistor R91, and the photosensitive device and the starting circuit, is configured as follows: The startup is completed within the power-on period of each sampling cycle, wherein the startup time of the photosensitive device is no more than 100µs, so as to achieve a stable output signal under short-term power-on conditions.
[0297] In embodiments of the present invention, the "start-up time" refers to the time interval required for the output electrical signal of the photosensitive device in the light-sensing unit to reach a stable sampling state after being powered on. Specifically, when the coprocessor unit controls the startup circuit to apply a working voltage to the photosensitive device, the junction capacitance, charge distribution, and bias current inside the photosensitive device will undergo a transition process. During this process, the output signal is not yet stable and is not suitable for direct use in light detection. When the output electrical signal enters a steady state and remains within a predetermined fluctuation range, the startup of the photosensitive device is considered complete, and this time is the startup time.
[0298] In embodiments of the present invention, in order to balance response speed and power consumption control, the photosensitive device preferably has a short startup time, for example, no more than 100 microseconds, so that under intermittent power-on sampling mode, the photosensitive device can enter a stable working state in a short time, thereby minimizing the sampling window and reducing average energy consumption.
[0299] By limiting the startup time, the coprocessor unit can complete the electrical signal reading operation only for a short period after the startup time in each sampling cycle, while the photosensitive device remains powered off or in a low-power state during other periods. This significantly reduces overall power consumption while maintaining the light acquisition frequency, making it particularly suitable for low-power human body detection devices powered by button batteries or other small-capacity power supplies.
[0300] In an embodiment of the present invention, the coprocessing unit is configured as follows: At least 500µs after the start of the power-on period, the electrical signal output by the photosensitive device is collected.
[0301] For example, to avoid judgment errors caused by unstable output of the photosensitive device at startup, the coprocessor unit can collect the output voltage of the photosensitive device near the midpoint of the power-on period to ensure stable and reliable data.
[0302] Specifically, the coprocessing unit intermittently controls the power supply of the light sensing unit to achieve low-power sampling of ambient illuminance. The coprocessing unit periodically applies a working voltage to the photosensitive device according to a preset sampling period, forming sampling time intervals. Within each sampling time interval, the photosensitive device outputs a stable electrical signal after a startup time. The coprocessing unit acquires this signal at the midpoint of the sampling time interval or at a predetermined time to obtain valid data representing the current ambient illuminance.
[0303] Outside of the sampling period, the photosensitive device is in a power-off or low-power state, thereby minimizing the average power consumption. By adjusting the duty cycle of the sampling period and the power-on period, the power-on time of the photosensitive device in each cycle can be controlled to occupy only a small portion of the entire sampling cycle, for example, no more than 1 / 100, so that the average power consumption of the coprocessor unit and the photosensitive device in the primary illumination detection process remains in the microampere range.
[0304] For example, the sampling period of the light sensing unit is set to (500±100) ms, and the power-on time of the light sensing unit in each sampling period is set to (4±1) ms.
[0305] The light sensing unit also includes a resistor (such as...) Figure 21 The voltage divider resistor R91 and capacitor (such as...) Figure 21 The filter capacitor C90 in the middle), where the photosensitive device (such as Figure 21One end of the photosensitive sensor U14 is electrically connected to the power supply through a controllable switch, and the other end is grounded through the resistor and the capacitor respectively. The other end is also connected to the main processing unit and the coprocessing unit to transmit the electrical signal characterizing the ambient light intensity.
[0306] The controllable switch is controlled to the coprocessing unit. The capacitance of the capacitor is set to 1nF~10nF or 10nF~100nF, and the resistance of the resistor is set to 1 kΩ~6.8 kΩ, thereby limiting the start-up time of the photosensitive device to within 100µs and controlling the average power consumption of the light sensing unit to within 5µA in the primary light detection stage.
[0307] like Figure 21 The diagram shows a specific implementation circuit. The coprocessing unit includes a first chip (U13), and the main processing unit includes a second chip (U10). The first chip (U13) integrates the voltage comparison circuit. After the first chip (U13) receives the voltage value (voltage value at AO) collected by the light sensor unit through the GPIO port, the internal voltage comparison circuit judges whether the trigger condition is met. If the trigger condition is met, a trigger signal (e.g., high level) is output to the second chip through the interrupt line INT. The first chip (U13) and the second chip (U10) communicate via IIC to reset the set voltage range for the coprocessing unit based on the newly acquired ambient light intensity. After receiving the trigger signal, the second chip (U10) directly reads the voltage value (voltage value at AO) collected by the light sensor unit to determine the current illuminance.
[0308] Specifically, such as Figure 21 As shown, the light sensing unit includes a controllable switch (e.g., PMOS transistor Q7) connected in series between a power supply LDD_VDD and ground, a photosensitive sensor U14, a voltage divider resistor R91 (resistance value 6.8kΩ), and a filter capacitor C90 (capacitance value 10nF) connected in parallel across R91. The node AO between U14 and R91 is electrically connected to the GPIO ports of the first and second chips. The photosensitive sensor exhibits the characteristic that the brighter the illuminance, the higher the voltage value generated at AO, and its startup time is approximately 15µs. Furthermore, based on the circuit structure of the aforementioned light sensing unit...
[0309] Taking a sampling period of 500 ms and a power-on period of 3 ms as an example, the light acquisition process can be as follows: When the second chip (U10) is in sleep mode, the first chip (U13) monitors the voltage value at AO and determines at high frequency whether the acquired AO value meets the trigger condition. Specifically, in every 500 ms period, Q7 only needs to be turned on for the first 3 ms to provide power to U14, and Q7 remains off for the remaining 497 ms. About 0.5 ms after power-on, U14 enters the stable output range, and the first chip (U13) acquires the voltage value at AO to achieve intermittent sampling.
[0310] For example, if the voltage value collected in the previous round was 1.2V and the voltage range was set to [0.96V, 1.44V], and the voltage value collected in this round is 0.5V, it means that the ambient light intensity has decreased, and 0.5V is not within the range of [0.96V, 1.44V], which meets the trigger condition. The first chip (U13) outputs a high level to the second chip (U10) through the INT pin, and the second chip (U10) is woken up. Then it collects the voltage value at AO. If it is determined to be 0.5V, it reports the corresponding light intensity and resets the set voltage range of the first chip to [0.4V, 0.6V] based on 0.5V. Then it can enter the sleep state again to wait for the next round of wake-up.
[0311] As can be seen, based on the above scheme, the dynamic configuration process for the set voltage range can be, for example, as follows: the main processing unit bases its configuration on the current illumination voltage. V_now The upper and lower limits of the calculation interval are k1· V_now With k2· V_now The new upper and lower limits are written to the coprocessor unit register so that the coprocessor unit can use them directly in the next round of detection.
[0312] The above scheme enables the interval threshold to adapt to environmental changes, avoids the failure of the fixed threshold under strong or weak light conditions, and further reduces false triggering and improves detection accuracy.
[0313] In some embodiments, the power supply module also supports solar power and adapter power supply, thereby providing flexible power supply methods in different application scenarios and deployment environments.
[0314] The identification module is electrically connected to the control module and the power supply module, and is configured to generate an electrical signal to characterize the current power type attribute.
[0315] The control module is also configured to: The identification operation is performed based on the electrical signal provided by the identification module to determine the current power type, and the sampling period of the ambient light intensity remains unchanged when the power type is detected to have changed.
[0316] Specifically, during the process of switching the device from adapter power to battery power or back to adapter power, the identification module updates its output power attribute signal in real time. The control module performs identification operations based on this power attribute signal. When a change in power attribute is detected, the control module maintains the current illumination sampling period unchanged to avoid sampling frequency jitter caused by power switching, thereby maintaining the stability of the illumination sampling link and ensuring the continuity and reliability of the illumination judgment logic.
[0317] Taking the switching between adapter and battery power as an example, the voltage of the power supply module changes rapidly the moment the adapter is unplugged, and the identification module then generates a new power attribute signal.
[0318] Upon detecting a switch from "adapter-powered" to "battery-powered," the control module does not immediately alter the light sampling period but maintains the same sampling strategy as during adapter-powered operation. This avoids fluctuations in sampling rhythm or false triggers caused by transient power switching, ensuring the continuous and stable operation of the light detection link even under unstable power conditions.
[0319] Furthermore, based on the above solution, it is possible to improve the consistency of light detection logic under different power supply modes and avoid the jitter of sensing capability caused by power mode switching.
[0320] Furthermore, in some solutions, the control module is configured as follows: Based on the electrical signal provided by the identification module, an identification operation is performed to determine the current power type. In response to determining that the current power type is a battery and / or an external solar power source, a second working mode is invoked to control the coprocessing unit to collect ambient illuminance at a second cycle. In response to determining that the current power type is an adapter, a first working mode is invoked to control the coprocessing unit to collect ambient illuminance at a first cycle or to maintain real-time collection of ambient illuminance, wherein the second cycle is at least 10 times longer than the first cycle.
[0321] As can be seen, unlike the previous embodiments, which emphasized that "the sampling period does not change when the power supply is switched", this embodiment emphasizes that "different working modes are adopted according to the power supply type", allowing different power supply modes to correspond to different sampling frequencies, which is another type of optional solution.
[0322] Specifically, when using battery power or solar power (which is usually power-limited), the control module enters a "second operating mode," i.e., a low-power mode. In this mode, the coprocessor unit collects light signals at longer intervals (e.g., 500ms to 1s or even longer) to reduce average power consumption.
[0323] When powered by the adapter (with sufficient energy), the control module enters the "first working mode", which can set the coprocessor unit to collect light at a high frequency cycle, or enter the real-time acquisition mode to improve the ability to capture rapid changes in light.
[0324] Taking the switching between adapter and battery power as an example: After the user unplugs the adapter, the control module detects the change in the attribute signal output by the recognition module, indicating a switch from "adapter powered" to "battery powered." It then switches to the second operating mode and sets the sampling period of the coprocessor unit to, for example, 500ms to reduce power consumption. Conversely, when the user plugs in the adapter, the control module detects the power switch to "adapter powered," enters the first operating mode, and shortens the sampling period to, for example, 100ms or real-time mode.
[0325] Furthermore, based on the above solution, it is possible to reduce the overall power consumption of the coprocessor unit and the illumination link under battery power supply conditions; improve the sensitivity and response speed of illumination detection under adapter power supply conditions; automatically adjust the sampling strategy according to the power attributes to achieve intelligent power sensing and scheduling; and enable the device to balance performance and battery life under different power supply conditions.
[0326] Furthermore, in the application of low-power monitoring devices, solar power supplies are usually used as non-communication peripherals, and users cannot know their specific power supply capabilities.
[0327] Based on this, one embodiment of this disclosure provides a detection device that provides a solution for reporting the power supply status of a solar power source without an external solar power source or communication capabilities.
[0328] Specifically, such as Figure 22 As shown, the human body detection device includes a power supply module, a sensing module, and a control module.
[0329] The power supply module includes an external power supply connection unit for connecting to an external power supply (such as a solar power supply, an adapter, etc.) that is separately configured from the detection device, and for leading the output voltage of the external power supply to the target power supply node.
[0330] The control module has a second voltage divider circuit, which is electrically connected to the power supply module.
[0331] The sensing module, electrically connected to the control module, is used to collect signals that characterize the presence of a human body, so that the control module can determine whether a human body is present in the current environment.
[0332] When the photovoltaic power supply establishes an electrical connection with the detection device via the connection port of the external power connection unit, the control module samples the electrical parameters output from the photovoltaic power supply to the target power supply node of the detection device through the second voltage divider circuit to obtain the photovoltaic power supply quantity used to characterize the energy storage state of the energy storage component in the photovoltaic power supply. The photovoltaic power supply does not have independent communication capabilities and includes an energy storage component (such as a lithium supercapacitor) for energy storage, which can provide a certain amount of buffer power to the detection device when there is insufficient light.
[0333] Specifically, the control module can calculate the energy storage percentage of the photovoltaic power source's energy storage component based on a preset voltage-capacity mapping relationship. Since the photovoltaic power source itself has no communication capabilities, all identification and calculations are performed by the detection device.
[0334] The control module is further configured as follows: Under preset reporting rules, the power of the solar power source is sent to a remote server via the communication module, so that the energy storage information of the solar power source can be reported by the detection device when the solar power source does not have communication capabilities.
[0335] In this embodiment of the disclosure, the remote server can be a cloud server, an enterprise server, or other computing device capable of communicating with the detection device via a communication network. This remote server receives power-related data reported by the detection device based on preset reporting rules, and can store, process, and visualize the received data, so that users or platforms can still obtain the energy storage status information of the solar power source's energy storage components even when the solar power source lacks communication capabilities.
[0336] The communication module, scheduled by the control module, is used to send reported data to the remote server. As the solar power source has no communication peripherals, in this embodiment, the detection device performs the "proxy reporting" function for the solar power source's energy storage information: Solar power source → Detection device → (Communication module) → Remote server. Users can view the historical power data of the solar power source in the App or on the backend platform without requiring the solar power source to have any intelligent communication hardware.
[0337] Furthermore, the human body detection device provided in this embodiment can report the power level of the solar power source using existing communication modules. The solar power source does not need to have communication capabilities to achieve remote power reporting, which significantly reduces the cost of the solar power source. The power level of the solar power source can be recorded on a remote server for a long time, and users can remotely view the historical trend. It is suitable for low-power scenarios, has a flexible structure, and is highly adaptable.
[0338] In some embodiments, the control module sends the power of the solar power source to a remote server via a communication module under preset reporting rules, further configured to: If it is determined that the device is currently in the first power reporting mode, and the power supply type currently powering the detection device is the solar power supply and / or the detection device is currently only connected to the solar power supply, the solar power supply power is sent to the remote server through the communication module when the preset reporting rules are met.
[0339] When the control module receives the first instruction, it switches to the first power reporting mode in response to the first instruction. The first instruction is generated and sent by the mobile terminal after selecting the mode corresponding to the first power reporting mode from at least two reporting modes; and, between different reporting modes, the power data reported by the control module differs at least in the type of power.
[0340] The power supply module further includes a main power connection unit for connecting to the main power supply of the detection device; the main power supply includes a battery, and the external power supply includes a solar power supply and / or an adapter; the type of power includes at least one of adapter power, battery power, and solar power supply power.
[0341] In this embodiment, the reporting mode is a pre-defined working strategy within the control module, used to constrain the detection device under what circumstances, in what manner, and for what type of power supply, it samples and reports power data. Different reporting modes correspond to different sampling objects and different reporting priorities.
[0342] For example, the first power reporting mode is mainly used to collect and report the power from the battery, while other modes may be used to prioritize reporting the power of the solar power source.
[0343] By dividing the work into different modes, the reporting logic of the detection device can be made more flexible, more targeted, and adaptable to different application scenarios.
[0344] In this embodiment of the disclosure, when the control module receives a first instruction, it switches to a first power reporting mode in response to the first instruction. This first instruction can be issued by a user via a mobile terminal accessing the corresponding APP or remote server backend system of the detection device. Taking an APP as an example, the user can select one of at least two reporting modes from the APP's interface on the mobile terminal. When the user selects the option corresponding to the first power reporting mode, the mobile terminal sends a first instruction to the detection device via the remote server, and the control module of the detection device recognizes the first instruction and executes the reporting mode switch.
[0345] In the first power reporting mode, the control module prioritizes performing power sampling and reporting operations on the battery. Therefore, the power level of the solar power source will only be reported if the detection device determines that the power source currently supplying the detection device is the solar power source and / or determines that the detection device is currently only connected to the solar power source, under the condition of meeting the preset reporting rules.
[0346] Furthermore, by setting different power reporting modes, users can flexibly switch between them according to the usage scenario, ensuring that the most valuable power data is reported in a specific scenario.
[0347] In some embodiments, the second voltage divider circuit is further configured to independently sample the power supply node corresponding to the battery and the power supply node corresponding to the solar power source, so that the control module can obtain relevant data representing the battery power and the solar power source power respectively. Through this independent sampling structure, when the control module switches between different power reporting modes, it can perform a matching power reporting operation based on power data from independent sources, thereby avoiding data aliasing, sampling deviation, or mode switching delay caused by multiple power paths sharing the sampling circuit.
[0348] For specific examples, such as Figure 11 and Figure 12 As shown, the second voltage divider circuit includes a third sampling circuit and a fourth sampling circuit. The third sampling circuit is used to sample the third voltage transmitted directly or indirectly through the connection port. Specifically, as shown... Figure 11 and Figure 12 As shown, the third sampling circuit is used to sample the voltage between the connection port and a low-dropout linear regulator. The fourth sampling circuit is used to sample the fourth voltage of the battery interface, specifically, as shown... Figure 11 and Figure 12 As shown, the fourth sampling circuit is used to sample the voltage directly transmitted to the positive terminal of the battery interface.
[0349] In a further example, the connection port is a Type-C port. The third sampling circuit includes a first PMOS transistor, a fifth resistor, and a sixth resistor connected in series between the VBUS pin of the Type-C port and ground. An ADC port of the second chip samples the voltage value after voltage division through the fifth and sixth resistors. The source (S) and drain (D) terminals of the first PMOS transistor are electrically connected to the VBUS pin and one end of the fifth resistor, respectively. The gate (G) terminal is controlled by the second chip, allowing the second chip to control the power supply and power-off of the third sampling circuit by controlling the conduction and turn-off of the first PMOS transistor, thereby turning off the power to the third sampling circuit when sampling is not required. Specifically, as shown... Figure 11 and Figure 12 As shown, the second chip controls the gate level of the first PMOS transistor through the first NMOS transistor, thereby controlling the conduction and turn-off of the first PMOS transistor.
[0350] The fourth sampling circuit includes a second PMOS transistor, a seventh resistor, and an eighth resistor connected in series between the power supply node corresponding to the fourth voltage and ground. Another ADC port of the second chip samples the voltage value after voltage division through the seventh and eighth resistors. The source (S) and drain (D) terminals of the second PMOS transistor are electrically connected to the positive terminal VBAT pin of the battery interface and one end of the seventh resistor, respectively. The gate (G) terminal is controlled by the second chip, allowing the second chip to control the power supply and de-energization of the fourth sampling circuit by controlling the conduction and de-energization of the second PMOS transistor, thus de-energizing the fourth sampling circuit when sampling is not required. Specifically, as... Figure 11 and Figure 12 As shown, the second chip controls the gate level of the second PMOS transistor through the second NMOS transistor, thereby controlling the conduction and turn-off of the second PMOS transistor.
[0351] Furthermore, the second chip controls the switches in the third and fourth sampling circuits via GPIO ports, so as to periodically (e.g., once every 30 seconds, with each control energizing the third and fourth sampling circuits for only 2ms) to collect the corresponding electrical quantity. Specifically, as... Figure 11 and Figure 12 As shown, the second chip controls the first NMOS transistor and the second NMOS transistor simultaneously through the same GPIO port to realize the synchronous power-on and power-off of the third sampling circuit and the fourth sampling circuit, and to realize the acquisition of the third voltage and the fourth voltage synchronously or asynchronously.
[0352] The second chip's ADC port has a second internal resistance, set to 1~10 MΩ, while the resistance values of the fifth to eighth resistors are all set to less than 5kΩ. The voltage division ratios of the third and fourth sampling circuits are different. For example, as... Figure 11 and Figure 12 As shown, the fifth resistor has a resistance of 2 kΩ, the sixth resistor has a resistance of 3 kΩ, and the input voltage range of the VBUS pin is set to 0~5V. This 0~5V voltage range is then divided to 0~3V by the third sampling circuit before being input to one ADC port of the second chip. The seventh resistor has a resistance of 1 kΩ, the eighth resistor has a resistance of 3 kΩ, and the input voltage range of the VBAT pin is set to 0~3.3V. This 0~3.3V voltage range is then divided to 0~3V by the fourth sampling circuit before being input to another ADC port of the second chip.
[0353] The second chip actively reads AO_VBUS and AO_VBAT when power reporting is required (e.g., when preset reporting rules are met) to identify the current power connection status. Based on the user-selected reporting mode, it then determines the power type corresponding to the reported power data (details will be described in detail in subsequent embodiments). Specifically, when AO_VBUS is greater than or equal to a first value (e.g., 4.1V), it is assumed that an adapter is connected to the connection port. When AO_VBUS is within the solar power setting range (e.g., [2.8V, 4.1V)), it is assumed that a solar power source is connected to the connection port. When AO_VBAT is higher than a second value, it is assumed that a battery (e.g., a coin cell battery) is installed in the battery interface. When AO_VBAT is lower than a third value, it is assumed that no battery is installed in the battery interface. The second and third values have a difference of at least 50mV; for example, the second value is 2.6V and the third value is 2.4V.
[0354] Based on this, the control module is further configured to: when it is determined that the current state is in the first power reporting mode, if it is not determined that the detection device is currently only connected to a solar power source, then perform at least one of the following operations: When it is determined that the detection device is currently connected to both a battery and a solar power source, the battery power is sent to the remote server through the communication module when the preset reporting rules are met, so as to realize the reporting of battery power information. When it is determined that the detection device is currently connected to both a battery and an adapter, the battery power is sent to the remote server through the communication module when the preset reporting rules are met, so as to realize the reporting of battery power information. If it is determined that the detection device is currently only connected to the adapter, the device will report 100% battery level through the communication module when the preset reporting rule is met. If it is determined that the detection device is currently only connected to the battery, the battery level is reported through the communication module when the preset reporting rules are met.
[0355] As can be seen, in this embodiment of the disclosure, there are five scenarios in the first power reporting mode, including: (1) Simultaneously connect to both battery and solar power; (2) Connect both the battery and the adapter simultaneously; (3) Only connect the battery; (4) Connect only the adapter; (5) Only connect to the solar power source.
[0356] In the first three scenarios, the battery level is reported first. In the fourth scenario, the power level of the adapter is reported (always 100%). In the fifth scenario, the power level of the solar power source is reported. Through the above distinction, the core logic of "prioritizing battery level reporting" in the first power reporting mode can be effectively highlighted: as long as the detection device has a battery and the solar power source is not the only power source connected, the control module will prioritize collecting and reporting the battery's power status.
[0357] For example, in the use of human body detection devices, if a user is away from home for a long time, the user is most concerned about whether the battery has enough remaining power to support long-term operation. Therefore, in the first reporting mode, even if a solar power source is connected at the same time, the battery level will be reported first, so that the background monitoring can accurately obtain the remaining battery life.
[0358] On the other hand, when only the adapter is connected, the adapter output is relatively stable and does not contain an energy storage unit, so its power supply status can be regarded as "100%", that is, there is no limit to the amount of electricity. However, when only the solar power source is connected, since the solar power source contains an energy storage component and does not have a communication function, the remote visibility of the solar power source status can be significantly improved by having this device report the solar power source's power level on its behalf.
[0359] Furthermore, in this embodiment of the disclosure, the mutual interference of voltage signals from different power paths is avoided by using an independent power acquisition circuit, ensuring that the sampled value of each channel can accurately map its corresponding power type; through the detailed distinction of five scenarios in the first power reporting mode, the first power reporting mode can adapt to various power supply combinations in actual applications and maintain logical consistency. Moreover, battery power is crucial to the continuous operation of the device in most application scenarios, and the strategy of "prioritizing the reporting of battery power" can effectively meet the requirements of safety supervision.
[0360] In some embodiments, the detection device also has a second power reporting mode. Unlike the first power reporting mode, the second power reporting mode prioritizes reporting the power level of the solar power source. Therefore, by introducing and distinguishing between the first and second power reporting modes, two reporting strategies can be provided to users for different usage scenarios, thereby achieving a more flexible monitoring method.
[0361] For example, when users are more concerned about the remaining battery life of the device itself, they can select the first power reporting mode; while when users are more concerned about the power generation capacity, energy storage status, or the changing trend of the light environment of the solar power source, they can switch to the second power reporting mode.
[0362] The existence of the above two modes enables the device to output more valuable power information in different working situations according to the user's specific needs.
[0363] The following is a detailed explanation of the second power reporting mode.
[0364] Specifically, the control module, under preset reporting rules, sends the power of the solar power source to a remote server via the communication module, further used for: Once it is determined that the current power reporting mode is in the second power reporting mode, and the preset reporting rules are met, the power of the solar power supply is sent to the remote server through the communication module.
[0365] When the control module receives the second instruction, it switches to the second power reporting mode in response to the second instruction; wherein the second instruction is generated and sent by the mobile terminal after selecting the mode corresponding to the second power reporting mode from at least two reporting modes.
[0366] Furthermore, the power data reported by the control module differs at least in the type of power between different reporting modes; The power supply module further includes a main power connection unit for connecting to the main power supply of the detection device; the main power supply includes a battery, and the external power supply includes a solar power supply and / or an adapter; the type of power includes at least one of adapter power, battery power, and solar power supply power.
[0367] The method for obtaining the second instruction, the selection interface for the reporting mode, and its interaction mechanism can be found in the description of the first instruction in the aforementioned embodiments, and will not be repeated here.
[0368] It is worth noting that in the second power reporting mode, regardless of whether the current detection device is connected to a battery, adapter, solar power source, or any combination thereof, the control module only performs power reporting based on the data from the solar power source's energy storage component, and does not report power information for other power types.
[0369] In other words, the second power reporting mode is a "solar power source priority and sole" reporting mode, and its core mechanism can be understood as follows: As long as the solar power source is connected, the actual power output of the solar power source will be reported. If no solar power source is connected, the system will still trigger a report according to the rules, but will report a predetermined power level (e.g., 0%) to indicate that the solar power source is currently unable to provide or collect valid power. Specifically, when the detection device detects that the solar power source is not connected, the sampled value is meaningless because the solar power source's energy storage component has no power output. Therefore, a fixed power level (e.g., 0%) is directly reported through the communication module, so that the remote server can determine whether the solar power source is currently unavailable or not yet in operation.
[0370] Furthermore, in this embodiment, by introducing a second power reporting mode, users can remotely monitor the power generation and energy storage performance of the solar power source, making it suitable for deployment scenarios such as outdoor, remote, and field locations. When the solar power source is disconnected or blocked, reporting 0% accurately reflects the "unavailable" state of the solar power source, facilitating the backend server to form long-term data analysis models such as illumination trends and charging efficiency, and avoiding interference from the user's observation of the solar power source performance due to the battery or adapter connection status.
[0371] Furthermore, the control module, upon determining that it is currently in the second power reporting mode and that the preset reporting rules are met, sends the solar power supply power to the remote server via the communication module, and is further configured as follows: When it is determined that the detection device is connected to a solar power source, and the preset reporting rules are met, the device sends the actual power level of the solar power source to the remote server via the communication module. Furthermore, even if the device is not currently using a solar power source as its power supply (e.g., powered by a battery), as long as a solar power source is connected, the device will still report the power level of the solar power source, allowing the user to understand the working / power generation capacity of the solar power source at any time.
[0372] If the detection device is determined to be disconnected from a solar power source, a predetermined power level (e.g., 0%) is reported via the communication module. Reporting 0% can be considered a form of "state maintenance," allowing the backend to generate a continuous dataset. Especially in extremely low light conditions, reporting 0% reflects the true state, making it easier for users to understand environmental changes.
[0373] Furthermore, through the mechanism of the aforementioned second power reporting mode, the remote server can obtain the time series of energy storage status changes of the solar power source in a complete, continuous, and stable manner, enabling the solar power source to achieve a complete remote monitoring function without having an independent communication module.
[0374] Furthermore, the control module, upon determining that it is currently in the second power reporting mode and that the preset reporting rules are met, sends the solar power supply power to the remote server via the communication module, and is further configured as follows: If it is determined that the detection device is connected to a battery and / or that the detection device is currently powered by a battery, and if it is further detected that the detection device is connected to a solar power source, then the solar power source charge is reported through the communication module when the preset reporting rule is met. If no electrical connection is detected between the solar power source and the detection device under the above conditions, a predetermined power value (e.g., 0%) is reported through the communication module when the preset reporting rule is met.
[0375] Specifically, this technical solution requires the control module to prioritize reporting the power level of the solar power source, even if the battery is also operating normally or connected in parallel. This is because the core objective of the second power reporting mode is to monitor the power generation status, energy storage capacity, and potential support capacity for powering the device from the solar power source. Therefore, even if the battery is the primary power source, the real-time power data of the solar power source still has higher monitoring value. To this end, when the preset reporting rules are met, the control module sends the actual power parameters of the solar power source to a remote server via the communication module to ensure that the backend can continuously monitor the actual operating status of the solar power source.
[0376] When the control module determines that the current detection device is in battery-connected or battery-powered mode, but simultaneously detects that the solar power supply has not established a valid electrical connection with the detection device (e.g., the solar power supply is disconnected, the connection cable is damaged, or insufficient ambient light causes the solar power supply output to completely fail), it chooses not to report meaningless solar power supply power data. Instead, the control module reports a predetermined power value (e.g., 0%) to the remote server via the communication module. This predetermined value does not represent the actual stored energy, but rather serves as a "status indicator" to inform the server that the solar power supply is not currently providing power or is in an unavailable state.
[0377] Furthermore, through this differentiated reporting mechanism, this technical solution ensures the stability of battery power supply while achieving accurate differentiation and intelligent presentation of the status of solar power sources.
[0378] In some embodiments, the preset reporting rules include at least one of fixed reporting rules and variable reporting rules; The control module is further configured to: in the current reporting mode, when at least one of the preset reporting rules is met, send power-related data to the remote server through the communication module.
[0379] Among them, the fixed reporting rules can be understood as: predefined, fixed triggering conditions that are closely integrated with the device's operating logic. As long as the triggering conditions are detected and met, the control module will automatically perform the reporting operation without relying on user-defined operations.
[0380] For example, the fixed reporting rule includes at least one of the following triggering conditions: (1) Detect at least one fixed time point after the device is powered on. For example, it can be defined as three fixed time points: 30 seconds, 60 seconds, and 90 seconds after power-on. The working process can be as follows: the device is powered on and started → the control module completes self-test → the current power type and power data are automatically collected at 30 seconds after power-on → reported through the communication module; if the power status changes at 60 seconds or 90 seconds, the report is repeated; if there is no change, a compressed reporting strategy can also be implemented to avoid redundant data.
[0381] (2) The identification result of the current power supply type is detected to have changed. For example, when the power supply type is detected to have switched from battery to adapter, the control module immediately collects the power data of each power supply and reports it to realize real-time recording and monitoring of power supply switching behavior.
[0382] (3) The system detects a change in the connection or disconnection status of the main power supply battery, solar power supply, or adapter. If the battery is detected to have been removed from the installed state, the control module will immediately report the change so that the remote server can be notified in time that the device has lost its internal power support.
[0383] (4) The system detects that the user has switched the reporting mode. For example, when the user switches from the first power reporting mode to the second power reporting mode, the control module will immediately report the current power status to ensure that the server can be informed of the policy change in a timely manner.
[0384] It is evident that, based on fixed reporting rules, power information can be accurately synchronized at key time points, improving the accuracy of server-side monitoring of device power status and making it suitable for application scenarios with high stability requirements.
[0385] Furthermore, the variable reporting rule includes at least one of the following triggering conditions: (1) When it is detected that the adjustable timeout period has been exceeded since the last power consumption report. The adjustable timeout period can be understood as a "backup reporting period" set to avoid a long period of no power consumption data updates, such as 2 hours or 12 hours. When the timeout period is reached, the control module will force a power consumption data report once, regardless of whether the power status has changed.
[0386] (2) When the time interval between the current reporting time and the previous reporting time reaches the variable period set by the user. The variable period can be understood as: a periodic reporting interval actively selected by the user to meet the power monitoring needs under different usage scenarios. For example, the user can select different reporting periods such as 2 hours, 4 hours, and 12 hours in the application interface.
[0387] In this embodiment of the disclosure, when any of the above triggering conditions are met, the control module reports the corresponding power data through the communication module. Here, "corresponding power data" can be understood as: a data set obtained from at least one of the adapter power, battery power, and solar power as the reporting object, based on the current reporting mode and the currently connected power type. For example: If the system is in the second power reporting mode and a solar power source is detected to be connected, then the power level of the solar power source will be reported. If the solar power source is not connected, a predefined power value (such as 0%) will be reported to indicate that the solar power source is not participating in power supply.
[0388] In this embodiment of the disclosure, the adjustable timeout duration and / or the variable period can both be selected by the user through the application interface corresponding to the detection device, so as to adapt to the monitoring needs of different usage scenarios.
[0389] For example, when periodic reporting is performed based on a user-defined variable period, the control module will automatically trigger data reporting when the time interval between the current reporting time and the previous reporting time reaches the set variable period. The following example illustrates this: "Switching the variable period from 2 hours to 12 hours." like Figure 23 As shown, the interface area for visualizing the variable period for user settings can be located in the application's reporting mode selection interface, such as... Figure 23 The “Report Power More Frequently” option, when selected by the user, switches to a 2-hour cycle (the control module automatically reports power data every 2 hours, suitable for scenarios requiring high-frequency monitoring). When the user deselects this option, it switches to a 12-hour cycle (the control module reports every 12 hours to reduce communication load, suitable for applications where the solar power supply operates stably for a long time or where power changes are slow).
[0390] Furthermore, based on the same interface, users can not only view the power status of the solar power source, but also flexibly select the first power reporting mode or the second power reporting mode according to the current energy situation, and conveniently switch the reporting cycle.
[0391] In some embodiments, the control module is further configured to: When the communication module establishes a direct communication connection with the mobile terminal, the power-related data corresponding to the solar power source is sent to the mobile terminal through the direct connection, so that the mobile terminal can display the current power of the solar power source in its application interface based on the received power-related data.
[0392] Specifically, when users operate the testing device on-site, they may want to view the energy reserves of the solar power source in real time without relying on a remote server. In this case, users can actively establish a direct communication connection with the testing device via a mobile terminal (such as a smartphone) (e.g., Bluetooth direct connection). Upon detecting a successful Bluetooth direct connection, the control module will immediately trigger the corresponding data reporting logic, actively obtaining the power sampling results from the power supply node corresponding to the solar power source and sending them directly to the mobile terminal. After receiving the data, the mobile terminal can immediately display the current energy storage percentage, voltage value, and / or sampling time of the solar power source in real time on the application interface, achieving near-field visual monitoring.
[0393] Furthermore, through this direct connection display method, users do not need to wait for network data to be forwarded to a remote server via a Bluetooth gateway, but can directly obtain real-time data based on local short-range communication. This method significantly improves the real-time display capability of solar power supply power information, and is particularly suitable for the installation and commissioning phase of solar power supplies, short-cycle inspection scenarios, or situations where users want to immediately verify whether the solar power supply is outputting normally.
[0394] In some embodiments, the detection device may employ Bluetooth Low Energy (BLE) technology, and the corresponding communication module is a Bluetooth communication module (BLE module). BLE modules typically feature ultra-low power consumption, flexible broadcast mechanisms, and low connection latency, making them highly suitable for low-power sensor devices.
[0395] Under normal operating conditions, the detection device utilizes the broadcast characteristics of the BLE communication module. The control module actively sends power-related data to the Bluetooth gateway via Bluetooth communication, and the Bluetooth gateway forwards it to the remote server via the Internet link.
[0396] It should be noted that in this embodiment, the detection device itself does not receive data actively sent from a remote server via a Bluetooth gateway. In other words, the detection device only supports "uplink communication" and does not support "downlink control" by default. This design is mainly based on reducing power consumption, simplifying complexity, and reducing Bluetooth connection usage.
[0397] Furthermore, during normal operation, to further reduce power consumption, the BLE communication of the detection device is generally in a non-connectable mode, meaning that the Bluetooth broadcast packet does not contain characteristic fields that allow mobile terminals or other devices to connect. Only when certain triggering conditions are met (such as the user pressing a button on the detection device, the solar power supply being reconnected, or a change in the power supply type status), will the control module switch the BLE broadcast to a connectable broadcast, thereby allowing external mobile terminals to actively establish a direct connection with the detection device.
[0398] Therefore, in the embodiments of this disclosure, the control module will send the power-related data of the solar power source to the mobile terminal only when the detection device and the mobile terminal are in a direct connection state, so that the mobile terminal can display the visual information of the solar power source power on the application interface.
[0399] Among them, such as Figure 23 As shown, the visual display interface area can be set in the application's reporting mode selection interface, allowing users to view the power status of the solar power source and flexibly select the first or second power reporting mode based on the current energy situation, thereby improving the convenience of usage decisions.
[0400] Furthermore, the power-related data corresponding to the solar power source is sent to the mobile terminal, specifically for: When a solar power source is detected to be connected, the actual power level of the solar power source is sent. If no solar power source is detected, a predetermined power value (e.g., 0%) is sent.
[0401] Specifically, the control module has a second chip. When the second chip detects that the solar power supply has successfully established an electrical connection with the connection port through the second voltage divider circuit, it immediately reads the electrical parameters such as voltage and current output by the solar power supply from the corresponding sampling circuit, and then calculates the actual energy storage percentage or other quantifiable indicators of the solar power supply's energy storage components. This energy-related data is then sent to the mobile terminal in real time via the BLE communication module, so that the mobile terminal can directly display the actual energy status of the solar power supply on the interface.
[0402] Conversely, when the second chip detects that the solar power supply has not established an electrical connection with the detection device (e.g., the solar power supply has been disconnected, the interface is damaged, power supply is insufficient, or the light is extremely weak, resulting in no effective output), in order to clearly show the user the status of "no solar power supply connected," "solar power supply unavailable," or "solar power supply not outputting," the control module will send a predetermined power value, such as 0%. The mobile terminal can then display this data as "no solar power supply," "0% power," or a gray icon to improve the user's understanding of the device status.
[0403] Furthermore, this design not only avoids misjudging the power of the solar power source as abnormally low, but also allows users to know in a timely manner whether the solar power source is connected and working properly, thereby improving overall usability and user experience.
[0404] In addition, in existing technologies, low-power human detection devices often turn off wireless broadcasting or significantly reduce the broadcasting frequency in order to extend battery life when powered by batteries or other main power sources. This results in mobile terminals being unable to detect the device within a reasonable time, leading to problems such as cumbersome configuration processes, difficult debugging, and poor user experience.
[0405] Based on this, one embodiment of this disclosure provides a human body detection device. By introducing a changeable time-limited period management scheme, it achieves a working strategy of "ensuring detection within the controlled time window and strictly saving energy during other periods". This ensures that the device can be quickly detected and connected when needed while maintaining low power consumption characteristics, significantly improving the user experience.
[0406] Specifically, such as Figure 24 As shown, the human body detection device includes a control module, a sensing module, a power supply module, and a communication module.
[0407] The sensing module is electrically connected to the control module and is used to collect signals that characterize the presence of a human body, so that the control module can determine whether a human body is present in the current environment. The power supply module is used to supply power to the control module and the sensing module, and has a main power supply connection unit for connecting to the main power supply of the human body detection device. The communication module is electrically connected to the control module and is used to establish a connection with the mobile terminal. The control module is configured as follows: The communication module receives and stores the changeable time-limited period configuration information set by the mobile terminal. When the device is powered by the main body power supply through the main body power connection unit, the communication module is controlled to maintain a wirelessly direct connection state that can be discovered and connected by the mobile terminal within the set time-limited period based on the changeable time-limited period configuration information.
[0408] In this embodiment of the disclosure, the time-limited period configuration information can be understood as a time window parameter used to limit the communication module to remain in a state that can be discovered by the mobile terminal (e.g., Bluetooth broadcast state), including but not limited to at least one of the following: The start time of the time-limited period; Duration of the time-limited period; Limited time period repetition cycle (e.g., daily, weekly repetition); Communication parameters such as broadcast power and broadcast interval within a limited time period.
[0409] Its generation process can be, for example, as follows: Users run the companion application via a mobile terminal (such as a smartphone) and set the time window during which the device must remain discoverable, such as "10:00–10:10 daily" or "broadcast enabled for 3 minutes after this configuration." The mobile terminal sends the set time-limited configuration information to the device in the form of BLE commands. The control module parses and stores this information, forming a time window configuration that can be dynamically modified by the user.
[0410] For example, the communication module is a Bluetooth communication module, and the direct-connection state is a Bluetooth broadcast state. When the user wants to initialize or configure the device: Users can set a "discoverable time period" in the mobile app; The app writes this configuration information to the device via Bluetooth; During this time-limited period, the device continuously broadcasts BLE at preset intervals to ensure that mobile phones can quickly discover the device; After the time-limited period ends, the device automatically turns off the broadcast or increases the broadcast interval to an extremely low frequency, thus entering a deep energy-saving mode.
[0411] Therefore, based on the above scheme, the following can be achieved: Maintaining ultra-low power consumption under mains power supply conditions: Limiting the time window for the communication module to remain in broadcast state to avoid excessive energy consumption caused by continuous broadcasting.
[0412] Significantly improves the user configuration and binding experience: ensures that the communication module can be quickly discovered within a short period of time when the user actively configures it, reduces search waiting time, and improves connection success rate.
[0413] To achieve controllable and intelligent discoverability of communication modules: the discoverability window is flexibly set by the mobile terminal to meet different usage scenarios and user habits.
[0414] In some embodiments, the changeable time-limited period configuration information set by the mobile terminal is any option selected from a plurality of predefined discrete duration options. Specifically, such as Figure 25 As shown, the mobile terminal's application can provide users with several directly selectable time-limited period options in its configuration interface, such as discrete duration options ranging from several minutes to several hours. This allows users to flexibly adjust the duration for which the device remains directly connectable after disconnection according to their own needs. These discrete duration options are preset to balance device discoverability requirements and battery life. For example, shorter durations are suitable for temporary configuration or debugging scenarios, while longer durations are suitable for scenarios where users temporarily leave but need to frequently reconnect to the device in a short period of time.
[0415] Furthermore, based on the above solution, it is possible to achieve the following: without increasing additional communication overhead, users can quickly set time-limited periods according to actual usage needs, reducing operational complexity, while avoiding abnormal power consumption caused by users arbitrarily inputting duration, thus helping to maintain the controllability and stability of overall power consumption.
[0416] For example, each discrete duration option is used to characterize the time during which the communication module of the detection device remains in a directly connectable state after the mobile terminal actively disconnects the direct connection. Specifically, after the mobile terminal ends the direct connection with the detection device, the device does not immediately close the discoverable broadcast, but continues to maintain the broadcast state for the selected time-limited period, so that the detection device can immediately respond to any re-initiation of a direct connection by the mobile terminal at any time during that period, thereby achieving a seamless reconnection experience.
[0417] In some embodiments, the starting point of the time-limited period is set to the moment when the communication module last disconnected its direct connection. Specifically, when the mobile terminal's application reaches a specific functional interface (e.g., a device configuration interface, debugging interface, firmware upgrade interface, etc.), it automatically attempts to establish a direct connection with the communication module of the human body detection device; upon exiting the specific functional interface, it automatically disconnects the direct connection with the human body detection device. Specifically, at the instant the application exits the aforementioned specific interface, the device records the moment of direct connection disconnection as the starting point of the time-limited period and begins timing from that moment.
[0418] To illustrate the process more clearly, three typical duration options can be set, such as... Figure 25 As shown, the timeframes are 2 minutes, 1 hour, and 24 hours, respectively.
[0419] Taking smartphones as an example: If the 2-minute option is selected: When the phone exits the specific interface and automatically disconnects, the detection device's communication module remains in a directly connectable state for up to 2 minutes. If the user reopens the specific interface within 2 minutes, the phone can reconnect directly without needing to search for devices again.
[0420] If the 1-hour option is selected: After the phone automatically disconnects, the detection device will remain discoverable via Bluetooth broadcast for the next 1 hour. This is suitable for scenarios where the user temporarily leaves but will frequently return to operate the device.
[0421] If the 24-hour option is selected: the device remains directly connected throughout the entire day. This is suitable for use cases where users need to frequently debug or deploy devices.
[0422] Furthermore, the above solution can significantly improve the flexibility of user operation and avoid the cumbersome operation caused by manually waking up the communication module, allowing users to reconnect to the device at any time within the set time window without additional intervention in the device itself, thus significantly optimizing the user experience.
[0423] In some embodiments, the control module is further configured to: After the time-limited period ends, the communication module is controlled to enter a non-directly connectable state, and after a specific user-triggered event is detected, the communication module is controlled to re-enter the wirelessly directly connectable state.
[0424] Specifically, after the time-limited period ends, the device automatically returns to a low-power state where it cannot be directly connected, in order to minimize the additional power consumption caused by the communication module. When the user needs to find or reconnect to the device, a specific user event can be triggered to temporarily restore the communication module to a directly connectable state, thereby realizing the function of manual wake-up.
[0425] Furthermore, the above solution can ensure that the device can be quickly woken up when necessary while maintaining low power consumption, realizing a combination strategy of "high-efficiency hibernation + manual controllable wake-up", which meets the requirements of energy saving and ease of use in actual deployment scenarios.
[0426] For example, the specific user-triggered event is a pressing operation of a physical button provided on the detection device. Specifically, the device body may be provided with a mechanical button, a touch button, or a tactile button, which is connected to the control module. When the user presses the button, the control module detects the trigger event, and then instructs the communication module to re-enter the wireless direct connection state and start broadcasting, enabling the mobile terminal to discover the device and successfully establish a direct connection in a short time.
[0427] Furthermore, this explicit user-triggered mechanism provides users with a reliable and direct way to wake up devices while ensuring energy efficiency, avoiding long waiting times for automatic device broadcasts and improving interaction efficiency.
[0428] In some embodiments, the detection device further includes: The identification module is electrically connected to the control module and the power supply module, and is configured to generate an electrical signal to characterize the current power type attribute; The power supply module supports at least two different power types; The control module is also configured to: Based on the electrical signal provided by the identification module, an identification operation is performed to determine the current power supply type, and one of the multiple operating modes corresponding to the determined power supply type is called so that the operating state of the human body detection device matches the power supply margin of the current power supply.
[0429] The term "operating mode" refers to different states or modes of device operation. There are multiple operating modes, all pre-set, and differences exist between them, specifically in terms of overall device performance and power consumption. "Power supply margin" can be understood as the ability of a power source to provide electrical energy. For example, a battery's energy is finite and will be depleted with use, while mains power (through an adapter) can theoretically be considered an energy source with unlimited energy and sufficient power. Therefore, the power supply margin of an adapter is greater than that of a battery.
[0430] Furthermore, based on the above scheme, the device provided in this embodiment adopts a multi-source power supply design to achieve adaptive power supply management. The device has multiple preset working modes, and the control module can automatically identify the current power supply characteristics according to different power types and dynamically match the corresponding working mode accordingly, thereby achieving an adaptive balance between energy utilization efficiency and detection performance, and effectively reducing power consumption while ensuring human body detection performance.
[0431] Furthermore, the control module is further configured to have different operation control strategies under different operating modes, wherein the different operation control strategies involve differences in the management methods of at least one resource inside the human body detection device.
[0432] Furthermore, the resources include the communication interface activation duration, with different communication interface activation durations corresponding to different durations of wireless direct connection states.
[0433] Preferably, the power supply module further includes: an external power supply connection unit for connecting to an external power supply that is separately configured from the human body detection device; The external power supply includes at least a solar power supply and an adapter; The control module is further configured to: When it is determined that the current power type is a physical power supply and / or a photovoltaic power supply, the second working mode is invoked. Upon determining that the current power type is an adapter, the first operating mode is invoked; In the first operating mode, the control module maintains a continuous communication link to maintain a continuous direct connection (e.g., continuously sending Bluetooth packets at intervals of 40ms~100ms or 100ms~500ms to support Bluetooth direct connection); in the second operating mode, it maintains a direct connection for a changeable time period set by the mobile terminal.
[0434] Furthermore, an adaptive balance between communication performance and power consumption can be achieved under different power supply conditions. For example, when powered by an adapter, a stable connection with the mobile terminal can be maintained for a long time; while when relying on battery power, the communication link is only temporarily activated when a detection event occurs or an external command is triggered, and then automatically disconnected to save energy.
[0435] In a specific example, let's take Bluetooth communication as an example: The communication module can be, for example, a Bluetooth module. In the second operating mode, after being woken up, the control module enters a Bluetooth direct connection state, maintaining a certain time-limited window to allow the mobile terminal to establish a connection within that time period. If no connection request is detected within the time-limited period, the Bluetooth module will automatically shut down to enter a low-power standby state.
[0436] Furthermore, in some embodiments, such as Figure 26As shown, the sensing module is specifically used to collect environmental signals related to the human body, thus enabling the detection device to be understood as a human body detection device specifically designed to detect the presence or absence of a human body. Specifically, in this embodiment, the sensing module includes at least one sensing unit for collecting signals characterizing the presence of a human body. Examples include radar sensors, ultrasonic sensors, infrared sensors, or other sensing elements capable of sensing human activity or presence characteristics in the environment. These sensing units can be configured individually or in combination to achieve different balances between detection accuracy and power consumption.
[0437] Furthermore, the resources include the sensing units of the sensing module. Moreover, in embodiments of this disclosure, different operational control strategies involve differences in the management methods of at least one sensing unit of the sensing module within the human body detection device.
[0438] Based on this, the control module invokes different operating modes, specifically for controlling the sensing module to enter different operating modes. The different operating modes of the sensing module correspond to differences in the operating parameter configurations of at least one sensing unit within the sensing module, and / or differences in the cooperative operating states of at least two sensing units.
[0439] The specific implementation methods corresponding to the different operating modes of the sensing module and the differences in the operating parameter configurations of at least one sensing unit in the sensing module are further explained below: The differences in the different operating modes of the detection device disclosed herein are reflected in the differences in the operating modes of the sensing modules; and the differences in the operating modes of the sensing modules are at least reflected in the differences in the configuration of the operating parameters of their internal sensing units. Different operating parameters result in different detection performance, response speed, and power consumption of the sensing units. For example, in high-performance operating mode, the sensing unit can employ a higher sampling rate, a shorter sampling period, and more complex signal processing algorithms to improve the sensitivity and accuracy of human body detection; while in low-power operating mode, methods such as reducing the sampling frequency, extending the sampling interval, and simplifying signal processing can be used to significantly reduce energy consumption, thereby improving battery life.
[0440] Therefore, by dynamically configuring the operating parameters, an adaptive balance between device operating performance and power supply margin can be achieved, enabling the device to operate with optimal power consumption under different power supply conditions.
[0441] In this embodiment of the disclosure, the first working mode of the human body detection device is different from the second working mode, and correspondingly, the first mode and the second mode of the sensing module are also different.
[0442] In a specific example, the difference between the first and second operating modes of the human body detection device lies only in the mode in which the sensing module operates. For instance, in the second operating mode (i.e., battery and / or solar power supply), the human body detection device operates in a low-power mode, specifically by reducing the sampling rate of the sensing module; while in the first operating mode (i.e., adapter power supply), the detection device is not energy-constrained and can operate in a high-performance mode, achieving higher detection sensitivity and response speed, specifically by increasing the sampling rate of the sensing module.
[0443] Of course, in some examples, the difference between the first and second operating modes of a human body detection device lies not only in the mode of the sensing module, but also in the different operating methods of other components (such as the different sleep intervals of the control module). For example, in the second operating mode (i.e., battery and / or solar power supply), the human body detection device operates in a low-power mode, specifically by reducing the sampling rate of the sensing module and increasing the sleep interval of the control module to extend the battery life; while in the first operating mode (i.e., adapter power supply), the detection device is not constrained by energy and can use high-performance detection parameters, specifically by increasing the sampling rate of the sensing module and reducing the sleep interval of the control module (or, the control module is in a constantly operating state without sleep), to achieve higher detection sensitivity and response speed.
[0444] Furthermore, the operating parameters include, but are not limited to, the signal sampling rate. The signal sampling rate can be understood as the number of times a simulated signal characterizing changes in environmental state is acquired and processed per unit time; it is an important parameter reflecting detection accuracy and power consumption levels.
[0445] Furthermore, at least one sensing unit of the sensing module is configured to have a higher signal sampling rate in the first mode than in the second mode. Consequently, in the second mode, the power consumption of the detection device is lower than in the first mode, and the detection sensitivity and response speed are relatively reduced. This design ensures that the device prioritizes battery life under limited power supply (such as battery or solar power), while providing higher performance detection capabilities when powered by an external adapter.
[0446] In one specific application, the sensing unit includes a radar sensor, such as millimeter-wave radar or microwave radar. This radar sensor is used to detect minute movements or presence of a human body through the Doppler effect, phase difference changes, or changes in signal reflection intensity. In this specific application, the signal sampling rate can be expressed as the radar signal frame rate. The radar sensor samples and processes signals in units of "frames," each frame containing several "chirps" (linear frequency modulated pulses). The signal frame rate determines the update speed of the radar's perception of the environment. Reducing the frame rate can effectively reduce the amount of data processing and communication frequency, thereby significantly reducing power consumption.
[0447] In this embodiment of the disclosure, the radar sensor is configured such that the signal frame rate in the first mode is at least 1.5 times the signal frame rate in the second mode.
[0448] For example, in the first mode, the signal frame rate is greater than 5Hz, preferably 10Hz, in order to provide fast response and high-resolution detection results.
[0449] In the second mode, the signal frame rate is less than or equal to 5Hz. For example, a signal frame rate (e.g., 4Hz) is used in the unmanned state, while another signal frame rate (e.g., 2Hz) is used in the manned state. The signal frame rate can be dynamically adjusted according to the human detection stage (triggering manned status / maintaining manned status).
[0450] As can be seen, this presents a more refined dynamic frame rate management strategy. When no one is present, a 4Hz frame rate is used for "scanning," which is sufficient to reliably detect the entry of a person. Once someone is detected, the frame rate is not maintained at 4Hz, but further reduced to 2Hz. This is because for the task of "maintaining presence," a high frame rate is unnecessary; 2Hz is sufficient to reliably confirm that the target has not left, while power consumption is further reduced by approximately 50% compared to 4Hz. Furthermore, when relying on battery power, this dynamic frame rate adjustment further reduces average power consumption while ensuring detection reliability, significantly extending the device's single-charge battery life.
[0451] With the above settings, the present invention can intelligently switch working modes according to power supply type and human body detection status, and achieve an adaptive balance between detection performance and power consumption. This ensures continuous monitoring capability under low power consumption and high-performance human body detection effect under sufficient power supply conditions.
[0452] Furthermore, battery-powered human detection devices typically operate in a low-power mode and cannot maintain a continuous connection with external devices or cloud servers for extended periods. Therefore, they do not support the server actively querying the current human detection status. In addition, if the human detection device reports the presence of people at a fixed high frequency, it will not only significantly increase power consumption and shorten battery life, but also result in a large volume of network data packets and an increased server processing load.
[0453] Therefore, there is an urgent need in this field for an intelligent reporting solution that can meet the triggering requirements of complex scenarios and fundamentally optimize device power consumption and network load.
[0454] Based on this, one embodiment of this disclosure provides a method for reporting human body detection events, applied in the human body detection device, such as... Figure 27 As shown, the method includes steps S270 and S271.
[0455] In step S270, the presence of human beings in the environment is continuously monitored.
[0456] Specifically, the environment can be understood as the target monitoring area where the human detection device is located, such as an indoor living room, bedroom, kitchen, or other space where human activity needs to be monitored. The human detection device detects human movement, positional changes, or presence in this area using sensors (such as radar sensors and / or infrared sensors).
[0457] The state of human presence includes the state of human presence and the state of human absence. The state of human presence can be understood as the detection of human activity, micro-movement, or vital signs within the monitoring area; the state of human absence can be understood as the detection of no human activity characteristics or vital signs within the monitoring area.
[0458] In step S271, when it is determined that the human body in the environment is in a specific state, an internal timer is started. When the timer duration reaches the time corresponding to any configured target time option, a persistent state event corresponding to that specific state is actively reported. This persistent state event is used to trigger the corresponding automated scenario.
[0459] In this embodiment of the disclosure, the specific state can be understood as a state of human presence or non-existence that is maintained continuously within a preset time period. In other words, a specific state is only considered to have been reached when a certain state is maintained for a certain duration.
[0460] For example, the specific state is a state of continuous human presence, and the continuous state event is a continuous event of human presence; and / or, The specific state is the state in which the human body is continuously absent, and the continuous state event is the continuous unattended event.
[0461] In further examples, the discrete time options corresponding to the continuous existence state of the human body and the continuous non-existence state include 1 minute, 2 minutes, 3 minutes, 5 minutes, 10 minutes, 15 minutes, 20 minutes, 30 minutes, 45 minutes, 60 minutes, 90 minutes, and 120 minutes.
[0462] In this embodiment, when the timing duration reaches the time corresponding to any configured target time option, the human body monitoring device actively reports the corresponding event, rather than being passively acquired. Specifically, the human body monitoring device does not need to maintain a real-time connection with a remote server or local gateway, but instead completes the timing and event triggering logic locally, and actively sends a status event after the conditions are met. This approach helps reduce device power consumption and avoids the energy consumption and network burden caused by frequent reporting or maintaining a connection.
[0463] The automation scenario can be understood as a control operation performed based on user-preset conditions, including but not limited to the switching on and off of smart home devices, mode switching, message reminders, and security linkage.
[0464] In some embodiments, the continuous presence event is reported to a local gateway and / or a remote server; wherein, the automated scenario is executed by the local gateway and / or the remote server when it determines that there is an automated scenario in its pre-stored automated scenario library that is triggered by the continuous presence event.
[0465] Specifically, users can customize various trigger conditions and corresponding actions via their mobile phones, and store the set automation scenarios in a remote server and / or local gateway. For example, users can set "automatically turn on the air purifier when someone is detected for 3 consecutive minutes" or "turn off the lighting equipment when no one is detected for 10 consecutive minutes," etc.
[0466] In this embodiment, the target time option is sent by the mobile terminal through a local communication link and configured in the human body detection device. The target time option is the time option selected by the user from a plurality of discrete time options provided by the mobile terminal; wherein, the plurality of discrete time options allows the user to select at least two of them simultaneously. It is worth noting that allowing the user to select at least two of the plurality of discrete time options simultaneously can be understood as the user being able to select 2, 3, 4, etc., at the same time, but the user may also select only 1.
[0467] The local communication link may be, for example, Bluetooth, Zigbee, or other short-range wireless communication methods, to enable the mobile terminal to configure the human body monitoring device.
[0468] The mobile terminal configures the target time option to the human body monitoring device, for example, by selecting the target time option through the mobile terminal's APP interface and then writing the selected configuration into the local storage unit of the human body monitoring device through the aforementioned local communication link for use by the device in subsequent detection processes.
[0469] It is worth mentioning that in this embodiment of the disclosure, multiple discrete time options allow users to select at least two of them simultaneously. For example, if a user selects both 1 minute and 2 minutes, the specific working process can be as follows: when the human body detection device detects the continuous presence of a human body, it starts timing; when the timing reaches 1 minute, it reports a "person present for 1 minute" event; if the human body continues to exist and the timing reaches 2 minutes, it continues to report a "person present for 2 minutes" event, so as to trigger different automation scenarios.
[0470] Furthermore, the above solution provides multiple discrete duration options via the mobile terminal, allowing users to select according to their actual needs. The human detection device then reports the event when the duration of a specific state is reached. This local configuration and intermittent reporting avoids scenarios requiring active cloud queries and overcomes the technical limitation of low-power devices lacking online response capabilities. Simultaneously, because reporting only occurs when the user-defined duration limit is reached, message volume and power consumption are significantly reduced.
[0471] In some embodiments, the method further includes steps S272 and S273.
[0472] In step S272, a configuration instruction is received. This configuration instruction is generated based on the target time option and sent via this local direct connection when the mobile terminal triggers a verification operation based on a persistent state event corresponding to a target time option being set as a trigger condition for an automated scenario. If the verification fails, the user is guided to establish a local direct connection with the human body detection device. If the verification passes or the configuration instruction is sent, the mobile terminal allows the user to complete the setup of the automated scenario triggered by the persistent state event corresponding to the target time option. The mobile terminal queries a remote server and / or a local gateway to determine if the target time option has been pre-configured in the human body detection device; if so, the verification passes; otherwise, the verification fails.
[0473] Specifically, when a user sets up an automated scenario via a mobile terminal, if the persistent state event corresponding to a certain target time option is set as the trigger condition for the automated scenario, the mobile terminal will automatically trigger a verification operation. During this verification operation, the mobile terminal first obtains the list of currently configured time options for the human body detection device from the remote server and / or local gateway, and compares it with the target time option selected by the user to determine whether the target time option has already taken effect in the human body detection device.
[0474] When a user selects a time option on a mobile terminal, the mobile terminal not only configures that time option in the human body detection device but also reports the corresponding option identifier to a remote server and / or local gateway, forming the option list. The option identifier can be used by the remote server or local gateway to identify the currently valid time option in the human body detection device. Therefore, during the verification process, the mobile terminal can use this option identifier to determine whether the target time option has been pre-configured in the human body detection device, thereby implementing the verification logic.
[0475] If the verification fails, the mobile terminal will guide the user to establish a local direct connection with the human body detection device to complete the local writing of the time option. The specific operation interface can be seen as follows: Figure 28 As shown. For example, if the user view uses the event of "people continuously present for 2 minutes" as the trigger condition for an automation scenario, and the mobile terminal verification result shows that the human body detection device is not currently configured with the 2-minute time option, then the interface will directly attempt to establish a direct connection with the human body detection device to guide the user to establish a direct connection via Bluetooth, thereby issuing configuration commands.
[0476] In step S273, the configuration of the target time option is completed based on the configuration instruction, including: storing the target time option so that when the duration of the human body in the environment being in a specific state reaches the time corresponding to any of the configured target time options, a continuous state event corresponding to the specific state is actively reported.
[0477] Specifically, after receiving the configuration command, the human detection device parses the target time option in the command and updates its local time threshold list. If the list does not yet contain the time threshold corresponding to the time option, it adds the corresponding time threshold. If it does contain the time threshold, it can be overwritten or left unchanged. Local storage ensures that the configuration remains effective even when the network is disconnected or in a low-power operating state.
[0478] Furthermore, based on the above solution, the validity of triggering conditions can be ensured during the creation of automated scenarios, avoiding situations where user-set automated scenarios cannot take effect due to reliance on time options not configured in the human body detection device, thereby improving the reliability of automated functions and user experience.
[0479] In some embodiments, the method further includes steps S274 and S275.
[0480] In step S274, a cancellation instruction is obtained. This cancellation instruction is generated and sent by the mobile terminal based on the cancelled target time option after a user cancels the configuration of a target time option in the human body detection device, triggering a correlation check. If the correlation check fails, the mobile terminal sends a prompt to the user. The correlation check includes: the mobile terminal querying a remote server and / or the local gateway to determine if an automated scenario exists that is triggered by a persistent state event corresponding to the target time option; if such a scenario exists, the check fails; otherwise, the check passes.
[0481] Specifically, when a user cancels the configuration of a target time option on the mobile terminal interface, a correlation check is triggered on the mobile terminal. During the check, the mobile terminal scans all automation scenarios currently stored on the remote server and / or local gateway to determine if any automation scenarios still use the persistent state event corresponding to the target time option as a trigger condition. If the check fails, i.e., if a correlated automation scenario is detected, the mobile terminal will send a prompt message to the user, informing them that a correlated automation scenario is currently bound. The specific operation interface is as follows: Figure 29 As shown, the user has pre-configured an automated scenario where the continuous state time condition for the 2-minute time option is not triggered. When the user cancels the configuration of this time option, the interface displays a corresponding prompt message. If the user insists on canceling the configuration of this time option, the interface will display a prompt message in the corresponding area of the 2-minute time option, such as "It has been detected that you have configured and enabled the corresponding automation. Please note that reporting automation must be enabled here for it to take effect."
[0482] At step S275, the cancellation operation of the target time option is completed locally based on the cancellation instruction, including: deleting the stored target time option.
[0483] Specifically, after receiving a cancellation command, the human body detection device will update the locally stored list of time thresholds and delete the time threshold pointed to by the corresponding target time option, so that the human body detection device will no longer report continuous status events based on that time option in subsequent operation.
[0484] As can be seen, the above solution verifies the validity of discrete-time options during the configuration of automated scenarios through verification operations; and it performs security checks when the user cancels the configuration through correlation checks, preventing the automated scenario from failing. Furthermore, this two-way verification mechanism achieves closed-loop management of configuration and cancellation.
[0485] Furthermore, this two-way verification mechanism ensures that the configuration status of the human body detection device is consistent with the scene logic in the remote server, local gateway, and mobile terminal, thereby improving overall reliability, avoiding device configuration errors or scene triggering anomalies, and enhancing user experience.
[0486] like Figure 30 As shown, one embodiment of the present invention also provides a human body detection device for implementing the aforementioned reporting method. It includes: The sensing module is used to continuously monitor the presence of human beings in the environment.
[0487] The control module is used to start an internal timer when it determines that the presence of a human body in the environment is in a specific state. When the timer duration reaches the time corresponding to any configured target time option, it actively reports a continuous state event corresponding to that specific state. The continuous state event is used to trigger the corresponding automated scenario. The target time option is sent by the mobile terminal through the local communication link and configured in the human body detection device. The target time option is the time option selected by the user from multiple discrete time options provided by the mobile terminal. The user can select at least two of the multiple discrete time options simultaneously.
[0488] like Figure 31 As shown, it also includes: A communication module is used to receive configuration instructions. These instructions are generated based on the target time option and sent via this local direct connection when the mobile terminal triggers a verification operation based on a persistent state event corresponding to a target time option being set as a trigger condition for an automated scenario. If the verification fails, the mobile terminal guides the user to establish a local direct connection with the human body detection device. If the verification passes or the configuration instruction is sent, the mobile terminal allows the user to complete the setup of the automated scenario triggered by the persistent state event corresponding to the target time option. The mobile terminal queries a remote server and / or a local gateway to determine whether the target time option has been pre-configured in the human body detection device. If so, the verification passes; otherwise, the verification fails. The control module is also used to configure the target time option based on the configuration instruction, including: storing the target time option so that when the duration of the human body in the determination environment being in a specific state reaches the time corresponding to any of the configured target time options, it will actively report a continuous state event corresponding to the specific state.
[0489] like Figure 32 As shown, corresponding to the above-mentioned reporting method on the human body device side, an embodiment of this disclosure also provides a method for reporting human body detection events, applied to a mobile terminal, the method including the following steps: S320 provides multiple discrete time options so that the user can select at least two of them at the same time; S321. The target time option selected by the user is sent and configured in the human body detection device through the local communication link, so that: when the human body detection device determines that the human body in the environment is in a specific state, it starts an internal timer, and when the timer duration reaches any of the configured target time options, it actively reports a continuous state event corresponding to the specific state; wherein, the continuous state event is used to trigger the corresponding automated scenario.
[0490] According to embodiments of this disclosure, the specific state is a state of continuous human presence, and the continuous state event is a continuous presence event; and / or, The specific state is the state in which the human body is continuously absent, and the continuous state event is the continuous unattended event.
[0491] According to an embodiment of this disclosure, the continuous presence event is reported to a local gateway and / or a remote server; wherein, the automated scenario is executed by the local gateway and / or the remote server when it determines that there is an automated scenario in its pre-stored automated scenario library that is triggered by the continuous presence event.
[0492] According to embodiments of this disclosure, the method further includes: When a persistent state event corresponding to a target time option is set as the trigger condition for an automated scenario on a mobile terminal, a verification operation is performed. If the verification passes, the user is allowed to complete the setup; if the verification fails, the user is guided to establish a local direct connection with the human body detection device, and after configuring the target time option on the human body detection device, the user completes the setup of an automated scenario triggered by the continuous state event corresponding to the target time option.
[0493] According to embodiments of this disclosure, the verification operation includes: The system queries the remote server and / or local gateway to determine whether the target time option has been pre-configured in the human body detection device; if so, the verification passes; otherwise, the verification fails.
[0494] According to an embodiment of this disclosure, after guiding the user to establish a local direct connection with the human body detection device, the mobile terminal automatically configures the target time option in the human body detection device and reports the corresponding option identifier to the cloud. The option identifier is used to determine whether the target time option has been pre-configured in the human body detection device during the verification operation.
[0495] According to embodiments of this disclosure, the method further includes: When a user cancels the configuration of a target time option in the human body detection device, a correlation check is performed; if the correlation check passes, the user is allowed to cancel; otherwise, a prompt message is issued to the user.
[0496] According to embodiments of this disclosure, the correlation check includes: querying a remote server and / or a local gateway to determine whether there is an automated scenario triggered by a persistent state event corresponding to the target time option; if such a scenario exists, the check fails; otherwise, the check passes; the prompt information is used to inform the user that the currently canceled target time option is associated with a valid and effective automated scenario.
[0497] like Figure 33 This disclosure also provides a human body detection device for implementing the reporting method described in the above embodiments. The device includes: An interactive module is used to provide multiple discrete time options so that the user can select at least two of them simultaneously. The processing module is used to send the target time option selected by the user to the human body detection device through the local communication link and configure it so that: when the human body detection device determines that the human body in the environment is in a specific state, it starts an internal timer, and when the timer duration reaches any of the configured target time options, it actively reports a continuous state event corresponding to the specific state; wherein, the continuous state event is used to trigger the corresponding automated scene.
[0498] It should also be noted that the above embodiments can be combined with each other. For the same or similar concepts or processes, they may not be described again in some embodiments. That is, the technical solutions disclosed in the later (in the order of the text) embodiments should include the technical solutions described in this embodiment and the technical solutions described in all embodiments before this embodiment.
Claims
1. A human body detection device, characterized in that, The human body detection device includes: The power supply module includes: an external power supply connection unit for connecting to an external power supply that is separately configured from the detection device; The control module has a second voltage divider circuit and is electrically connected to the power supply module; The sensing module, electrically connected to the control module, is used to collect signals that characterize the presence of a human body, so that the control module can determine whether a human body is present in the current environment. When the photovoltaic power supply is connected to the detection device via the connection port of the external power supply connection unit, the control module can sample the electrical parameters of the target power supply node output from the photovoltaic power supply to the detection device through the second voltage divider circuit to obtain the photovoltaic power supply quantity used to characterize the energy storage state of the energy storage component in the photovoltaic power supply; wherein, the photovoltaic power supply does not have independent communication function and includes an energy storage component for energy storage. The control module is further configured as follows: Under preset reporting rules, the power of the solar power source is sent to a remote server via the communication module, so that the energy storage information of the solar power source can be reported by the detection device when the solar power source does not have communication capabilities.
2. The detection device according to claim 1, characterized in that, The control module, under preset reporting rules, sends the power of the solar power source to a remote server via the communication module, and is further used for: If it is determined that the current power supply is in the first power reporting mode, and the power supply type currently powering the detection device is the solar power supply and / or the detection device is currently only connected to the solar power supply, the solar power supply power is sent to the remote server through the communication module when the preset reporting rules are met. When the control module receives the first instruction, it switches to the first power reporting mode in response to the first instruction; the first instruction is generated and sent by the mobile terminal after selecting the mode corresponding to the first power reporting mode from at least two reporting modes; and, between different reporting modes, the power data reported by the control module differs at least in the type of power. The power supply module further includes a main power connection unit for connecting to the main power supply of the detection device; the main power supply includes a battery, and the external power supply includes a solar power supply and / or an adapter; the type of power includes at least one of adapter power, battery power, and solar power supply power.
3. The detection device according to claim 2, characterized in that, The second voltage divider circuit is also configured to independently sample the power supply node corresponding to the battery and the power supply node corresponding to the photovoltaic power source, so that the control module can obtain relevant data representing the battery power and the photovoltaic power source power respectively. The control module is further configured to: when determining that the current state is in the first power reporting mode, if it is not determined that the detection device is currently only connected to a solar power source, then perform at least one of the following operations: When it is determined that the detection device is currently connected to both a battery and a solar power source, the battery power is sent to the remote server through the communication module when the preset reporting rules are met, so as to realize the reporting of battery power information. When it is determined that the detection device is currently connected to both a battery and an adapter, the battery power is sent to the remote server through the communication module when the preset reporting rules are met, so as to realize the reporting of battery power information. If it is determined that the detection device is currently only connected to the adapter, the device will report 100% battery level through the communication module when the preset reporting rule is met. If it is determined that the detection device is currently only connected to the battery, the battery level is reported through the communication module when the preset reporting rules are met.
4. The detection device according to any one of claims 1 to 3, characterized in that, The control module, under preset reporting rules, sends the power of the solar power source to a remote server via the communication module, and is further used for: Once it is determined that the current state is in the second power reporting mode, and when the preset reporting rules are met, the power of the solar power supply is sent to the remote server through the communication module; When the control module receives the second instruction, it switches to the second power reporting mode in response to the second instruction; wherein the second instruction is generated and sent by the mobile terminal after selecting the mode corresponding to the second power reporting mode from at least two reporting modes; Furthermore, the power data reported by the control module differs at least in the type of power between different reporting modes; The power supply module further includes a main power connection unit for connecting to the main power supply of the detection device; the main power supply includes a battery, and the external power supply includes a solar power supply and / or an adapter; the type of power includes at least one of adapter power, battery power, and solar power supply power.
5. The detection device according to claim 4, characterized in that, When the control module determines that it is currently in the second power reporting mode and the preset reporting rules are met, it sends the power of the solar power supply to the remote server through the communication module, and is further configured to: When it is determined that the detection device is connected to a solar power source, and the preset reporting rules are met, the actual power of the solar power source is sent to the remote server through the communication module. If it is determined that the detection device is not connected to a solar power source, a predetermined power value is reported through the communication module.
6. The detection device according to claim 5, characterized in that, When the control module determines that it is currently in the second power reporting mode and the preset reporting rules are met, it sends the power of the solar power supply to the remote server through the communication module, and is further configured to: If it is determined that the detection device is connected to a battery and / or that the detection device is currently powered by a battery, and if it is further detected that the detection device is connected to a solar power source, then the solar power source charge is reported through the communication module when the preset reporting rule is met. If no electrical connection is detected between the solar power source and the detection device under the above conditions, a predetermined power value is reported through the communication module when the preset reporting rules are met.
7. The detection device according to any one of claims 1 to 3, 5, and 6, characterized in that, The preset reporting rules include at least one of fixed reporting rules and variable reporting rules; The control module is further configured to: in the current reporting mode, when at least one of the preset reporting rules is met, send power-related data to the remote server through the communication module.
8. The detection device according to claim 7, characterized in that, The fixed reporting rule includes at least one of the following triggering conditions: At least one fixed time point after the detection device is powered on; The identification result of the current power supply type has been changed; The system detects a change in the connection or disconnection status of the main power supply battery, solar power supply, or adapter. The user has switched the reporting mode.
9. The detection device according to claim 8, characterized in that, The variable reporting rule includes at least one of the following triggering conditions: When it is detected that the adjustable timeout period has exceeded the period since the last power consumption report; When the time interval between the current reporting time and the previous reporting time reaches the user-defined variable period; The adjustable timeout duration and / or the variable period can both be selected by the user through the application interface corresponding to the detection device.
10. The detection device according to any one of claims 1 to 3, 5, and 6, characterized in that, The control module is further configured as follows: When the communication module establishes a direct communication connection with the mobile terminal, the power-related data corresponding to the solar power source is sent to the mobile terminal through the direct connection, so that the mobile terminal can display the current power of the solar power source in its application interface based on the received power-related data.
11. The detection device according to claim 10, characterized in that, Sending the power-related data of the solar power source to the mobile terminal, specifically for: When a solar power source is detected to be connected, the actual power level of the solar power source is sent. If no solar power source is detected, a predetermined power value is sent.
12. The detection device according to claims 5, 6, and 12, characterized in that, The predetermined power consumption value is 0%.