CN117812682A - Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip - Google Patents

Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip Download PDF

Info

Publication number
CN117812682A
CN117812682A CN202311868054.5A CN202311868054A CN117812682A CN 117812682 A CN117812682 A CN 117812682A CN 202311868054 A CN202311868054 A CN 202311868054A CN 117812682 A CN117812682 A CN 117812682A
Authority
CN
China
Prior art keywords
speed clock
bluetooth chip
bluetooth
low
sleep
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311868054.5A
Other languages
Chinese (zh)
Inventor
赵同炜
黄增锋
陈光胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Eastsoft Microelectronics Co ltd
Original Assignee
Shanghai Eastsoft Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Eastsoft Microelectronics Co ltd filed Critical Shanghai Eastsoft Microelectronics Co ltd
Priority to CN202311868054.5A priority Critical patent/CN117812682A/en
Publication of CN117812682A publication Critical patent/CN117812682A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method for reducing the power consumption of a Bluetooth chip and a low-power consumption Bluetooth chip, wherein the method comprises the following steps: after the Bluetooth chip is electrified, a high-speed clock and a low-speed clock are started; before entering the deep sleep mode, saving the context and powering off all units except the minimum wake-up system in the hardware power domain of the Bluetooth chip; the minimum wake-up system comprises a specific data storage unit and a low-speed clock, wherein the specific data storage unit is used for storing a context which needs to be stored in a deep sleep mode; when waking up from deep sleep, executing a wake-up operation, wherein the wake-up operation comprises the following steps: starting a high-speed clock, powering up a CPU, switching to the high-speed clock, recovering the stored context, loading the PC value, jumping to the next instruction to be executed before dormancy, and waking up the BLE CORE. By utilizing the scheme of the invention, the sleep power consumption of the Bluetooth chip can be effectively reduced and the standby time of the Bluetooth equipment can be prolonged on the basis of not influencing the Bluetooth wireless connection.

Description

Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip
Technical Field
The invention relates to the technical field of automatic control, in particular to a method for reducing power consumption of a Bluetooth chip and a low-power consumption Bluetooth chip.
Background
With the development of Bluetooth (Bluetooth) technology, electronic devices based on BLE (Bluetooth Low Energy ) are more and more increased through the promotion of industry for several years, and are greatly popularized and popularized in many application fields, especially in the intelligent wearable field and the intelligent household field, and Bluetooth low energy is widely applied. In the application field, the Bluetooth module is mostly used for being placed into an intelligent device or a control device, and is powered by a button battery for use, and data transmission and data control are performed through a wireless terminal. Because most of the intelligent devices are required to be used for a long time, the frequency of replacing batteries needs to be reduced, and therefore the power consumption of the devices is important.
In order not to affect normal wireless communication, the CPU (Central Processing Unit ) in the bluetooth module is generally required to remain powered on at all times. At present, after a mainstream bluetooth low energy Chip in the market enters a low power consumption mode, the power consumption is still about ten microamps, and along with the increasing requirements of the market on the standby time of the intelligent device, how to effectively reduce the sleep power consumption of a BLE System On Chip (SOC) Chip without affecting normal wireless communication becomes a problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a method for reducing the power consumption of a Bluetooth chip and a low-power consumption Bluetooth chip, which effectively reduce the sleep power consumption of the low-power consumption Bluetooth chip and improve the standby time of low-power consumption Bluetooth equipment on the basis of ensuring that the sleep wakeup does not influence the original Bluetooth wireless connection.
Therefore, the embodiment of the invention provides the following technical scheme:
on one hand, the embodiment of the invention provides a method for reducing the power consumption of a Bluetooth chip, wherein the Bluetooth chip internally comprises a CPU, a BLE CORE, a high-speed clock and a low-speed clock; the high-speed clock is used for providing a working clock, and the low-speed clock is used for waking up the Bluetooth chip from deep dormancy; the method comprises the following steps:
after the Bluetooth chip is electrified, a high-speed clock and a low-speed clock are started;
before entering the deep sleep mode, saving the context and powering off all units except the minimum wake-up system in the hardware power domain of the Bluetooth chip; the minimum wake-up system comprises a specific data storage unit and a low-speed clock, wherein the specific data storage unit is used for storing a context which needs to be stored in a deep sleep mode;
when waking up from deep sleep, executing a wake-up operation, wherein the wake-up operation comprises the following steps: starting a high-speed clock, powering up a CPU, switching to the high-speed clock, recovering the stored context, loading the PC value, jumping to the next instruction to be executed before dormancy, and waking up the BLE CORE.
Optionally, the specific data storage unit is a set space region of the SRAM, and the set space region is configured not to perform an operation of initializing to 0 after the chip is powered up.
Optionally, the method further comprises: and configuring a variable to be kept after the deep sleep awakening, and setting the variable to be stored in the specific data storage unit.
Optionally, the method further comprises:
determining whether a deep sleep mode can be entered at present;
if yes, calculating the time T from the next Bluetooth event to the current time sleep The time T sleep Setting the clock to be a value of a low-speed clock timer, then enabling the BLE CORE to enter a deep sleep mode, switching a working clock to the low-speed clock, closing the high-speed clock, and powering off a CPU;
at the time of the low-speed clock timer to T sleep And at the time of t, starting the high-speed clock, powering up the CPU, switching the working clock into the high-speed clock, and waking up the BLE CORE.
Optionally, the method further comprises: and after the high-speed clock is started, waking up the BLE CORE after a delay time t.
Optionally, the method further comprises:
checking whether the high-speed clock has been turned on before waking up the BLE CORE after a delay time t;
if yes, waking up the BLE CORE;
otherwise, the high-speed clock is started first, and then the BLE CORE is awakened.
Optionally, the method further comprises:
before entering a deep sleep mode, setting a sleep flag and writing the sleep flag into the specific data storage unit;
after the CPU is powered on, entering a reset program;
determining whether the sleep is awakened according to the sleep mark;
if yes, executing the awakening operation, and then clearing the dormancy mark; otherwise, executing the reset operation.
On the other hand, the embodiment of the invention also provides a low-power consumption Bluetooth chip, which comprises: the system comprises a CPU, a BLE CORE, a high-speed clock, a low-speed clock, a program storage unit and a data storage unit;
the BLE CORE is used for executing Bluetooth events;
the high-speed clock is used for providing a working clock, is started after the Bluetooth chip is electrified, and is closed before the Bluetooth chip enters a deep sleep mode;
the low-speed clock is used for waking up the Bluetooth chip from deep dormancy and continuously keeping an on state after the Bluetooth chip is electrified;
the program storage unit is used for storing a program;
the CPU is used for running the program;
the data storage unit is used for storing data in program operation and storing a context to be stored in a deep sleep mode;
when the Bluetooth chip enters a deep sleep mode, the Bluetooth chip is configured to: the CPU saves the context to the data storage unit, and all units except the minimum wake-up system in the hardware power domain are powered off; the minimum wake-up system comprises the data storage unit and the low-speed clock;
when the Bluetooth chip wakes up from deep sleep, the Bluetooth chip is configured to: performing a wake-up operation, the wake-up operation comprising: starting a high-speed clock, powering up a CPU, switching to the high-speed clock, recovering the context stored in the data storage unit, loading a PC value, jumping to the position of the next instruction to be executed before dormancy, and waking up the BLE CORE.
Optionally, the data storage unit is a setting space of the SRAM, and the setting space is configured to not perform an operation of initializing to 0 after the bluetooth chip is powered on.
Optionally, the data storage unit is further configured to store a variable that needs to be maintained after the deep sleep wakeup.
Optionally, the bluetooth chip further includes: a low-speed clock timer;
the low-speed clock timer is configured to set a timer value T when the sleep judging program in the Bluetooth chip determines that the deep sleep mode can be entered currently sleep The timing value T sleep The next Bluetooth event calculated by the dormancy judgment program is far from the current time T sleep
Setting the timing value T of the low-speed clock timer sleep After that, the BLE CORE enters a deep sleep mode, the working clock is switched to the low-speed clock, the high-speed clock is closed, and the CPU is powered off;
low-speed clock timer times to T sleep At t, the high-speed clock is started, then the CPU is powered on, the working clock is switched to the high-speed clock, and the BLE CORE is awakened.
Optionally, the chip sleep program is further configured to set a sleep flag and write the sleep flag into the data storage unit before entering the deep sleep mode;
when the Bluetooth chip wakes up from deep dormancy, determining whether the Bluetooth chip wakes up for dormancy according to the dormancy mark; if yes, executing the operation of recovering the context and switching clocks; otherwise, executing the reset operation.
In another aspect, an embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, where the computer program when executed by a processor performs the steps of the method for reducing power consumption of a bluetooth chip.
According to the method for reducing the power consumption of the Bluetooth chip and the low-power consumption Bluetooth chip provided by the embodiment of the invention, before the Bluetooth chip enters the deep sleep mode, the context is stored and all units except the minimum wake-up system in the hardware power domain of the Bluetooth chip are powered off; when waking up from deep sleep, executing a wake-up operation, wherein the wake-up operation comprises the following steps: starting a high-speed clock, powering up a CPU, switching to the high-speed clock, recovering the stored context, loading the PC value, jumping to the next instruction to be executed before dormancy, and waking up the BLE CORE. By utilizing the scheme of the invention, on the basis that the original Bluetooth wireless connection is not affected by dormancy wakeup, the CPU is powered off when entering the deep dormancy mode, so that the power consumption can be reduced by reducing the working time of the equipment, and the power consumption can be further reduced by reducing the power consumption of the Bluetooth chip when in deep dormancy.
Drawings
Fig. 1 is a flowchart of a method for reducing bluetooth chip power consumption provided by the invention;
fig. 2 is a schematic diagram of sleep wakeup timing sequence in the method for reducing bluetooth chip power consumption provided by the invention;
FIG. 3 is a flowchart of a Bluetooth chip in a method for reducing power consumption of the Bluetooth chip according to the present invention;
fig. 4 is a schematic diagram of a structure of a bluetooth low energy chip according to the present invention.
Detailed Description
In order to make the above objects, features and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below.
Aiming at the problem that the CPU in the existing Bluetooth module needs to keep a power-on state all the time, the power consumption of the low-power Bluetooth device can only be reduced from the reduction of the working time of the device, so that the reduction of the overall power consumption is limited by the power consumption of the CPU.
The Bluetooth chip in the embodiment of the invention internally comprises a CPU, a BLE CORE, a high-speed clock and a low-speed clock, wherein the high-speed clock is used for providing a working clock, and the low-speed clock is used for waking up the Bluetooth chip from deep dormancy.
The method for reducing the power consumption of the Bluetooth chip provided by the embodiment of the invention is applied to the Bluetooth chip, and as shown in fig. 1, is a flowchart of the method for reducing the power consumption of the Bluetooth chip, and comprises the following steps:
step 101, after the bluetooth chip is powered on, a high-speed clock and a low-speed clock are started.
Step 102, before entering a deep sleep mode, saving the context and powering off all units except the minimum wake-up system in the hardware power domain of the Bluetooth chip; the minimum wake-up system includes a specific data storage unit for storing a context that needs to be saved in a deep sleep mode, and a low-speed clock.
That is, the minimum wake-up system is not powered down all the time after the bluetooth chip is powered up, and all the other units except the minimum wake-up system can be powered off after the bluetooth chip enters the deep sleep mode.
The specific data storage unit may be, for example, a setting space of an SRAM (Static Random-Access Memory) configured to not perform an operation initialized to 0 after the bluetooth chip is powered on.
Further, considering that the variables such as relevant parameters for maintaining the bluetooth connection need to maintain the value before deep sleep after the bluetooth chip wakes up from deep sleep, the variables may be stored in the specific data storage unit. Therefore, after the Bluetooth chip wakes up from deep sleep, the value of the variable can be obtained from the specific data storage unit, and the correctness of the variable is ensured.
It should be noted that, in another non-limiting embodiment, the bluetooth chip may also be compatible with a common sleep mode, where the common sleep mode is the same as the existing sleep mode, that is, when the bluetooth chip enters the deep sleep mode, the CPU of the bluetooth chip is not powered off, and other modules except the CPU may be powered off or not powered off as required.
Step 103, when waking up from deep sleep, executing a wake-up operation, where the wake-up operation includes: starting a high-speed clock, powering up a CPU, switching to the high-speed clock, recovering the stored context, loading the PC value, jumping to the next instruction to be executed before dormancy, and waking up the BLE CORE.
Considering that in some applications a smart device using a bluetooth low energy chip is typically able to determine the time from the current next bluetooth event, the inventive method may also control the timing of entering and exiting deep sleep mode in the following manner, in one non-limiting embodiment.
It may be determined whether a deep sleep mode is currently enabled, such as if no peripheral is currently active and no bluetooth event is being processed.
If it is determined that the deep sleep mode can be currently entered, calculating a time T from the current time of the next Bluetooth event sleep The time T sleep Set to the value of the low-speed clock timer; then BLE CORE enters a deep sleep mode, switches a working clock into the low-speed clock, closes the high-speed clock, and cuts off a CPU; at the time of the low-speed clock timer to T sleep And at the time of t, starting the high-speed clock, powering up the CPU, switching the working clock into the high-speed clock, and waking up the BLE CORE. Wherein T is less than T sleep Is set at a set value of (a). For example, t may be set to m (e.g., m=3) high-speed clock cycles.
In the embodiment of the present invention, taking an ARM Cortex-M architecture CPU as an example, the context refers to the values of PC (Programmable Counter, program counter) Pointer and SP (Stack Pointer), LR (Link Register), R0-R3, R12 registers, and related parameters for maintaining Bluetooth connection, etc.:
the SP is used to point to the address of the current stack top. During program execution, the stack is used for storing parameters, local variables, return addresses and other information when the function is called.
LR is used to store the return address before a function call. When a function is called, the LR will be set to the address of the next instruction to the instruction that called the function, i.e., the address to jump when the function returns. The value of LR is not modified during function execution and is not used to jump to the correct address until the function returns.
The PC is used to store the address of the instruction currently being executed, and the PC pointer (i.e., the value of the PC) is continually modified during program execution to point to the address of the next instruction to be executed. When encountering instructions such as function call, branch jump and the like, the value of the PC is modified into a corresponding address; upon return of the function, the PC will be set to the LR value, jumping to the correct address. The R0-R3 registers are mainly used for transferring parameters among subroutines; the R12 register serves as an inter-subroutine scratch register, i.e., an IP (Interrupt Priority ) register, for holding SPs, which is used when the function returns to the stack.
The relevant parameters for maintaining the bluetooth connection include bluetooth connection parameters before entering sleep, such as connection interval, slave delay, timeout time, etc.
When entering into deep sleep, storing the current PC pointer and the values of the SP, LR, R0-R3, R12 registers, relevant parameters for maintaining Bluetooth connection and the like into variables to be maintained after waking; and after awakening, sequentially reading the value of the register and the Bluetooth connection parameters from the corresponding variables, and jumping to a program position before dormancy for continuous execution.
Fig. 2 is a schematic diagram of sleep wakeup timing sequence in the method for reducing power consumption of a bluetooth chip according to the present invention.
Referring to fig. 2, after determining that the deep sleep mode can be currently entered, the value of the low-speed clock timer is set to T sleep Then, the BLE CORE enters a deep sleep mode, the working clock is switched to a low-speed clock, the high-speed clock is turned off after t1, the CPU is powered off after t2, and the time for powering off both the high-speed clock and the CPU has a small time difference t1 and t2, which is a very small value (i.e., execution time of several instructions) greater than 0. Reaching T during deep sleep time sleep at-T, i.e. the low-speed clock timer counts to T sleep At-t, the high-speed clock is started first, and after the high-speed clock is stable, the CPU is powered up, as shown in figure 2The two times differ by Deltat (Deltat<t). Then, the working clock is switched to a high-speed clock, and the low-speed clock timer counts time to T sleep The BLE CORE is awakened. As shown in fig. 2, the low-speed clock counter counts zero when BLE CORE goes to sleep and counts to T sleep -turning on the high speed clock at T by comparison logic, wherein MR0 is comparison register 0, similarly, when the counter counts to T sleep -t+Δt powering up the CPU module by the comparison logic controlling the power management unit, MR1 being the comparison register 1, when the counter counts to T sleep When the BLE CORE is awakened by the comparison logic, MR2 is the comparison register 2. The comparison registers MR0, MR1, MR2 are present in the wake-up logic unit.
In fig. 2, t3 represents the time when the CPU is powered up to wake BLE CORE, t3=t- Δt; t4 represents the time of CPU sleep, t4=t sleep -t1-t2-Δt。
Further, to avoid false triggers, it may also be checked whether the high speed clock is still present before waking up the BLE CORE; if yes, waking up BLE CORE; otherwise, it is not necessary to wake up the BLE CORE.
According to the method for reducing the power consumption of the Bluetooth chip, provided by the embodiment of the invention, before the Bluetooth chip enters the deep sleep mode, the context is stored, and all units except the minimum wake-up system in the hardware power domain of the Bluetooth chip are powered off; when waking up from deep sleep, executing a wake-up operation, wherein the wake-up operation comprises the following steps: starting a high-speed clock, powering up a CPU, switching to the high-speed clock, recovering the stored context, loading the PC value, jumping to the next instruction to be executed before dormancy, and waking up the BLE CORE. By utilizing the scheme of the invention, on the basis that the original Bluetooth wireless connection is not affected by dormancy wakeup, the CPU is powered off when entering the deep dormancy mode, so that the power consumption can be reduced by reducing the working time of the equipment, and the power consumption can be further reduced by reducing the power consumption of the Bluetooth chip when in deep dormancy.
In the embodiment of the invention, the CPU needs to be powered off when the Bluetooth chip enters into deep sleep, and needs to be powered on when the Bluetooth chip wakes up from the deep sleep. In order to distinguish between the reset power-up of the CPU, in another non-limiting embodiment of the method of the present invention, the power-up in these two different scenarios may also be distinguished by setting the sleep flag, so that different operations are performed after the CPU is powered up.
Specifically, before entering a deep sleep mode, setting a sleep flag and writing the sleep flag into the specific data storage unit; after the CPU is powered on, entering a reset program; determining whether the sleep is awakened according to the sleep mark; if yes, executing the awakening operation, and then clearing the dormancy mark; otherwise, executing the reset operation.
Referring to fig. 3, a working flow chart of a bluetooth chip in the method for reducing power consumption of a bluetooth chip provided by the invention includes the following steps:
in step 300, the variable memory domain to be maintained after sleep wakeup is set so that the portion of memory space does not perform an initialization to 0 during reset.
In step 301, the bluetooth chip resets or wakes up by sleep, and enters a reset procedure.
In step 302, it is determined whether the sleep flag is sleep awake; if so, then step 303 is performed; otherwise, step 307 is performed.
At step 303, the resume context jumps to the next instruction to be executed before hibernation and wakes up the BLE CORE when the value of the low-speed clock counter set before hibernation is reached.
At step 304, execution of the program continues.
In step 305, it is determined whether deep sleep can be currently entered; if so, then step 306 is performed; otherwise, step 304 is performed.
In step 306, the context is saved, the chip wake-up source and wake-up parameters are set, the low-speed clock timer is set, and deep sleep is entered.
Before entering sleep, firstly setting a sleep flag, writing the sleep flag into the specific data storage unit, saving the context, setting a low-speed clock as a wake-up source, and setting a wake-up parameter, wherein the sleep wake-up parameter is time t in fig. 2, switching to the low-speed clock, then switching off the high-speed clock, and powering off the CPU, and the low-speed clock still works normally at the moment.
In step 307, a reset procedure is performed.
Correspondingly, the embodiment of the invention also provides a low-power consumption Bluetooth chip, and as shown in fig. 4, the low-power consumption Bluetooth chip is a structural schematic diagram.
The bluetooth chip 400 includes: a CPU402, a high-speed clock 403, a low-speed clock 404, a program storage unit 405, a data storage unit 406, a BLE CORE407;
the BLE CORE407 is configured to perform a bluetooth event;
the high-speed clock 403 is used for providing a working clock, and is started after the Bluetooth chip is powered on, and is closed when the Bluetooth chip enters a deep sleep mode;
the low-speed clock 404 is used for waking up the bluetooth chip from deep sleep, and continuously keeps on after the bluetooth chip is powered on;
the program storage unit 405 is configured to store a program, and the program storage unit 405 may be, for example, a ROM (Read-Only Memory), a FLASH, or the like;
the CPU402 is configured to run the program;
the data storage unit 406 is configured to store data during program running and store a context to be saved in a deep sleep mode;
when the bluetooth chip 400 enters the deep sleep mode, the bluetooth chip 400 is configured to: CPU402 saves the context to data storage unit 406 and all units outside the minimum wake-up system in the hardware power domain are powered down; the minimum wake-up system includes the data storage unit 406 and a low speed clock 404;
when the bluetooth chip 400 wakes up from deep sleep, the bluetooth chip 400 is configured to: performing a wake-up operation, the wake-up operation comprising: the high-speed clock 403 is started, the cpu402 is powered on, switches to the high-speed clock, restores the context stored in the data storage unit 406, loads the PC value and jumps to the next instruction to be executed before dormancy, and wakes up the BLE CORE407.
In one non-limiting embodiment, the data storage unit 406 may be a separate SRAM or a set space on a SRAM configured to not perform an initialization of 0 after the bluetooth chip 400 is powered up.
Further, the data storage unit 406 is further configured to store variables that need to be maintained after the deep sleep wakeup.
In another non-limiting embodiment, the bluetooth chip 400 may further include: a low speed clock timer (not shown in fig. 4).
Accordingly, executing firmware (not shown) determines whether a deep sleep mode can currently be entered; if yes, calculating the time T from the next Bluetooth event to the current time sleep The time T sleep Set to the value of the low speed clock timer.
Accordingly, the low-speed clock timer is configured to set a timer value T when it is determined by the sleep determination program in the execution firmware that the deep sleep mode can be entered currently sleep
Setting the timing value T of the low-speed clock timer sleep After that, BLE CORE407 enters a deep sleep mode, the operating clock is switched to low-speed clock 404, high-speed clock 403 is turned off, and CPU402 is powered off;
the low-speed clock timer counts time to T sleep At t, the high-speed clock 403 is turned on, then the CPU402 is powered up, the operating clock is switched to the high-speed clock 403, and the ble core407 is awakened.
The execution firmware may be a corresponding program provided in a memory, and the memory may be Flash, SRAM, etc., and the memory may be provided in the bluetooth chip 400 or may be independent of the bluetooth chip 400, which is not limited to the embodiment of the present invention.
Correspondingly, the low-speed clock timer counts to T sleep At T, trigger CPU402 to wake from deep sleep, T is less than T sleep Is set at a set value of (a).
In the embodiment of the invention, the CPU needs to be powered off when the Bluetooth chip enters into deep sleep, and needs to be powered on when the Bluetooth chip wakes up from the deep sleep. To distinguish from CPU reset power-up, in another non-limiting embodiment of the Bluetooth Low energy chip of the present invention, the BLE CORE407 is further configured to set a sleep flag and write the sleep flag to the data storage unit 406 when entering deep sleep mode. Accordingly, when the bluetooth chip 400 wakes up from deep sleep, the execution firmware may determine whether to wake up from sleep according to the sleep flag; if yes, executing the awakening operation; otherwise, executing the reset operation.
As shown in fig. 4, in the bluetooth low energy chip 400 according to the present invention, it may further include: a power management unit 501, a clock management unit 502, and a wake-up logic unit 503, where the power management unit 501 manages the on and off of power of each module in the chip; the clock management unit 502 is used for controlling the on and off of each clock in the chip; the wake-up logic 503 is configured to manage a wake-up source and associated wake-up timing control for chip sleep wake-up. The CPU can switch to a low-speed clock and turn off a high-speed clock before going to sleep through the clock management unit; after a specified instruction (e.g., a WFI (wait for interrupt, wait for interrupt) instruction) is invoked by the power management unit, the specified module power is turned off. After detecting the wake-up signal (for example, the MR type register is matched with the low-speed clock counter), the wake-up logic unit controls the clock management unit to start the high-speed clock according to the set wake-up time sequence, and controls the power management module to start the CPU power supply.
The low-power consumption Bluetooth chip provided by the embodiment of the invention can ensure that the dormancy wakeup does not affect the original Bluetooth wireless connection, and the CPU is powered off when entering the deep dormancy mode, so that the working time of equipment can be reduced to reduce the power consumption, and the power consumption of the Bluetooth chip can be further reduced by reducing the power consumption of the Bluetooth chip when the deep dormancy is performed.
The method for reducing the power consumption of the Bluetooth chip and the low-power consumption Bluetooth chip provided by the embodiment of the invention can reduce the power consumption of the chip from the Bluetooth chip source, are not limited by the use environment and the application field, and have universality.
Accordingly, embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a CPU, performs the steps of the corresponding method shown in fig. 1 or 3.
With respect to each of the apparatuses and each of the modules/units included in the products described in the above embodiments, it may be a software module/unit, a hardware module/unit, or a software module/unit, and a hardware module/unit. For example, for each device or product applied to or integrated on a chip, each module/unit included in the device or product may be implemented in hardware such as a circuit, or at least part of the modules/units may be implemented in software program, where the software program runs on a processor integrated inside the chip, and the rest (if any) of the modules/units may be implemented in hardware such as a circuit; for each device and product applied to or integrated in the chip module, each module/unit contained in the device and product can be realized in a hardware manner such as a circuit, different modules/units can be located in the same component (such as a chip, a circuit module and the like) or different components of the chip module, or at least part of the modules/units can be realized in a software program, the software program runs on a processor integrated in the chip module, and the rest (if any) of the modules/units can be realized in a hardware manner such as a circuit; for each device, product, or application to or integrated with the terminal device, each module/unit included in the device may be implemented in hardware such as a circuit, and different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components in the terminal device, or at least some modules/units may be implemented in a software program, where the software program runs on a processor integrated within the terminal device, and the remaining (if any) part of the modules/units may be implemented in hardware such as a circuit.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present application are all or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and system may be implemented in other ways. For example, the device embodiments described above are merely illustrative; for example, the division of the units is only one logic function division, and other division modes can be adopted in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the methods described in the embodiments of the present application.
Although the present application is disclosed above, the present application is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention shall be defined by the appended claims.

Claims (13)

1. The method for reducing the power consumption of the Bluetooth chip is characterized in that the Bluetooth chip comprises a CPU, a BLE CORE, a high-speed clock and a low-speed clock; the high-speed clock is used for providing a working clock, and the low-speed clock is used for waking up the Bluetooth chip from deep dormancy; the method comprises the following steps:
after the Bluetooth chip is electrified, a high-speed clock and a low-speed clock are started;
before entering the deep sleep mode, saving the context and powering off all units except the minimum wake-up system in the hardware power domain of the Bluetooth chip; the minimum wake-up system comprises a specific data storage unit and a low-speed clock, wherein the specific data storage unit is used for storing a context which needs to be stored in a deep sleep mode;
when waking up from deep sleep, executing a wake-up operation, wherein the wake-up operation comprises the following steps: starting a high-speed clock, powering up a CPU, switching to the high-speed clock, recovering the stored context, loading the PC value, jumping to the next instruction to be executed before dormancy, and waking up the BLE CORE.
2. The method of claim 1, wherein the particular data storage unit is a set spatial region of SRAM configured to not perform an operation initialized to 0 after the chip is powered up.
3. The method according to claim 1, wherein the method further comprises:
and configuring a variable to be kept after the deep sleep awakening, and setting the variable to be stored in the specific data storage unit.
4. A method according to any one of claims 1 to 3, further comprising:
determining whether a deep sleep mode can be entered at present;
if yes, calculating the time T from the next Bluetooth event to the current time sleep The time T sleep Setting the clock to be a value of a low-speed clock timer, then enabling the BLE CORE to enter a deep sleep mode, switching a working clock to the low-speed clock, closing the high-speed clock, and powering off a CPU;
at the time of the low-speed clock timer to T sleep And at the time of t, starting the high-speed clock, powering up a CPU after the time of delta t, switching a working clock into the high-speed clock, and waking up a BLE CORE.
5. The method according to claim 4, wherein the method further comprises:
and after the high-speed clock is started, waking up the BLE CORE after a delay time t.
6. The method of claim 5, wherein the method further comprises:
checking whether the high-speed clock has been turned on before waking up the BLE CORE after a delay time t;
if yes, waking up the BLE CORE;
otherwise, the high-speed clock is started first, and then the BLE CORE is awakened.
7. The method according to claim 4, wherein the method further comprises:
before entering a deep sleep mode, setting a sleep flag and writing the sleep flag into the specific data storage unit;
after the CPU is powered on, entering a reset program;
determining whether the sleep is awakened according to the sleep mark;
if yes, executing the awakening operation, and then clearing the dormancy mark; otherwise, executing the reset operation.
8. A bluetooth low energy chip, characterized in that, the bluetooth low energy chip includes: the system comprises a CPU, a BLE CORE, a high-speed clock, a low-speed clock, a program storage unit and a data storage unit;
the BLE CORE is used for executing Bluetooth events;
the high-speed clock is used for providing a working clock, is started after the Bluetooth chip is electrified, and is closed after the Bluetooth chip enters a deep sleep mode;
the low-speed clock is used for waking up the Bluetooth chip from deep dormancy and continuously keeping an on state after the Bluetooth chip is electrified;
the program storage unit is used for storing a program;
the CPU is used for running the program;
the data storage unit is used for storing data in program operation and storing a context to be stored in a deep sleep mode;
when the Bluetooth chip enters a deep sleep mode, the Bluetooth chip is configured to: the CPU saves the context to the data storage unit, and all units except the minimum wake-up system in the hardware power domain are powered off; the minimum wake-up system comprises the data storage unit and the low-speed clock;
when the Bluetooth chip wakes up from deep sleep, the Bluetooth chip is configured to: performing a wake-up operation, the wake-up operation comprising: starting a high-speed clock, powering up a CPU, switching to the high-speed clock, recovering the context stored in the data storage unit, loading a PC value, jumping to the position of the next instruction to be executed before dormancy, and waking up the BLE CORE.
9. The bluetooth low energy chip according to claim 8, wherein the data storage unit is a set space of the SRAM configured not to perform an operation of initializing to 0 after the bluetooth chip is powered on.
10. The bluetooth low energy chip of claim 8, wherein the antenna is configured to receive the antenna,
the data storage unit is also used for storing variables to be kept after the deep dormancy wakeup.
11. The bluetooth low energy chip according to any one of claims 8 to 10, wherein the bluetooth chip further comprises: a low-speed clock timer;
the low-speed clock timer is configured to set a timer value T when the sleep judging program in the Bluetooth chip determines that the deep sleep mode can be entered currently sleep The timing value T sleep The next Bluetooth event calculated by the dormancy judgment program is far from the current time T sleep
Setting the timing value T of the low-speed clock timer sleep After that, the BLE CORE enters a deep sleep mode, the working clock is switched to the low-speed clock, the high-speed clock is closed, and the CPU is powered off;
low-speed clock timer times to T sleep And at the time t, starting the high-speed clock, powering up the CPU, switching the working clock into the high-speed clock, and waking up the BLE CORE.
12. The bluetooth low energy chip of claim 11, wherein the antenna is configured to receive the antenna,
the chip dormancy program is further used for setting a dormancy mark and writing the dormancy mark into the data storage unit before entering the deep dormancy mode;
when the Bluetooth chip wakes up from deep dormancy, determining whether the Bluetooth chip wakes up for dormancy according to the dormancy mark; if yes, executing the operation of recovering the context and switching clocks; otherwise, executing the reset operation.
13. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when run by a processor performs the steps of the method of reducing the power consumption of a bluetooth chip according to any of claims 1 to 7.
CN202311868054.5A 2023-12-29 2023-12-29 Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip Pending CN117812682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311868054.5A CN117812682A (en) 2023-12-29 2023-12-29 Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311868054.5A CN117812682A (en) 2023-12-29 2023-12-29 Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip

Publications (1)

Publication Number Publication Date
CN117812682A true CN117812682A (en) 2024-04-02

Family

ID=90425245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311868054.5A Pending CN117812682A (en) 2023-12-29 2023-12-29 Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip

Country Status (1)

Country Link
CN (1) CN117812682A (en)

Similar Documents

Publication Publication Date Title
US10488230B2 (en) System on a chip with always-on processor
US10571996B2 (en) System on a chip with fast wake from sleep
JP5994157B2 (en) Zero power hibernate mode that turns on immediately
KR101805346B1 (en) System on a chip with always-on processor which reconfigures soc and supports memory-only communication mode
CN101470509B (en) Computer system control method, computer system and notebook computer
CN109739563B (en) Terminal control method, device, system and storage medium
JP4515093B2 (en) CPU power-down method and apparatus therefor
US20040243868A1 (en) Method and apparatus for power mode transition in a multi-thread processor
JP2006107127A (en) Semiconductor integrated circuit device
US20080098245A1 (en) Power management system and method
KR20100017583A (en) Data processing device with low-power cache access mode
US9606913B2 (en) Electronic circuit for and method of executing an application program stored in a one-time-programmable (OTP) memory in a system on chip (SoC)
CN111225434B (en) Application response method, system, storage medium and communication module
US20040250147A1 (en) Uninterrupted system operation
TWI485623B (en) Method for fast resuming computer system and computer system
CN115826728A (en) Chip power management method and device
KR20050065394A (en) Method and apparatus for reducing memory current leakage in a mobile device
CN117812682A (en) Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip
US20040044916A1 (en) Microcontroller
CN114415820A (en) Power management method and system for processor platform
CN116414467A (en) Low-power-consumption rapid wake-up method
CN117008980A (en) System dormancy method and device, and system wakeup method and device
JP2003044356A (en) Memory mapping system
JPH11353161A (en) Starting method for control program
CN105322918A (en) Method for reducing power consumption of power-on process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination