Method and apparatus for controlling event wake-up, electronic device

CN122963633APending Publication Date: 2026-10-23FUZHOU ROCKCHIP SEMICON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510506543.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0003]这种方法导致资源浪费,由于休眠阶段非必要模块(如高速外设)常开,导致休眠期间功耗高

Benefits of technology

[0007]在本发明的又一方面,提供一种电子设备。该电子设备包括存储器,被配置为存储可执行程序;以及至少一个处理器,被配置为执行所述程序以执行上述的控制复杂事件唤醒的方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122963633A_ABST
    Figure CN122963633A_ABST
Patent Text Reader

Abstract

The application discloses a method and device for controlling event wake-up and electronic equipment. The method comprises the following steps: during the sleep state of a main processor, a primary processor detects whether a primary event exists to obtain a primary event detection result; if the primary event detection result is that the primary event is detected, the primary processor wakes up the main processor; after the main processor is woken up from the sleep state, the main processor configures resources required for detecting a high-level event, the resources required for detecting the high-level event are more than the resources required for detecting the primary event; the primary processor detects whether the high-level event exists to obtain a high-level event detection result; and if the high-level event detection result is that the high-level event is detected, the main processor wakes up the system. The application splits a complex event into a primary event and a high-level event, finely controls the hardware resources used in each stage of the wake-up process, activates the hardware resources step by step according to needs, avoids unnecessary modules being always on in the sleep stage, and effectively reduces the system power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of embedded technology, and more particularly to methods and apparatuses for controlling event wake-up, and electronic devices. Background Technology

[0002] In traditional complex event wake-up methods, when the system is in sleep mode, the processor needs to continuously run the complete complex event detection program and cache a large amount of data (such as network data, voice data, etc.) at a high frequency. All relevant hardware resources (such as high-speed clocks and large-capacity static random access memory) must be kept on and must reach a certain operating frequency. After the processor detects the required event, it wakes the system up to enter the working state.

[0003] This approach leads to resource waste because unnecessary modules (such as high-speed peripherals) remain on during the sleep phase, resulting in high power consumption. Furthermore, it causes memory redundancy, as complex event detection programs and initialization code reside in large-capacity static random access memory (SRAM), increasing chip cost due to the large SRAM requirements. Summary of the Invention

[0004] This invention provides a method and apparatus for controlling event wake-up, as well as an electronic device, which can effectively reduce system power consumption.

[0005] In one aspect of the present invention, a method for controlling event wake-up is provided. The method includes: while a main processor is in a sleep state, a primary processor detects the existence of a primary event to obtain a primary event detection result; if the primary event detection result indicates that the primary event has been detected, the primary processor wakes up the main processor; after the main processor is woken from the sleep state, the main processor configures resources required for detecting a higher-level event, wherein the resources required for detecting the higher-level event are greater than those required for detecting the primary event; the primary processor detects the existence of the higher-level event to obtain a higher-level event detection result; and if the higher-level event detection result indicates that the higher-level event has been detected, the main processor wakes up the system.

[0006] In another aspect of the invention, an apparatus for controlling event wake-up is provided. The apparatus includes: a primary processor and a main processor, wherein the primary processor is configured to: detect the presence of a primary event to obtain a primary event detection result while the main processor is in a sleep state, and wake up the main processor if the primary event detection result indicates that the primary event has been detected; the main processor is configured to: after being woken from the sleep state, configure resources required for detecting advanced events, wherein the resources required for detecting advanced events are greater than the resources required for detecting primary events; the primary processor is further configured to: detect the presence of the advanced event to obtain an advanced event detection result; the main processor is further configured to: wake up the system if the advanced event detection result indicates that the advanced event has been detected.

[0007] In another aspect of the invention, an electronic device is provided. The electronic device includes a memory configured to store an executable program; and at least one processor configured to execute the program to perform the aforementioned method for controlling complex event wake-up.

[0008] According to the present invention, during the main processor's sleep state, a primary processor detects the presence of a primary event. If a primary event is detected, the primary processor wakes up the main processor, and the main processor configures the resources required for detecting advanced events. The resources required for detecting advanced events are more than those required for detecting primary events. The primary processor then detects the presence of an advanced event. If an advanced event is detected, the main processor wakes up the system. In this way, by utilizing the cooperation between the primary and main processors, complex events are broken down into primary and advanced events, and the wake-up process is refined into multiple levels. The hardware resources used at each level in the wake-up process are precisely controlled, and hardware resources are activated step by step as needed, avoiding unnecessary modules from remaining open during the sleep phase, thereby effectively reducing system power consumption. Attached Figure Description

[0009] Figure 1 A flowchart of a method for controlling event wake-up according to an embodiment of the present invention; Figure 2 This is a flowchart illustrating the wake-up process of a control event wake-up method according to an embodiment of the present invention. Figure 3 The flowchart illustrates the execution process of the control event wake-up method according to an embodiment of the present invention in a practical application scenario, specifically the MCU and CPU. Figure 4 This is a schematic diagram of the structure of the device for controlling event wake-up according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0010] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.

[0011] In existing technologies, when the system is in hibernation, the processor needs to continuously run a complete and complex event detection program and cache a large amount of data at a high frequency. All related hardware resources must remain on and reach a certain operating frequency. After the processor detects the required event, it wakes the system up to enter the working state. However, this results in resource waste, as unnecessary modules remain on during hibernation, leading to high power consumption. Furthermore, there is storage redundancy, with the complex event detection program and initialization code residing in a large-capacity SRAM, requiring a large SRAM capacity and increasing chip costs.

[0012] To address at least the aforementioned technical problems, this disclosure provides a method for controlling event wake-up. According to this disclosure, while the main processor is in a sleep state, a primary processor detects the presence of a primary event. If a primary event is detected, the primary processor wakes up the main processor, which then configures the resources required for detecting advanced events. The resources required for detecting advanced events are greater than those required for detecting primary events. The primary processor then detects the presence of an advanced event; if an advanced event is detected, the main processor wakes up the system. In this way, by utilizing the cooperation between the primary and main processors, complex events are broken down into primary and advanced events, and the wake-up process is refined into multiple levels. Fine-grained control is exercised over the hardware resources used at each level of the wake-up process, activating hardware resources as needed, avoiding unnecessary modules remaining active during the sleep phase, thereby effectively reducing system power consumption.

[0013] In some embodiments, a central processing unit (CPU) and a microcontroller unit (MCU) work together, with the CPU primarily responsible for resource management and the MCU primarily responsible for event detection. Complex event detection is divided into primary event detection (low complexity) and advanced event detection (high complexity). Furthermore, fine-grained control is exercised over the resources used at each stage of the wake-up process (including resource switching, frequency adjustment, dynamic program loading, etc.). The wake-up process is divided into the following three stages.

[0014] During the low-power sleep phase, the primary processor (such as an MCU) runs basic event detection programs (such as sensor signal sampling and simple threshold judgment). At this time, resources that are disabled include: CPU, DDR, large-capacity SRAM, and non-essential peripherals. Additionally, resources that are retained include: the primary processor (such as the MCU), sensor interfaces, and a small-capacity, constantly powered SRAM (containing the basic event detection programs and cached data).

[0015] During the dynamic resource control phase, after the primary processor (such as the MCU) detects a primary event, it wakes up the main processor (such as the CPU). The CPU then boots from the BOOTROM, distinguishing between the wake-up and power-on processes using flags. If it's a wake-up process, the CPU's resource control program and advanced event detection program are dynamically loaded from memory (such as Flash) into a large-capacity SRAM. The CPU then runs the resource control program itself, configuring necessary resources (such as increasing clock frequency, turning on power, and enabling relevant peripherals), and preparing the environment for the advanced event detection program. Finally, the main processor (such as the CPU) notifies the primary processor (such as the MCU) to perform advanced event detection (such as pattern matching).

[0016] During the response decision phase, if the advanced event detection passes, the initialization code (such as DDR configuration) is reused, and the main processor (such as the CPU) activates full system functionality. If the advanced event detection fails, the main processor (such as the CPU) shuts down unnecessary resources, and the system returns to a low-power state.

[0017] In the following, the technical solutions according to this disclosure will be described with reference to specific embodiments and in conjunction with the accompanying drawings.

[0018] Figure 1 This is a flowchart illustrating a method 100 for controlling complex event wake-up according to an embodiment of the present disclosure. (Refer to...) Figure 1 The method 100 includes the following steps 102 to 110.

[0019] In step 102, while the main processor is in a sleep state, the primary processor detects whether a primary event exists to obtain the primary event detection result.

[0020] In some embodiments, a primary processor detects the presence of a primary event based on a primary event detection program in a constantly powered first non-volatile memory, and obtains the primary event detection result. In some embodiments, the primary processor includes a microcontroller unit (MCU). In some embodiments, the non-volatile memory includes static random access memory (SRAM).

[0021] In this way, during the low-power sleep phase, the first SRAM only stores the primary event detection program for the primary processor to call to detect primary events, and there are no other programs. The program occupies a small amount of space, and the first SRAM only needs a small amount of space to meet the requirements, thereby reducing chip cost and sleep power consumption.

[0022] In step 104, if the primary event detection result indicates that the primary event has been detected, the primary processor wakes up the main processor.

[0023] In some embodiments, the main processor includes a central processing unit (CPU).

[0024] In step 106, after the main processor is awakened from the hibernation state, the main processor configures the resources required for the detection of advanced events, which require more resources than the detection of primary events.

[0025] In some embodiments, the detection of advanced events is more complex than the detection of primary events, and the resources required for the detection of advanced events operate at a higher frequency than those required for the detection of primary events.

[0026] In some embodiments, the main processor runs a startup program in the boot read-only memory and checks wake-up flag information. If the wake-up flag information indicates that the primary processor has woken up, the main processor loads a resource control program and an advanced event detection program from memory into a second non-volatile memory, the second non-volatile memory having a larger capacity than the first non-volatile memory. Furthermore, the main processor configures the resources required for the detection of the advanced events based on the resource control program in the second non-volatile memory.

[0027] In some embodiments, the method may further include: if the wake-up flag information indicates that the primary processor is not waking up, then the main processor runs the boot process.

[0028] In this way, the primary processor is mainly responsible for event detection, while the main processor is mainly responsible for resource management. The main processor is only woken up after the primary processor detects a primary event. After waking up, it starts from the BootROM and reuses the BootROM program to shorten the wake-up time. At this time, the main processor loads the resource control program and the advanced event detection program into the second SRAM, thereby minimizing system power consumption and saving chip costs.

[0029] In step 108, the primary processor detects whether the advanced event exists to obtain an advanced event detection result.

[0030] In some embodiments, the method 100 may further include: the main processor sending an advanced event detection notification to the primary processor. In some embodiments, the primary processor detecting the existence of the advanced event to obtain an advanced event detection result includes: the primary processor detecting the existence of the advanced event based on the advanced event detection program in the second non-volatile memory, obtaining the advanced event detection result; and the primary processor sending the advanced event detection result to the main processor.

[0031] In step 110, if the advanced event detection result indicates that the advanced event has been detected, the main processor wakes up the system.

[0032] In some embodiments, the main processor returns to the boot program of the boot read-only memory. The main processor loads a memory initialization program from the memory and runs it. Furthermore, after memory initialization is complete, the main processor jumps to the system wake-up entry address on the memory to wake up the system and resume operation. In some embodiments, the memory is double data rate (DDR) memory.

[0033] In this way, when a high-level event is detected, the main processor reuses the BootROM startup program, runs the DDR initialization program, wakes up the system, and activates the full system functions, thereby activating hardware resources step by step as needed, effectively reducing system power consumption.

[0034] In some embodiments, after step 110, the method 100 may further include: if the advanced event detection result is that no advanced event is detected, the main processor returns to the sleep state.

[0035] In this way, when no advanced events are detected, the system returns to a low-power sleep state to shut down unnecessary resources and reduce power consumption.

[0036] In some embodiments, after step 110, the method 100 may further include: if the advanced event detection result is that no advanced event is detected, the primary processor jumps to the first non-volatile memory to run the primary event detection program.

[0037] In some embodiments, the method 100 may further include: the primary processor notifying the main processor of the advanced event detection result; and if the advanced event detection result indicates that the advanced event has been detected, the primary processor entering a sleep state.

[0038] In this way, when detecting advanced events, the primary processor can detect whether an advanced event exists based on the advanced event detection program in the second SRAM. After the event detection is completed, the primary processor can enter a sleep state, effectively reducing overall power consumption.

[0039] In some embodiments, the method 100 may further include: in response to the system entering a sleep state, the primary processor is awakened and runs the primary event detection program from the first non-volatile memory.

[0040] Figure 2This is a flowchart illustrating a method for controlling event wake-up according to an embodiment of the present invention. (Refer to...) Figure 2 The method includes steps 201 to 208.

[0041] In step 201, while the CPU is in sleep mode, the MCU detects the presence of a primary event based on the primary event detection program (such as sensor signal sampling, simple threshold judgment, etc.) in the first SRAM to obtain the primary event detection result.

[0042] In some embodiments, the CPU being in a sleep state specifically involves: shutting down non-essential resources, such as the CPU, DDR, second SRAM, and non-essential peripherals, while retaining essential resources, such as the MCU, sensor interfaces, and first SRAM (which stores primary event detection programs and cached data).

[0043] In some embodiments, prior to step 201, the method may further include: dividing complex events into primary events and advanced events based on the characteristics of the complex events and the allocation of system hardware resources, wherein primary events are low-complexity events and advanced events are high-complexity events.

[0044] Specifically, the way hardware resources are split varies depending on the hardware resources available. The general principle is that basic event detection requires fewer hardware resources and operates at a lower frequency, while advanced event detection requires more hardware resources and operates at a higher frequency.

[0045] For example, in a facial recognition scenario: if the hardware has an infrared sensor, it can first detect whether there is a person (this is a basic event), and then use an advanced facial recognition algorithm to determine the person's identity (this is an advanced event); if the hardware does not have an infrared sensor, it can first use a basic facial recognition algorithm to determine whether there is a face in the image (this is a basic event), and then use an advanced facial recognition algorithm to determine the person's identity (this is an advanced event). Similarly, in a speech recognition scenario: if the hardware has a sound sensor, it can first detect whether there is sound (this is a basic event), and then use an advanced speech recognition algorithm to determine the content of the sound (this is an advanced event); if the hardware does not have a sound sensor, it can first use a basic speech recognition algorithm to detect whether there is a human voice (this is a basic event), and then use an advanced speech recognition algorithm to determine the content of the sound (this is an advanced event).

[0046] The core breakdown approach is: all events → (simple information filtering process) → primary events → (complex information filtering process) → advanced events.

[0047] For example, first check if the network packets contain keywords (a basic event), then use pattern matching to detect if there is any critical information (an advanced event). Similarly, first sample and detect temperature data at a low frequency (a basic event), then sample and analyze temperature data at a higher frequency when the temperature exceeds a certain threshold (an advanced event).

[0048] Next, in step 202, if the primary event detection result is that a primary event has been detected, the MCU wakes up the CPU, the CPU runs the BootROM startup program, and checks the wake-up flag information.

[0049] In this embodiment, the BootROM stores the firmware code used for power-on initialization, and the stored information will not be lost after power failure.

[0050] In step 203, if the wake-up flag indicates that the MCU is awake, the CPU loads the resource control program and the advanced event detection program from memory (such as Flash) into the second SRAM. The capacity of the second SRAM is greater than that of the first SRAM.

[0051] In step 204, the CPU configures the resources required for the detection of advanced events (such as increasing the clock frequency, turning on the power, turning on the relevant peripherals, etc.) based on the resource control program in the second SRAM.

[0052] In step 205, if the wake-up flag indicates that it is not an MCU wake-up, then the CPU will run the boot process.

[0053] In step 206, the MCU detects whether a high-level event exists to obtain the high-level event detection result.

[0054] In some embodiments, step 206 specifically includes steps (1) to (3).

[0055] (1) The CPU sends the advanced event detection notification to the MCU.

[0056] (2) The MCU detects the existence of advanced events (such as pattern matching) based on the advanced event detection program in the second SRAM and obtains the advanced event detection results.

[0057] (3) The MCU sends the advanced event detection results to the CPU.

[0058] In some embodiments, the method may further include: the MCU notifying the CPU of the advanced event detection result; if the advanced event detection result is that an advanced event has been detected, the MCU enters a sleep state.

[0059] In other embodiments, advanced event detection may also be run by the CPU, or by the MCU in conjunction with the CPU.

[0060] Next, in step 207, if the advanced event detection result is that an advanced event has been detected, the CPU wakes up the system. Specifically, this includes the following steps (1) to (3).

[0061] (1) The CPU returns to the BootROM to start the program.

[0062] (2) The CPU loads the DDR program from the memory and runs the DDR program.

[0063] (3) After the DDR initialization is completed, the CPU jumps to the system wake-up entry address on the DDR to wake up the system and resume operation.

[0064] In step 208, if the advanced event detection result is that no advanced event was detected, the MCU jumps to the first SRAM to run the primary event detection program.

[0065] In some embodiments, the method may further include: in response to the system entering a sleep state, the MCU is woken up and runs a primary event detection program from a first SRAM.

[0066] Figure 3 This is a flowchart illustrating the execution flow of the control event wake-up method according to an embodiment of the present invention in a practical application scenario for the MCU and CPU. Figure 3 The process shown comprises three phases: a low-power sleep phase, a dynamic resource control phase, and a response decision phase. In the low-power sleep phase, which is the first phase, steps S1, P1, and P2 are executed. In the dynamic resource control phase, which is the subsequent second phase, steps S2 to S6 and steps P3 to P8 are executed. In the response decision phase, which is the subsequent third phase, steps S7, P9, and P10 are executed.

[0067] Reference Figure 3 The MCU execution process includes the following steps S1 to S8.

[0068] S1. The MCU runs a primary event detection program on the constantly powered SRAM (i.e., the first SRAM) to determine whether a primary event has been detected. If not, it returns to step S1.

[0069] S2. If a primary event is detected, the MCU wakes up the CPU.

[0070] S3, the MCU waits for the CPU to prepare the advanced event detection environment and synchronously saves the new event data to the large-capacity SRAM (i.e., the second SRAM).

[0071] S4. The MCU jumps to the advanced event detection program and begins advanced event detection.

[0072] S5. Notify the CPU of the detection results.

[0073] S6. Determine whether the detection was successful.

[0074] S7. If the detection is successful, the MCU completes the task and enters a low-power state.

[0075] S8. If the detection fails, the MCU jumps to the constantly powered SRAM and returns to execute step S1.

[0076] Reference Figure 3 The CPU execution process includes the following steps P1 to P10.

[0077] P1: The CPU performs a low-power operation, and the system enters a low-power state.

[0078] P2, the CPU is in a power-off sleep state, waiting for the MCU to wake it up.

[0079] P3. When the CPU is woken up, it runs the BootROM startup program, checks the wake-up flag information, and determines whether it is the MCU that is being woken up. If not, the CPU runs the power-on process. If so, it executes step P4.

[0080] P4. Load the CPU resource control program and MCU advanced event detection program from memory into a large-capacity SRAM, and the CPU runs the resource control program.

[0081] P5 and CPU prepare relevant resources for the MCU advanced event detection program (such as turning on the clock and power of relevant modules, increasing the operating frequency, etc.).

[0082] P6. Once the CPU is ready, notify the MCU.

[0083] P7. Wait for and receive the test results.

[0084] P8. Determine if an event was detected. If not, return to step P1. If yes, return to the BootROM startup program.

[0085] P9. Load the DDR initialization program from memory and run it.

[0086] After P10 and DDR initialization are complete, jump to the system wake-up entry address on DDR to continue system recovery.

[0087] According to another aspect of the invention, Figure 4 This is a block diagram illustrating a control event wake-up apparatus 400 according to an embodiment of the present invention. (Refer to...) Figure 4 The device 400 for controlling event wake-up includes a primary processor 402 and a main processor 404.

[0088] The primary processor 402 is configured to detect the presence of a primary event to obtain a primary event detection result while the main processor 404 is in a sleep state, and to wake up the main processor 404 if the primary event detection result indicates that the primary event has been detected.

[0089] The main processor 404 is configured to, upon waking from the sleep state, configure the resources required for detecting advanced events, which require more resources than the detection of primary events.

[0090] The primary processor 402 is further configured to detect the existence of the advanced event to obtain an advanced event detection result.

[0091] The main processor 404 is further configured to wake up the system if the advanced event detection result indicates that the advanced event has been detected.

[0092] It should be understood that the primary processor 402 and the main processor 404 can be further configured to perform the corresponding steps or actions in the method described above, which will not be elaborated here.

[0093] According to another aspect of the invention, Figure 5 This is a schematic diagram illustrating a device 500 for controlling event wake-up according to an embodiment of the present invention. (Refer to...) Figure 5 The electronic device 500 includes a memory 502 and at least one processor 504. The memory 502 is configured to store an executable program that can run on the processor 504. The processor 504 is configured to execute the program to implement various steps or actions of the control event wake-up method as described above.

[0094] In summary, the method, apparatus, and electronic device for controlling event wake-up provided by this invention, during the main processor's sleep state, have a primary processor detect the existence of a primary event. If a primary event is detected, the primary processor wakes up the main processor, and the main processor configures the resources required for detecting advanced events. The resources required for detecting advanced events are more than those required for detecting primary events. The primary processor then detects the existence of advanced events. If an advanced event is detected, the main processor wakes up the system. By utilizing the cooperation between the primary and main processors, complex events are broken down into primary and advanced events, and the wake-up process is refined into multiple levels. The hardware resources used at each level in the wake-up process are precisely controlled, and hardware resources are activated step by step as needed, avoiding unnecessary modules from remaining open during the sleep phase, thereby effectively reducing system power consumption. In addition, during the low-power sleep phase, the first SRAM only stores the primary event detection program for the primary processor to call to detect primary events, and no other programs are present. The program occupies a small amount of space, and the first SRAM only needs a small capacity to meet the requirements. The primary processor is mainly responsible for event detection, and the main processor is mainly responsible for resource management. The main processor is only woken up after the primary processor detects a primary event. After waking up, it starts from the BootROM and reuses the BootROM program to shorten the wake-up time. At this time, the main processor loads the resource control program and the advanced event detection program into the second SRAM, thereby reducing chip cost and sleep power consumption.

[0095] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for controlling event wake-up, characterized in that, include: While the main processor is in sleep mode, the primary processor detects the presence of primary events to obtain the primary event detection results; If the primary event detection result indicates that the primary event has been detected, then the primary processor wakes up the main processor. After the main processor is awakened from the sleep state, the main processor configures the resources required for the detection of advanced events, which require more resources than the detection of primary events. The primary processor detects whether the advanced event exists to obtain the advanced event detection result; as well as If the advanced event detection result indicates that the advanced event has been detected, the main processor will wake up the system.

2. The method according to claim 1, characterized in that, The detection of advanced events is more complex than the detection of basic events. The detection of advanced events requires resources to run at a higher frequency than the detection of primary events.

3. The method according to claim 1, characterized in that, Also includes: If the advanced event detection result is that no advanced event was detected, the main processor returns to the sleep state.

4. The method according to claim 1, characterized in that, The primary processor detects the presence of primary events to obtain primary event detection results, including: The primary processor detects the existence of the primary event based on the primary event detection program in the constantly powered first non-volatile memory, and obtains the primary event detection result.

5. The method according to claim 4, characterized in that, The resources required for configuring advanced event detection by the main processor include: The main processor runs the startup program in the read-only memory and checks the wake-up flag information; If the wake-up flag indicates that the primary processor has woken up, then the main processor loads a resource control program and an advanced event detection program from memory into a second non-volatile memory, the capacity of which is greater than that of the first non-volatile memory; and The main processor configures the resources required for the detection of the advanced events based on the resource control program in the second non-volatile memory.

6. The method according to claim 5, characterized in that, Also includes: If the wake-up flag indicates that the primary processor is not waking up, then the main processor will run the boot process.

7. The method according to claim 5, characterized in that, Also includes: The main processor sends the advanced event detection notification to the primary processor. The detection of the existence of the advanced event by the primary processor to obtain the advanced event detection result includes: The primary processor detects the existence of the advanced event based on the advanced event detection program in the second non-volatile memory, and obtains the advanced event detection result. as well as The primary processor sends the advanced event detection results to the main processor.

8. The method according to claim 5, characterized in that, The system is woken up by the main processor, including: The main processor returns the boot program from the boot read-only memory; The main processor loads a memory initialization program from the memory and runs the memory initialization program; and After memory initialization is complete, the main processor jumps to the system wake-up entry address in the memory to wake up the system and resume operation.

9. The method according to claim 4, characterized in that, Also includes: If the advanced event detection result is that no advanced event was detected, the primary processor jumps to the first non-volatile memory to run the primary event detection program.

10. The method according to claim 4, characterized in that, Also includes: The primary processor notifies the main processor of the advanced event detection result; as well as If the advanced event detection result indicates that the advanced event has been detected, the primary processor enters a sleep state.

11. The method according to claim 10, characterized in that, Also includes: In response to the system entering a sleep state, the primary processor is awakened and runs the primary event detection program from the first non-volatile memory.

12. A device for controlling event wake-up, characterized in that, include: Primary processor and main processor, of which The primary processor is configured to: detect the existence of a primary event to obtain a primary event detection result while the main processor is in a sleep state, and wake up the main processor if the primary event detection result indicates that the primary event has been detected; The main processor is configured to, upon being awakened from the sleep state, configure the resources required for detecting advanced events, which require more resources than the detection of primary events; The primary processor is further configured to: detect whether the advanced event exists to obtain an advanced event detection result; The main processor is further configured to wake up the system if the advanced event detection result indicates that the advanced event has been detected.

13. An electronic device, characterized in that, include: The memory is configured to store executable programs; as well as At least one processor is configured to execute the program to perform the method according to any one of claims 1 to 11.