Method for realizing low power consumption of device based on sleep and wake-up functions

By implementing the sleep and wake-up functions between the main control unit and the chip in electronic devices, the problems of high power consumption and slow response speed in the prior art are solved, and the effects of dynamic power consumption management and fast response are achieved.

CN119847314APending Publication Date: 2025-04-18SEMIMENT TECH (SHANGHAI) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411925970.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

Existing electronic devices cannot enter sleep mode in time after detection is completed, resulting in high overall power consumption and lack of an effective external event wake-up mechanism, which affects the response speed and user experience.

Method used

By implementing the sleep and wake-up functions between the main control unit and the chip, the main control unit sends a sleep signal to the chip after the detection is completed, causing it to enter a sleep state; when not in use, both the main control unit and the chip enter a sleep mode and switch to the micro-power consumption mode to independently detect changes in the external input signal. When a change is detected, the chip outputs a wake-up signal and the master control unit switches from sleep mode to normal operating mode.

Benefits of technology

Dynamic power consumption management is realized, reducing the energy consumption of the device under different working conditions, extending battery life, and improving the system's response speed and operating reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847314A_ABST
    Figure CN119847314A_ABST
Patent Text Reader

Abstract

The invention provides a method for realizing low power consumption of a device based on sleep and wake-up functions. The device comprises at least one chip and a main control unit. The chip receives a sleep signal and outputs a wake-up signal. The method comprises the steps that S1, when the device is used, the main control unit triggers target chip detection; and S2, after the target chip is detected, the main control unit sends a sleep signal to enable the target chip to sleep, so that the power consumption is reduced. S3, when the device is not used, the main control unit sends sleep signals to all the chips and enters a sleep mode, so that power consumption is reduced; and meanwhile, the chip enters a micro-power consumption mode and independently detects the change of an external input signal. S4, when any chip detects a change, the chip outputs a wake-up signal to the main control unit; and the main control unit is switched from the sleep mode to the normal working mode according to the wake-up signal. Through the sleep and wake-up function design of the chip, the low-power-consumption operation of the device in different working states is realized, and the device is particularly suitable for applications such as battery power supply with high power consumption requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic equipment, and in particular to a method for realizing low power consumption of a device based on sleep and wake-up functions. Background Art

[0002] Currently, many devices such as keyboards, game console controllers, joysticks, etc. generally use a main control unit with at least one chip, relying on magnetic induction or optical induction technology to achieve continuous state detection from no trigger to full trigger. However, as users' demand for higher performance and more intelligence increases, existing design solutions gradually expose the following deficiencies:

[0003] (1) Lack of dynamic power management: In existing designs, the main control unit (such as MCU or CPU) often maintains continuous communication with the target chip, so that the chip is always in working state and cannot enter the sleep mode in time after completing the detection, resulting in high overall power consumption of the device. In addition, when the main control unit enters the sleep state, there is a lack of an effective external event wake-up mechanism, resulting in the system being unable to quickly resume the working mode, affecting the response speed and user experience.

[0004] (2) Insufficient micro-power optimization: When the existing devices are not in operation, the main control unit and chip fail to achieve effective micro-power operation, resulting in excessive power consumption of the system in Bluetooth, 2.4G wireless connection or long-term standby mode, which seriously restricts the endurance of battery-powered devices. In particular, in application scenarios with high power consumption requirements, traditional designs are difficult to meet energy-saving requirements, reducing the competitiveness of products.

[0005] In view of the above-mentioned deficiencies, the present invention aims to provide solutions to overcome these technical defects. Summary of the invention

[0006] The present invention provides a method and a device for achieving compatibility of sleep and wake-up functions and realizing low power consumption of the device.

[0007] The present invention provides a method for realizing low power consumption of a device based on sleep and wake-up functions, wherein the device comprises:

[0008] At least one chip, used for receiving a sleep signal and outputting a wake-up signal;

[0009] Main control unit, connected to chip;

[0010] The method comprises:

[0011] When the device is in use, the main control unit is in a normal working mode and triggers the target chip in the at least one chip to detect an external input signal; when the target chip completes the detection, the main control unit sends a sleep signal to the target chip to put the target chip into a sleep state;

[0012] When the device is not in use, the main control unit sends a sleep signal to all the chips and enters sleep mode itself; at the same time, all the chips switch to micro-power consumption mode and independently detect changes in external input signals;

[0013] When any of the chips detects a change in an external input signal, the chip outputs a wake-up signal to the main control unit; after receiving the wake-up signal, the main control unit switches from a sleep mode to a normal working mode.

[0014] Optionally, the chip further includes a micro-power consumption clock module, a sampling module and a logic module, wherein:

[0015] The micro-power consumption clock module is used to generate a micro-power consumption clock signal and output the micro-power consumption clock signal to the logic module;

[0016] The sampling module is used to sample the external input signal and output the external input signal to the logic module;

[0017] The logic module is connected to the micro-power consumption clock module and the sampling module, and is used to control the sampling module to sample the external input signal in a micro-power consumption mode according to the micro-power consumption clock signal;

[0018] The steps when the device is not in use include:

[0019] The main control unit outputs a sleep signal to all the chips and enters a sleep mode; at the same time, the logic modules of all the chips control the sampling modules based on the micro-power consumption clock signal to independently detect changes in the external input signals in a micro-power consumption mode;

[0020] When the sampling module of any of the chips detects a change in the external input signal, the corresponding logic module outputs the wake-up signal to the main control unit; the main control unit switches from the sleep mode to the normal working mode according to the wake-up signal.

[0021] Optionally, in the micro power consumption mode, the sampling module samples the external input signal at intervals of 10ms-100ms, preferably 50ms; and / or

[0022] The frequency range of the micro-power consumption clock signal is 1kHz-100kHz, preferably 10kHz, and the period range of the micro-power consumption clock signal is 10μs-1000μs, preferably 100μs.

[0023] Optionally, at least one of the chips includes a sleep function pin and a wake-up function pin, the sleep function pin is configured to receive a sleep signal, and the wake-up function pin is configured to output a wake-up signal;

[0024] The main control unit is connected to the sleep function pin and the wake-up function pin of the chip;

[0025] The method comprises:

[0026] When the device is in use, the main control unit triggers the target chip to detect the external input signal; when the target chip completes the detection, the main control unit sends a sleep signal to the sleep function pin of the target chip to put the target chip into sleep mode;

[0027] When the device is not in use, the main control unit sends a sleep signal to the sleep function pin of the chip and enters sleep mode itself; at the same time, the chip enters micro-power consumption mode and independently detects changes in the external input signal;

[0028] When any of the chips detects a change in the external input signal, the chip outputs the wake-up signal to the main control unit through the wake-up function pin; the main control unit switches from the sleep mode to the normal working mode according to the wake-up signal.

[0029] Optionally, when a change in an external input signal of any of the chips exceeds a conditional threshold, the corresponding logic module outputs the wake-up signal to the main control unit.

[0030] Optionally, the conditional threshold includes at least one of a static threshold, a dynamic threshold and an absolute threshold;

[0031] in:

[0032] When the difference between the value of the external input signal of the chip and the value of the initial signal after entering the micro power consumption mode exceeds the static threshold, the chip outputs the wake-up signal to the main control unit;

[0033] When the change value of the external input signal of the chip compared with the previous external input signal value exceeds the dynamic threshold, the chip outputs the wake-up signal to the main control unit;

[0034] When the value of the external input signal of the chip exceeds the absolute threshold, the chip outputs the wake-up signal to the main control unit.

[0035] Optionally, the chip further includes:

[0036] A main clock module, used for providing a main clock signal, connected to the logic module;

[0037] The steps when the device is used also include:

[0038] The main control unit triggers the target chip to detect an external input signal, and the logic module of the target chip controls the corresponding sampling module based on the main clock signal to sample changes of the external input signal in a normal working mode.

[0039] Optionally, the chip further includes:

[0040] A register, used for pre-storing a plurality of operating frequencies, wherein the register is connected to the logic module;

[0041] The steps when the device is used also include:

[0042] The main control unit triggers the target chip to detect an external input signal, and the logic module of the target chip controls the working time and cycle of the sampling module by switching between the multiple working frequencies.

[0043] Optionally, the chip further includes:

[0044] A power management module, connected to the logic module, the power management module includes a main power supply mode and a micro power consumption power supply mode;

[0045] The method further comprises:

[0046] The power management module of each chip switches between the main power supply mode and the micro power consumption power supply mode according to the instruction of the corresponding logic module to distribute power to the main clock module or the micro power consumption clock module accordingly.

[0047] The present invention also provides a device for achieving low power consumption based on sleep and wake-up functions, wherein the device adopts the method described above.

[0048] The present invention provides a method for realizing low power consumption of a device based on sleep and wake-up functions. The device includes at least one chip and a main control unit. Each chip is used to receive a sleep signal output by the main control unit and output a wake-up signal to the main control unit. When the device is in use, the main control unit enters a normal working mode and triggers a target chip to detect an external signal. When the target chip completes the detection, the main control unit sends a sleep signal to the target chip, so that the target chip enters a sleep state, thereby reducing the overall power consumption of the device. When the device is not in use, the main control unit outputs a sleep signal to each chip and can automatically enter a sleep mode, so that power consumption can be reduced by the sleep of the main control unit; at the same time, all chips switch to a micro-power consumption mode and independently detect changes in external input signals, so that the power consumption of the device in a non-working state is significantly reduced, and the battery life of the device is extended. Further, when any chip detects a change in an external input signal, the chip outputs a wake-up signal to the main control unit, so that the main control unit switches from a sleep mode to a normal working mode, and then the main control unit wakes up the target chip according to the detection needs and also enters a normal working mode, so that the automatic wake-up function is realized, the response speed of the device is improved, and the user experience is improved. The present invention realizes dynamic power consumption management of the main control unit and the chip through the design of the chip's sleep and wake-up functions, so that the device can efficiently switch to a low-power mode under different working conditions, effectively reducing overall energy consumption. At the same time, the use of independent chip detection and wake-up mechanisms improves the system's response speed and operational reliability, and is particularly suitable for battery-powered scenarios with strict power consumption requirements, such as wireless control devices, portable smart terminals, etc., greatly extending the device's battery life.

[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 The figure shows a structural block diagram of a corresponding device in a method for realizing low power consumption of a device based on sleep and wake-up functions provided by the present invention.

[0051] Figure 2 The figure shows a step diagram of a method for realizing low power consumption of a device based on sleep and wake-up functions provided by the present invention.

[0052] Figure 3 The figure shows a structural block diagram of a corresponding device in another method for realizing low power consumption of a device based on sleep and wake-up functions provided by the present invention.

[0053] Figure 4 A step diagram of another method for realizing low power consumption of a device based on sleep and wake-up functions provided by the present invention.

[0054] Figure 5 for Figure 1 The structure block diagram of the chip of the corresponding device in a method for realizing low power consumption of the device based on sleep and wake-up functions is shown.

[0055] Figure 6 for Figure 2 Another step diagram of S3 and S4 of a method for realizing low power consumption of a device based on sleep and wake-up functions is shown.

[0056] Figure 7 The figure shows a working timing diagram of a chip and its pins, and a sampling module of a corresponding device in a method for realizing low power consumption of a device based on sleep and wake-up functions provided by the present invention in a normal working mode and a micro power consumption mode.

[0057] Figure 8 for Figure 1 The structure block diagram of the chip of the corresponding device in another method for realizing low power consumption of the device based on sleep and wake-up functions is shown.

[0058] Fig. 9 for Figure 2 Another S1 step diagram of a method for achieving low power consumption of a device based on sleep and wake-up functions is shown.

[0059] Fig.10 for Figure 2 Another S1 step diagram of a method for realizing low power consumption of a device based on sleep and wake-up functions is shown.

[0060] Fig.11 The figure shows a timing diagram of the normal working time and working cycle of the register configuration sampling module of the corresponding device in the normal working mode in a method for realizing low power consumption of the device based on the sleep and wake-up functions provided by the present invention.

[0061] Fig.12 The figure shows step S5 of a method for realizing low power consumption of a device based on sleep and wake-up functions provided by the present invention. DETAILED DESCRIPTION

[0062] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices consistent with some aspects of the present invention as detailed in the appended claims.

[0063] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. Unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present specification and claims do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "one" do not indicate a quantitative limit, but indicate that there is at least one. If it only refers to "one", it will be explained separately. "Multiple" or "several" means two or more. Unless otherwise specified, words such as "front", "rear", "lower" and / or "upper" are only for the convenience of explanation and are not limited to one position or one spatial orientation. Words such as "include" or "comprise" mean that the elements or objects appearing in front of "include" or "comprise" include the elements or objects listed after "include" or "comprise" and their equivalents, and do not exclude other elements or objects. "Connected" or "connected" and similar words are not limited to physical or mechanical connections, and may include electrical connections, whether direct or indirect. The singular forms "a", "said" and "the" used in the present specification and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0064] The present invention provides a method for realizing low power consumption of a device based on sleep and wake-up functions. Figure 1 As shown, the device includes at least one chip 3 for receiving a sleep signal and outputting a wake-up signal. The main control unit 2 is connected to the chip 3 .

[0065] like Figure 2 As shown, the method includes:

[0066] Step S1: When the device is in use, the main control unit enters a normal working mode and triggers a target chip in the at least one chip to detect an external input signal;

[0067] Step S2: When the target chip completes the detection, the main control unit sends a sleep signal to the target chip to put the target chip into a sleep state;

[0068] Step S3: When the device is not in use, the main control unit sends a sleep signal to all the chips and enters the sleep mode itself; at the same time, all the chips switch to the micro power consumption mode and independently detect the change of the external input signal;

[0069] Step S4: When any of the chips detects a change in an external input signal, the chip outputs a wake-up signal to the main control unit; after receiving the wake-up signal, the main control unit switches from the sleep mode to the normal working mode.

[0070] In this embodiment, each chip 3 is used to receive the sleep signal output by the main control unit 2 and output the wake-up signal to the main control unit 2. When the device is in use, the main control unit 2 enters the normal working mode and triggers the target chip to detect the external signal at the same time. The target chip can be understood as the chip that the main control unit 2 needs to read the detection data. When the target chip completes the detection, the main control unit 2 sends a sleep signal to the target chip, so that the target chip enters the sleep state, thereby reducing the overall power consumption of the device. When the device is not in use, the main control unit 2 outputs a sleep signal to each chip 3 and can automatically enter the sleep mode, so that the power consumption can be reduced by the sleep of the main control unit 2; at the same time, all chips 3 switch to the micro-power consumption mode and independently detect the changes in the external input signal, thus significantly reducing the power consumption of the device in the non-working state and extending the battery life of the device. Further, when any chip 3 detects a change in the external input signal, the chip 3 will output a wake-up signal to the main control unit 2, so that the main control unit 2 switches from the sleep mode to the normal working mode, and then the main control unit 2 wakes up the target chip according to the detection needs and enters the normal working mode, thus realizing the automatic wake-up function, improving the response speed of the device and improving the user experience. Compared with the design scheme of the prior art, the present invention realizes the dynamic power consumption management of the main control unit and the chip, so that the device can efficiently switch to the low power consumption mode under different working conditions, effectively reducing the overall energy consumption. At the same time, the use of independent chip detection and wake-up mechanism improves the response speed and operation reliability of the system, which is especially suitable for battery-powered scenarios with strict power consumption requirements, such as wireless control equipment, portable smart terminals, etc., greatly extending the battery life of the equipment.

[0071] In the present invention, the above-mentioned device is not limited to a single application, but covers a wide range of device types, including but not limited to input devices such as keyboards, game console controllers, and joysticks. This diverse range of applications enables the device to adapt to different usage scenarios and meet the needs of various users for low power consumption and fast response. In addition, the device of the present invention is capable of identifying and processing various types of external input signals, including but not limited to electrical signals, magnetic signals, and optical signals. This wide range of signal compatibility enables the device to be applicable to a variety of input devices, thereby providing users with a more flexible and comprehensive control solution.

[0072] In some embodiments, Figure 3As shown, at least one of the chips 3 includes a sleep function pin 31 and a wake-up function pin 30, wherein the sleep function pin 31 is configured to receive a sleep signal, which can be pre-stored in the register of the main control unit 2. The wake-up function pin 30 is configured to output a wake-up signal, which can be pre-stored in the register of the chip 3 and transmitted to the wake-up function pin 30 when necessary. The main control unit 2 connects the sleep function pin 31 and the wake-up function pin 30 of the chip 3.

[0073] like Figure 4 As shown, the method includes:

[0074] S1`: When the device is in use, the main control unit triggers the target chip to detect the external input signal;

[0075] S2`: When the target chip completes the detection, the main control unit sends a sleep signal to the sleep function pin of the target chip to make the target chip enter the sleep mode;

[0076] S3`: When the device is not in use, the main control unit sends a sleep signal to the sleep function pin of the chip and enters the sleep mode itself; at the same time, the chip enters the micro power consumption mode and independently detects the change of the external input signal;

[0077] S4`: When any of the chips detects a change in the external input signal, the chip outputs the wake-up signal to the main control unit through the wake-up function pin; the main control unit switches from the sleep mode to the normal working mode according to the wake-up signal.

[0078] In this embodiment, the receiving of the sleep signal and the output of the wake-up signal can be achieved by setting pins in the chip 3.

[0079] Specifically, when the device is in use, the main control unit 2 enters a normal working mode and triggers the target chip to detect external signals. When the target chip completes the detection, the main control unit 2 sends a sleep signal to the sleep function pin 31 of the target chip to put the target chip into a sleep state, thereby reducing the overall power consumption of the device.

[0080] When the device is not in use, the main control unit 2 can automatically enter the sleep mode to reduce power consumption. At the same time, the chip will enter the micro-power consumption mode, and only the chip 3 needs to independently process the change detection of the external input signal, reducing the dependence on the main control unit 2. In this way, the energy consumption of the device in the non-working state is significantly reduced, and the risk of system overheating or performance degradation caused by the main control unit 2 working for a long time is also reduced, thereby enhancing the reliability of the entire device and extending the battery life of the device, especially in the scenario of long-term standby or low frequency of use. When the change of the external input signal of any chip 3 is detected, the wake-up function pin 30 of the chip 3 will output a wake-up signal to the main control unit 2, so that the main control unit 2 switches from the sleep mode to the normal working mode, and then the main control unit 2 wakes up the chip 3 that needs to read the detection data and enters the normal working mode. In this way, the automatic wake-up function is realized, the response speed of the device is improved, and the user experience is improved.

[0081] In some embodiments, the chip 3 does not limit the number of pins used, and can also implement both sleep and wake-up functions by setting one pin.

[0082] The present invention may also include a low power consumption situation, the power saving effect of which is slightly inferior to the above-mentioned low power consumption mode, which can be understood as a moderate power saving mode. This mode is: when the device is not in use, the main control unit actively enters a moderate sleep mode, which is not completely powered off, and controls all chips to enter a micro power consumption mode. At this time, the main control unit itself is configured with a wake-up signal, which can wake up some or all chips at a preset interval, thereby achieving the purpose of reducing the power consumption of the device.

[0083] In some embodiments, when a change in an external input signal of any of the chips 3 exceeds a conditional threshold, the chip outputs the wake-up signal to the main control unit 2 .

[0084] The present invention can realize accurate control of the wake-up process through a preset conditional threshold. Specifically, when the change of the external input signal currently detected by any chip 3 exceeds the conditional threshold, the chip 3 will trigger the wake-up process, so that the main control unit 2 switches from the sleep mode to the normal working mode, which is conducive to reducing unnecessary power consumption, thereby extending the battery life of the device or reducing energy consumption. In addition, such a design also effectively avoids the situation where the device system is frequently started due to false triggering of the device, thereby effectively reducing the wear and tear of the device and reducing the failure rate, thus improving the stability and durability of the device, and also optimizing the energy consumption efficiency. In this embodiment, the conditional threshold can be stored through a register. Comparing the change of the external input signal and the conditional threshold can be implemented by a comparator component. The present invention has no specific restrictions on the type and configuration of the specific comparator component or register to be used, and aims to provide a general and flexible solution to adapt to different application scenarios and hardware systems.

[0085] In some embodiments, the conditional threshold comprises at least one of a static threshold, a dynamic threshold, and an absolute threshold;

[0086] in:

[0087] When the difference between the value of the external input signal of the chip and the value of the initial signal after entering the micro power consumption mode exceeds the static threshold, the chip outputs the wake-up signal to the main control unit;

[0088] When the change value of the external input signal of the chip compared with the previous external input signal value exceeds the dynamic threshold, the chip outputs the wake-up signal to the main control unit;

[0089] When the value of the external input signal of the chip exceeds the absolute threshold, the chip outputs the wake-up signal to the main control unit.

[0090] In this embodiment, the setting of the conditional threshold allows the selection of at least one of a static threshold, a dynamic threshold or an absolute threshold. This design gives the overall system of the device greater flexibility and the ability to adapt to different application scenarios. Through this multi-threshold strategy, the performance of the system is optimized, the occurrence of false alarms in the device is reduced, energy consumption is reduced, and the stability of the device system is enhanced. This method of comprehensively considering multiple thresholds allows the device to maintain efficient and reliable operation under various working conditions.

[0091] like Figure 5As shown, in some embodiments, the chip 3 further includes a micro-power clock module 6, a sampling module 5 and a logic module 7. The micro-power clock module 6 is used to generate a micro-power clock signal and output the micro-power clock signal to the logic module 7; the sampling module 5 is used to sample the external input signal and output the external input signal to the logic module 7; the logic module 7 is connected to the micro-power clock module 6 and the sampling module 5, and is used to control the sampling module 5 to sample the external input signal in a micro-power mode according to the micro-power clock signal.

[0092] In the steps when the device is not in use, such as Figure 6 As shown, specifically including:

[0093] Step S33: the main control unit outputs a sleep signal to all the chips and enters a sleep mode; at the same time, the logic modules of all the chips control the sampling modules based on the micro-power consumption clock signal to independently detect changes in the external input signals in a micro-power consumption mode;

[0094] Step S44: When the sampling module of any of the chips detects a change in the external input signal, the corresponding logic module outputs the wake-up signal to the main control unit; the main control unit switches from the sleep mode to the normal working mode according to the wake-up signal.

[0095] Specifically, the sampling module 5 includes but is not limited to a combination of a Hall sensor unit and an analog-to-digital converter, wherein the Hall sensor unit is used to sense an external magnetic signal, and then convert the magnetic signal into a corresponding analog signal, and further amplify and process it to ensure the output signal strength. The analog-to-digital converter further converts the analog signal into a digital signal, and the digital signal can be understood as the external input signal in the present invention. In this embodiment, by independently setting a sampling module 5 in each chip 3, the external input signal of each chip can be separately collected by its corresponding sampling module 5, so that the interference of the signal during the transmission process is significantly reduced, thereby improving the speed and accuracy of chip detection, and effectively avoiding false triggering of the device. In addition, since the sampling module 5 is directly integrated on the chip 3, this also avoids the delay problem caused by time-sharing operation, and achieves the performance requirements of high refresh rate and low delay.

[0096] The micro-power clock module 6 is used to provide a micro-power clock signal. When the device has not been operated within a preset time, for example, in a keyboard, when all the keys of the keyboard have not been operated within a preset time, the main control unit 2 will send a sleep signal to the chips of all the keys and enter the sleep mode itself. At the same time, the logic module 7 will control the sampling module 5 to operate in micro-power mode through the micro-power clock signal, and independently sample external input signals. In this embodiment, a micro-power clock module 6 is set so that when the device is in a non-working state, the sampling module 5 is controlled by the logic module 7 to sample external input signals in micro-power mode according to the micro-power clock signal provided by the micro-power clock module 6. In this way, the chip 3 can operate autonomously with extremely low power consumption, thereby significantly reducing the overall standby power consumption of the device and improving the battery life of the device, especially meeting the user's demand for battery life in wireless mode. Figure 7 As shown in the waveform, compared with the normal working mode, during the micro power consumption mode, the chip 3 and the sampling module 5 are not in a high potential state for a long time, but are in a high potential state at intervals, and the high potential time is very short compared to the low potential time, which is beneficial to reducing the overall power consumption of the device.

[0097] In this embodiment, the user can set the preset time according to personal needs, and common settings include 1-5 minutes, etc. The so-called standby state means that when the device has no operation for more than the period of time set by the user, it will automatically enter a micro-power consumption or sleep mode to save energy and extend the service life of the device.

[0098] In some embodiments, in the micro-power consumption mode, the sampling module samples the external input signal at intervals of 10ms-100ms, preferably 50ms. By setting the sampling module 5 to sample the external input signal at intervals of 10ms to 100ms, this low-frequency sampling strategy effectively reduces the power consumption of the device and extends the battery life. In addition, the adjustable range of 10ms to 100ms of the sampling interval provides time flexibility, allowing the sampling frequency to be adjusted according to actual application requirements. For example, in the case where the data does not change much, a longer sampling interval can be selected to further reduce power consumption; in applications that require a quick response, a shorter sampling interval can be selected to ensure the real-time nature of the data. In this embodiment, there is no restriction on the interval sampling time of the sampling module.

[0099] In some embodiments, the frequency range of the micro-power clock signal is 1kHz-100kHz, preferably 10kHz, and the period range of the micro-power clock signal is 10μs-1000μs, preferably 100μs. By configuring the frequency range and period range of the micro-power clock signal, it is possible to ensure that the power consumption of the micro-power clock signal is less than 10uA, more preferably less than 1uA. In this way, a significant power consumption reduction effect is achieved.

[0100] like Figure 8 As shown, in some embodiments, the chip 3 further includes a master clock module 8 for providing a master clock signal. The master clock module 8 is connected to the logic module 7 .

[0101] In the steps of using the device, Fig. 9 As shown, it also includes:

[0102] S11: the main control unit triggers the target chip to detect an external input signal, and the logic module of the target chip controls the corresponding sampling module based on the main clock signal to sample changes of the external input signal in a normal working mode.

[0103] Specifically, when the device is in normal working state, the logic module 7 can use the master clock signal provided by the master clock module 8 to control the sampling module 5 to sample the external input signal in normal working mode. The frequency of the master clock signal in this embodiment can be 32MHz, which ensures that data can be collected quickly and accurately when the device is in operation, and improves the response speed and data processing efficiency.

[0104] In some embodiments, see again Figure 8 The chip 3 also includes a register 11 for pre-storing multiple operating frequencies, and the register 11 is connected to the logic module 7.

[0105] In the steps of using the device, Fig.10 As shown, it also includes:

[0106] S11`: the main control unit triggers the target chip to detect an external input signal, and the logic module of the target chip controls the working time and cycle of the sampling module by switching between the multiple working frequencies.

[0107] In this embodiment, in the normal working mode, in order to further reduce power consumption, the sampling module 5 will not be in a high frequency state for a long time, but will switch between a variety of different working times and working cycles.

[0108] Specifically, a variety of high and low operating frequencies are pre-stored in the register 11. The master clock module 8 provides the master clock signal to the logic module 7. The logic module 7 switches back and forth between these high and low operating frequencies and combines its internal counter to control the normal working time and working cycle of the sampling module 5, thereby achieving a compromise between sampling speed and power consumption. In this way, in the normal working mode, it is beneficial for the device to reduce power consumption. Specifically, when the logic module 7 switches the operating frequency to a low frequency, such as 4kHz, the logic module 7 configures the low frequency in the register 11 to the sampling module 5, thereby controlling the normal working time and working cycle of the sampling module 5 to be shorter; when the logic module 7 switches the operating frequency to a high frequency, such as 32kHz, the logic module 7 configures the high frequency in the register 11 to the sampling module 5, thereby controlling the normal working time and working cycle of the sampling module 5 to be longer. Fig.11 It is a waveform diagram showing the normal working time and working cycle of the sampling module 5 controlled by the logic module 7 at a working frequency preconfigured by the register 11 .

[0109] Through the configuration of the register 11, the normal working time of the sampling module 5 can be set between 2us and 20us, and the working cycle can be set between 30us and 250us.

[0110] See again Figure 8 As shown, in some embodiments, the chip 3 further includes:

[0111] The power management module 9 is connected to the logic module 7, and the power management module 9 includes a main power supply mode and a micro power consumption power supply mode.

[0112] like Fig.12 As shown, the method also includes:

[0113] Step S5: the power management module of each chip switches between the main power supply mode and the micro power consumption power supply mode according to the instruction of the corresponding logic module to distribute power to the main clock module or the micro power consumption clock module accordingly.

[0114] In this embodiment, the power management module 9 includes a main power supply mode and a micro-power supply mode, and can flexibly switch between the two modes according to the instructions of the logic module 7. In this way, in the micro-power mode, the power management module 9 only needs to power the micro-power clock module 6 through the micro-power supply mode according to the instructions of the logic module 7, and cut off the power to the main clock module 8, so that power consumption can be significantly saved.

[0115] In some embodiments, in normal working mode, the power management module 9 not only distributes power to the main clock module 8, but also distributes power to the micro-power clock module 6. Since the power consumption of the micro-power clock module 6 is extremely low, even if the micro-power clock module 6 is not powered off, it will not have a significant impact on the overall energy consumption of the device.

[0116] In some embodiments, the device is applicable to at least one of a wired connection mode, a Bluetooth connection mode, and a 2.4G wireless mode.

[0117] The present invention also provides a device for realizing low power consumption based on sleep and wake-up functions, and the device adopts the above method. It should be noted that the device in this embodiment has been embodied in the embodiment describing the method, and will not be described in detail here.

[0118] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for realizing low power consumption of a device based on sleep and wake-up functions, characterized in that: The device comprises: At least one chip, used for receiving a sleep signal and outputting a wake-up signal; Main control unit, connected to chip; The method comprises: When the device is in use, the main control unit is in a normal working mode and triggers the target chip in the at least one chip to detect an external input signal; When the target chip completes the detection, the main control unit sends a sleep signal to the target chip to put the target chip into a sleep state; When the device is not in use, the main control unit sends a sleep signal to all the chips and enters sleep mode itself; at the same time, all the chips switch to micro-power consumption mode and independently detect changes in external input signals; When any of the chips detects a change in an external input signal, the chip outputs a wake-up signal to the main control unit; after receiving the wake-up signal, the main control unit switches from a sleep mode to a normal working mode.

2. A method for realizing low power consumption of a device based on sleep and wake-up functions according to claim 1, characterized in that: The chip further includes a micro-power consumption clock module, a sampling module and a logic module, wherein: The micro-power consumption clock module is used to generate a micro-power consumption clock signal and output the micro-power consumption clock signal to the logic module; The sampling module is used to sample the external input signal and output the external input signal to the logic module; The logic module is connected to the micro-power clock module and the sampling module respectively, and is used to control the sampling module to sample the external input signal in a micro-power mode according to the micro-power clock signal; The steps when the device is not in use include: The main control unit outputs a sleep signal to all the chips and enters a sleep mode; at the same time, the logic modules of all the chips control the sampling modules based on the micro-power consumption clock signal to independently detect changes in the external input signals in a micro-power consumption mode; When the sampling module of any of the chips detects a change in the external input signal, the corresponding logic module outputs the wake-up signal to the main control unit; the main control unit switches from the sleep mode to the normal working mode according to the wake-up signal.

3. A method for realizing low power consumption of a device based on sleep and wake-up functions according to claim 2, characterized in that: In the micro power consumption mode, the sampling module samples the external input signal at intervals of 10ms-100ms, preferably 50ms.

4. A method for realizing low power consumption of a device based on sleep and wake-up functions according to claim 2, characterized in that: The frequency range of the micro-power consumption clock signal is 1kHz-100kHz, preferably 10kHz, and the period range of the micro-power consumption clock signal is 10μs-1000μs, preferably 100μs.

5. The method for realizing low power consumption of a device based on sleep and wake-up functions according to claim 1, characterized in that: At least one of the chips comprises a sleep function pin and a wake-up function pin, wherein the sleep function pin is configured to receive a sleep signal, and the wake-up function pin is configured to output a wake-up signal; The main control unit is connected to the sleep function pin and the wake-up function pin of the chip; The method comprises: When the device is in use, the main control unit triggers the target chip to detect the external input signal; When the target chip completes the detection, the main control unit sends a sleep signal to the sleep function pin of the target chip to put the target chip into sleep mode; When the device is not in use, the main control unit sends a sleep signal to the sleep function pin of the chip and enters sleep mode itself; at the same time, the chip enters micro-power consumption mode and independently detects changes in the external input signal; When any of the chips detects a change in the external input signal, the chip outputs the wake-up signal to the main control unit through the wake-up function pin; the main control unit switches from the sleep mode to the normal working mode according to the wake-up signal.

6. The method for realizing low power consumption of a device based on sleep and wake-up functions according to claim 1, characterized in that: When a change in an external input signal of any of the chips exceeds a conditional threshold, the chip outputs the wake-up signal to the main control unit; The conditional threshold comprises at least one of a static threshold, a dynamic threshold and an absolute threshold; in: When the difference between the value of the external input signal of the chip and the value of the initial signal after entering the micro power consumption mode exceeds the static threshold, the chip outputs the wake-up signal to the main control unit; When the change value of the external input signal of the chip compared with the previous external input signal value exceeds the dynamic threshold, the chip outputs the wake-up signal to the main control unit; When the value of the external input signal of the chip exceeds the absolute threshold, the chip outputs the wake-up signal to the main control unit.

7. A method for realizing low power consumption of a device based on sleep and wake-up functions according to claim 2, characterized in that: The chip further comprises: A main clock module, used for providing a main clock signal, connected to the logic module; The steps when the device is used also include: The main control unit triggers the target chip to detect an external input signal, and the logic module of the target chip controls the corresponding sampling module based on the main clock signal to sample changes of the external input signal in a normal working mode.

8. The method for realizing low power consumption of a device based on sleep and wake-up functions according to claim 7, characterized in that: The chip further comprises: A register, used for pre-storing a plurality of operating frequencies, wherein the register is connected to the logic module; The steps when the device is used also include: The main control unit triggers the target chip to detect an external input signal, and the logic module of the target chip controls the working time and cycle of the sampling module by switching between the multiple working frequencies.

9. The method for realizing low power consumption of a device based on sleep and wake-up functions according to claim 7, characterized in that: The chip further comprises: A power management module, connected to the logic module, the power management module includes a main power supply mode and a micro power consumption power supply mode; The method further comprises: The power management module of each chip switches between the main power supply mode and the micro power consumption power supply mode according to the instruction of the corresponding logic module to distribute power to the main clock module or the micro power consumption clock module accordingly.

Citation Information

Cited By

  • Chip control method and device

    CN120996225A