An electronic device, a method for waking up an electronic device, and related apparatus.

By designing the sampling controller in electronic devices to periodically supply power in a low-power operating state and switching to a normal operating state when the wake-up condition is met, the problem of high power consumption when the electronic device switches to an active state is solved, and lower power consumption and better battery life are achieved.

CN118444763BActive Publication Date: 2025-03-25HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311140999.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-05
Publication Date
2025-03-25
Estimated Expiration
2043-09-05

AI Technical Summary

Technical Problem

When existing electronic devices switch from inactive to active, their power consumption is high, affecting battery life.

Method used

An electronic device is designed, including a system-level chip, a sampling controller and an analog circuit. The sampling controller periodically supplies power to the analog circuit at the first frequency in a low-power operating state, and switches to the normal operating state only when the analog quantity meets the wake-up condition, and transmits a wake-up signal to the system-level chip.

Benefits of technology

By reducing the operating power consumption of the sampling controller in the inactive state, reducing the power consumption of electronic devices when switching to the active state, and improving battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118444763B_ABST
    Figure CN118444763B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an electronic device, an electronic device wake-up method and related devices. The electronic device includes a system-level chip, a sampling controller and an analog circuit; the sampling controller is configured to periodically power the analog circuit at a first frequency in a low-power operation state; the analog circuit is configured to obtain a first analog quantity of an electronic device in an inactive state; in response to the first analog quantity meeting a first wake-up condition, a first wake-up interrupt signal is generated and transmitted to the sampling controller; the sampling controller is configured to switch from a low-power operation state to a normal operation state in response to receiving the first wake-up interrupt signal, and obtain a second analog quantity of the electronic device in an inactive state in the normal operation state; in response to the second analog quantity meeting a second wake-up condition, a wake-up signal is transmitted to the system-level chip. It is beneficial to reduce the operating power consumption of the sampling controller and the power consumption of powering the analog circuit, and realize low-power wake-up of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to an electronic device, an electronic device wake-up method, and related devices. Background Art

[0002] With the development of electronic devices, the functions of electronic devices such as mobile phones and tablet computers are becoming more and more abundant, and they have become one of the most important tools in people's lives. Electronic devices can be in a shutdown state, a sleep state, or a standby state. After detecting a corresponding operation, the electronic device can be awakened from the shutdown state, the sleep state, or the standby state for user use.

[0003] Electronic devices are generally equipped with analog sensors, which can periodically collect analog quantities when the electronic device is in a shutdown state, a dormant state, or a standby state, and then the processor of the electronic device can determine whether the electronic device needs to be awakened from the current state based on the collected analog quantities. At present, the way electronic devices collect analog quantities is that the processor of the electronic device periodically triggers the analog sensor to collect analog quantities. However, in this way, if the collection frequency of the analog quantities is low, the processor response speed is slow; if the collection frequency is high, the operating power consumption of the processor is high, affecting the endurance performance of the electronic device.

[0004] Therefore, how electronic devices collect analog quantities to achieve both low power consumption and fast response speed has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present application provides an electronic device, an electronic device wake-up method and related devices, which can reduce the power consumption of switching the electronic device from an inactive state to an active state.

[0006] In a first aspect, the present application provides an electronic device, which includes a system-level chip, a sampling controller and an analog circuit; the operating state of the sampling controller includes a low-power operating state and a normal operating state; the sampling controller is configured to, in the low-power operating state, periodically power the analog circuit at a first frequency; the analog circuit is configured to, when powered, obtain a first analog quantity of the electronic device in an inactive state; and in response to the first analog quantity satisfying a first wake-up condition, generate a first wake-up interrupt signal; and transmit the first wake-up interrupt signal to the sampling controller; the sampling controller is also configured to, in response to receiving the first wake-up interrupt signal, switch from the low-power operating state to the normal operating state, and obtain a second analog quantity of the electronic device in the inactive state in the normal operating state; and in response to the second analog quantity satisfying a second wake-up condition, transmit a wake-up signal to the system-level chip, the wake-up signal being used to switch the electronic device from the inactive state to the active state.

[0007] Through the electronic device provided by the present application, the sampling controller can determine whether the electronic device switches from the inactive state to the active state when the electronic device is in an inactive state and in a low-power operation state. When it is determined that it may switch to the active state, the sampling controller switches to the normal operation state for further judgment. It is beneficial to reduce the operating power consumption of the sampling controller when the electronic device is in an inactive state, thereby reducing the power consumption of the electronic device in an inactive state. In addition, the sampling controller can periodically supply power to the analog circuit at a preset frequency, which is beneficial to reduce the power consumption of the analog circuit compared to continuously supplying power to the analog circuit, thereby helping to reduce the power consumption of the electronic device when switching from an inactive state to an active state.

[0008] In combination with the electronic device provided in the first aspect, in some embodiments, the analog circuit includes an analog quantity sensor, a signal conditioning circuit and a comparison circuit; the analog quantity sensor is configured to obtain a first initial analog quantity when the analog quantity sensor is powered, and transmit the first initial analog quantity to the signal conditioning circuit; the signal conditioning circuit is configured to, in response to receiving the first initial analog quantity when the signal conditioning circuit is powered, perform signal conditioning on the first initial analog quantity to obtain a first analog quantity; and transmit the first analog quantity to the comparison circuit; the comparison circuit is configured to, in response to receiving the first analog quantity when the comparison circuit is powered, compare the first analog quantity with a preset parameter threshold to obtain a first comparison result; and determine whether the first analog quantity meets the first wake-up condition according to the first comparison result; if it is determined that the first analog quantity meets the first wake-up condition, generate a first wake-up interrupt signal, and transmit the first wake-up interrupt signal to the sampling controller. In the embodiment of the present application, the first analog quantity is obtained only when the various circuits in the analog circuit are powered, and when the first analog quantity meets the first wake-up condition, a wake-up interrupt signal for waking up the sampling controller is generated, which is conducive to reducing the power consumption of the electronic device while ensuring the response speed to the analog quantity.

[0009] In combination with the electronic device provided in the first aspect, in some embodiments, the electronic device further includes a power supply control circuit; and the sampling controller includes a timer module and an input-output module; the timer module is configured to periodically output a first power supply signal and a first stop power supply signal to the power supply control circuit at a first frequency when the sampling controller is in a low-power operation state; the power supply control circuit is configured to, in response to receiving the first power supply signal, supply power to the analog circuit; and in response to receiving the first stop power supply signal, stop supplying power to the analog circuit; the input-output module is configured to, in response to receiving the first wake-up interrupt signal, switch the sampling controller from the low-power operation state to the normal operation state. In an embodiment of the present application, by outputting a power supply signal and a stop power supply signal to the timer module of the sampling controller in the low-power operation state, the analog circuit is periodically powered, which can reduce the power consumption of the electronic device compared to the electronic device continuously powering the analog circuit.

[0010] In combination with the electronic device provided in the first aspect, in some embodiments, the sampling controller further includes an analog-to-digital conversion module; the timer module is further configured to output a second power supply signal to the power supply control circuit when the sampling controller is in a normal operating state; the power supply control circuit is further configured to, in response to receiving the second power supply signal, power the analog circuit; the analog circuit is further configured to, when powered, obtain a second analog quantity of the electronic device in an inactive state, and transmit the second analog quantity to the sampling controller; the analog-to-digital conversion module is configured to obtain a second analog quantity from the analog circuit, and perform analog-to-digital conversion on the second analog quantity; the timer module is further configured to, in response to the analog-to-digital conversion module receiving the second analog quantity, output a second stop power supply signal to the power supply control circuit; the power supply control circuit is further configured to, in response to receiving the second stop power supply signal, stop powering the analog circuit. In an embodiment of the present application, the sampling controller further powers the analog circuit when acquiring the analog quantity after switching to the normal operating mode, and stops powering the analog circuit after the acquisition is completed, so as to determine whether the electronic device is switched to an active state, which can meet the response requirements of the electronic device and reduce the power consumption of continuously powering the analog circuit.

[0011] In combination with the electronic device provided in the first aspect, in some embodiments, the sampling controller is further configured to periodically power the analog circuit at a second frequency when the electronic device is in an active state, wherein the second frequency is greater than the first frequency; the analog circuit is configured to obtain a third analog quantity when powered, and transmit the third analog quantity to the sampling controller; the sampling controller is further configured to transmit a control signal to the system-level chip in response to receiving the third analog quantity, wherein the control signal is used to enable the system-level chip to generate a control instruction. In an embodiment of the present application, when the electronic device is in an active state, the electronic device can obtain an analog quantity by periodically powering the analog circuit to obtain an operation input by the user, thereby being able to generate a control instruction corresponding to the operation input by the user, and by periodically powering the analog circuit, it is beneficial to reduce the power consumption of the electronic device in an active state while meeting the response requirements.

[0012] In combination with the electronic device provided in the first aspect, in some embodiments, the sampling controller is also configured to periodically power the analog circuit; the analog quantity sensor is also configured to, when the analog quantity sensor is powered, obtain a second initial analog quantity and transmit the second initial analog quantity to the signal conditioning circuit; the signal conditioning circuit is configured to, when the signal conditioning circuit is powered, in response to receiving the second initial analog quantity, perform signal conditioning on the second initial analog quantity to obtain a fourth analog quantity; and transmit the fourth analog quantity to the comparison circuit; the comparison circuit is configured to, when the comparison circuit is powered, in response to receiving the fourth analog quantity, compare the fourth analog quantity with a preset parameter threshold to obtain a second comparison result; and determine whether the fourth analog quantity meets the third wake-up condition according to the second comparison result; in the case of determining that the fourth analog quantity meets the third wake-up condition, generate a second wake-up interrupt signal, and transmit the second wake-up interrupt signal to the sampling controller; the sampling controller is also configured to, in response to receiving the second wake-up interrupt signal, periodically power the analog circuit with a second frequency, the second frequency being greater than the first frequency; the analog circuit is configured to, when powered, obtain the third analog quantity, and transmit the third analog quantity to the sampling controller; the sampling controller is also configured to, in response to receiving the third analog quantity, transmit a control signal to the system-level chip, the control signal is used to enable the system-level chip to generate a control instruction. In an embodiment of the present application, after the electronic device switches to the active state, the analog quantity can be first obtained and judged by the analog circuit, and then the sampling controller can be further triggered to obtain the analog quantity for judgment, which is conducive to reducing the power consumption of the sampling controller, thereby reducing the power consumption of the electronic device in the active state.

[0013] In combination with the electronic device provided in the first aspect, in some embodiments, the sampling controller is further configured to switch from the normal operating state to the low power operating state after the electronic device switches from the inactive state to the active state; in the low power operating state, the analog circuit is periodically powered at a first frequency; the analog quantity sensor is also configured to obtain a third initial analog quantity when the analog quantity sensor is powered, and transmit the third initial analog quantity to the signal conditioning circuit; the signal conditioning circuit is configured to, when the signal conditioning circuit is powered, in response to receiving the third initial analog quantity, perform signal conditioning on the third initial analog quantity to obtain a fifth analog quantity; and transmit the fifth analog quantity to the comparison circuit; the comparison circuit is configured to, when the comparison circuit is powered, in response to receiving the fifth analog quantity, compare the fifth analog quantity with a preset parameter threshold. Compare to obtain a third comparison result; and determine whether the fifth analog quantity meets the fourth wake-up condition according to the third comparison result; if it is determined that the fifth analog quantity meets the fourth wake-up condition, generate a third wake-up interrupt signal, and transmit the third wake-up interrupt signal to the sampling controller; the sampling controller is also configured to, in response to receiving the third wake-up interrupt signal, switch from a low-power operation state to a normal operation state, and periodically power the analog circuit at a second frequency in the normal operation state, the second frequency being greater than the first frequency; the analog circuit is configured to, when powered, obtain a third analog quantity, and transmit the third analog quantity to the sampling controller; the sampling controller is also configured to, in response to receiving the third analog quantity, transmit a control signal to the system-level chip, the control signal being used to enable the system-level chip to generate a control instruction corresponding to the control signal. In an embodiment of the present application, after the electronic device switches to an active state, the sampling controller can switch to a low-power operation state to reduce its own operating power consumption, thereby reducing the power consumption of the electronic device in an active state.

[0014] In a second aspect, an embodiment of the present application provides a method for waking up an electronic device, which is applied to an electronic device, and includes: in response to a sampling controller in a low-power operating state periodically powering an analog circuit at a first frequency, obtaining a first analog quantity of the electronic device in an inactive state; when it is determined that the first analog quantity meets a first wake-up condition, controlling the sampling controller to switch from the low-power operating state to the normal operating state; obtaining a second analog quantity of the sampling controller in the normal operating state, and switching the electronic device from the inactive state to the active state when the second analog quantity meets a second wake-up condition.

[0015] Through the electronic device wake-up method provided by the embodiment of the present application, when the electronic device is in an inactive state, the sampling controller is in a low-power operation state to determine whether the electronic device switches from an inactive state to an active state. In the case of determining that it may switch to an active state, further determination is made by switching the sampling controller to a normal operation state, which is conducive to reducing the operating power consumption of the sampling controller when the electronic device is in an inactive state, thereby reducing the power consumption of the electronic device in an inactive state. Moreover, by periodically supplying power to the analog circuit at a preset frequency through the sampling controller, compared with continuously supplying power to the analog circuit, it is conducive to reducing the power consumption of the analog circuit, thereby helping to reduce the power consumption of the electronic device in making a judgment when switching from an inactive state to an active state.

[0016] In combination with the method provided in the second aspect, in some embodiments, the method further includes: obtaining a third analog quantity of the electronic device in an active state; and generating a control instruction based on the third analog quantity. In the embodiment of the present application, by periodically supplying power to the analog circuit, it is beneficial to reduce the power consumption of the electronic device in an active state while meeting the response requirements.

[0017] In combination with the method provided in the second aspect, in some embodiments, before obtaining the third analog quantity of the electronic device in an active state, the method further includes: in response to the sampling controller in a normal operating state periodically powering the analog circuit, obtaining the fourth analog quantity of the electronic device in an active state; when it is determined that the fourth analog quantity meets the third wake-up condition, executing the step of obtaining the third analog quantity of the electronic device in an active state. In the embodiment of the present application, after the analog quantity is first obtained and judged by the analog circuit, the sampling controller is further triggered to obtain the analog quantity for judgment, which is conducive to reducing the power consumption of the sampling controller, thereby reducing the power consumption of the electronic device in an active state.

[0018] In combination with the method provided in the second aspect, in some embodiments, before obtaining the third analog quantity of the electronic device in an active state, the method further includes: after the electronic device switches from an inactive state to an active state, controlling the sampling controller to switch from a normal operating state to a low power operating state; in response to the sampling controller in the low power operating state periodically powering the analog circuit at a first frequency, obtaining the fifth analog quantity of the electronic device in the active state; in the case of determining that the fifth analog quantity meets the fourth wake-up condition, controlling the sampling controller to switch from the low power operating state to the normal operating state; in response to the sampling controller in the normal operating state periodically powering the analog circuit at a second frequency, executing the step of obtaining the third analog quantity of the electronic device in the active state, the second frequency being greater than the first frequency. In an embodiment of the present application, after the electronic device switches to the active state, the sampling controller can switch to a low power operating state to reduce its own operating power consumption, thereby reducing the power consumption of the electronic device in the active state.

[0019] In a third aspect, the present application provides an electronic device, comprising: a camera, one or more processors, and one or more memories. The camera, the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device wake-up method in any possible implementation of the second aspect is executed.

[0020] In a fourth aspect, the present application provides an electronic device, comprising one or more functional modules, wherein the one or more functional modules are used to execute an electronic device wake-up method in any possible implementation of the second aspect described above.

[0021] In a fifth aspect, the present application provides a chip system, including a chip system applied to an electronic device, the chip system including one or more processors, the processor being used to call computer instructions to execute an electronic device wake-up method in any possible implementation of the second aspect described above.

[0022] In a sixth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables execution of an electronic device wake-up method in any possible implementation of the second aspect described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a schematic diagram of an application scenario of a wake-up method provided in an embodiment of the present application;

[0024] Figure 2 This is a schematic diagram of another application scenario of a wake-up method provided in an embodiment of the present application;

[0025] Figure 3 This is another application scenario schematic diagram of a wake-up method provided in an embodiment of the present application;

[0026] Figure 4 It is a structural schematic diagram of a collection system included in an electronic device provided in an embodiment of the present application;

[0027] Figure 5 It is a timing diagram of the operation mode switching of a collection system provided in an embodiment of the present application;

[0028] Figure 6 is another timing diagram of switching of operating modes of a collection system provided in an embodiment of the present application;

[0029] Figure 7 It is a schematic diagram of the operation flow of a collection system in a low-power operation mode provided by an embodiment of the present application;

[0030] Figure 8 is a schematic diagram of a square wave signal output by a timer provided in an embodiment of the present application;

[0031] Fig. 9 It is a schematic diagram of the operation flow of a collection system in a wake-up judgment mode provided by an embodiment of the present application;

[0032] Fig.10 It is a schematic diagram of the operation flow of a collection system provided by an embodiment of the present application in a normal operation mode;

[0033] Fig.11 This is another operating flow diagram of a collection system provided by an embodiment of the present application in a normal operating mode;

[0034] Fig.12 This is another operation flow diagram of a collection system provided by an embodiment of the present application in a normal operation mode;

[0035] Fig.13 It is a flowchart of a wake-up method provided in an embodiment of the present application;

[0036] Fig.14 It is a structural diagram of a collection system for a specific application scenario of a wake-up method provided in an embodiment of the present application;

[0037] Fig.15 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0038] Fig.16 It is a schematic diagram of a software system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0040] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0041] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0042] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0043] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).

[0044] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:

[0045] 1. Inactive state / active state

[0046] In an embodiment of the present application, the state before the electronic device is awakened can be called an inactive state (inactive state), for example, the inactive state includes any one of the standby state, the sleep state or the shutdown state, and the state after the electronic device is awakened is called an active state (active state), for example, the active state can be the working state of the electronic device.

[0047] It should be noted that an electronic device being in an inactive state can be understood as a state in which devices such as processors, such as system on chip (SoC), in the electronic device are in sleep mode and are running low-power programs, and an electronic device being in an active state can be understood as a state in which devices such as processors (such as SoC) in the electronic device are awakened and are running corresponding programs.

[0048] 2. Analog

[0049] Analog quantity refers to a physical quantity that changes continuously within a certain range. Analog quantity can be, for example, voltage, current, pressure, speed, flow, etc. Analog quantity can also be understood as a physical signal with continuously changing amplitude, such as a sine wave signal. The amplitude of the analog quantity can be the peak value of the analog quantity over a period of time. Among them, the concept of physical quantity related to analog quantity is digital quantity, which refers to a physical quantity that changes discontinuously in time, such as a discrete quantity in time and quantity. After collecting the analog quantity, the electronic device can perform analog-to-digital conversion on the analog quantity to convert the analog quantity into a digital quantity, and then the processor of the electronic device can process the digital quantity for further processing.

[0050] In the embodiments of the present application, analog quantity refers to a physical signal collected by an analog quantity sensor configured in an electronic device, such as voltage, current, temperature, etc. The above physical signal can be collected when the electronic device is in an inactive state, and is used to determine whether to wake up the electronic device from the current state, or it can be collected when the electronic device is in an active state, and is used to determine whether to trigger further operations, etc.

[0051] 3. Analog sensor

[0052] An analog sensor is a sensor used to measure analog quantities and output analog signals. Different analog sensors can be used to measure different analog quantities. For example, pressure analog sensors can be used to measure pressure, and temperature analog sensors can be used to measure temperature. Analog sensors can convert measurement results, such as temperature, pressure, voltage, etc., into electrical signals, such as a continuous voltage or current signal, for subsequent use. Among them, analog sensors measure analog quantities based on the physical properties of sensor materials. For example, there is a pressure sensitive element in the pressure analog sensor. When the pressure acting on the pressure analog sensor changes, the resistance value of the pressure sensitive element in the pressure analog sensor will change accordingly, and a changing voltage signal can be generated. After converting and processing the generated voltage signal, the pressure analog sensor can output an analog signal that is proportional to the pressure.

[0053] Applied in the embodiments of the present application, the analog sensor configured for the electronic device can collect analog quantities and output analog signals, and further processing can be performed based on the analog signals output by the analog sensor. For example, the electronic device can determine whether to wake up from a shutdown state, a sleep state, or a standby state based on the analog signal. For another example, the electronic device can also determine whether to trigger other operations based on the analog signal.

[0054] 4. Solid-state buttons

[0055] Solid-state keys can also be called electronic keys, touch keys, etc. They are devices that do not require mechanical transmission parts and realize key functions through circuit conversion. Their outer surface can be equipped with exposed sensors, such as analog sensors, for collecting analog quantities. Solid-state keys use metal contacts or physical signals such as infrared and ultrasonic waves to simulate the pressing action of traditional mechanical keys. They are usually composed of one or more electrodes. When a pressing operation is received on the solid-state key, the state of the capacitor or light sensor changes, which is recognized as a pressing signal.

[0056] A key different from a solid-state key is a physical key, which is also called a physical key. It is a device that implements key functions through mechanical components. It is usually composed of an elastic element and a mechanical structure. When a pressing operation is applied to the physical key, the elastic element produces elastic deformation, thereby triggering the action of the mechanical structure, so that the key is recognized as a pressing signal.

[0057] In the embodiments of the present application, a sensor can be configured in the solid-state button. For example, a pressure simulation sensor can be configured on the surface of the solid-state button. When receiving an operation acting on the solid-state button, the pressure simulation sensor can detect the change in pressure and output a corresponding voltage signal for further judgment and processing.

[0058] In the following embodiments of the present application, "analog quantity" may be referred to as other terms such as "analog signal", and its meaning has been recorded in the present embodiment, and its name does not constitute any limitation to the present embodiment. Similarly, the "digital quantity" mentioned above may also be referred to as other terms such as "digital signal", and the "analog quantity sensor measuring analog quantity" mentioned above may also be referred to as "analog quantity sensor collecting analog quantity" and other descriptions.

[0059] In the process of using electronic devices, it is found that when the electronic device does not detect any operation, the electronic device can enter an inactive state to save the power consumption of the electronic device. After the electronic device detects the wake-up operation, it can be awakened from the inactive state to provide various services for the user to use. For example, when the electronic device does not detect the operation input by the user for a period of time, the electronic device can enter the standby state, that is, the electronic device turns off the screen and reduces the operating load to the minimum state. Furthermore, after detecting the wake-up operation, the electronic device can wake up from the standby state, enter the active state, light up the screen and display the user interface, and then receive the user's input operation for the user interface. Multiple analog sensors can be configured in the electronic device, and the above-mentioned wake-up operation can act on the analog sensor configured by the electronic device. When the analog sensor detects the wake-up operation, it can detect that the analog quantity changes, and then the processor of the electronic device can determine whether the change of the analog quantity meets the wake-up condition. When it is determined that the wake-up condition is met, the electronic device can be triggered to wake up from the standby state and enter the active state, and specifically the display screen can be triggered to display the user interface, such as the lock screen interface.

[0060] Generally, the electronic device collects analog quantities through the processor of the electronic device, and the processor can be a sensor hub module in the SoC of the electronic device. The sensor hub module is a higher-level microcontroller unit (MCU) in the SoC, which can power analog sensors and control analog sensors to collect analog quantities. Since the analog sensor does not have the function of interrupting and waking up the processor (such as the sensor hub module), the core of the sensor hub module needs to be awakened periodically to perform the operation of powering the analog sensor and collecting analog quantities. On the one hand, the sensor hub module is a higher-level MCU, and its operating power consumption is high; on the other hand, if the core wake-up frequency of the sensor hub module is low, the acquisition frequency of the analog sensor is low, and the speed at which the processor responds to user operations is slow. If the core wake-up frequency of the sensor hub module is high, the acquisition frequency of the analog sensor is high, and the power consumption is high, which affects the battery life of the electronic device, which brings great inconvenience to the user and reduces the user experience.

[0061] Next, combine Figure 1-Figure 3 An example application scenario of a wake-up method provided in an embodiment of the present application is introduced.

[0062] like Figure 1 As shown, the application scenario includes a user 10 (drawing with a finger as an example) and an electronic device 100. The electronic device 100 includes an analog sensor 101. The analog sensor 101 can be configured in a button of the electronic device 100. For example, the power button of the electronic device 100 is a solid-state button configured with a pressure simulation sensor, which can be used to measure the pressure of pressing the power button. At time t1, the electronic device 100 is in an inactive state. At this time, the display screen of the electronic device 100 is in an off state and does not display any user interface. The user 10 can input a pressing operation by pressing the power button, such as Figure 1 The user 10 inputs a pressing operation with his finger. At time t2, in response to the pressing operation, the electronic device 100 can be awakened from the inactive state and switched to the active state. At this time, the display screen of the electronic device 100 is in the bright screen state, and the lock screen interface 102 can be displayed. Figure 1 The lock screen interface 102 including time, battery information, wallpaper, and fingerprint unlocking control is drawn as an example.

[0063] Please also read Figure 2 and Figure 3 , Figure 2 Yes Figure 1 In the electronic device, a pressure simulation sensor is configured on the power button for further drawing. Figure 2 As shown, the electronic device 100 can detect a pressing operation on the power button, and the analog sensor 101 (pressure simulation sensor) configured on the power button can collect the pressure of the pressing operation input by the user 10 and output the collected pressure (output voltage signal). Furthermore, the processor (MCU) configured on the power button can determine whether the wake-up condition is met based on the voltage signal output by the pressure simulation sensor. If it is determined that the wake-up condition is met, the pressing operation is determined to be a wake-up operation. In response to the wake-up operation, the electronic device 100 is awakened from the inactive state.

[0064] Figure 3 The analog quantity sensor 101 configured in the power button of the electronic device 100 is a proximity light analog sensor. Figure 3As shown, at time t1, there is a certain distance between the electronic device 100 and the finger of the user 10. The proximity light simulation sensor can have a built-in infrared lamp, which can emit infrared light outward. The emitted infrared light is reflected by the user 10 finger shielding. When the reflected infrared light is irradiated on the proximity light simulation sensor, the proximity light simulation sensor can convert the infrared light signal into a voltage signal through the photoelectric effect. The user can perform input operations by changing the distance between the power button. At time t2, the distance between the electronic device 100 and the finger of the user 10 becomes smaller, and the proximity light simulation sensor can collect the change in distance. The processor configured on the power button can determine whether the wake-up condition is met based on the voltage signal currently output by the proximity light simulation sensor. If it is determined that the wake-up condition is met, the operation is determined to be a wake-up operation. In response to the wake-up operation, the electronic device 100 is awakened from an inactive state.

[0065] It should be noted that Figure 2-Figure 3 The processor (MCU) configured in the power button is not the same processor as the processor (SoC) of the electronic device 100, and the operating power consumption of the processor in the power button is relatively small.

[0066] Among them, the analog sensor can be configured inside a solid-state button or on the surface of an electronic device, and this application does not limit this. For example, the analog sensor can be configured on a volume adjustment button, the back panel of an electronic device, etc., and can be specifically determined according to the form of the electronic device and business needs. The wake-up scheme proposed in the embodiment of the present application can be applied to any electronic device that uses an analog sensor to wake up from an inactive state, such as an inactive state. It can be specifically applicable to electronic devices with different forms and functions, as well as adapting to different software versions (such as domestic versions and overseas versions) and chip platforms, and has certain universality and versatility.

[0067] It is understandable that the above wake-up conditions are explained by taking only the voltage parameters corresponding to pressure or distance as an example. In actual applications, other parameters may be included, such as time parameters. For example, the wake-up condition may be that the pressure is greater than the pressure threshold and the duration is greater than the time threshold. For another example, the wake-up condition may be that the distance is less than the distance threshold and the duration is greater than the time threshold. The above wake-up conditions may also include analog quantities collected by multiple different types of analog sensors, which is not limited in this application.

[0068] It should be noted that, when the inactive state is the off state and the active state is the working state, the process of switching the electronic device from the inactive state to the active state can be the process of turning on the electronic device, compared to generating a power-on instruction through a power-on button (mechanical button), thereby triggering the electronic device to turn on. The user may not be able to perceive the difference between the two methods, but the principles of the electronic device triggering the electronic device to turn on are different, and the operations performed by the electronic device are also different.

[0069] Next, combine Figure 4-Figure 9 The principle of a wake-up method provided in an embodiment of the present application is exemplified.

[0070] See also Figure 4 , Figure 4 1 is a schematic diagram of the structure of a collection system included in an electronic device provided in an embodiment of the present application. Before introducing the operation mode of the collection system, the functional modules included in the collection system are described first.

[0071] like Figure 4 As shown, the acquisition system may include a SoC 41 , a sampling controller 42 , a comparison circuit 43 , a power supply control circuit 44 , a signal conditioning circuit 45 , and an analog sensor 46 . Figure 4 Also shown is a power supply 47 for supplying power to various modules of the acquisition system.

[0072] SoC41 can be called a system-on-chip, which is an integrated circuit with a dedicated purpose and can be understood as a complete system including embedded software. In an embodiment of the present application, SoC41 can be the main chip of an electronic device, which can be powered off when the electronic device is in a shutdown state to save power consumption, and sleep when the electronic device is in an inactive state. SoC41 and the sampling controller 42 can communicate through a bus system including a serial peripheral interface (SPI) and / or an inter-integrated circuit (I2C) interface.

[0073] The sampling controller 42 may also be referred to as a processor, an acquisition control chip, an acquisition controller, etc. The sampling controller 42 may be an MCU controller, a digital signal processor (DSP) or a single-chip microcomputer controller, etc., and is a type of integrated circuit. In the embodiment of the present application, the sampling controller 42 is an MCU controller, which is a chip-level computer formed by appropriately reducing the frequency and specifications of a central processing unit (CPU) and integrating interfaces such as memory, timer, and analog-to-digital conversion on a single chip.

[0074] Among them, the working state (also referred to as working mode) of the sampling controller 42 may include a low-power operation state and a normal operation state. The low-power operation state, which may also be referred to as a low-power operation mode, a sleep mode, etc., refers to a state in which the clock frequency is reduced and unused analog function blocks are turned off. The low-power operation state may also be understood as a state in which the core of the sampling controller 42 is not awakened (sleeping). When an external interrupt signal arrives, the sampling controller 42 may be awakened and enter a normal operation state. The normal operation state, which may also be referred to as a normal operation mode, a normal operation mode, etc., refers to a state in which the system clock is provided and program code is executed. Compared with the low-power operation state, the normal operation state has a larger power consumption and a higher clock frequency.

[0075] In the embodiment of the present application, the sampling controller 42 may include a timer module 421, an input / output (IO) module 422, and an analog to digital converter (ADC) module 423. Among them:

[0076] The timer module 421 can be a circuit or device for outputting a square wave signal with a specific duty cycle, and the square wave signal can be used to trigger the power supply control circuit 44 to supply power to or stop supplying power to the comparison circuit 43, the signal conditioning circuit 45, and the analog sensor 46 (the power supply control circuit 44 stops supplying power to the comparison circuit 43, the signal conditioning circuit 45, and the analog sensor 46, which can be referred to as the power supply control circuit 44 stopping supplying power to the comparison circuit 43, the signal conditioning circuit 45, and the analog sensor 46). Among them, the timer provided by the timer module 421 can be a programmable timer, and the timing time can be controlled by a program. For example, the frequency and duty cycle of the square wave signal output by the timer module 421 can be controlled by a program, and then, the timer module 421 can output a square wave signal with a specific frequency and duty cycle. In an embodiment of the present application, the timer module 421 can operate when the sampling controller 42 is in a low-power operation state. When the sampling controller 42 is in a low-power operation state, the clock frequency is reduced, so the timer module 421 can operate at a low-speed clock.

[0077] The IO module 422 may be a circuit or device including a port for data input and output of the sampling controller 42, and the IO module 422 may be understood as a channel for communicating with the outside. In the embodiment of the present application, the input port of the IO module 422 may be used to receive a level signal input by the comparison circuit 43, and trigger further operations based on a specific level signal.

[0078] The ADC module 423 may be a circuit or device that provides a function of converting analog quantity into digital quantity, and may be used to perform analog-to-digital conversion processing on the analog quantity collected by the analog quantity sensor 46. The analog quantity collected by the analog quantity sensor 46 may first be processed by a signal conditioning circuit for signal conditioning processing and output to the ADC module 423, and then the ADC module 423 may perform analog-to-digital conversion processing on the conditioned analog quantity.

[0079] The comparison circuit 43 can be a circuit or device that provides a comparison function, and can be used to compare two or more data items to determine whether the compared data items are equal, or to determine the size relationship between the compared data items. In an embodiment of the present application, the two inputs of the comparison circuit 43 are analog quantities, one of which can input a preset parameter threshold, such as a preset voltage threshold, and the other can input an analog quantity (voltage value in a voltage signal) collected by an analog quantity sensor 46, and then compare the analog quantity with the preset parameter threshold to obtain a comparison result. The output of the comparison circuit 43 is a binary signal, such as 0 or 1, and can also be understood as an output level signal, such as a high level signal or a low level signal.

[0080] In some embodiments, the parameter threshold preset in the comparison circuit 43 may be determined by circuit parameters, for example, jointly determined according to resistance parameters, voltage parameters, etc. in a specific circuit structure.

[0081] The power supply control circuit 44 can provide a circuit or device for power supply control for the comparison circuit 43, the signal conditioning circuit 45 and the analog quantity sensor 46. The circuit formed by the comparison circuit 43, the signal conditioning circuit 45 and the analog quantity sensor 46 can be called an analog circuit. Power supply control means that the power supply control circuit 44 can enable the power supply 47 to power the analog circuit, that is, the power supply control circuit 44 can power the analog circuit, and can also cut off the power supply 47 from the power supply to the analog circuit, that is, the power supply control circuit 44 can stop powering the analog circuit. The power supply control circuit 44 can also convert the input voltage of the power supply 47 into the power supply voltage required by the powered circuit, and then power the analog circuit. When the analog circuit is powered, the analog quantity acquisition, signal conditioning and comparison with the preset parameter threshold are continuously performed.

[0082] The signal conditioning circuit 45 may be a circuit or device that converts analog quantity into digital quantity for data acquisition, control process, calculation or other purposes. In the embodiment of the present application, the signal conditioning circuit 45 may also perform signal conditioning processing on the analog quantity collected by the analog quantity sensor 46 to make it suitable for the input of the ADC module 423 in the sampling controller 42.

[0083] In some embodiments, the signal conditioning circuit 45 may include a filtering circuit, which may be used to perform low-pass filtering on the analog quantity before digitization to eliminate noise and prevent aliasing, and the filtering circuit may also be integrated in the comparison circuit 43. The signal conditioning circuit 45 may also include a signal amplification circuit, which may be used to improve the accuracy of converting the analog quantity into a digital quantity, wherein the voltage signal output by the analog quantity sensor may be in the range of millivolt (mV) level, and the voltage signal input by the ADC module 423 may be in the range of volt (V) level, so the signal output by the analog quantity sensor may be amplified by the signal amplification circuit.

[0084] The analog quantity sensor 46 can provide a sensor with the function of collecting analog quantities, and can collect analog quantities and output a voltage signal corresponding thereto. In the embodiment of the present application, the analog quantity sensor 46 can collect analog quantities and output a voltage signal to the signal conditioning circuit 45 .

[0085] The power supply 47 can power various circuits / modules in the acquisition system. In the embodiment of the present application, the power supply 47 can power the SoC 41 and the sampling controller 42 . The power supply 47 can also power the analog circuit through the power supply control circuit 44 .

[0086] In an embodiment of the present application, SoC41 is connected to a sampling controller 42, and the sampling controller 42 can be connected to a power supply control circuit 44, a comparison circuit 43, and a signal conditioning circuit 45, respectively. Specifically, a timer module 421 of the sampling controller 42 can be connected to the power supply control circuit 44, an IO module 422 of the sampling controller 42 can be connected to the comparison circuit 43, and an ADC module 423 of the sampling controller 42 can be connected to the signal conditioning circuit 45. The power supply control circuit 44 can be connected to a power supply 47, a comparison circuit 43, a signal conditioning circuit 45, and an analog sensor 46, respectively. The analog sensor 46 can be connected to the signal conditioning circuit 45, and the signal conditioning circuit 45 can be connected to the comparison circuit 43. It should be noted that the above connection method can be connected directly or indirectly. The power supply 47 can be connected to the SoC41 and the sampling controller 42, respectively. Figure 4 Not shown in the figure.

[0087] In the embodiment of the present application, the acquisition system can enter three operating modes: low power consumption operating mode, wake-up judgment mode and normal operating mode. Figure 5 and Figure 6 , an exemplary description is given of the implementation method of switching the operation mode of the acquisition system.

[0088] Among them, the low-power operation mode is the mode in which the acquisition system operates when the electronic device is in an inactive state. At this time, the sampling controller is in a low-power operation state, the SoC of the acquisition system, that is, the processor of the electronic device is dormant, and the power consumption of the acquisition system is low.

[0089] The wake-up judgment mode is the mode in which the acquisition system runs when judging whether the electronic device wakes up from an inactive state, that is, judging whether the electronic device needs to enter an active state. At this time, the sampling controller wakes up and switches from a low-power operation state to a normal operation state. Compared with the low-power operation state, the power consumption of the acquisition system is increased at this time.

[0090] The normal operation mode can be the mode in which the acquisition system operates after the electronic device enters the power-on state from the shutdown state, or it can be the mode in which the acquisition system operates after the electronic device has entered the active state. At this time, the sampling controller can be in a low-power operation state or in a normal operation state. After the electronic device switches from the active state to the inactive state, the acquisition system can switch from the normal operation mode to the low-power operation mode.

[0091] It should be noted that the switching of the acquisition system between the above-mentioned low-power operation mode, wake-up judgment mode and normal operation mode can be understood as the sampling controller in the acquisition system can trigger different operations (generate different instructions) by executing different preset programs, so that the various circuits in the acquisition system cooperate to perform different operations and complete different tasks under the control of the sampling controller to achieve different functions. The sampling controller executes different preset programs so that the acquisition system can achieve different functions corresponding to the different operation modes of the acquisition system. The embodiment of the present application takes the SoC of the acquisition system as the SoC of the electronic device and the other parts of the acquisition system as the device configured on the power button as an example for explanation.

[0092] See also Figure 5 , Figure 5 This is a timing diagram of the operation mode switching of a collection system provided in an embodiment of the present application. The specific process is as follows:

[0093] Step S501: The sampling controller is started.

[0094] Step S502: The sampling controller performs initialization parameter configuration.

[0095] In an embodiment of the present application, the startup of the sampling controller in the acquisition system may also be referred to as the startup of the sampling controller task, which may be triggered to run and run continuously when the electronic device is first powered on. The startup of the sampling controller also means that the acquisition system starts running. After the sampling controller is started, initialization parameter configuration may be performed, and the configured parameters may be the initial parameters involved in the operating mode entered by the acquisition system. For example, if the acquisition system enters the normal operating mode, the sampling controller may configure the parameters of the normal operating mode. If the acquisition system enters the low power consumption operating mode, the sampling controller may configure the parameters of the low power consumption operating mode. Furthermore, after the sampling controller completes the initialization parameter configuration, the corresponding operating mode may be run.

[0096] Specifically, after the acquisition system is started, there are two situations:

[0097] The first case: the electronic device can be in an inactive state, that is, the electronic device can be in a dormant state or a standby state. At this time, the acquisition system can enter a low-power operation mode. The process of the first case can be as follows: Figure 5 shown.

[0098] The second situation: After the acquisition system is started, the electronic equipment can also be in an active state, that is, the electronic equipment can be in a working state, and the acquisition system can enter a normal operation mode. The process of the second situation can be as follows Figure 6 shown.

[0099] Among them, after the electronic device enters the power-on state, it can enter the inactive state or the active state by default. The specific setting can be made through the program, and this application does not limit this.

[0100] Step S503: the acquisition system enters normal operation mode.

[0101] Step S504: determine whether the electronic device needs to enter an inactive state, and the electronic device is in an active state. If yes, proceed to step S505; if no, proceed to step S503.

[0102] Step S505: When it is determined that the electronic device needs to enter an inactive state, the acquisition system enters a low power consumption operation mode.

[0103] In the first case, specifically, an exemplary description is given by taking the example of entering the normal operating mode after the acquisition system starts running. At this time, the electronic device is in an active state. When the operating mode of the acquisition system is the normal operating mode, the sampling controller can be in a low-power operating state or a normal operating state. At this time, the sampling controller can trigger the acquisition of analog quantities, and judge whether the electronic device needs to enter an inactive state based on the collected analog quantities, and then judge whether to switch the operating mode of the acquisition system. When it is judged that the electronic device needs to enter an inactive state, the acquisition system can enter a low-power operating mode, that is, the acquisition system can switch the operating mode from the normal operating mode to the low-power operating mode, and when it is judged that the electronic device does not need to enter an inactive state, the acquisition system can maintain the normal operating mode.

[0104] In some embodiments, after the acquisition system maintains the operating mode as the normal operating mode, the sampling controller can periodically trigger the acquisition of analog quantities. This is because when the electronic device is in an active state, the electronic device can also detect different operations input by the user through the analog quantity sensor to achieve different functions.

[0105] In a possible implementation, the electronic device can determine whether the electronic device needs to enter the inactive state by detecting instructions related to entering the inactive state. For example, the electronic device can determine whether the electronic device needs to enter the inactive state when detecting instructions such as shutdown instructions, sleep instructions, and standby instructions. Exemplarily, when the electronic device does not detect any operation within a preset time, it can generate a standby instruction, and then the electronic device detects the standby instruction and determines that the electronic device needs to enter the inactive state. For another example, the electronic device can obtain the system parameters when the electronic device is in the inactive state, and then obtain the current system parameters of the electronic device, and compare the obtained system parameters with the system parameters to determine whether the electronic device needs to enter the inactive state.

[0106] Furthermore, when it is determined that the electronic device needs to enter an inactive state, the acquisition system can enter a low-power operation mode. When it is determined that the electronic device does not need to enter an inactive state, the acquisition system can maintain the operation mode as a normal operation mode. After the operation mode of the acquisition system is switched from the normal operation mode to the low-power operation mode, the sampling controller can switch the normal operation state to the low-power operation state, and the sampling controller core is dormant to reduce the power consumption of the electronic device.

[0107] Steps S503 to S505 are exemplary illustrations of a process in which the operation mode of the acquisition system is switched from a normal operation mode to a low power consumption operation mode.

[0108] Step S505: the acquisition system enters a low power consumption operation mode.

[0109] Step S506: Determine whether the operation mode of the acquisition system needs to be switched to the wake-up determination mode. If yes, proceed to step S507; if no, execute step S505.

[0110] Step S507: When it is determined that the operation mode of the acquisition system needs to be switched to the wake-up determination mode, the acquisition system enters the wake-up determination mode.

[0111] Specifically, when it is determined that the electronic device needs to enter an inactive state, the acquisition system enters a low power consumption mode. Furthermore, the sampling controller can cause the power supply control circuit to stop supplying power to the analog circuit, and can control the timer module in the sampling controller to output a square wave signal with a specific duty cycle to trigger the power supply control circuit to control the periodic supply of power to the analog circuit. For example, the square wave signal output by the timer module in the sampling controller includes a high level signal and a low level signal. The power supply control circuit can supply power to the analog circuit when receiving a high level signal, and stop supplying power to the analog circuit when receiving a low level signal, so that the analog quantity sensor can periodically collect analog quantities, and realize periodic detection of whether there is a user input operation when the electronic device is in an inactive state.

[0112] In a possible implementation, when the electronic device is in an inactive state and the acquisition system is in a low-power operation mode, the analog quantity periodically collected by the analog quantity sensor can be transmitted to the comparison circuit for judgment through the signal conditioning circuit. Specifically, the analog quantity sensor can transmit the collected initial analog quantity to the signal conditioning circuit for signal conditioning processing, and then the signal conditioning circuit can transmit the conditioned analog quantity after signal conditioning processing to the comparison circuit, and the comparison circuit can compare the preset parameter threshold with the conditioned analog quantity to obtain a comparison result, so that the comparison circuit can output a level signal to the sampling controller according to the comparison result. Furthermore, the sampling controller can trigger the next operation based on the level signal output by the comparison circuit, such as judging whether the sampling controller needs to switch to a normal operating state. It should be noted that when the sampling controller judges whether it needs to switch to a normal operating state based on the level signal output by the comparison circuit, it will further trigger the execution of different preset programs, which can be understood as the acquisition system running in different modes, and judging whether the sampling controller needs to switch to a normal operating state can also be called judging whether the operation mode of the acquisition system needs to be switched to a wake-up judgment mode.

[0113] Among them, the comparison circuit can determine the size relationship between the compared data items, and then output a level signal, such as comparing a preset parameter threshold and a conditioned analog quantity to obtain a comparison result. Furthermore, the comparison circuit can output a high-level signal or a low-level signal to the IO module of the sampling controller, and the sampling controller can determine whether the operation mode of the acquisition system needs to be switched to the wake-up judgment mode according to the level signal. For example, when a high-level signal is received, the sampling controller can switch to a normal operating state, and the sampling controller determines that the operation mode of the acquisition system needs to be switched to the wake-up judgment mode. On the contrary, the acquisition system can maintain the operation mode as a low-power operation mode, and the sampling controller determines that the operation mode of the acquisition system does not need to be switched to the wake-up judgment mode.

[0114] Steps S505 to S507 are exemplary illustrations of a process in which the operation mode of the acquisition system is switched from the low power consumption operation mode to the wake-up determination mode.

[0115] Step S507: the acquisition system enters the wake-up judgment mode.

[0116] Step S508: determine whether the electronic device needs to enter an active state, and the electronic device is in an inactive state. If yes, proceed to step S509; if no, proceed to step S505.

[0117] Step S509: When it is determined that the electronic device needs to enter an active state, the electronic device switches from the inactive state to the active state.

[0118] Specifically, when it is determined that the operation mode of the acquisition system is switched to the wake-up judgment mode, the acquisition system enters the wake-up judgment mode, which can be understood as the sampling controller executing the preset program corresponding to the wake-up judgment mode. At this time, the operation state of the sampling controller is the normal operation state, and the acquisition system can determine whether the electronic device needs to switch from the inactive state to the active state under the control of the sampling controller. It can be understood that the acquisition system switches from the low-power operation mode to the wake-up judgment mode, which can indicate that the analog sensor detects a change in the analog quantity, which may be a wake-up operation for triggering the electronic device to switch from the inactive state to the active state, or it may be a misoperation, and the acquisition system can further collect analog quantities in the wake-up judgment mode and determine whether the electronic device needs to enter the active state.

[0119] At this time, the sampling controller can trigger the power supply control circuit to continuously power the analog circuit (circuit composed of analog quantity sensor, comparison circuit and signal conditioning circuit), thereby triggering the analog circuit to perform analog quantity collection. At this time, the sampling controller can determine whether the electronic device needs to be awakened from the inactive state based on the analog quantity collected by the analog circuit, that is, determine whether the electronic device needs to enter the active state. In the case where it is determined that the electronic device needs to enter the active state, the electronic device switches from the inactive state to the active state.

[0120] In a possible implementation, the sampling controller can control the timer module to output a specific level signal to trigger the power supply control circuit to continuously supply power to the analog circuit, thereby triggering the analog sensor to collect and output the initial analog quantity, and then the signal conditioning circuit can perform signal conditioning processing on the initial analog quantity, and output the conditioned analog quantity to the ADC module of the sampling controller, and the ADC module can receive the conditioned analog quantity and perform format conversion processing, so that other digital devices in the sampling controller can determine whether the electronic device needs to be awakened from the inactive state based on the conditioned analog quantity after format conversion, such as when the analog quantity after format conversion meets the awakening condition, it is determined that the electronic device needs to be awakened from the inactive state, otherwise the electronic device does not need to be awakened from the inactive state. The specific awakening condition can be determined jointly based on the analog quantity and parameters such as time, or it can be determined based on the analog quantity collected by one or more analog sensors. In the case of multiple analog sensors, the types of analog sensors can be the same or different. The wake-up condition can be judged by preset programs and algorithms, and this application does not limit this. For example, if the collected analog quantities are greater than the preset parameter thresholds and the duration is greater than the duration threshold, the sampling controller can determine that the collected analog quantities meet the wake-up conditions and determine that the electronic device needs to enter an active state.

[0121] Furthermore, when it is determined that the electronic device needs to enter the active state, the sampling controller can trigger the electronic device to wake up from the inactive state, and the sampling controller can wake up the SoC, so that the SoC executes the active state program after waking up, and completes the electronic device switching from the inactive state to the active state. The acquisition system enters the normal operation mode, and when it is determined that the electronic device does not need to enter the active state, the acquisition system enters the low-power operation mode.

[0122] Steps S507 to S509 are exemplary illustrations of a process in which the operation mode of the acquisition system is switched from the wake-up determination mode to the normal operation mode or the low power consumption operation mode.

[0123] See also Figure 6 , Figure 6 This is another timing diagram of the operation mode switching of a collection system provided in an embodiment of the present application. The specific process is as follows:

[0124] Step S601: The sampling controller is started.

[0125] Step S602: The sampling controller performs initialization parameter configuration.

[0126] Among them, the specific implementation method of step S601-step S602 is the same as the specific implementation method of step S501-step S502. Please refer to the description of the above steps S501-step S502, which will not be repeated here.

[0127] Step S603: The acquisition system enters a low power consumption operation mode.

[0128] Step S604: determine whether the operation mode of the acquisition system needs to be switched to the wake-up determination mode. If yes, proceed to step S605; if no, execute step S603.

[0129] Step S605: When it is determined that the operation mode of the acquisition system needs to be switched to the wake-up determination mode, the acquisition system enters the wake-up determination mode.

[0130] Among them, the specific implementation method of steps S603-S605 is the same as the specific implementation method of steps S505-S507. Please refer to the description of the above steps S505-S507. The process of switching the operating mode of the corresponding acquisition system from the low-power operating mode to the wake-up judgment mode will not be repeated here. Figure 6 The process shown is the specific process of the second case mentioned above.

[0131] Step S605: the acquisition system enters the wake-up judgment mode.

[0132] Step S606: determine whether the electronic device needs to enter an active state, and the electronic device is in an inactive state. If yes, proceed to step S607; if no, proceed to step S603.

[0133] Step S607: When it is determined that the electronic device needs to enter an active state, the electronic device switches from the inactive state to the active state.

[0134] Among them, the specific implementation of steps S605-step S607 is the same as the specific implementation of steps S507-step S509. Please refer to the description of the above steps S507-step S509. The process of switching the operation mode of the corresponding acquisition system from the wake-up judgment mode to the normal operation mode or the low-power operation mode is not repeated here. After the electronic device switches from the inactive state to the active state (step S607), the acquisition system enters the normal operation mode.

[0135] Step S608: The acquisition system enters normal operation mode.

[0136] Step S609: determine whether the electronic device needs to enter an inactive state, and the electronic device is in an active state. If yes, proceed to step S603; if no, proceed to step S608.

[0137] Step S603: When it is determined that the electronic device needs to enter an inactive state, the acquisition system enters a low power consumption operation mode.

[0138] Among them, the specific implementation method of step S608-step S609 and step S603 is the same as the specific implementation method of step S503-step S505. Please refer to the description of the above steps S503-step S505. The process of switching the operating mode of the corresponding acquisition system from the normal operating mode to the low power consumption operating mode will not be repeated here.

[0139] Next, combine Figure 7 , which explains in detail how to switch the acquisition system's operating mode from low-power operation mode to wake-up judgment mode. Figure 7 , Figure 7 This is a schematic diagram of the operation process of an acquisition system provided in an embodiment of the present application in a low-power operation mode. The specific process is as follows:

[0140] Step S701: The sampling controller triggers the power supply control circuit to stop supplying power to the analog circuit and starts the timer module.

[0141] In the embodiment of the present application, after the electronic device enters the inactive state, the acquisition system can enter the low-power operation mode, and then the sampling controller can control the power supply control circuit to cut off the power supply of the analog circuit, that is, the power supply control circuit stops supplying power to the analog circuit. It is understandable that continuously supplying power to the analog circuit for a long time will cause the power consumption of the electronic device to increase, so the power supply to the analog circuit can be stopped first to reduce the power consumption of the electronic device and reduce the power consumption of the electronic device when it is in an inactive state.

[0142] Furthermore, in order to still meet the response speed requirements when the electronic device is in an inactive state, that is, to be able to quickly respond to instructions or operations when the electronic device is in an inactive state, the sampling controller can start the timer module, and the timer module can output a square wave signal with a set frequency and duty cycle, which is used to trigger the power supply control circuit to power on and stop the analog circuit. For example, the square wave signal output by the timer module includes a high-level signal and a low-level signal. When the power supply control circuit receives a high-level signal, it triggers the power supply to power the analog circuit. When the power supply control circuit receives a low-level signal, it triggers the power supply control circuit to stop powering the analog circuit. Then, the analog circuit can trigger the acquisition, signal conditioning and comparison of the analog quantity when it is powered, so as to meet the control of the power supply of the analog circuit by the acquisition system in the low-power operation mode.

[0143] Among them, the frequency of the square wave signal is the frequency of triggering analog quantity acquisition, a pulse period of the square wave signal is the interval between two adjacent triggering analog quantity acquisitions, and the duty cycle of the square wave signal can be the duty cycle of the high-level signal, such as the percentage of the duration of the high-level signal in a pulse period. Among them, the duty cycle can also be the percentage of the duration of the low-level signal in a pulse period, which is not limited in this application, and the timer module can be specifically limited by the program.

[0144] It should be noted that the timer module can run after the sampling controller enters the low-power operation state. It can be understood that the timer module can run at a low-speed clock and can run when the sampling controller core is not awakened, thereby reducing the operating power consumption of the sampling controller and the operating power consumption of the electronic device when it is in an inactive state.

[0145] Step S702: The sampling controller performs low power consumption parameter configuration and starts the wake-up interrupt of the IO module.

[0146] In an embodiment of the present application, before the sampling controller enters the low-power operation state, the sampling controller can perform low-power parameter configuration, for example, parameters such as clock frequency can be configured so that the sampling controller enters the low-power operation state after the parameter configuration is completed. The IO module is a functional module in the sampling controller, which can be used to input and output data. The wake-up interrupt refers to the interrupt program that the IO module can wake up the sampling controller from the low-power operation state after a specific signal appears when the sampling controller is in the low-power operation state, so that the sampling controller switches to the normal operation state. The interrupt program can also be called an IO interrupt. Among them, the sampling controller starts the wake-up interrupt of the IO module, which refers to the program that starts the wake-up interrupt, which can also be called the IO interrupt setting. Furthermore, the IO module can trigger the wake-up of the sampling controller after receiving a specific signal. The specific signal received by the IO module can be a high-level signal output by the comparison circuit.

[0147] Step S703: The sampling controller enters a low power consumption operation state.

[0148] In an embodiment of the present application, the sampling controller can enter a low-power operation state after configuring low-power parameters and starting a wake-up interrupt. Specifically, the sampling controller can continue to operate at the configured clock frequency (low speed) and shut down unused analog function blocks, such as shutting down the ADC module in the sampling controller and keeping the timer module running continuously.

[0149] In a possible implementation, when the timer module is running, it can continuously output a square wave signal with a set duty cycle and frequency to the power supply control circuit. Figure 8As shown, the timer module can output a square wave signal set to 50 Hz (hertz, Hz) and a duty cycle of 5%. Figure 8 Taking the duty cycle as the percentage of the duration of the high-level signal in a pulse period as an example, the square wave signal has a pulse period of 20 milliseconds (ms), the duration of the high-level signal in a pulse period is 1ms, and the duration of the low-level signal is 19ms. The power supply control circuit can enable the power supply to the analog circuit when receiving a high-level signal, and disable the power supply to the analog circuit when receiving a low-level signal. For example, the timer module outputs a square wave with a frequency of 50Hz and a duty cycle of 5%, then the power supply control module can supply power to the analog circuit every 20ms, each power supply lasts for 1ms, and the analog circuit is stopped for the remaining 19ms.

[0150] It should be noted that the present application uses the example of enabling power supply when the square wave level is high. In fact, the power supply can also be enabled when the square wave level is low, which can be determined according to actual circuit parameters, and the present application does not limit this.

[0151] Step S704: Check whether the power supply control circuit supplies power to the analog circuit. If yes, proceed to step S705; if no, execute step S704 again.

[0152] Step S705: the analog quantity sensor collects the initial analog quantity, and the signal conditioning circuit performs signal conditioning processing on the initial analog quantity to obtain a conditioned analog quantity.

[0153] Step S706: the comparison circuit compares the conditioned analog quantity with a preset parameter threshold.

[0154] Step S707: The comparison circuit compares whether the conditioned analog quantity is greater than or equal to a preset parameter threshold. If yes, proceed to step S708; if not, proceed to step S704.

[0155] Step S708: When the conditioned analog quantity compared by the comparison circuit is greater than or equal to the preset parameter threshold, the comparison circuit outputs a specific level signal, and triggers the sampling controller to switch from the low power consumption operation state to the normal operation state through the wake-up interrupt.

[0156] Step S709: the acquisition system enters the wake-up judgment mode.

[0157] In the embodiment of the present application, the timer module in the sampling controller can continuously output a square wave signal of a set frequency and duty cycle to the power supply control circuit when the sampling controller is in a low-power operation state, so that the power supply control circuit supplies power to and stops supplying power to the analog circuit. Furthermore, when the analog circuit is powered, the analog circuit can collect analog quantities, perform signal conditioning processing, and compare.

[0158] Specifically, when the timer module triggers the power supply control circuit to supply power to the analog circuit, the analog quantity sensor can collect the initial analog quantity and transmit it to the signal conditioning circuit for signal conditioning processing to obtain the conditioned analog quantity. The signal conditioning circuit can output the conditioned analog quantity to the comparison circuit. After receiving the conditioned analog quantity, the comparison circuit can compare it with the parameter threshold preset in the comparison circuit, for example, the voltage value of the voltage signal of the conditioned analog quantity can be compared with the preset voltage threshold to obtain a comparison result. Among them, the comparison result includes three situations: the preset voltage threshold is greater than the conditioned analog quantity, the preset voltage threshold is equal to the conditioned analog quantity, and the preset voltage threshold is less than the conditioned analog quantity. Furthermore, the comparison circuit can output a corresponding level signal according to the comparison result. Exemplarily, the comparison circuit can output a high level signal when the comparison result is that the conditioned analog quantity is greater than or equal to the preset voltage threshold, and output a low level signal when the comparison result is that the conditioned analog quantity is less than the preset voltage threshold.

[0159] In some embodiments, the comparison circuit can output a low-level signal when the comparison result is that the conditioned analog quantity is less than or equal to a preset voltage threshold, and output a high-level signal when the comparison result is that the preset voltage threshold is greater than the conditioned analog quantity. The present application does not limit this and can be specifically set according to circuit parameters and usage scenarios.

[0160] Among them, when the comparison result is that the conditioned analog quantity is less than the preset parameter threshold, it can be understood that no analog quantity (analog signal) is generated. This is because the comparison circuit outputs a low level to the IO module. At this time, the IO module does not trigger a wake-up interrupt, does not wake up the sampling controller, and the sampling controller maintains a low-power operation state. For the sampling controller, it is equivalent to no analog signal being generated. The process of comparing the conditioned analog quantity with the preset parameter threshold in the comparison circuit and then comparing whether the conditioned analog quantity is greater than or equal to the preset parameter threshold (step S704-step S707) can be called periodically checking the amplitude of the analog quantity.

[0161] Furthermore, when the comparison result is that the conditioned analog quantity is greater than or equal to the preset parameter threshold, the comparison circuit can output a specific signal to the IO module, for example, the comparison circuit can output a high-level signal to the IO module, that is, output a specific signal in the wake-up interrupt. The wake-up interrupt is triggered by the IO module, so that the sampling controller switches from a low-power operation state to a normal operation state. When the comparison result is that the conditioned analog quantity is less than the preset parameter threshold, the comparison circuit can output a low-level signal to the IO module, the IO module does not trigger the wake-up interrupt, and the sampling controller maintains a low-power operation state. At this time, the acquisition system can maintain a low-power operation mode. After the sampling controller switches from a low-power operation state to a normal operation state, the acquisition system can enter a wake-up judgment mode, and the acquisition system can further collect analog quantities and determine whether the electronic device needs to enter an active state.

[0162] In an embodiment of the present application, when the sampling controller is in a low-power operation state, only the timer module in the sampling controller checks whether the amplitude of the analog quantity is greater than or equal to the preset parameter threshold according to a preset period. On the one hand, the sampling controller is not awakened, and the analog quantity acquisition is triggered by the timer module outputting a square wave signal, and the analog quantity collected by the analog sensor is compared by the comparison circuit. The sampling controller is awakened only when a specific comparison result is obtained, thereby ensuring the response speed of the system while reducing the operating power consumption of the sampling controller core when the electronic device is in an inactive state. On the other hand, the timer module is used to output a square wave signal to trigger the power supply and stop the power supply to the analog circuit, so that the analog circuit can be powered when the analog quantity acquisition operation is executed, and the power supply to the analog circuit can be stopped when the analog quantity acquisition operation is completed, saving the power consumption of powering the analog circuit for a long time.

[0163] Next, combine Fig. 9 , which explains in detail how to switch the operation mode of the acquisition system from the wake-up judgment mode to the low-power operation mode or the normal operation mode. Fig. 9 , Fig. 9 This is a schematic diagram of the operation process of an acquisition system in a wake-up judgment mode provided by an embodiment of the present application. The specific process is as follows:

[0164] Step S901: The sampling controller turns off the wake-up interrupts of the timer module and the IO module, and triggers the power supply control circuit to supply power to the analog circuit.

[0165] In an embodiment of the present application, after the sampling controller switches from a low-power operation state to a normal operation state and the acquisition system switches from a low-power operation mode to a wake-up judgment mode, there is no need for the timer module to continue to output a square wave signal and there is no need for the IO module to execute a wake-up interrupt program. Therefore, the sampling controller can turn off the wake-up interrupts of the timer module and the IO module. At this time, the sampling controller can trigger the power supply control circuit to continuously supply power to the analog circuit, that is, the sampling controller keeps the analog circuit powered continuously.

[0166] It is understandable that when the acquisition system enters the wake-up judgment mode, the analog quantity detected at this time changes, which may be an operation for the analog quantity sensor input. For example, the acquisition system is set on the power button, and a pressure simulation sensor is set on the surface of the power button. When the comparison circuit of the acquisition system compares that the analog quantity amplitude (voltage signal) is greater than or equal to the preset voltage threshold, it can be understood that the power button receives a pressing operation input by the user, and the pressure detected by the pressure simulation sensor changes. Then the acquisition system in the electronic device can further determine whether it is a wake-up operation.

[0167] Step S902: Determine whether the electronic device needs to enter an active state. At this time, the electronic device is in an inactive state. If yes, proceed to step S903; if no, proceed to step S905.

[0168] Step S903: When it is determined that the electronic device needs to enter an active state, the electronic device switches from the inactive state to the active state.

[0169] Step S904: the acquisition system enters normal operation mode.

[0170] Step S905: When it is determined that the electronic device does not need to enter an active state, the acquisition system enters a low power consumption operation mode.

[0171] Specifically, when the analog circuit is powered, the analog sensor can collect the initial analog quantity and output the initial analog quantity to the signal conditioning circuit. The signal conditioning circuit performs signal conditioning processing on the initial analog quantity and outputs the conditioned analog quantity obtained by the signal conditioning processing to the ADC module of the sampling controller. The ADC module can receive the conditioned analog quantity output by the signal conditioning circuit and perform format conversion processing. Furthermore, other digital devices in the sampling controller can determine whether the electronic device needs to enter an active state based on the conditioned analog quantity after format conversion. Other digital devices in the sampling controller can preset programs and algorithms, can calculate the collected analog quantity, and determine whether the electronic device needs to enter an active state based on the calculation results, that is, determine whether it needs to switch from an inactive state to an active state.

[0172] The electronic device may include one or more analog sensors, and the judgment is made according to the analog quantity collected by the one or more analog sensors. For example, the sampling controller may perform calculations and judgments according to the analog quantity collected once by the one or more analog sensors, or the sampling controller may perform calculations and judgments according to the analog quantity collected multiple times by the one or more analog sensors. When the electronic device includes multiple analog sensors, the types of the multiple analog sensors may be the same or different.

[0173] In a possible implementation, when the sampling controller determines that the electronic device needs to enter an active state, the electronic device switches from an inactive state to an active state, such as switching the electronic device from a standby state to a working state. At this time, the acquisition system enters a normal operating mode, that is, the acquisition system switches from a wake-up judgment mode to a normal operating mode. When the sampling controller determines that the electronic device needs to enter an active state, it can trigger the awakening of devices such as SoC that are dormant in an inactive state. Then, the SoC can execute the program of the electronic device in the active state after awakening, such as lighting up the display screen to display a user interface, etc. The process of the sampling controller awakening the SoC can be called the process of the electronic device switching from an inactive state to an active state.

[0174] When the sampling controller determines that the electronic device does not need to enter the active state, the electronic device maintains the inactive state. At this time, the sampling controller determines that the change in the analog quantity on the analog sensor is not a wake-up operation, for example, it may be an invalid operation, then the electronic device can maintain the current inactive state, at this time the sampling controller can switch from the normal operating state to the low power operating state, and the acquisition system can switch from the wake-up judgment mode to the low power operating mode, so as to reduce the power consumption of the electronic device and improve the endurance performance of the electronic device.

[0175] In an embodiment of the present application, when the comparison circuit compares that the analog quantity is greater than a preset parameter threshold, the sampling controller can switch from a low-power operation state to a normal operation state, and can trigger continuous analog quantity acquisition and signal conditioning processing again, and judge whether the electronic device needs to be awakened from an inactive state based on the conditioned analog quantity, and switch the acquisition system from the wake-up judgment mode to the normal operation mode or the low-power operation mode according to the judgment result. On the one hand, further judgment in the wake-up judgment mode can make the wake-up operation judgment more accurate and improve the user experience. On the other hand, only when the comparison result obtained by the comparison circuit is a specific comparison result, the sampling controller is awakened for further operation, which can realize low-power analog quantity acquisition, signal conditioning processing and judgment, thereby reducing the power consumption of the electronic device in an inactive state.

[0176] Next, combine Figure 10-12, the operation mode of the acquisition system is switched from the normal operation mode to the low power operation mode in detail:

[0177] See also Fig.10 , Fig.10 This is a schematic diagram of the operation process of a collection system provided in an embodiment of the present application in a normal operation mode. The specific process is as follows:

[0178] Step S1001: determine whether the electronic device needs to enter an inactive state, and the electronic device is in an active state. If yes, proceed to step S1002; if no, proceed to step S1003.

[0179] Step S1002: When it is determined that the electronic device needs to enter an inactive state, the acquisition system enters a low power consumption operation mode.

[0180] In the embodiment of the present application, after the electronic device switches from the inactive state to the active state, the acquisition system enters the normal operation mode, at which time the sampling controller can periodically determine whether the electronic device needs to enter the inactive state. Exemplarily, the sampling controller can determine whether the electronic device needs to enter the inactive state by detecting instructions related to entering the inactive state, or by comparing the system parameters of the electronic device in the inactive state with the system parameters of the current electronic device, thereby determining whether the electronic device needs to enter the inactive state.

[0181] In some embodiments, after the acquisition system enters the normal operating mode, before determining whether the electronic device needs to enter the inactive state, the sampling controller can trigger the acquisition of analog quantities (for example, generate analog quantity acquisition instructions). This is because it takes a certain amount of time for the electronic device to switch from the inactive state to the active state, that is, after the acquisition system needs to switch from the wake-up judgment mode to the normal operating mode, the electronic device may not have been awakened from the inactive state. Therefore, the sampling controller can trigger the acquisition of analog quantities when the acquisition system enters the normal operating mode. Therefore, after the sampling controller acquires the analog quantities, it can be ensured that the electronic device has entered the active state, and the sampling controller can trigger the execution of operations when the electronic device is in the active state.

[0182] Specifically, the timer module of the sampling controller outputs a high-level signal to the power supply control circuit. When the power supply control circuit is powered, the analog sensor in the acquisition system collects the initial analog quantity and outputs the initial analog quantity to the powered signal conditioning circuit. The signal conditioning circuit can perform signal conditioning processing on the initial analog quantity, and output the processed conditioned analog quantity to the ADC module, which performs analog-to-digital conversion processing, and then the converted digital quantity can be transmitted to other digital devices of the sampling controller for further data processing. After the sampling controller obtains the conditioned analog quantity, the timer module outputs a low-level signal to the power supply control circuit, so that the analog sensor and the signal conditioning circuit are stopped from being powered. The further data processing performed by the sampling controller can specifically run one or more algorithms, or realize preset functions, and can also trigger the sampling controller to interact with the SoC, etc. At this point, the sampling controller completes the acquisition of the analog quantity, and can trigger the judgment whether the electronic device needs to enter an inactive state.

[0183] Among them, the sampling controller determines whether the electronic device needs to enter the inactive state by obtaining analog quantity. Specifically, the sampling controller can control the timer module to output a high-level signal to the power supply control circuit, so that the analog sensor and the signal conditioning circuit are powered. Then, the analog sensor collects the analog quantity, and after the signal conditioning circuit processes the signal and outputs it to the ADC module, the sampling controller can control the timer module to output a low-level signal to the power supply control circuit to stop the power supply to the analog sensor and the signal conditioning circuit.

[0184] In some embodiments, the sampling controller may be built-in to execute the duration and frequency of acquiring an analog quantity, so that the timer module may be periodically controlled to output a high-level signal, and the timer module may be controlled to output a low-level signal after a preset duration.

[0185] In some embodiments, the sampling controller may also periodically control the timer module to output a high-level signal before acquiring an analog quantity, and after acquiring the collected analog quantity, as described above, after receiving the conditioned analog quantity through the ADC module, control the timer module to output a low-level signal.

[0186] Furthermore, when the sampling controller determines that the electronic device needs to enter an inactive state, the sampling controller switches to a low-power operation mode, and the acquisition system enters a low-power operation mode. When the sampling controller determines that the electronic device does not need to enter an inactive state, that is, when the electronic device is still in an active state, the acquisition system maintains a normal operation mode, and the acquisition system can periodically perform operations to obtain analog quantities to detect other operations of the user acting on the analog quantity sensor input, and implement different functions when the electronic device is in an active state.

[0187] Step S1003: If it is determined that the electronic device does not need to enter the inactive state, determine whether the sampling time has arrived. If yes, proceed to step S1004; if not, execute step S1001 again.

[0188] Step S1004: When it is determined that the sampling time has arrived, the power supply control circuit supplies power to the analog circuit.

[0189] Step S1005: The analog quantity sensor collects the initial analog quantity, the signal conditioning circuit performs signal conditioning processing on the initial analog quantity, and outputs the obtained debugging analog quantity to the ADC module.

[0190] Step S1006: The power supply control circuit stops supplying power to the analog circuit.

[0191] Step S1007: The sampling controller performs corresponding operations according to the collected analog quantity.

[0192] In an embodiment of the present application, after the acquisition system enters the normal operation mode, the sampling controller can trigger the acquisition of analog quantity (for example, generate analog quantity acquisition instructions) at a fixed frequency, such as the sampling controller determines that the acquisition of analog quantity is triggered when the acquisition time is reached, and detects whether the operation input by the user is received according to the acquired analog quantity. Furthermore, the electronic device can execute the operation (program) corresponding to the acquired analog quantity in response to the operation input by the user. The sampling controller can control the timer module to output a specific level signal to trigger the acquisition of analog quantity, such as a high level signal or a low level signal, rather than outputting a square wave signal of a specific frequency and duty cycle.

[0193] Among them, the timer module of the sampling controller outputs a specific level signal to trigger the power supply control circuit to power the analog sensor and the signal conditioning circuit, so that the obtained conditioned analog quantity is transmitted to the ADC module of the sampling controller, and then the timer module outputs a specific level signal to trigger the power supply circuit to stop powering the analog sensor and the signal conditioning circuit. The process can be referred to the relevant descriptions such as step S509 and step S905, which will not be repeated here.

[0194] In some embodiments, when the acquisition system is in normal operation mode, the sampling controller can control the level wake-up function of the comparison circuit and the IO module to be in a shielded state, so that the ADC module of the sampling controller can receive the conditioned analog quantity output by the signal conditioning circuit after signal conditioning processing. Among them, the level wake-up function of the comparison circuit and the IO module is in a shielded state, which means that the comparison circuit does not receive the conditioned analog quantity output by the signal conditioning circuit, and it can also mean that the comparison circuit receives the conditioned analog quantity output by the signal conditioning circuit, but does not compare it with the preset parameter threshold.

[0195] When the timer module triggers the power supply control circuit to stop supplying power to the analog circuit, the analog sensor and the signal conditioning circuit stop working to reduce the power consumption of the electronic device. The power supply continues to supply power to the sampling controller, and the sampling controller can continue to work and maintain normal operation. Specifically, the sampling controller can determine whether the operation input by the user is a specific operation or an invalid operation based on the analog quantity received by the ADC module (the digital quantity converted by the ADC module). When the sampling controller determines that the operation input by the user is a specific operation, the sampling controller can execute the corresponding operation (program) in response to the operation input by the user. In the process of the sampling controller executing the corresponding operation (program), it may involve the operation of one or more algorithms, the realization of preset functions, the triggering of the sampling controller to interact with the SoC, and so on.

[0196] Furthermore, the sampling controller may determine again whether the electronic device needs to enter the inactive state, that is, execute the above step S1001 again.

[0197] It should be noted that when the sampling controller is in normal operation, the timer module of the sampling controller can run at a high-speed clock, and the frequency of the analog circuit collecting analog quantities can be higher than the frequency of the sampling controller collecting analog quantities in a low-power operation state. For example, when the sampling controller is in normal operation, the sampling controller can be controlled to obtain analog quantities at a frequency of 100 Hz, that is, the sampling controller triggers to obtain analog quantities every 10 ms.

[0198] In an embodiment of the present application, when the electronic device is in an active state, the specific level signal output by the sampling controller triggers the power supply control circuit to power on and off the analog circuit, thereby ensuring that the sampling controller can periodically detect whether it has received user input operations while reducing the power consumption caused by long-term power supply to the analog circuit, thereby saving the power consumption of the electronic device for analog quantity acquisition and reducing the power consumption of the electronic device in the active state.

[0199] See also Fig.11 , Fig.11 This is another operating flow diagram of a collection system provided by an embodiment of the present application in a normal operating mode. The specific process is as follows:

[0200] Step S1101: The sampling controller starts the timer module and starts the wake-up interrupt of the IO module.

[0201] In the embodiment of the present application, the acquisition system is in the normal operation mode, the sampling controller is in the normal operation state, and the sampling controller can control the timer module to output high-level signals and low-level signals under the triggering of the wake-up interrupt. It should be noted that the wake-up interrupt here does not refer to the interrupt program in which the IO module wakes up the sampling controller from the low-power operation state after a specific signal appears, but the interrupt program in which the IO module triggers the sampling controller to obtain the analog quantity after a specific signal appears. Among them, the interrupt program can also be called an IO interrupt.

[0202] Specifically, the sampling controller can start the wake-up terminals of the timer module and the IO module. The sampling controller starts the timer module, that is, starts the timer to output a square wave signal with a set frequency and duty cycle, which is used to trigger the power supply control circuit to power on and stop the analog circuit. For example, the timer module outputs a high-level signal and a low-level signal. When the power supply control circuit receives a high-level signal, the analog circuit is powered, and when the power supply control circuit receives a low-level signal, the analog circuit is stopped from being powered, so that the analog circuit can perform analog quantity collection when powered. The sampling controller starts the wake-up interrupt of the IO module, which refers to the program that starts the wake-up interrupt, which can also be called the IO interrupt setting. After receiving a specific signal, the IO module can trigger the sampling controller to power the analog circuit through the power supply control circuit. The specific signal received by the IO module can be, for example, a specific level signal output by the comparison circuit, such as a high-level signal.

[0203] In some embodiments, after the acquisition system enters the normal operation mode, before determining whether the electronic device needs to enter the inactive state, the sampling controller can trigger the acquisition of analog quantity acquisition operation (for example, generate an analog quantity acquisition instruction). The specific implementation method of the sampling controller triggering the acquisition of analog quantity can be referred to the relevant description in step S1002, which will not be repeated here.

[0204] It should be noted that the sampling controller starts the timer module and starts the wake-up interrupt of the IO module, which can be understood as setting the timing parameters of the timer module and the wake-up interrupt parameters of the IO module. The sampling controller can first set the timing parameters of the timer module, and then set the wake-up interrupt parameters of the IO module. The sampling controller can also first set the wake-up interrupt parameters of the IO module, and then set the timing parameters of the timer module. The sampling controller can also set the timing parameters of the timer module and the wake-up interrupt parameters of the IO module at the same time. This application does not limit this.

[0205] Step S1102: determine whether the electronic device needs to enter an inactive state, and the electronic device is in an active state. If yes, proceed to step S1103; if no, proceed to step S1104.

[0206] Step S1103: When it is determined that the electronic device needs to enter an inactive state, the acquisition system enters a low power consumption operation mode.

[0207] Among them, the specific implementation method of step S1102-step S1103 is different from the specific implementation method of step S1001-step S1002. Please refer to the description of the above steps S1001-step S1002, which will not be repeated here.

[0208] Step S1104: When it is determined that the electronic device does not need to enter the inactive state, determine whether the power supply control circuit supplies power to the analog circuit. If yes, proceed to step S1105; if not, execute step S1102.

[0209] Step S1105: When the power supply control circuit supplies power to the analog circuit, the analog quantity sensor collects the initial analog quantity, and the signal conditioning circuit performs signal conditioning processing on the initial analog quantity to obtain a conditioned analog quantity.

[0210] Step S1106: the comparison circuit compares the conditioned analog quantity with a preset parameter threshold.

[0211] Step S1107: The comparison circuit compares whether the conditioned analog quantity is greater than or equal to a preset parameter threshold. If yes, proceed to step S1108; if not, execute step S1102.

[0212] In an embodiment of the present application, the timer module in the sampling controller can continuously output a square wave signal of set frequency and duty cycle to the power supply control circuit after startup, and the level of the square wave signal is used to instruct the power supply control circuit to enable and disable power supply. Furthermore, when the analog circuit is powered, the analog circuit can perform analog quantity acquisition, signal conditioning processing and comparison. Among them, the sampling controller can, for example, output a high-level signal at a frequency of 100 Hz, that is, trigger the acquisition of analog quantity every 10 ms.

[0213] Among them, the timer module of the sampling controller outputs a specific level signal to trigger the power supply control circuit to power the analog circuit, so that the analog circuit collects the initial analog quantity, the signal conditioning process obtains the conditioned analog quantity, the comparison circuit compares the conditioned analog quantity with the preset parameter threshold, and then the comparison circuit outputs a specific signal to the IO module to trigger the wake-up interrupt process, which can be referred to the relevant descriptions such as step S507 and step S709, which will not be repeated here. It should be noted that the wake-up interrupt triggered here is different from the wake-up interrupt triggered in step S507 and step S709.

[0214] Among them, the comparison circuit can output a low-level signal to the IO module when the comparison result is that the conditioned analog quantity is less than the preset voltage threshold, and then the sampling controller again executes the step of determining whether the electronic device needs to enter an inactive state (ie, step S1102).

[0215] Step S1108: When the comparison circuit compares that the conditioned analog quantity is greater than or equal to the preset parameter threshold, the comparison circuit outputs a specific level signal, triggers the sampling controller to obtain the analog quantity through the wake-up interrupt, and turns off the wake-up interrupt of the IO module.

[0216] Specifically, taking the high-level signal as a specific signal in the wake-up interrupt as an example, after the comparison circuit outputs a high-level signal, the IO module triggers the wake-up interrupt, triggering the sampling controller to obtain the analog quantity. The sampling controller can first turn off the wake-up interrupt of the IO module. It is understandable that the subsequent analog quantity acquisition will not involve the comparison circuit in the acquisition system and the IO module of the sampling controller, but directly realize the acquisition of analog quantity through the ADC module of the sampling controller.

[0217] Among them, when the comparison result obtained by the comparison circuit is that the conditioned analog quantity is less than the preset voltage threshold, the comparison circuit can output a low-level signal to the IO module. Since the specific signal in the wake-up interrupt is a high-level signal, the sampling controller can trigger the execution of the step of determining whether the electronic device needs to enter an inactive state (i.e., step S1102) until the comparison circuit outputs a high-level signal to the IO module.

[0218] Step S1109: the analog quantity sensor collects the initial analog quantity, the signal conditioning circuit performs signal conditioning processing on the initial analog quantity, and outputs the obtained debugging analog quantity to the ADC module.

[0219] Step S1110: The sampling controller stops supplying power to the analog circuit via the power supply control circuit.

[0220] Step S1111: The sampling controller performs corresponding operations according to the acquired analog quantity.

[0221] The specific implementation of step S1109 can refer to the relevant descriptions in step S509 and step S905, and will not be repeated here.

[0222] Furthermore, the timer module of the sampling controller can trigger the power supply control circuit to stop supplying power to the analog circuit, the analog quantity sensor in the analog circuit stops collecting analog quantities, and the signal conditioning circuit stops performing signal conditioning processing to reduce the power consumption of the electronic device. The power supply continues to supply power to the sampling controller, and the sampling controller can continue to work. Specifically, the sampling controller can determine whether the operation input by the user is a specific operation or an invalid operation based on the analog quantity received by the ADC module. In the case where the sampling controller determines that the operation input by the user is a specific operation, the sampling controller can execute the corresponding operation (program) in response to the operation input by the user. In the process of the sampling controller executing the corresponding operation (program), it may involve the operation of one or more algorithms, the realization of preset functions, the triggering of the sampling controller to interact with the SoC, and so on.

[0223] Step S1112: The sampling controller starts the wake-up interrupt of the IO module.

[0224] Specifically, after the sampling controller has executed the operation (program) corresponding to the specific operation, the sampling controller can start the wake-up interrupt of the IO module again, and can execute the step of determining whether the electronic device needs to enter the inactive state (i.e., step S1102) again. It can be understood that after one round of operations is completed, it returns to step S1102 to implement periodic determination of whether the electronic device needs to enter the inactive state and related operations.

[0225] In an embodiment of the present application, after detecting a change in the analog quantity, the sampling controller can trigger the operation of acquiring the analog quantity by waking up the interrupt. On the one hand, the power consumption of powering the analog circuit for a long time when the electronic device is in an active state can be reduced. On the other hand, compared with the sampling controller periodically controlling the timer module to output a level signal to trigger the execution of the analog quantity acquisition operation when the electronic device is in an active state, it is beneficial to reduce the power consumption of powering the analog circuit when no operation or invalid operation (when the comparison circuit outputs a low level) is received.

[0226] See also Fig.12 , Fig.12 This is another schematic diagram of the operation flow of a collection system provided in an embodiment of the present application in a normal operation mode. The specific process is as follows:

[0227] Step S1201: The sampling controller starts the timer module, performs low power consumption parameter configuration, and starts the wake-up interrupt of the IO module.

[0228] In the embodiment of the present application, the sampling controller can also enter a low-power operation state when the acquisition system is in a normal operation mode, further reducing the power consumption of the electronic device. Specifically, the sampling controller can start the timer module when it is in a normal operation state, and control the timer module to output a square wave signal with a preset frequency and duty cycle after the sampling controller enters the low-power operation state, which is used to trigger the power supply control circuit to supply power to and stop powering the analog circuit.

[0229] Specifically, before the sampling controller enters the low-power operation state, it can also perform low-power parameter settings and start the wake-up interrupt of the IO module. The low-power parameter configuration performed by the sampling controller, for example, can configure parameters such as clock frequency, so that the sampling controller enters the low-power operation state after the parameter configuration is completed. The wake-up interrupt refers to the interrupt program that the IO module can wake up the sampling controller from the low-power operation state after a specific signal appears when the sampling controller is in the low-power operation state, so that the sampling controller switches to the normal operation state. The interrupt program can also be called an IO interrupt. Among them, the sampling controller starts the wake-up interrupt of the IO module, which refers to the program that starts the wake-up interrupt, which can also be called the IO interrupt setting. The IO module can trigger the wake-up of the sampling controller after receiving a specific signal. The specific signal received by the IO module can be, for example, a high-level signal output by a comparison circuit.

[0230] It should be noted that the sampling controller starts the timer module, starts the wake-up interrupt of the IO module, and performs low-power parameter configuration, which can be understood as setting the timing parameters of the timer module, the wake-up interrupt parameters of the IO module, and the low-power parameters of the sampling controller. Starting the timer module and starting the wake-up interrupt of the IO module can be used as part of the low-power parameter configuration. The order of setting these three can be adjusted according to actual conditions, and this application does not limit this. For example, the timing parameters of the timer module are set first, and then the wake-up interrupt parameters of the IO module are set, and finally the low-power parameter settings are performed.

[0231] Step S1202: The sampling controller enters a low power consumption operation state.

[0232] In an embodiment of the present application, the sampling controller can enter a low-power operation state after starting the timer module, configuring the low-power parameters, and starting the wake-up interrupt. Specifically, the sampling controller can continue to operate at the configured clock frequency (low speed) and shut down unused analog function blocks, such as shutting down the ADC module in the sampling controller, and keeping the timer module running continuously. When the timer module is running, it can continuously output a square wave signal with a set duty cycle and frequency to the power supply control circuit. For example, the timer module can output a square wave signal such as Figure 8The setting shown is a square wave signal of 50Hz and 5% duty cycle to the power supply control circuit. The power supply control circuit can enable power supply to the analog circuit when receiving a high level signal, and disable power supply to the analog circuit when receiving a low level signal.

[0233] Step S1203: determine whether the electronic device needs to enter an inactive state, at which point the electronic device is in an active state. If yes, proceed to step S1204; if no, proceed to step S1205.

[0234] Step S1204: When it is determined that the electronic device needs to enter an inactive state, the acquisition system enters a low power consumption operation mode.

[0235] Step S1205: When it is determined that the electronic device does not need to enter the inactive state, determine whether the power supply control circuit supplies power to the analog circuit. If yes, proceed to step S1206; if not, execute step S1203.

[0236] Step S1206: When the power supply control circuit supplies power to the analog circuit, the analog quantity sensor collects the initial analog quantity, and the signal conditioning circuit performs signal conditioning processing on the initial analog quantity to obtain a conditioned analog quantity.

[0237] Step S1207: the comparison circuit compares the conditioned analog quantity with a preset parameter threshold.

[0238] Step S1208: The comparison circuit compares whether the conditioned analog quantity is greater than or equal to a preset parameter threshold. If yes, proceed to step S1209; if not, proceed to step S1203.

[0239] Among them, the specific implementation method of steps S1203 to S1208 is different from the specific implementation method of steps S1102 to S1107. Please refer to the description of the above steps S1102 to S1107, and will not be repeated here.

[0240] It should be noted that after the sampling controller enters the low-power operation state, if it is determined that the electronic device needs to enter the inactive state (i.e., step S1203), the acquisition system can maintain the low-power operation mode, and this process can also be referred to as the acquisition system entering the low-power operation mode (i.e., step S1204). When the sampling controller is in the low-power operation state, the timer module can output a square wave signal with a lower frequency. For example, the timer module can output a square wave signal with a frequency of 50 Hz, which is lower than the frequency (e.g., 100 Hz) of the square wave signal output when the sampling controller is in the normal operation state.

[0241] Step S1209: When the comparison circuit compares that the conditioned analog quantity is greater than or equal to the preset parameter threshold, the comparison circuit outputs a specific level signal, and triggers the sampling controller to switch from the low power consumption operation state to the normal operation state through the wake-up interrupt.

[0242] Step S1210: The sampling controller supplies power to the analog circuit through the power supply control circuit, and disables the wake-up interrupt of the IO module.

[0243] Specifically, the timer module in the sampling controller can continuously output a square wave signal of a set frequency and duty cycle (such as 50Hz, 5%) to the power supply control circuit when the sampling controller is in a low-power operation state. Then, when the analog circuit is powered, the analog circuit can perform analog quantity acquisition, signal conditioning processing and comparison. When the comparison result is that the conditioned analog quantity is greater than or equal to the preset parameter threshold, the comparison circuit outputs a high-level signal to the IO module, and the wake-up interrupt is triggered through the IO module, so that the sampling controller switches from the low-power operation state to the normal operation state. When the comparison result is that the conditioned analog quantity is less than the preset parameter threshold, the comparison circuit outputs a low-level signal to the IO module, the IO module does not trigger the wake-up interrupt, and the sampling controller maintains a low-power operation state.

[0244] After the sampling controller switches from the low-power operation state to the normal operation state, the IO module does not need to execute the wake-up interrupt program. Therefore, the sampling controller can turn off the wake-up interrupt of the IO module. At this time, the sampling controller can control the power supply control circuit to continuously supply power to the analog circuit. For example, the sampling controller can output a high-level signal to control the power supply control circuit to continuously supply power to the analog circuit.

[0245] Step S1211: The analog quantity sensor collects the initial analog quantity, the signal conditioning circuit performs signal conditioning processing on the initial analog quantity, and outputs the obtained debugging analog quantity to the ADC module.

[0246] Step S1212: The sampling controller stops supplying power to the analog circuit via the power supply control circuit.

[0247] Step S1213: The sampling controller performs corresponding operations according to the collected analog quantity.

[0248] Among them, the specific implementation method of step S1211 to step S1213 is different from the specific implementation method of step S1109 to step S1111. Please refer to the description of the above steps S1109 to step S1111, and will not be repeated here.

[0249] Step S1214: The sampling controller starts the wake-up interrupt of the IO module, and the sampling controller enters a low power consumption operation state.

[0250] Specifically, after the sampling controller has executed the corresponding operation (program), the sampling controller can start the wake-up interrupt of the IO module again, and can execute the step of determining whether the electronic device needs to enter the inactive state (i.e., step S1203) again. It can be understood that after one round of operations is completed, it returns to execute step S1203 to achieve periodic determination of whether the electronic device needs to enter the inactive state and related operations.

[0251] In the embodiment of the present application, the sampling controller can detect the change of analog quantity in the low power consumption state, and then wake up the sampling controller from the low power consumption state through the wake-up interrupt, and trigger the analog quantity acquisition operation. On the one hand, it can reduce the power consumption of the analog circuit for a long time when the electronic device is in an active state, and on the other hand, it is conducive to reducing the power consumption of the sampling controller itself, thereby reducing the power consumption of the electronic device in the active state.

[0252] Next, combine Fig.13 , an exemplary description of the specific process of a wake-up method provided in an embodiment of the present application is given. Fig.13 , Fig.13 This is a flowchart of a wake-up method provided in an embodiment of the present application. The specific process is as follows:

[0253] Step S1301: The electronic device is in an inactive state, and generates a wake-up determination instruction in response to a first analog quantity satisfying a first wake-up condition.

[0254] In the embodiment of the present application, the electronic device is a device or apparatus including a collection system, wherein the collection system included in the electronic device can be as follows: Fig.14 As shown, the acquisition system may include a SoC 41 , an MCU 42 , a comparison circuit 43 , a power supply control circuit 44 , a signal conditioning circuit 45 , and a pressure simulation sensor 46 . Fig.14 Also shown is a power supply 47, Fig.14 The functions of the modules shown can be found in Figure 4 The description of the corresponding acquisition system will not be repeated here. Fig.14 In the acquisition system shown, the analog sensor is a pressure analog sensor 46, and the sampling controller is an MCU controller. The timer module 421 in the MCU42 can output a 3.3V square wave signal, that is, the level of the high-level signal is 3.3V, and the level of the low-level signal is 0V. The voltage of the power supply 47 is 3.3V, and the power supply control circuit 44 can convert the input voltage (3.3V) of the power supply 47 into the 2.0V to 3.0V power supply voltage required by the powered analog circuit (the circuit composed of the pressure analog sensor 46, the signal conditioning circuit 45 and the comparison circuit 43).

[0255] The inactive state can be any of the shutdown state, standby state or sleep state. When the electronic device is in the inactive state, the MCU 42 in the electronic device is in a low-power operation state, and the acquisition system is in a low-power operation mode to reduce the power consumption when the electronic device is in the inactive state. The MCU 42 can output the timer module 421 as follows: Figure 8 The square wave signal (frequency is 50Hz, duty cycle is 5%) shown. When the power supply control circuit 44 receives the 3.3V level signal output by the timer module 421, it converts the 3.3V voltage of the power supply 47 into the 2.0V to 3.0V voltage required by the analog circuit, and supplies power to the analog circuit. When the analog circuit is powered, it will continue to collect analog quantities, perform signal conditioning processing and comparison. The high level signal output by the timer module 421 in the MCU42 can be understood as the generated analog quantity collection instruction, and the analog circuit's analog quantity collection, signal conditioning processing and comparison can be understood as responding to the analog quantity collection instruction.

[0256] Exemplarily, the timer module 421 outputs Figure 8 In the square wave signal shown, in one pulse cycle, the duration of the power supply to the analog circuit is 1ms. During this 1ms, the pressure analog sensor 46 in the analog circuit can measure the change in pressure and output the collected initial analog quantity (voltage signal) to the signal conditioning circuit 45. The signal conditioning circuit 45 performs signal conditioning processing on the initial analog quantity to obtain a conditioned analog quantity and outputs it to the comparison circuit 43. The comparison circuit 43 receives the conditioned analog quantity and compares the conditioned analog quantity with a preset parameter threshold, for example, compares the voltage value with a preset voltage threshold, and obtains a comparison result.

[0257] In an embodiment of the present application, the comparison circuit 43 can compare the size of the conditioned analog quantity with the preset parameter threshold value to obtain a comparison result. When the comparison result is that the voltage amplitude (conditioned analog quantity) is greater than or equal to the preset voltage threshold, the comparison circuit 43 can determine that the conditioned analog quantity meets the first wake-up condition, and the conditioned analog quantity can also be called the first analog quantity, that is, the first wake-up condition can be that the conditioned analog quantity is greater than or equal to the preset voltage threshold. Further, in response to the first analog quantity meeting the first wake-up condition, the comparison circuit 43 can output a specific level signal, such as a high level signal, to the IO module 422 in the MCU42. The IO module 422 has started the wake-up interrupt, and can trigger the MCU42 to wake up from the low-power operation state when receiving a specific signal (such as a high level signal), and switch to the normal operation state. At this time, the acquisition system can switch from the low-power operation mode to the wake-up judgment mode. Among them, the output of the high level signal by the above-mentioned comparison circuit 43 can be to generate a wake-up judgment instruction. After the acquisition system enters the wake-up mode, the acquisition system can determine whether the electronic device switches from the inactive state to the active state, and the active state can be the working state of the electronic device.

[0258] It should be noted that the switching of the acquisition system between the above-mentioned low-power operation mode, wake-up judgment mode and normal operation mode can be understood as the MCU42 in the acquisition system can trigger different operations by executing different preset programs, so that the various circuits in the acquisition system can cooperate to perform different operations and complete different tasks under the control of MCU42 to achieve different functions. MCU42 executes different preset programs so that the acquisition system can achieve different functions, which can correspond to the different operation modes of the acquisition system.

[0259] When the electronic device is in an inactive state, the analog circuit acquires a first analog quantity and determines whether the first wake-up condition is met, that is, the acquisition, signal conditioning and comparison process performed by the above-mentioned analog circuit. Since the analog circuit periodically acquires and judges, most of the acquisition and judgment performed are useless. When MCU42 is in a low-power operation state and the acquisition system is in a low-power operation mode, the power consumption of the electronic device can be reduced. When the analog circuit determines that the first analog quantity meets the first wake-up condition based on the acquired analog quantity, it is determined that there may be a user pressing operation on the power button, and the pressing operation may be used to switch the electronic device from an inactive state to an active state. Therefore, the comparison circuit 43 can wake up the MCU42 to further determine whether the user's pressing operation is a wake-up operation and whether the electronic device needs to switch from an inactive state to an active state.

[0260] Step S1302: In response to the wake-up determination instruction, obtain a second analog value, and switch the electronic device from an inactive state to an active state when the second analog value meets a second wake-up condition.

[0261] In the embodiment of the present application, after the MCU42 of the acquisition system is awakened, the MCU42 enters the normal operation mode, and the MCU42 can control the level awakening function of the comparison circuit 43 and the IO module 422 to be in the shielded state, so that the MCU42 can receive the conditioned analog quantity output by the signal conditioning circuit 45 through the ADC module 423. Specifically, the MCU42 can collect the analog quantity of the pressure analog sensor 46 through the ADC module 423 at a set frequency, and the set frequency is, for example, 100Hz. Before each triggering of the analog circuit to collect the analog quantity, the timer module 421 can be controlled to output a high-level signal to the power supply control circuit 44. After receiving the high-level signal, the power supply control circuit 44 can convert the 3.3V voltage input by the power supply 47 into the 2.0-3.0V voltage required by the analog circuit, and power the analog circuit. When the analog circuit is powered, the pressure analog sensor 46 collects the initial analog quantity, the signal conditioning circuit 45 performs signal conditioning processing, and the signal conditioning circuit 45 outputs the conditioned analog quantity to the ADC module 423 of the MCU42. The MCU 42 may control the timer module 421 to output a low-level signal to the power supply control circuit 44 , and the power supply control circuit 44 may stop supplying power to the analog circuit after receiving the low-level signal.

[0262] Among them, MCU42 controls the timer module 421 to output a high-level signal to the power supply control circuit 44, which can be understood as responding to the wake-up judgment instruction, the conditioned analog quantity received by the ADC module 423 can be called the second analog quantity, and the process of the ADC module 423 of MCU42 receiving the conditioned analog quantity can be understood as MCU42 obtaining the second analog quantity.

[0263] After the ADC module 423 receives the second analog quantity, it can determine whether the second wake-up condition is met according to the second analog quantity, wherein the MCU42 can operate on the second analog quantity to determine whether the second wake-up condition is met. For example, when the MCU42 determines that the voltage signal in the second analog quantity is greater than the preset voltage threshold and the duration is greater than the duration threshold, it determines that the second analog quantity meets the second wake-up condition. Among them, the second wake-up condition can be determined according to the analog quantity collected by one or more analog quantity sensors, or it can be determined according to the collected analog quantity and duration, and this application does not limit this.

[0264] Furthermore, when MCU42 determines that the second analog quantity satisfies the second wake-up condition, it can be determined that the user's pressing operation on the input of the analog quantity sensor is a wake-up operation, and then MCU42 can wake up SoC41. After waking up, SoC can execute the program when the electronic device is in an active state, that is, switch the electronic device from an inactive state to an active state, thereby realizing low-power acquisition of analog quantities and waking up the electronic device under specific conditions as needed.

[0265] Exemplarily, in the scheme before optimization, when the electronic device is in an inactive state, the electronic device collects analog quantities by periodically waking up the core of the MCU of the electronic device, such as the core of the sensor control center module, and then the MCU can trigger the collection of analog quantities after entering the normal operating state. Taking the operating voltage of the MCU as 3.3V and the operating current as 10 (milliampere, mA) as an example, the MCU wakes up at a frequency of 50Hz and triggers the acquisition and judgment of analog quantities, then the power consumption of the acquisition system is P = (3.3V*10mA*1ms*50Hz) / 1s = 1.65 milliwatts (mW).

[0266] In the embodiment of the present application, the sampling controller is in the low-power operation mode, and only the timer module 421 of the MCU42 configured in the power button outputs a square wave signal of the set frequency and duty cycle, and the MCU42 is not awakened. In the absence of awakening behavior, the MCU42 is always in a low-power operation state. In the low-power operation state, the operating current of the MCU42 is 30 microamperes (μA), and the acquisition system is in the low-power operation mode. The power consumption of the acquisition system for collecting analog quantities at a frequency of 50Hz is P = (3.3V*30uA*1ms*50Hz) / 1s = 4.95 microwatts (uW). Compared with the solution of periodically waking up the core of the SoC of the electronic device, at least 1.65mW can be saved per second, which is conducive to reducing the power consumption of the electronic device and improving the endurance performance of the electronic device.

[0267] Furthermore, the electronic device can also periodically collect analog quantities. For example, before each collection of analog quantities, MCU42 can control the timer module 421 to output a high-level signal so that the power supply control circuit 44 converts the input voltage of the power supply 47 into the power supply voltage required by the analog circuit, and supplies power to the analog circuit. The analog circuit can collect analog quantities and perform signal conditioning. After the collection is completed (i.e., the ADC module 423 of MCU42 receives the conditioned analog quantity), MCU42 can output a low-level signal so that the power supply control circuit 44 stops supplying power to the analog circuit, and the analog circuit stops collecting analog quantities and signal conditioning, so that the sampling controller can generate different instructions to achieve different functions. For example, if the pressure simulation sensor 46 is configured in the power button, the user can input a shutdown operation through the power button to trigger MCU42 to generate a shutdown instruction, and the user can input a call voice assistant operation to trigger MCU42 to generate a call voice assistant instruction, etc. This application does not limit this.

[0268] In the embodiment of the present application, during the process of analog quantity acquisition, signal conditioning and comparison by the analog circuit, MCU42 is in a low-power operation state, which can reduce the power consumption of MCU42, and the timer module 421 outputs a square wave signal to periodically power the analog circuit, which can reduce the power consumption of powering the analog circuit for a long time, thereby reducing the power consumption of the electronic device in an inactive state. In addition, when the electronic device is in an active state, it can also periodically output a square wave signal to power the analog circuit, which is also conducive to reducing the power consumption of the electronic device in an active state and improving the overall endurance performance of the electronic device.

[0269] It should be noted that in the embodiments of the present application, the timer module 421 and the comparison circuit 43 of MCU42 output level signals, such as high-level signals and low-level signals, are used as examples for explanation. The timer module 421 and the comparison circuit 43 of MCU42 can also output other indication signals, which is not limited in the present application.

[0270] The electronic device 100 may be a mobile phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The electronic device 100 may also be a server, for example, an independent physical server (such as a central server), a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0271] The structure of the electronic device 100 is described below. Fig.15 , Fig.15 It is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of the present application.

[0272] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0273] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0274] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a DSP, a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0275] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0276] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0277] In the embodiment of the present application, the processor 110 may be, for example, Figure 4 In the SoC shown, the processor 110 can be powered off when the electronic device is in an inactive state to reduce the power consumption of the electronic device.

[0278] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0279] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0280] In the embodiment of the present application, the sampling controller and the SoC can communicate through an I2C bus interface to implement the preset functions of the algorithm.

[0281] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0282] In an embodiment of the present application, the power management module 141 can be used to cut off the power supply to the SoC of the electronic device, so that the SoC is powered off when the electronic device is in a state such as shutdown, so as to reduce the power consumption of the electronic device.

[0283] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0284] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0285] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .

[0286] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects so as to automatically turn off the screen to save power. The proximity light sensor 180G may also be used for automatic unlocking and locking of the screen in the leather case mode and the pocket mode.

[0287] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.

[0288] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0289] In an embodiment of the present application, the button 190 may also be a solid-state button, and a pressure sensor 180A, a proximity light sensor 180G, a temperature sensor 180J, etc. may be configured on the surface of the solid-state button so that when the user inputs a pressing operation on the button 190, the corresponding analog quantity can be measured.

[0290] Among them, the button 190 can be a collection system provided by the embodiment of the present application (for example Figure 4) in addition to the SoC (i.e., the processor 110), specifically, it may include an MCU, a comparison circuit, a power supply control circuit, and a signal conditioning circuit. The specific functions and interaction processes of the MCU, the comparison circuit, the power supply control circuit, and the signal conditioning circuit in the acquisition system can be found in the above Figure 4-Figure 12 The relevant description in will not be repeated here.

[0291] In the embodiment of the present application, the software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100. Fig.16 As shown, the layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer. Fig.16 The hardware layer that interacts with the kernel layer is also shown.

[0292] The application layer can include a series of application packages. Fig.16 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0293] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Fig.16 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0294] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0295] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0296] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0297] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0298] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0299] In the embodiment of the present application, the sensor driver can receive the analog quantity measured and sent by the analog quantity sensor of the hardware layer. Optionally, the sensor driver can also receive the hardware interrupt sent by the analog quantity sensor.

[0300] The hardware layer may include various hardware devices. In the embodiment of the present application, the hardware layer may include analog circuits, power supplies, and power supply control circuits. The specific functions and interaction processes of the analog circuits, power supplies, and power supply control circuits can be found in the above Figure 4-Figure 12 The relevant description in will not be repeated here.

[0301] The embodiment of the present application provides a wake-up method. When the electronic device is in an inactive state, the first analog quantity can be collected and the first wake-up condition can be determined only by the analog circuit periodically while being powered. If it is not satisfied, the processor of the electronic device may not be woken up. Then, when the first analog quantity satisfies the first wake-up condition, the second analog quantity is obtained and the second wake-up condition is determined. If it is satisfied, the electronic device is switched from the inactive state to the active state. In this way, the analog circuit is periodically powered, which can reduce power consumption compared to continuous power supply. Before judging that the first analog quantity satisfies the first wake-up condition, the processor of the electronic device is not awakened, which can reduce the power consumption of the processor of the electronic device, thereby improving the endurance performance of the electronic device and realizing low-power wake-up of the electronic device.

[0302] In the embodiments of the present application:

[0303] 1. The frequency at which the sampling controller supplies power to the analog circuit in the low-power operation state can be called the first frequency. The first frequency can be, for example, 50 Hz, corresponding to the frequency of the square wave signal output by the timer module in the sampling controller. The frequency at which the sampling controller supplies power to the analog circuit in the normal operation state can be called the second frequency. The second frequency can be, for example, 100 Hz, which is higher than the first frequency (50 Hz).

[0304] 2. When the electronic device is in an inactive state, the acquisition system is in a low-power operation mode, and the sampling controller is in a low-power operation state, the initial analog quantity periodically collected by the analog sensor can be called the first initial analog quantity. After the first initial analog quantity is transmitted to the signal conditioning circuit, the signal conditioning process can be called signal conditioning, and the conditioned analog quantity obtained can be called the first analog quantity. After the first analog quantity is transmitted to the comparison circuit, the comparison result obtained after comparison can be called the first comparison result. The first comparison result includes the size relationship between the first analog quantity and the preset parameter threshold. For example, the first analog quantity is greater than or equal to the preset parameter threshold, which can be called the first analog quantity meets the first wake-up condition. On the contrary, the first analog quantity is less than the preset parameter threshold, which can be called the first analog quantity does not meet the first wake-up condition. For another example, the first analog quantity is less than the preset parameter threshold, which can be called the first analog quantity meets the first wake-up condition. On the contrary, the first analog quantity is greater than or equal to the preset parameter threshold, which can be called the first analog quantity does not meet the first wake-up condition. This application does not limit this.

[0305] 3. When the electronic device is in an inactive state, the sampling controller is in a normal operating state, and the acquisition system is in a wake-up judgment mode, the initial analog quantity collected by the analog sensor is transmitted to the signal conditioning circuit, and after signal conditioning processing (signal conditioning), the conditioned analog quantity obtained can be called the second analog quantity. After the ADC module of the sampling controller obtains the second analog quantity, the sampling controller determines based on the preset program and algorithm that the electronic device needs to switch from the inactive state to the active state, which can be called the second analog quantity meets the second wake-up condition. Conversely, the sampling controller determines that the electronic device does not need to switch from the inactive state to the active state, which can be called the second analog quantity does not meet the second wake-up condition.

[0306] 4. When the electronic device is in an active state, the sampling controller is in a normal operating state, and the acquisition system is in a normal operating mode, the initial analog quantity collected by the analog sensor is transmitted to the signal conditioning circuit, and after signal conditioning processing (signal conditioning), the conditioned analog quantity obtained can be called the third analog quantity. The frequency at which the analog sensor is powered (the frequency at which the third analog quantity is obtained) can be called the second frequency, and the second frequency can be, for example, 100 Hz, which is greater than the first frequency.

[0307] In a possible implementation, when the electronic device is in an active state, the sampling controller is in a normal operating state, and the acquisition system is in a normal operating mode, before acquiring the third analog quantity, the initial analog quantity periodically collected by the analog quantity sensor when it is powered on can be referred to as the second initial analog quantity. After the second initial analog quantity is transmitted to the signal conditioning circuit, the signal conditioning process can be referred to as signal conditioning, and the conditioned analog quantity obtained can be referred to as the fourth analog quantity. After the fourth analog quantity is transmitted to the comparison circuit, the comparison result obtained after comparison can be referred to as the second comparison result. The second comparison result includes the magnitude relationship between the fourth analog quantity and the preset parameter threshold, for example, the fourth analog quantity is greater than or equal to the preset parameter threshold, which can be referred to as the fourth analog quantity meeting the third wake-up condition, and vice versa, the fourth analog quantity is less than the preset parameter threshold, which can be referred to as the fourth analog quantity not meeting the third wake-up condition. For another example, the fourth analog quantity is less than the preset parameter threshold, which can be referred to as the fourth analog quantity meeting the third wake-up condition, and vice versa, the fourth analog quantity is greater than or equal to the preset parameter threshold, which can be referred to as the fourth analog quantity not meeting the third wake-up condition, and this application does not limit this.

[0308] In another possible implementation, the electronic device is in an active state, and the electronic device does not need to switch to an inactive state. After the sampling controller switches from the normal operating state to the low-power operating state, when the acquisition system is in a normal operating mode, before obtaining the third analog quantity, the initial analog quantity periodically collected by the analog quantity sensor when it is powered can be referred to as the third initial analog quantity. After the third initial analog quantity is transmitted to the signal conditioning circuit, the signal conditioning process can be referred to as signal conditioning, and the conditioned analog quantity obtained can be referred to as the fifth analog quantity. After the fifth analog quantity is transmitted to the comparison circuit, the comparison result obtained after comparison can be referred to as the third comparison result. The third comparison result includes the magnitude relationship between the fifth analog quantity and the preset parameter threshold value. For example, the fifth analog quantity is greater than or equal to the preset parameter threshold value, which can be referred to as the fifth analog quantity meeting the fourth wake-up condition. On the contrary, the fifth analog quantity is less than the preset parameter threshold value, which can be referred to as the fifth analog quantity not meeting the fourth wake-up condition. For another example, the fifth analog quantity is less than the preset parameter threshold value, which can be referred to as the fifth analog quantity meeting the fourth wake-up condition. On the contrary, the fifth analog quantity is greater than or equal to the preset parameter threshold value, which can be referred to as the fifth analog quantity not meeting the fourth wake-up condition. This application does not limit this.

[0309] 5. When the electronic device is in an inactive state, the IO module in the sampling controller receives a specific signal generated by the comparison circuit, which can be called a first wake-up interrupt signal, for example, a high-level signal. The first wake-up interrupt signal is used for the IO module in the sampling controller to trigger a wake-up interrupt (program) that switches the operating state of the sampling controller from a low-power operating state to a normal operating state.

[0310] When the electronic device is in an active state, the IO module in the sampling controller receives a specific signal generated by the comparison circuit, which can be called a second wake-up interrupt signal, for example, a high-level signal. The second wake-up interrupt signal is used by the IO module to trigger the sampling controller to power the analog circuit and obtain the third analog quantity through the ADC module of the sampling controller. The digital-to-analog conversion process performed by the ADC module of the sampling controller on the received analog quantity can be called digital-to-analog conversion.

[0311] When the electronic device is in an active state and the sampling controller switches to a low-power operation state, the specific signal generated by the comparison circuit received by the IO module in the sampling controller can be called a third wake-up interrupt signal, for example, a high-level signal. The third wake-up interrupt signal is used by the IO module to trigger a wake-up interrupt (program) that switches the operation state of the sampling controller from the low-power operation state to the normal operation state.

[0312] 6. After the sampling controller determines that the electronic device needs to switch from an inactive state to an active state, the signal output to wake up the SoC can be called a wake-up signal, and then the SoC runs the program that puts the electronic device in an active state after waking up.

[0313] When the electronic device is in an active state and the acquisition system is in normal operation mode, after the ADC module of the sampling controller receives the third analog quantity, the instruction generated by the sampling controller based on the third analog quantity can be called a control signal. After the control signal can be transmitted to the SoC of the electronic device, the SoC generates different control instructions based on the control signal to achieve different functions, such as generating a control instruction for calling out a voice assistant, so that the electronic device can achieve the function of calling out a voice assistant.

[0314] 7. When the electronic device is in an inactive state, the acquisition system is in a low-power operation mode, and the sampling controller is in a low-power operation state, the signal output by the timer module for triggering the power supply control circuit to supply power to the analog circuit can be called a first power supply signal, and the signal for triggering the power supply control circuit to stop supplying power to the analog circuit can be called a first stop power supply signal. The first power supply signal is, for example, Figure 8 The high level signal in the square wave signal shown, the first power supply stop signal, for example Figure 8 The low level signal in the square wave signal shown.

[0315] When the electronic device is in an inactive state and the acquisition system is in a wake-up judgment mode, the sampling controller is in a normal operating state. The signal output by the timer module for triggering the power supply control circuit to supply power to the analog circuit can be called a second power supply signal, and the signal for triggering the power supply control circuit to stop supplying power to the analog circuit can be called a second stop power supply signal. The second power supply signal can, for example, be a high-level signal output by the timer module (there is no square wave signal at this time). The second stop power supply signal can, for example, be a low-level signal output by the timer module.

[0316] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0317] The embodiments of the present application also provide a computer program product. When the computer program product is executed on an electronic device, the electronic device can implement the steps in the above-mentioned various method embodiments.

[0318] The embodiment of the present application also provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the steps of any method embodiment of the present application. The chip system can be a single chip or a chip module composed of multiple chips.

[0319] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize, such as pictures, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, pictures and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>The controls contained in the interface are specified by nodes such as . A node corresponds to a control or attribute in the interface. After parsing and rendering, the node is presented as user-visible content. In addition, many applications, such as hybrid applications, usually also contain web pages in their interfaces. A web page, also known as a page, can be understood as a special control embedded in the application interface. A web page is source code written in a specific computer language, such as hypertext markup language (HTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to a browser. The specific content contained in a web page is also defined by tags or nodes in the web page source code. For example, HTML is defined by 、 、 <video> 、 <canvas>To define the elements and attributes of a web page.

[0320] The most common form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operation that is displayed in a graphical manner. It can be an icon, window, control or other interface element displayed on the display screen of an electronic device, where a control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other visual interface elements.

[0321] As used in the specification and appended claims of the present application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also include plural expressions, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items. As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrase "when determining..." or "if (stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "when (stated condition or event) is detected" or "in response to detecting (stated condition or event)", depending on the context.

[0322] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can 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 can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0323] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

[0324] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.< / canvas> < / video> < / videoview> < / imgview> < / textview>

Claims

1. An electronic device, characterized in that: The electronic device comprises a system-level chip, a sampling controller and an analog circuit; the analog circuit comprises an analog quantity sensor, a signal conditioning circuit and a comparison circuit; the operating state of the sampling controller comprises a low power consumption operating state and a normal operating state; The sampling controller is configured to periodically power the analog circuit at a first frequency in the low power operation state; The analog quantity sensor is configured to obtain a first initial analog quantity when the analog quantity sensor is powered, and transmit the first initial analog quantity to the signal conditioning circuit; The signal conditioning circuit is configured to, in response to receiving the first initial analog quantity, perform signal conditioning on the first initial analog quantity to obtain a first analog quantity when the signal conditioning circuit is powered; and transmit the first analog quantity to the comparison circuit; The comparison circuit is configured to, in response to receiving the first analog quantity, compare the first analog quantity with a preset parameter threshold to obtain a first comparison result when the comparison circuit is powered; and determining whether the first analog quantity satisfies a first wake-up condition according to the first comparison result; if it is determined that the first analog quantity satisfies the first wake-up condition, generating a first wake-up interrupt signal, and transmitting the first wake-up interrupt signal to the sampling controller; The sampling controller is further configured to, in response to receiving the first wake-up interrupt signal, switch from the low-power operation state to the normal operation state, and obtain a second analog quantity of the electronic device in an inactive state in the normal operation state; and in response to the second analog quantity satisfying a second wake-up condition, transmitting a wake-up signal to the system-on-chip, wherein the wake-up signal is used to switch the electronic device from the inactive state to the active state; Wherein, the first analog quantity is an analog quantity obtained when the sampling controller is in the low power consumption operation state and the analog circuit is powered; The second analog quantity is an analog quantity obtained when the sampling controller is in the normal operating state and the analog circuit is powered.

2. The electronic device according to claim 1, characterized in that: The electronic device further comprises a power supply control circuit; and the sampling controller comprises a timer module and an input-output module; The timer module is configured to periodically output a first power supply signal and a first power supply stop signal to the power supply control circuit at the first frequency when the sampling controller is in a low power consumption operation state; The power supply control circuit is configured to, in response to receiving the first power supply signal, supply power to the analog circuit; and in response to receiving the first power stop signal, stopping power supply to the analog circuit; The input-output module is configured to, in response to receiving the first wake-up interrupt signal, switch the sampling controller from the low-power operation state to the normal operation state.

3. The electronic device according to claim 2, characterized in that: The sampling controller also includes an analog-to-digital conversion module; The timer module is further configured to output a second power supply signal to the power supply control circuit when the sampling controller is in the normal operating state; The power supply control circuit is further configured to, in response to receiving the second power supply signal, supply power to the analog circuit; The analog circuit is further configured to, when powered, obtain the second analog quantity of the electronic device in the inactive state, and transmit the second analog quantity to the sampling controller; The analog-to-digital conversion module is configured to obtain a second analog quantity from the analog circuit and perform analog-to-digital conversion on the second analog quantity; The timer module is further configured to, in response to the analog-to-digital conversion module receiving the second analog value, output a second power supply stop signal to the power supply control circuit; The power supply control circuit is further configured to stop supplying power to the analog circuit in response to receiving the second power supply stop signal.

4. The electronic device according to claim 3, characterized in that: The sampling controller is further configured to, when the electronic device is in the active state, periodically power the analog circuit at a second frequency, wherein the second frequency is greater than the first frequency; The analog circuit is configured to, when powered, obtain a third analog quantity and transmit the third analog quantity to the sampling controller; The sampling controller is further configured to transmit a control signal to the system-on-chip in response to receiving the third analog quantity, wherein the control signal is used to enable the system-on-chip to generate a control instruction.

5. The electronic device according to claim 3, characterized in that: The sampling controller is further configured to periodically power the analog circuit; The analog quantity sensor is further configured to obtain a second initial analog quantity when the analog quantity sensor is powered, and transmit the second initial analog quantity to the signal conditioning circuit; The signal conditioning circuit is configured to, in response to receiving the second initial analog quantity, perform signal conditioning on the second initial analog quantity to obtain a fourth analog quantity when the signal conditioning circuit is powered; and transmitting the fourth analog quantity to the comparison circuit; The comparison circuit is configured to, when the comparison circuit is powered, compare the fourth analog quantity with the preset parameter threshold in response to receiving the fourth analog quantity to obtain a second comparison result; and determining whether the fourth analog quantity satisfies a third wake-up condition according to the second comparison result; generating a second wake-up interrupt signal when it is determined that the fourth analog quantity satisfies the third wake-up condition, and transmitting the second wake-up interrupt signal to the sampling controller; The sampling controller is further configured to, in response to receiving the second wake-up interrupt signal, periodically power the analog circuit at a second frequency, the second frequency being greater than the first frequency; The analog circuit is configured to, when powered, obtain a third analog quantity and transmit the third analog quantity to the sampling controller; The sampling controller is further configured to transmit a control signal to the system-on-chip in response to receiving the third analog quantity, wherein the control signal is used to enable the system-on-chip to generate a control instruction.

6. The electronic device according to claim 3, characterized in that: The sampling controller is further configured to switch from the normal operating state to the low power consumption operating state after the electronic device switches from the inactive state to the active state; In the low power consumption operation state, periodically supplying power to the analog circuit at the first frequency; The analog quantity sensor is further configured to obtain a third initial analog quantity when the analog quantity sensor is powered, and transmit the third initial analog quantity to the signal conditioning circuit; The signal conditioning circuit is configured to, in response to receiving the third initial analog quantity, perform signal conditioning on the third initial analog quantity to obtain a fifth analog quantity when the signal conditioning circuit is powered; and transmitting the fifth analog quantity to the comparison circuit; The comparison circuit is configured to, in response to receiving the fifth analog quantity, compare the fifth analog quantity with the preset parameter threshold to obtain a third comparison result when the comparison circuit is powered; and determine whether the fifth analog quantity meets a fourth wake-up condition according to the third comparison result; and generate a third wake-up interrupt signal when it is determined that the fifth analog quantity meets the fourth wake-up condition, and transmit the third wake-up interrupt signal to the sampling controller; The sampling controller is further configured to, in response to receiving the third wake-up interrupt signal, switch from the low-power operation state to the normal operation state, and periodically power the analog circuit at a second frequency in the normal operation state, wherein the second frequency is greater than the first frequency; The analog circuit is configured to, when powered, obtain a third analog quantity and transmit the third analog quantity to the sampling controller; The sampling controller is further configured to transmit a control signal to the system-on-chip in response to receiving the third analog quantity, wherein the control signal is used to enable the system-on-chip to generate a control instruction corresponding to the control signal.

7. A method for waking up an electronic device, characterized in that: The method is applied to an electronic device, and the method comprises: In response to the sampling controller in the low power consumption operation state periodically supplying power to the analog circuit at a first frequency, obtaining a first analog quantity of the electronic device in an inactive state; Compare the first analog quantity with a preset parameter threshold to obtain a first comparison result; determine whether the first analog quantity meets a first wake-up condition according to the first comparison result; When it is determined that the first analog quantity satisfies the first wake-up condition, controlling the sampling controller to switch from the low power consumption operation state to the normal operation state; Acquire a second analog value of the sampling controller in the normal operating state, and switch the electronic device from the inactive state to the active state when the second analog value satisfies a second wake-up condition; Among them, the first analog quantity is an analog quantity obtained when the sampling controller is in the low-power operation state and the analog circuit is powered; the second analog quantity is an analog quantity obtained when the sampling controller is in the normal operation state and the analog circuit is powered.

8. The method according to claim 7, characterized in that The method further comprises: Acquiring a third analog quantity of the electronic device in the active state; A control instruction is generated based on the third analog quantity.

9. The method according to claim 8, characterized in that Before obtaining the third analog quantity indicating that the electronic device is in the active state, the method further includes: In response to the sampling controller in the normal operating state periodically powering the analog circuit, a fourth analog quantity of the electronic device in the active state is acquired; In a case where it is determined that the fourth analog quantity satisfies the third wake-up condition, a step of acquiring a third analog quantity of the electronic device in the active state is performed.

10. The method according to claim 8, characterized in that Before obtaining the third analog quantity indicating that the electronic device is in the active state, the method further includes: After the electronic device switches from the inactive state to the active state, controlling the sampling controller to switch from the normal operating state to the low power consumption operating state; In response to the sampling controller in the low-power operation state periodically supplying power to the analog circuit at the first frequency, acquiring a fifth analog quantity of the electronic device in the active state; When it is determined that the fifth analog quantity satisfies the fourth wake-up condition, controlling the sampling controller to switch from the low power consumption operation state to the normal operation state; In response to the sampling controller in the normal operating state periodically powering the analog circuit at a second frequency, the step of acquiring the third analog quantity of the electronic device in the active state is performed, and the second frequency is greater than the first frequency.

11. An electronic device, characterized in that: One or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, wherein the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the method as described in any one of claims 7-10 is executed.

12. An electronic device, characterized in that: The method comprises one or more functional modules, wherein the one or more functional modules are used to execute the method according to any one of claims 7 to 10.

13. A chip system, the chip system is applied to electronic equipment, the chip system comprises one or more processors, characterized in that: The processor is configured to call computer instructions so as to execute the method according to any one of claims 7 to 10.

14. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the method according to any one of claims 7 to 10 is executed.

Citation Information

Patent Citations

  • Wake-up circuit of chip and control method thereof, and chip

    CN112306214A

  • Method, device and computer readable medium of communication

    WO2022016543A1