Electronic device, power supply management method and system on chip
By designing electronic devices with independent power domains in mobile terminal devices, the system usage time and user experience problems caused by limited battery capacity are solved, and the effect of low power consumption and fast unlocking is achieved.
Patent Information
- Application Number
- CN202311000466.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-09
- Publication Date
- 2025-02-18
AI Technical Summary
In mobile terminal devices, how to achieve longer system usage time and better user experience under the conditions of limited battery capacity, especially in terms of power-on unlocking.
An electronic device is designed, including a system-on-chip SOC, a power management unit PMU, a sensor module and a peripheral, and there are independent first and second power domains in the SOC. The PMU supplies power to these power domains respectively, and when receiving the SOC's shutdown command, the power domain is controlled to enter different power supply states for low power consumption and fast unlocking.
Through the independently powered power domain design, the sensor module remains powered on after shutdown, while other modules are powered off, so that the biometric information collection function is quickly enabled when powered on, simplifying user unlocking operations, improving unlocking efficiency and user experience .
Smart Images

Figure CN119472957A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of system on chip (SOC), and in particular to an electronic device, a power supply management method and a system on chip. Background Art
[0002] Since its development, integrated circuits (ICs) have gone through electron tubes, transistors, small and medium-scale integrated circuits, and very large-scale integrated circuits. The current mainstream chip solution, namely system on chip (SOC), is also increasingly developing in the direction of pursuing higher integration, faster chip speed, and lower chip power consumption.
[0003] When SOC is used in mobile devices, such as notebooks, smart phones, etc., it can provide compact, energy-saving general data processing and communication functions. However, considering that mobile devices usually come from a limited power source (e.g., a battery), how to reduce system power consumption is a key design consideration for SOCs used in mobile devices.
[0004] For example, in the "standby" mode or other low-power modes of a mobile terminal, on the one hand, it is expected that the SOC will be powered off to eliminate leakage current loss and increase operating time; on the other hand, the SOC needs to retain some standby functions to ensure user experience. More specifically, for example, in the fingerprint power-on unlocking scenario, if the fingerprint unlocking related functions are continuously turned on after shutting down, the power consumption of the device will increase. However, if the fingerprint unlocking related functions are turned off after shutting down, it will take a long time or even more times for the user to perform fingerprint unlocking after booting up, resulting in a poor user experience.
[0005] Therefore, how to obtain longer system usage time and better user experience under the condition of limited battery capacity, especially how to propose a low-power, better experience startup and unlocking solution for mobile terminal products, is an urgent problem to be solved. Summary of the invention
[0006] The embodiments of the present application provide an electronic device, a power supply management method and a system on chip, which improve the unlocking efficiency and convenience of the electronic device after it is turned on while ensuring low power consumption.
[0007] In a first aspect, an embodiment of the present application provides an electronic device, which may include a system on chip SOC, a power management unit PMU, a sensor module and a peripheral device, wherein the SOC includes a first power domain and a second power domain, wherein:
[0008] The PMU is used to respectively supply power to the first power domain and the second power domain in the SOC; the power supply between the first power domain and the second power domain is independent of each other;
[0009] The SOC is used to communicate with the sensor module through the first power domain, and to communicate with the peripheral device through the second power domain, and the sensor module is used to collect biometric information;
[0010] The PMU is further used to control the first power domain to enter a first power supply state and control the second power domain to enter a second power supply state upon receiving a first shutdown command sent by the SOC, wherein the first power supply state is a power-on state and the second power supply state is a power-off state.
[0011] An embodiment of the present application provides a power management design scheme for a SOC in an electronic device, specifically including docking with a sensor module through an independent power domain in the SOC, and docking with other functional modules through different power domains. On the one hand, the security of biometric unlocking can be improved by directly controlling the sensor module through the SOC. On the other hand, the power domain in the SOC that communicates with the sensor module is independently powered, so that the sensor module and other modules do not interfere with each other. The sensor module is used to collect biometric information (such as fingerprint information, face recognition information or iris recognition information, etc.), which can be used to unlock, power on, and perform other operations on the electronic device. When the user turns off the computer, the power domain where the module connected to the sensor module is located can continue to be powered on, while other modules can be powered off. In this way, when the user turns on the computer again, since the power domain corresponding to the sensor module remains powered on, the user can immediately enable related functions such as biometric information collection when entering biometric information at startup, thereby eliminating the need for the user to repeatedly enter the information (such as fingerprints, faces, or irises, etc.), simplifying the user unlocking operation steps, accelerating the subsequent biometric identification process, and improving the efficiency of restarting and unlocking after shutdown. That is, whether the device in the embodiment of the present application is in the power-on, standby, or power-off states, the sensor module can provide related services in real time, such as fingerprint / face / iris unlocking, fingerprint / face / iris startup, or fingerprint / face / iris payment, etc., which not only ensures the low power consumption of the device, accelerates the speed of the startup and unlocking service, but also further improves the user experience. Compared with the prior art, the embodiments of the present application do not require additional peripherals, reduce the chip area, and decouple the power domains for communication between the SOC and the sensor module and other peripherals. That is, in the SOC, the power domains corresponding to the sensor module and the power domains corresponding to other modules are powered independently of each other and can be powered on or off separately according to actual needs, which not only ensures low power consumption of the device, but also enables quick startup and unlocking after shutdown.
[0012] In a possible implementation, the sensor module includes a sensor module, and the device further includes a power button; the power button is a physical power button, and the sensor module is arranged on the physical power button.
[0013] In the embodiment of the present application, when the power button is a physical button and the sensor module is arranged on the physical power button, the power-on and fingerprint collection can be realized synchronously, and the fingerprint comparison and identification function can be quickly performed after the power-on. In this way, the user only needs to press the power button once to achieve the purpose of power-on unlocking. For example, since the sensor module is arranged on the physical power button, when the user presses the physical power button to power on, the fingerprint module can also synchronously collect the user's fingerprint information, that is, one operation (user power-on) triggers two processes (power-on process and user fingerprint collection process). In summary, when the user turns off the computer, the power domain where the module docked with the fingerprint module is located can continue to be powered on, while other modules can be powered off. In this way, when the user turns on the computer again, since the power domain corresponding to the fingerprint module remains powered on, the user can immediately enable fingerprint information collection and other related functions when entering fingerprint information at power-on, thereby eliminating the need for the user to repeatedly press the fingerprint multiple times, simplifying the user unlocking operation steps, accelerating the subsequent fingerprint identification process, and improving the fingerprint unlocking efficiency after restarting the computer after shutting down. That is, no matter the device in the embodiment of the present application is in the power-on, standby or power-off state, the fingerprint module can provide relevant services in real time, such as fingerprint unlocking, fingerprint power-on, or fingerprint payment, which not only ensures the low power consumption of the device, accelerates the speed of fingerprint services, but also further improves the user experience. Compared with the prior art, the embodiment of the present application does not need to add peripherals, reduces the chip area, and decouples the power domain of the communication between the SOC and the fingerprint module and other peripherals, that is, in the SOC, the power domain corresponding to the fingerprint module and the power domain corresponding to other modules are independent of each other, and can be powered on or off separately according to actual needs, which not only ensures the low power consumption of the device, but also realizes the function of fast one-key fingerprint power-on and unlocking after shutdown.
[0014] In a possible implementation, the sensor module includes a fingerprint module, and the fingerprint module is arranged below the screen of the electronic device or on the back of the electronic device, or on the side of the electronic device. In an embodiment of the present application, the user can press the power button with one of the fingers to turn on the device, and collect the fingerprint information of the other finger of the user through the fingerprint module below, on the back, on the left or on the right side of the screen, thereby achieving the purpose of accelerating fingerprint unlocking. It is understandable that the user's fingerprint information can also be collected through the fingerprint module below, on the back, on the left or on the right side of the screen, and then the device is turned on by pressing the power button. Since the fingerprint information is collected and cached in advance, even if the device is turned on later, the unlocking process after the power-on can also be accelerated.
[0015] In a possible implementation, the device also includes a power button; the SOC is further used to receive a power-on operation of the user on the power button at a first moment t1, and send a first power-on command to the PMU; the PMU is used to control the second power domain to enter a third power supply state after receiving the first power-on command, wherein the third power supply state is a power-on state; the SOC is further used to power on in the third power supply state through the second power domain.
[0016] In the embodiment of the present application, after the user turns on the device, the SOC can notify the PMU to control the power domain (i.e., the second power supply) that is in a power-off state when the device is turned off to power on, and the SOC enters the power-on process based on this. That is, when the device is turned off, the power domain is powered off to ensure low power consumption of the device in the power-off state, and when the device is turned on, the power domain is powered on to support normal startup of the device.
[0017] In a possible implementation, the power button is a physical power button, and the sensor module is disposed on the physical power button; the sensor module is further used to collect the user's biometric information at a first moment t2, and send the biometric information to the first power domain in the SOC; wherein t2 is a moment before the second power domain enters a power-on state; the SOC is further used to receive the biometric information through the first power domain, and cache the biometric information in the first power domain. Optionally, t1 and t2 are the same moment, or the time difference between t1 and t2 is less than a preset threshold.
[0018] In the embodiment of the present application, since the unlocking of the electronic device involves not only the collection of biometric information, but also the identification of biometric information, that is, comparing the collected biometric information with the pre-stored biometric template, it is necessary to cache the collected biometric information first, and because the first power domain is always in the power-on state, and the second power domain is in the power-off state, the collection and caching of the user's biometric information can occur before the second power domain is powered on, and after the second power domain is powered on, the collected cached biometric information is compared with the template, thereby completing the entire biometric information collection and identification process. Optionally, when the sensor module is a fingerprint module and the biometric information includes fingerprint information, there may be a small time difference between the user's fingerprint touching the physical power button and the actual successful pressing, because t1 and t2 may be the same time, or there may be a small time difference.
[0019] In a possible implementation, the SOC is also used to compare the biometric information cached in the first power domain with the biometric template pre-stored in the second power domain after the power-on is successful. If a match is successful, it is determined that the biometric unlocking is successful.
[0020] In the embodiment of the present application, the biometric template is cached in the second power domain. When the electronic device is turned off, since the second power domain is in a power-off state, after it is turned on again, the biometric template needs to wait for the second power domain to be powered on and started before it can be identified with the collected biometric information. That is, the biometric information entered by the user during the boot process is collected and cached through the first power domain that is not powered off, and then the biometric template is obtained after the second power domain is powered on after booting, and the biometric information is identified and matched with the cached biometric information. If the match is successful, the unlocking is successful, and the user only needs to enter it once to successfully unlock. In summary, when the device is in standby or shutdown state, other modules or peripherals except the sensor module can be powered off, while the sensor module remains powered on. After the user turns on the device, the sensor module and related functional modules that are always powered on can quickly collect and cache the user's biometric information, so that the collected and cached biometric information can be compared with the biometric template in the system after the device is actually turned on. This allows the user to easily turn on and unlock the device with just one press, which not only ensures low power consumption but also enables fast unlocking.
[0021] In a possible implementation manner, the biometric template is pre-stored in a secure area trustzone in the second power domain.
[0022] In the embodiment of the present application, the biometric template is pre-stored in a secure area in the second power domain, so that the biometric template is stored in a more secure space, ensuring the security of the user's biometric unlocking function.
[0023] In one possible implementation, the PMU is specifically used to: supply power to the first power domain through a first power pin set; and supply power to the second power domain through a second power pin set; the first pin set or the second pin set both include multiple power pins, and each power pin is used to provide a different voltage value.
[0024] In the embodiment of the present application, different power domains in the SOC are provided by different pins of the PMU, and one power domain may correspond to multiple pins to provide different power supply voltage requirements of related modules in the power domain.
[0025] In one possible implementation, the first power supply pin set includes a first pin, a second pin and a third pin, the first pin is used to provide a first voltage, the second pin is used to provide a second voltage, and the third pin provides a third voltage; wherein the values of the first voltage, the second voltage and the third voltage are different.
[0026] In an embodiment of the present application, for example, the first power domain may involve control signals, data signals, clock signals, etc., and the power supply voltages required by these signals are different. Therefore, the PMU can provide different voltages for the first power domain through different pins.
[0027] In one possible implementation, the second power supply pin set includes a fourth pin, a fifth pin and a sixth pin, the fourth pin is used to provide a fourth voltage, the fifth pin is used to provide a fifth voltage, and the sixth pin provides a sixth voltage; wherein the values of the fourth voltage, the fifth voltage and the sixth voltage are different.
[0028] In an embodiment of the present application, for example, the second power domain may also involve control signals, data signals, clock signals, etc., and the power supply voltages required for these signals are different. Therefore, the PMU can provide different voltages for the second power domain through different pins.
[0029] In a possible implementation, the SOC is further used to send the first shutdown command to the PMU through a system power management interface SPMI; or, an input / output IO hard line is provided between the SOC and the PMU, and the SOC is further used to send the first shutdown command to the PMU through the IO hard line.
[0030] In the embodiment of the present application, commands can be transmitted between the SOC and the PMU through a common SPMI interface, or an IO interface dedicated to transmitting shutdown and startup commands can be added between the SOC and the PMU to further improve the efficiency of shutdown and startup, as well as unlocking after startup. For example, when the IO hard line is used for command transmission, the command can be issued quickly, which is equivalent to a quick IO interface dedicated to controlling the power on and off.
[0031] In a possible implementation manner, the SOC is further configured to: send the first power-on command to the PMU via an SPMI line; or send the first power-on command to the PMU via an IO hard line.
[0032] In the embodiment of the present application, commands can be transmitted between the SOC and the PMU through a common SPMI interface, or an IO interface dedicated to transmitting shutdown and startup commands can be added between the SOC and the PMU to further improve the efficiency of shutdown and startup, as well as unlocking after startup. For example, when the IO hard line is used for command transmission, the command can be issued quickly, which is equivalent to a quick IO interface dedicated to controlling the power on and off.
[0033] In a possible implementation, the SOC is further configured to: receive a shutdown instruction sent by a user, determine whether biometric feature information is currently entered, and send the first shutdown command to the PMU if the biometric feature information is currently entered.
[0034] In the embodiment of the present application, when the SOC receives a shutdown instruction from the user, it determines whether biometric information has been entered into the system. If it has been entered, the first shutdown command in the embodiment of the present application is executed.
[0035] In a possible implementation, the SOC is further used to: send a second shutdown command to the PMU if no biometric information is currently entered; and the PMU is further used to receive the second shutdown command and control both the first power domain and the second power domain to enter a power-off state.
[0036] In an embodiment of the present application, when the SOC receives a shutdown instruction from the user, it determines whether biometric information has been entered into the system. If it has not been entered, or the biometric unlocking function is not enabled, another shutdown command is executed, that is, the power domain of the entire SOC is powered off to save power consumption of the electronic device.
[0037] In one possible implementation, when the first power domain is in the first power supply state and the second power domain is in the second power supply state, the SOC is further used to: send a second shutdown command to the PMU when no biometric information is received within a preset time period; and the PMU is further used to receive the second shutdown command to control both the first power domain and the second power domain to enter a power-off state.
[0038] In the embodiment of the present application, in order to save power consumption of the electronic device, it can be set that when the electronic device does not receive biometric information within a certain period of time, the first power domain that has not been powered off can be further powered off, while the second power domain that has been powered off can continue to be powered off. For example, when the user is in the evening rest period, the electronic device may not need to be used or operated for up to seven or eight hours or even longer. In this way, powering off all related power domains can further effectively reduce the power consumption of the device without affecting the user experience.
[0039] In one possible implementation, the device also includes a power button; the PMU is also used to receive a second power-on command triggered by the power button when both the first power domain and the second power domain are in a power-off state, preferentially control the first power domain to enter the first power supply state, and further control the second power domain to enter a third power supply state, wherein the third power supply state is a power-on state.
[0040] In the embodiment of the present application, since the first power domain and the second power domain are powered separately and independently, when the device is completely shut down and powered off and then restarted, the PMU can give priority to controlling the power on of the first power domain, so that functions such as collecting and caching biometric information can be executed first, and the power domain corresponding to the subsequent biometric identification and comparison functions can be powered on relatively later, because the first function involved in the biometric unlocking function is usually the biometric information collection. In addition, since the biometric collection is also related to the user's experience in the biometric unlocking function (because after the user's biometrics are collected first, the user does not need to enter the biometric information multiple times during the biometric unlocking process, for example, there is no need to enter fingerprints multiple times), and after the collection, the process of comparing and identifying the biometrics in the device is imperceptible to the user. In summary, the embodiment of the present application gives priority to powering on the first power domain that interacts with the sensor module, which can not only accelerate the biometric unlocking, but also improve the user experience.
[0041] In a possible implementation, the device further includes a double data rate synchronous dynamic random access memory DDR, and the SOC further includes a third power domain; the PMU is further used to supply power to the third power domain; and the SOC is further used to communicate with the DDR through the third power domain.
[0042] In the embodiment of the present application, the DDR in the present application can be separated and decoupled from the first power domain and the second power domain, and powered independently to meet the power supply voltage requirements in different functions and scenarios.
[0043] In a possible implementation, the PMU is further used to supply power to the sensor module, peripheral device or DDR; or the device further includes an external power supply, and the external power supply is used to supply power to the sensor module, peripheral device or DDR.
[0044] In the embodiment of the present application, whether it is a sensor module, peripheral or DDR, it can be powered directly by the PMU or by other power supply devices, and the SOC mainly communicates with the above-mentioned devices through the first power domain, the second power domain or the third power domain.
[0045] In a second aspect, an embodiment of the present application provides a power supply management method, which can be applied to an electronic device, wherein the electronic device includes a system on chip SOC, a power management unit PMU, a sensor module and a peripheral device, and the SOC includes a first power domain and a second power domain; the method includes: the PMU supplies power to the first power domain and the second power domain in the SOC respectively; the power supply between the first power domain and the second power domain is independent of each other; the SOC communicates with the sensor module through the first power domain, and communicates with the peripheral device through the second power domain, and the sensor module is used to collect biometric information; when the PMU receives a first shutdown command sent by the SOC, the PMU controls the first power domain to enter a first power supply state, and controls the second power domain to enter a second power supply state, wherein the first power supply state is a power-on state, and the second power supply state is a power-off state.
[0046] In a possible implementation, the device also includes a power button; the method also includes: the SOC receives a power-on operation of the user on the power button at a first moment t1, and sends a first power-on command to the PMU; after receiving the first power-on command, the PMU controls the second power domain to enter a third power supply state, wherein the third power supply state is a power-on state; and the SOC powers on in the third power supply state through the second power domain.
[0047] In a possible implementation, the power button is a physical power button, and the sensor module is disposed on the physical power button; the method further includes: collecting biometric information of the user at a first moment t2 through the sensor module, and sending the biometric information to the first power domain in the SOC; wherein t2 is a moment before the second power domain enters a power-on state. Optionally, t1 and t2 are the same moment, or the time difference between t1 and t2 is less than a preset threshold; the SOC receives the biometric information through the first power domain, and caches the biometric information in the first power domain.
[0048] In a possible implementation, the method further includes: when the power-on is successful, the SOC compares the biometric information cached in the first power domain with the biometric template pre-stored in the second power domain, and if a match is successful, it is determined that the biometric unlocking is successful.
[0049] In a possible implementation manner, the biometric template is pre-stored in a secure area trustzone in the second power domain.
[0050] In a possible implementation, the PMU supplies power to the first power domain and the second power domain in the SOC respectively, including: the PMU supplies power to the first power domain through a first power pin set, and supplies power to the second power domain through a second power pin set; the first pin set or the second pin set includes multiple power pins, and each power pin is used to provide a different voltage value.
[0051] In a possible implementation, the method further includes: the SOC sending the first shutdown command to the PMU through a system power management interface SPMI; or, the SOC sending the first shutdown command to the PMU through an input / output IO hard line; the IO hard line is a hard line set between the SOC and the PMU.
[0052] In a possible implementation, the device also includes a power button; the method also includes: the SOC receives a shutdown instruction sent by the power button, and determines whether biometric information is currently entered; if the biometric information has been entered, the SOC sends the first shutdown command to the PMU.
[0053] In a possible implementation, the method further includes: if biometric information is not currently entered, the SOC sends a second shutdown command to the PMU; the PMU receives the second shutdown command and controls both the first power domain and the second power domain to enter a power-off state.
[0054] In a possible implementation, when the first power domain is in the first power supply state and the second power domain is in the second power supply state; the method also includes: when no biometric information is received within a preset time period, the SOC sends a second shutdown command to the PMU; and the PMU receives the second shutdown command and controls the first power domain to enter a power-off state.
[0055] In a possible implementation, the device also includes a power button; the method also includes: when the first power domain and the second power domain are both in a power-off state, the PMU receives a second power-on command triggered by the power button, preferentially controls the first power domain to enter the first power supply state, and further controls the second power domain to enter a third power supply state, wherein the third power supply state is a power-on state.
[0056] In a possible implementation, the device further includes a double data rate synchronous dynamic random access memory DDR, and the SOC further includes a third power domain; the method further includes: the PMU supplies power to the third power domain; and the SOC communicates with the DDR through the third power domain.
[0057] In a possible implementation, the PMU is further used to supply power to the sensor module, peripheral device or DDR; or the device further includes an external power supply, and the external power supply is used to supply power to the sensor module, peripheral device or DDR.
[0058] In the third aspect, an embodiment of the present application provides a system on chip SOC, which may include a first power domain and a second power domain, a first power supply interface, and a second power supply interface; the SOC is connected to a power management unit PMU, a sensor module, and a peripheral device, wherein the first power supply interface is used for the PMU to power the first power domain, and the first power domain is used to communicate with the sensor module, and the sensor module is used to collect biometric information; the second power supply interface is used for the PMU to power the second power domain; the second power domain is used to communicate with the peripheral device; the power supply between the first power domain and the second power domain is independent of each other; the first power domain is also used to enter a first power supply state under the control of the PMU when the PMU receives a first shutdown command, and the first power supply state is a power-on state; the second power domain is also used to enter a second power supply state under the control of the PMU when the PMU receives a first shutdown command, and the second power supply state is a power-off state.
[0059] In a possible implementation, the SOC is also connected to a power button; the second power domain is also used to enter a third power supply state under the control of the PMU after the PMU receives the first power-on command, and the third power supply state is a power-on state. The first power-on command is sent to the PMU by the SOC after receiving a power-on operation of the user on the power button at the first moment t1.
[0060] In a possible implementation, the power button is a physical power button, and the sensor module is disposed on the physical power button; the first power domain is further used to receive the user's biometric information collected by the sensor module at the first time t2, and cache the biometric information, wherein t2 is the time before the second power domain enters the power-on state. Optionally, t1 and t2 are the same time, or the time difference between t1 and t2 is less than a preset threshold.
[0061] In a possible implementation, the first power domain is also used to compare the cached biometric information with the biometric template pre-stored in the second power domain after the electronic device is successfully powered on. If a match is successful, it is determined that the biometric unlocking is successful.
[0062] In a possible implementation manner, the biometric template is pre-stored in a secure area trustzone in the second power domain.
[0063] In a possible implementation, the PMU connects the first power supply interface through a first power supply pin set to supply power to the first power domain; the PMU connects the second power supply interface through a second power supply pin set to supply power to the second power domain; the first pin set or the second pin set both include multiple power supply pins, and each power supply pin is used to provide a different voltage value.
[0064] In a possible implementation, the first shutdown command is sent by the SOC to the PMU via SPMI; or, an input / output (IO) hard line is provided between the SOC and the PMU, and the first shutdown command is sent by the SOC to the PMU via the IO hard line.
[0065] In a possible implementation, the first shutdown command is sent to the PMU by the SOC when the SOC receives a shutdown instruction sent by the user and determines that the biometric information has been currently entered.
[0066] In a possible implementation, the first power domain and the second power domain are also used to enter a power-off state under the control of the PMU when the PMU receives the second shutdown command; the second shutdown command is sent to the PMU by the SOC when it receives a shutdown instruction sent by the user and determines that no biometric information is currently entered.
[0067] In a possible implementation, the first power domain is also used to enter a power-off state under the control of the PMU when the PMU receives the second shutdown command; the second shutdown command is sent to the PMU when the first power domain is in the first power supply state, the second power domain is in the second power supply state, and the SOC does not receive biometric information within a preset time period.
[0068] In a possible implementation, when the first power domain and the second power domain are both in a power-off state, the first power domain is also used to preferentially enter the first power supply state under the control of the PMU when the PMU receives a second power-on command; the second power domain is also used to further enter the first power supply state under the control of the PMU.
[0069] In a possible implementation, the SOC is also connected to a double rate synchronous dynamic random access memory DDR, and the SOC also includes a third power domain and a third power supply interface; the third power supply interface is used for the PMU to power the third power domain; the third power domain is used to communicate with the DDR.
[0070] In a fourth aspect, the present application provides a semiconductor chip, which may include a system on chip (SOC) provided by any one of the implementations of the third aspect.
[0071] In a fifth aspect, the present application provides a semiconductor chip, which may include: a system on chip SOC provided by any one of the implementation methods in the third aspect above, an internal memory coupled to the SOC, and an external memory.
[0072] In a sixth aspect, the present application provides a chip system, which includes an electronic device provided by any one of the implementations of the first aspect. In a possible design, the chip system also includes a memory, which is used to store program instructions and data necessary or related to the electronic device during operation. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0073] In a seventh aspect, the present application provides an electronic device, wherein the processing device has the function of implementing any one of the power supply management methods in the second aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0074] In an eighth aspect, the present application provides a terminal device, the terminal device comprising an electronic device, the electronic device being the electronic device provided by any one of the implementations of the first aspect. The terminal device may also include a memory, the memory being used to couple with the electronic device, and storing program instructions and data necessary for the terminal device. The terminal device may also include a communication interface, for the terminal device to communicate with other devices or a communication network.
[0075] In a ninth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by multiple electronic devices, the power supply management method process described in any one of the above-mentioned second aspects is implemented.
[0076] In the tenth aspect, an embodiment of the present application provides a computer program, which includes instructions. When the computer program is executed by multiple electronic devices, the electronic devices can execute the power supply management method process described in any one of the above-mentioned second aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1A The figure is a schematic diagram of the system architecture of a fingerprint collection solution.
[0078] Figure 1B This is a schematic diagram of the system architecture of another fingerprint collection solution.
[0079] Figure 2A It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0080] Figure 2B It is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application.
[0081] Figure 2C This is a front schematic diagram of a fingerprint unlocking button provided in an embodiment of the present application.
[0082] Figure 2D This is a side schematic diagram of a fingerprint unlocking button provided in an embodiment of the present application.
[0083] Figure 2E This is a schematic diagram of the back of a fingerprint unlocking button provided in an embodiment of the present application.
[0084] Figure 2F It is a schematic diagram of a scenario of iris power-on and unlocking provided in an embodiment of the present application.
[0085] Figure 2G A schematic diagram of a prompt interface for iris unlocking failure provided in an embodiment of the present application.
[0086] Figure 2H A schematic diagram of another prompt interface for iris unlocking failure provided in an embodiment of the present application.
[0087] Figure 3A It is a structural schematic diagram of another electronic device provided in an embodiment of the present application.
[0088] Figure 3B It is a structural schematic diagram of another electronic device provided in an embodiment of the present application.
[0089] Figure 4A A schematic diagram of the structure of an electronic device in SPMI transmission mode provided in an embodiment of the present application.
[0090] Figure 4B A flowchart of a system entering and exiting a fingerprint collection state is provided in an embodiment of the present application.
[0091] Figure 5A A schematic diagram of the structure of an electronic device in an IO hard-line transmission mode provided in an embodiment of the present application.
[0092] Figure 5BA flowchart of another system entering and exiting a fingerprint collection state provided in an embodiment of the present application.
[0093] Figure 6 It is a flow chart of a power supply management method provided in an embodiment of the present application.
[0094] Figure 7 It is a structural diagram of a system on chip SOC provided in an embodiment of the present application. DETAILED DESCRIPTION
[0095] The following will be combined with the drawings in the embodiments of the present application to describe the embodiments of the present application. The terms "first", "second", "third" and "fourth" 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 of their variations 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. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The phrase does not necessarily refer to the same embodiment at various locations in the specification, 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 can be combined with other embodiments.
[0096] 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).
[0097] First, some terms in this application are explained to facilitate understanding by those skilled in the art.
[0098] (1) Integrated Circuit (IC) is a micro electronic device or component. Using a certain process, the transistors, resistors, capacitors, inductors and other components and wiring required in a circuit are interconnected and made on a small piece or several small pieces of semiconductor wafers or dielectric substrates, and then packaged in a tube shell to become a micro structure with the required circuit function; that is, an IC chip is an integrated circuit formed by a large number of microelectronic components (transistors, resistors, capacitors, etc.) placed on a plastic substrate to make a chip.
[0099] (2) Serial Peripheral Interface (SPI) is a synchronous peripheral interface that enables the microcontroller to communicate with various peripheral devices in a serial manner to exchange information.
[0100] (3) System Power Management Interface (SPMI) It specifies the hardware interface between the baseband or application processor and external devices, and supports better power management technology through this interface.
[0101] (4) Low Dropout regulator (LDO) is a common voltage regulator device, which is mainly used to reduce high voltage to a lower stable voltage.
[0102] (5) Reset circuit RST is the abbreviation of RESET. The RESET signal is generally used in circuits with a central processing unit CPU to reset and initialize the circuit. The RESET signal is used to initialize the circuit when the computer is turned on. The RESET signal is also used to restart the circuit when the circuit freezes abnormally.
[0103] (6) Printed Circuit Board (PCB), also known as printed circuit board, is an important electronic component, a support for electronic components, and a carrier for electrical connections between electronic components.
[0104] (7) Input and Output (IO). The IO interface is the communication interface between the chip and the outside world. The input in the chip IO interface generally refers to the input of signals outside the chip into the chip, and the output generally refers to the output of signals inside the chip to the outside of the chip. Input and output are relative.
[0105] (8) Static Random-Access Memory (SRAM) is a type of random access memory. The so-called "static" means that as long as the memory remains powered, the data stored in it can be kept constant. In contrast, the data stored in dynamic random access memory (DRAM) needs to be updated periodically. However, when the power supply stops, the data stored in SRAM will still disappear (called volatile memory), which is different from ROM or flash memory that can still store data after power failure.
[0106] (9) Nand-flash memory is a non-volatile memory based on NAND technology. Compared with traditional Flash memory, NAND Flash has higher storage density, lower power consumption and longer life.
[0107] First, in order to facilitate the understanding of the embodiments of the present application, the technical problems to be solved by the present application are further analyzed and proposed. At present, there are many technical solutions for implementing fingerprint unlocking. The following two are exemplified, among which:
[0108] Solution 1: Commonly used fingerprint unlocking solution
[0109] like Figure 1A As shown, Figure 1A The system architecture diagram of a fingerprint collection solution is shown. The fingerprint collection solution can be used in terminal products (such as personal computers (PCs)). The fingerprint module is connected to an external microcontroller (MCU) through a serial peripheral interface (SPI). The collected fingerprint information is temporarily stored in the MCU and then transmitted to the SOC for final comparison with the fingerprint template. When the computer is turned off, the SOC and dynamic random access memory (DRAM), universal flash storage (UFS) / solid state disk (SSD) are all powered off, leaving only the MCU and fingerprint module powered. When the user touches the power button to turn on the computer, the fingerprint module collects fingerprints synchronously, compares the fingerprints after startup, and directly goes to the desktop if the fingerprint passes, eliminating the need for the user to enter the password interface. Therefore, the first existing solution is to reduce power consumption and increase standby time when the computer is turned off by adding an additional external MCU.
[0110] Disadvantages of this solution:
[0111] 1. Low system integration: The system adds an additional MCU, which takes up a lot of PCB layout space and is costly.
[0112] 2. Security is not high enough: The fingerprint is stored in the MCU, while the external MCU has weak capabilities in secure boot, firmware protection, and secure storage.
[0113] Solution 2: Multi-mode fingerprint unlocking solution
[0114] like Figure 1B As shown, Figure 1B This is a system architecture diagram of another fingerprint acquisition solution. In this fingerprint acquisition solution, the fingerprint module is directly connected to the SOC, and the fingerprint data enters the security zone (trust zone) directly from the fingerprint module (sensor) through the secure SPI, and the fingerprint module, DRAM, and secure storage UFS / SSD are powered uniformly. If the power is turned off, the fingerprint module, DRAM, and secure storage UFS / SSD are all powered off. If you need to keep the fingerprint unlocking function enabled, the fingerprint module, DRAM, and secure storage UFS / SSD need to be kept in the powered-on working state.
[0115] Disadvantages of this option 2:
[0116] 1. As the storage capacity of DRAM particles increases, standby power consumption will continue to be lost while waiting for fingerprint touch.
[0117] In summary, the technical defects in the prior art mainly include the following aspects: low integration, low system security, and high power consumption. Therefore, the technical problems to be solved by this application may specifically include the following: providing a power-on and unlocking solution for smart terminal products with high integration, high security, low power consumption, and good user experience.
[0118] Based on the above, see Figure 2A , Figure 2A 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 10 can be located in any electronic device, such as a computer, a mobile phone, a tablet, a smart wearable device, and other types of devices. The electronic device 10 can specifically be a chip or a chipset or a circuit board equipped with a chip or a chipset. The chip or chipset or the circuit board equipped with a chip or a chipset can work under the necessary software drive.
[0119] The electronic device 10 in the present application may include a system on chip SOC 101, a power management unit PMU 102, a sensor module 103 and a peripheral device 104, wherein:
[0120] SOC 101 may be a dedicated integrated circuit that includes a complete system and all the contents of embedded software. Exemplarily, SOC 101 may specifically include the following modules:
[0121] Processor (Central Processing Unit, CPU): The processor is the core part of the SOC and is responsible for performing various computing and control tasks.
[0122] Graphics Processing Unit (GPU): Responsible for processing graphics and image data in the device, providing high-performance graphics rendering and image processing capabilities. For example, it can handle graphics-intensive tasks such as games, graphical interfaces, and high-definition videos, providing a smooth graphics experience.
[0123] Communication module: For example, when the electronic device is a mobile communication terminal, the communication module in the SOC may include a baseband processor, a modem, and a radio frequency transceiver. The baseband processor is responsible for processing the communication signals of the device, including mobile networks (such as 4G, 5G) and Wi-Fi. The modem is responsible for encoding and decoding signals, and the radio frequency transceiver is responsible for sending and receiving wireless signals.
[0124] Multimedia module: may include image signal processing unit (ISP), video codec and audio processor, etc. For example, ISP is responsible for camera image processing and optimization, video codec supports decoding and encoding of various video formats, and audio processor provides high-quality audio processing and sound effects.
[0125] Storage controller: The storage controller is used to manage the memory in the device, including flash memory and RAM, etc. It is responsible for reading and writing data, allocating and managing memory. The memory in the embodiment of the present application may include SRAM, NAND Flash, UFS, DDR, etc.
[0126] Sensor controller: The sensor controller is used to manage various sensors in the device, such as accelerometers, gyroscopes, magnetometers, and light sensors. It is responsible for the collection, processing, and transmission of sensor data, providing various sensing and positioning functions for the device.
[0127] The memory, SOC 101 may also include some memories for caching data, such as caching biometric information (such as fingerprint information), cache SRAM or flash memory, etc. For example, the SOC in the embodiment of the present application may include a cache SRAM for storing biometric collection information, and may also include a NAND Flash for storing biometric templates.
[0128] In addition to the above-mentioned main functional modules, SoC 101 may also include other functional modules such as a security module, a power management unit, a touch controller, and various interface controllers. These modules work together to provide various functions and performances of the SOC, which are not listed here one by one. In summary, the SOC in the embodiment of the present application is a chip that integrates multiple functional modules. These functional modules work together to provide the SOC with various functions such as computing, graphics, communication, multimedia, and sensing. It can be understood that the internal structure and function of the SOC in different application scenarios or different electronic devices may be different, and the embodiment of the present application does not specifically limit this.
[0129] The power management unit PMU 102 can be used to manage the conversion, distribution, detection and other power in the equipment (including SOC). In the embodiment of the present application, PMU 102 can be specifically used to provide power with corresponding voltage for SOC 101 and other peripherals (such as sensor modules, DDR or other sensors, etc.), and further, it can also independently power different power domains (such as the first power domain and the second power domain) in SOC 101. Optionally, PMU 102 can also further have the function of power supply protection, such as charging control, etc., and have additional protection circuits for overvoltage, undervoltage, overtemperature, etc., so that all units or modules can work normally. Optionally, PMU 102 can be connected to SOC 101 through multiple power supply pins and system power management interface SPMI, wherein multiple power supply pins are used to provide power supply with different voltage values for SOC, and SPMI is used to receive commands such as control of SOC.
[0130] The sensor module 103 may be a fingerprint module (e.g., a fingerprint acquisition sensor or a fingerprint acquisition module), an iris module, a face recognition module (e.g., a camera), or a hand shape recognition module, etc., and may be used to complete functions such as the collection and transmission of biometric information such as fingerprints, irises, faces, and hand shapes. Optionally, the sensor module 103 may also include a biometric recognition module or an extended function module (e.g., a lock drive module), etc.
[0131] The peripherals 104 may include various sensors, such as a gyroscope sensor, an acceleration sensor, a display, a touch screen, or a camera sensor. Optionally, the peripherals may also include various memories, such as a universal flash storage (UFS), a dynamic random access memory (DRAM), a flash memory (NAND), or a solid state drive (SSD). Optionally, the peripherals may also include various communication modules, such as a modem, a radio frequency integrated circuit (RFIC), a wireless network (WIFI) module, or a near field communication (NFC) module.
[0132] Furthermore, the SOC in the embodiment of the present application may include multiple power domains (for example, Figure 2A The first power domain 1011 and the second power domain 1012 in the embodiment of the present invention are shown in FIG. 1 , wherein each power domain can be independently powered by a power management unit PMU through a different set of power pins. The circuits or components in different power domains can be allowed to operate at different power supply voltages and can be independently powered up or powered down, so that when one power domain is powered down, another power domain can be powered up.
[0133] Optionally, the SOC in the embodiment of the present application may include a variety of communication interfaces, for example, it may include a system power management SPMI interface, an IO interface, a power supply interface (such as a first power supply interface and a second power supply interface), etc. The IO interface may specifically include a serial peripheral interface SPI, a PHY interface, etc., wherein the SPI interface is a relatively slow transmission protocol interface, and the PHY interface is a relatively high-speed transmission protocol interface. Exemplarily, the SOC and the PMU can transmit clock signals or data signals through the SPMI interface, the SOC and the sensor module can transmit biometric information or other signals through the SPI interface, and the SOC and the peripherals can transmit signals through the PHY interface, for example, the screen and the shooting sensor communicate with the SOC through the PHY interface. In addition, the external memory can also communicate with the SOC through the PHY interface. For example, DDR particles can be connected to the outside of the SOC through the DDRPHY interface, and UFS particles can be connected to the outside of the SOC through the UFSPHY interface. It can be understood that the sensor module and other peripherals in the embodiments of the present application communicate with the SOC through different IO interfaces, because the subsequent sensor module and other peripherals need to communicate with different power domains in the SOC, and in some scenarios these power domains need to be powered on and off separately.
[0134] Based on the software and hardware architecture of the electronic device 10, in the embodiment of the present application, the functions implemented by the electronic device 10 may include the following:
[0135] PMU 102 is used to supply power to a first power domain 1011 and a second power domain 1012 in SOC 101 respectively; the power supplies between the first power domain 1011 and the second power domain 1012 are independent of each other; SOC 101 is used to communicate with a sensor module 103 through the first power domain 1011, and to communicate with a peripheral device 104 through the second power domain 1012, wherein the sensor module is used to collect biometric information; PMU 102 is also used to control the first power domain 1011 to enter a first power supply state, and to control the second power domain 1012 to enter a second power supply state, upon receiving a first shutdown command sent by SOC 101, wherein the first power supply state is a power-on state, and the second power supply state is a power-off state.
[0136] Specifically, since the circuits of some different functional modules are merged in the SOC of the prior art, for example, the IO of the sensor module and the IO of the peripherals on the SOC are merged or bound together, so that the functional modules corresponding to these merged or bound IOs (such as the sensor module and the peripherals) can only be powered on or off together. In the present application, the power domains corresponding to the sensor module and other peripherals are decoupled, and the SOC communicates with the sensor module through the first power domain (such as biometric information IO, various interrupt INT signals, etc.), and communicates with the peripherals through the second power domain (such as other IO, various RST signals, etc.), that is, the IO of the sensor module is decoupled from the IO of the peripherals, and the communication between the SOC and the sensor module, and the communication between the SOC and the peripherals are separated through different power domains, and they are independently powered and communicated with each other. This allows the relevant functions of the sensor module to be independent of the peripherals, so that they can be independently powered and operated.
[0137] For example, since the recognition of biometric information (such as fingerprint information, face information, iris information, hand shape information, voiceprint information, etc.) is usually used in encryption, unlocking or function activation to realize the function of user information protection or simplify user operation, the first power domain 1011 in the electronic device 10 in the embodiment of the present application can maintain the sensor module related functions after shutdown, such as biometric information collection, biometric information power-on unlocking, or biometric information payment, etc. Take the operation performed by biometric information as biometric information power-on unlocking as an example, when the electronic device 10 is in the shutdown state (which can be called S5_M state in the embodiment of the present application, that is, the first power domain is in the power-on state and the second power domain is in the power-off state), if the user's biometric information entry is detected, the biometric information can be collected, and the collected biometric information can be cached or cached through the first power domain that is always in the power-on state. Identify. Optionally, when the first power domain is only used to cache the collected biometric information, the storage of the biometric information template and the biometric information recognition function can be set in the second power domain 1012. If the user's biometric information is collected through the first power domain, it is necessary to wait for the second power domain to be powered on before performing biometric information recognition and comparison. Optionally, when the first power domain is used to cache and identify the collected biometric information, the first power domain must also include relevant functional modules for biometric information collection, caching and recognition, so that after the user enters the biometric information, the biometric information recognition and unlocking can be performed directly through the first power domain.
[0138] In the embodiment of the present application, a lower power consumption mode (referred to as S5_M state) is defined by the cooperation between SOC and PMU, that is, in this state, the relevant functions of the sensor module remain powered on, while all other functions are powered off. In this way, it can be ensured that after the power is turned on, the relevant functions of the sensor module can be in working state in real time, accelerating the biometric information unlocking process after the power is turned on. In addition, since the SOC interacts directly with the sensor module instead of adding an additional control chip MCU to independently power the sensor module (the security and computing power of the SOC are better than those of the MCU), the security and efficiency of biometric information unlocking can be further improved, solving the technical problems of large chip area and high power consumption.
[0139] An embodiment of the present application provides a power management design scheme for a SOC in an electronic device, specifically including docking with a sensor module through an independent power domain in the SOC, and docking with other functional modules through different power domains. On the one hand, the security of biometric unlocking can be improved by directly controlling the sensor module through the SOC. On the other hand, the power domain in the SOC that communicates with the sensor module is independently powered, so that the sensor module and other modules do not interfere with each other. The sensor module is used to collect biometric information (such as fingerprint information, face recognition information or iris recognition information, etc.), which can be used to unlock, power on, and perform other operations on the electronic device. When the user turns off the computer, the power domain where the module connected to the sensor module is located can continue to be powered on, while other modules can be powered off. In this way, when the user turns on the computer again, since the power domain corresponding to the sensor module remains powered on, the user can immediately enable related functions such as biometric information collection when entering biometric information at startup, thereby eliminating the need for the user to repeatedly enter the information (such as fingerprints, faces, or irises, etc.), simplifying the user unlocking operation steps, accelerating the subsequent biometric identification process, and improving the efficiency of restarting and unlocking after shutdown. That is, whether the device in the embodiment of the present application is in the power-on, standby, or power-off states, the sensor module can provide related services in real time, such as fingerprint / face / iris unlocking, fingerprint / face / iris startup, or fingerprint / face / iris payment, etc., which not only ensures the low power consumption of the device, accelerates the speed of the startup and unlocking service, but also further improves the user experience. Compared with the prior art, the embodiments of the present application do not require additional peripherals, reduce the chip area, and decouple the power domains for communication between the SOC and the sensor module and other peripherals. That is, in the SOC, the power domains corresponding to the sensor module and the power domains corresponding to other modules are powered independently of each other and can be powered on or off separately according to actual needs, which not only ensures low power consumption of the device, but also enables quick startup and unlocking after shutdown.
[0140] In a possible implementation, the sensor module includes a sensor module, see Figure 2B , Figure 2B 1 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application. The electronic device 10 further includes a power button 105, which is a physical power button 105-A. The sensor module 103 is a fingerprint module 103-A, and the fingerprint module 103-A is disposed on the physical power button 105-A. Figure 2C , Figure 2CThis is a schematic diagram of the front of a fingerprint unlock button provided in an embodiment of the present application. In the embodiment of the present application, when the power button is a physical button and the sensor module is arranged on the physical power button 105-A, the power-on and fingerprint collection can be realized simultaneously, and the fingerprint comparison and identification function can be quickly performed after the power-on. In this way, the user only needs to press the power button once to achieve the purpose of power-on unlocking. For example, since the fingerprint module 103-A is arranged on the physical power button 105-A, when the user presses the physical power button 105-A to power on, the fingerprint module 103-A can also synchronously collect the user's fingerprint information, that is, one operation (user power-on) triggers two processes (power-on process and user fingerprint collection process). In summary, when the user shuts down the computer, the power domain where the module connected to the fingerprint module is located can continue to be powered on, while other modules can be powered off. In this way, when the user turns on the computer again, since the power domain corresponding to the fingerprint module remains powered on, the user can immediately enable fingerprint information collection and other related functions when entering fingerprint information at startup, thereby eliminating the need for the user to repeatedly press the fingerprint, simplifying the user unlocking operation steps, accelerating the subsequent fingerprint recognition process, and improving the fingerprint unlocking efficiency after restarting the computer after shutting down. That is, whether the device in the embodiment of the present application is in the power-on, standby or power-off state, the fingerprint module can provide relevant services in real time, such as fingerprint unlocking, fingerprint startup, or fingerprint payment, which not only ensures the low power consumption of the device, accelerates the speed of fingerprint services, but also further improves the user experience. Compared with the prior art, the embodiments of the present application do not require additional peripherals, reduce the chip area, and decouple the power domains for communication between the SOC and the fingerprint module and other peripherals. That is, in the SOC, the power domains corresponding to the fingerprint module and the power domains corresponding to other modules are powered independently of each other, and can be powered on or off separately according to actual needs. This not only ensures low power consumption of the device, but also realizes the function of quick one-click fingerprint power-on and unlocking after shutdown.
[0141] In a possible implementation, SOC 101 is further used to receive a user's power-on operation on the power button 105 at a first moment t1, and send a first power-on command to PMU 102; PMU 102 is used to control the second power domain 1012 to enter a third power supply state after receiving the first power-on command, wherein the third power supply state is a power-on state; SOC 101 is further used to power on the second power domain 1012 in the third power supply state. When the user turns on the computer, SOC 101 may notify PMU 102 to control the power domain (i.e., the second power domain 1012) that is in a power-off state when the computer is turned off to power on, and SOC 101 enters the power-on process based on this. That is, when shutting down, this part of the power domain (the second power domain 1012) is powered off, so that low power consumption of the electronic device 10 or the electronic device where the electronic device is located can be ensured in the shutdown state. When the power is turned on, this part of the power domain (the second power domain 1012) is powered on to support the normal startup of the electronic device 10.
[0142] In a possible implementation, the sensor module 103 is further used to collect the user's biometric information at the first time t2, and send the biometric information to the first power domain 1011 in the SOC 101; wherein t2 is the time before the second power domain enters the power-on state; the SOC 101 is further used to receive the biometric information through the first power domain 1011, and cache the biometric information in the first power domain 1011. Optionally, t1 and t2 are the same time, or the time difference between t1 and t2 is less than a preset threshold. For example, see Figure 2D , Figure 2D This is a side schematic diagram of a fingerprint unlocking button provided in an embodiment of the present application. Considering that the time for entering fingerprint information and the time for the physical power button 105-A to take effect may not be strictly the same time, that is, in general, the fingerprint information may be entered first, and then the power button may be pressed to turn on the computer. Therefore, the embodiment of the present application can allow a certain time delay between the two times t1 and t2 to avoid the situation where the user only accidentally touches the fingerprint information but does not press the power button to turn on the computer, or the user accidentally touches the power button through other objects but the fingerprint information is not collected.
[0143] For example, taking fingerprint information as biometric information, in the prior art, after completely shutting down the device, the user turns on the device by pressing the power button, but at this time, since the device's power-on initialization process has not been completed, that is, the device's system has not started to work normally, it is very likely that the user's fingerprint information is not successfully collected at this time (because the system is in the process of booting up, and the fingerprint information collection function has not been powered on normally), that is, it has not really entered the process of collecting fingerprint information, so it is still necessary to enter the fingerprint information again after the device is actually turned on (that is, the user needs to press the power button again after pressing the power button to turn on the device to collect fingerprint information) before the fingerprint information can be truly collected, entered and compared. That is, in the prior art, the user usually needs to perform at least two press operations from shutting down to successfully unlocking the fingerprint in this application scenario, one press is used for physical button startup, and the other press is used for fingerprint unlocking after startup. In the embodiment of the present application, the fingerprint collection process is accelerated, and the function of powering on and fingerprint unlocking can be completed by pressing the power button once, that is, one-click fingerprint startup is realized.
[0144] In the embodiment of the present application, since the unlocking of the electronic device involves not only the collection of biometric information, but also the identification of biometric information, that is, comparing the collected biometric information with the pre-stored biometric template, it is necessary to cache the collected biometric information first, and because the first power domain is always in the power-on state, and the second power domain is in the power-off state, the collection and caching of the user's biometric information can occur before the second power domain is powered on, and after the second power domain is powered on, the collected cached biometric information is compared with the template, thereby completing the entire biometric information collection and identification process. Optionally, when the sensor module is a fingerprint module and the biometric information includes fingerprint information, there may be a small time difference between the user's fingerprint touching the physical power button and the actual successful pressing, because t1 and t2 may be the same time, or there may be a small time difference.
[0145] In a possible implementation, the power button and the sensor module may be separately configured. Figure 2E , Figure 2E This is a schematic diagram of the back of a fingerprint unlocking button provided in an embodiment of the present application. Figure 2EIn the embodiment, the physical power button 105-A is on the left side (back side) of the electronic device 10, and the fingerprint module 103-A is arranged on the back side of the electronic device 10. The user can press the physical power button 105-A with the thumb, and press the fingerprint module 103-A with the index finger to collect the fingerprint. Optionally, the physical power button 105-A can also be arranged on the right side of the electronic device, and the sensor module can be arranged on the left side of the electronic device. Optionally, the left and right positions can also be interchanged. At this time, the user can press the power button with one of the fingers to turn on the device, and collect the fingerprint information of the other finger of the user through the fingerprint module on the left or right side, thereby accelerating the fingerprint unlocking.
[0146] In one possible implementation, the electronic device does not have a physical power button, but uses the biometric information collected by the sensor module to trigger the power on of the electronic device, and the biometric information can also be used to unlock the electronic device, that is, in the embodiment of the present application, the power on and unlock are triggered simultaneously by the biometric information. For example, the electronic device is configured to be powered on and unlocked by fingerprint recognition under the screen, or powered on and unlocked by face recognition, or powered on and unlocked by iris recognition, or powered on and unlocked by voiceprint recognition, or powered on and unlocked by biometric information such as hand shape. See Figure 2F , Figure 2F 1 is a schematic diagram of a scenario of iris power-on and unlocking provided in an embodiment of the present application. For example, a user can trigger the power-on of the electronic device 10 by gazing with his eyes. At this time, after collecting the user's iris gaze information, the sensor module 103 (for example, an iris recognition sensor or an iris module 103-B) synchronously triggers the power-on process and collects the user's iris information, that is, the collected iris information is cached in the first power domain that is kept powered on, and after the power is turned on, the user's iris information cached in the first power domain is compared with the relevant identification and matching module in the second power domain that is powered on, so as to unlock the electronic device 10. If the collected iris information finally matches the template, it can smoothly enter the process such as Figure 2F If the collected iris information does not match the template, the unlocking interface or the unlocking failure reminder interface (such as Figure 2G As shown, Figure 2G A schematic diagram of a prompt interface for iris unlock failure provided in an embodiment of the present application) is provided to prompt the user to unlock again by gazing at the eyes. Furthermore, the user may also be prompted to unlock by displaying a digital unlock interface (such as Figure 2H As shown, Figure 2HAnother iris unlocking failure prompt interface diagram provided in an embodiment of the present application). That is, if an illegal user (or non-owner user) is looking at the device, the electronic device 10 can still be triggered to enter the boot process, but a subsequent unlocking verification process is required, that is, if the iris information does not match, although the device can be booted, it will only stay on the unlocking prompt interface, and will not actually enter the interface after the electronic device is unlocked to ensure the security of the electronic device. For the case where the iris information matches, the booting and unlocking process can still be accelerated.
[0147] In a possible implementation, SOC 101 is also used to compare the biometric information cached in the first power domain 1011 with the biometric template pre-stored in the second power domain 1012 after the power-on is successful. If the match is successful, it is determined that the biometric unlocking is successful. When the user starts the power-on process through the physical power button, the synchronously collected biometric information can be cached in the Always On (AO) area (i.e., the first power domain in this application). Therefore, the embodiment of the present application can accelerate the biometric unlocking process after power-on. The reason is that the biometric information entered during the power-on process can be stored in the cache in the first power domain corresponding to the sensor module, such as in a cache SRAM area of several hundred k, and the biometric template used to compare the biometric information is stored in a memory in the second power domain of the SOC, such as in the encryption area of the NAND FLASH in the UFS. Further, the encryption area can be a secure area (TrustZone).
[0148] In the embodiment of the present application, the biometric template is cached in the second power domain. When the electronic device is turned off, since the second power domain is in a power-off state, after it is turned on again, the biometric template needs to wait for the second power domain to be powered on and started before it can be identified with the collected biometric information. That is, the biometric information entered by the user during the boot process is collected and cached through the first power domain that is not powered off, and then the biometric template is obtained after the second power domain is powered on after booting, and the biometric information is identified and matched with the cached biometric information. If the match is successful, the unlocking is successful, and the user only needs to enter it once to successfully unlock. In summary, when the device is in standby or shutdown state, other modules or peripherals except the sensor module can be powered off, while the sensor module remains powered on. After the user turns on the device, the sensor module and related functional modules that are always powered on can quickly collect and cache the user's biometric information, so that the collected and cached biometric information can be compared with the biometric template in the system after the device is actually turned on. This allows the user to easily turn on and unlock the device with just one press, which not only ensures low power consumption but also enables fast unlocking.
[0149] In one possible implementation, the biometric template is pre-stored in a secure area trustzone in the second power domain 1012. For example, a trusted execution environment (TEE) runs in the secure area trustzone, which can ensure calculations that are not interfered with by conventional operating systems. Exemplarily, it is implemented by creating a small operating system that can run independently in the "secure world" of TrustZone, and the operating system directly provides a small number of services in the form of system calls (directly processed by the TrustZone kernel). In an embodiment of the present application, the biometric template is pre-stored in a secure area in the second power domain, so that the biometric template is stored in a more secure space to ensure the security of the user's biometric information.
[0150] In one possible implementation, PMU 102 is specifically used to: supply power to the first power domain through a first power supply pin set; and supply power to the second power domain through a second power supply pin set; the first pin set or the second pin set includes a plurality of power supply pins, each of which is used to provide a different voltage value to meet the power supply requirements of different functional modules. For example, the voltage supplied by the pin set may be 0.7v, which can be used for a low digital power supply core area, 1.8v can be used to power the IO of the sensor module, and 1.2v can be used to supply power to the internal PLL clock power supply (for example, to collect biometric features, a clock of a certain frequency is required). In an embodiment of the present application, different power domains in the SOC are provided by different pins of the PMU, and one power domain may correspond to multiple pins to provide different power supply voltage requirements for related modules in the power domain.
[0151] In one possible implementation, see Figure 3A , Figure 3A is a structural diagram of another electronic device provided in an embodiment of the present application, wherein the first power supply pin set includes a first pin, a second pin and a third pin, wherein the first pin is used to provide a first voltage, the second pin is used to provide a second voltage, and the third pin provides a third voltage; wherein the values of the first voltage, the second voltage and the third voltage are different. In an embodiment of the present application, for example, the first power domain may involve control signals, data signals, clock signals, etc., and the power supply voltages required for these signals are different, so the PMU can provide different voltages for the first power domain through different pins.
[0152] In a possible implementation, the second power supply pin set includes a fourth pin, a fifth pin, and a sixth pin, the fourth pin is used to provide a fourth voltage, the fifth pin is used to provide a fifth voltage, and the sixth pin provides a sixth voltage; wherein the fourth voltage, the fifth voltage, and the sixth voltage have different values. In the embodiment of the present application, for example, the second power domain also involves control signals, data signals, clock signals, etc., and the power supply voltages required for these signals are different, so the PMU can provide different voltages for the second power domain through different pins.
[0153] In one possible implementation, see Figure 3A , Figure 3A is a structural diagram of another electronic device provided in an embodiment of the present application, wherein the SOC 101 is further used to: send the first shutdown command to the PMU via the system power management interface SPMI; or, see Figure 3B , Figure 3B 1 is a structural diagram of another electronic device provided in an embodiment of the present application. An input / output IO hard line is provided between SOC 101 and PMU 102. SOC 101 is also used to send the first shutdown command to PMU 102 via the IO hard line. In an optional implementation, Figure 3A As shown, if SOC 101 needs to send instructions to PMU 102, SOC 101 can be considered as the master device and PMU 102 can be considered as the slave device. The master and slave complete the issuance of instructions through these two lines (CLK and DATA work together, one transmits the clock signal and the other transmits the data signal) based on the protocol power control class protocol (SPMI interface protocol). Among them, SPMI is a two-wire serial port interface, which can connect the integrated power controller in the system on chip (SOC) with one or more PMUs, and is used to dynamically control various power supply voltages in real time. The use of the SPMI interface can solve the pin limit problem, that is, normalization can be achieved at the system level, such as entering the standby state, and control commands can also be transmitted through SPMI. In another optional implementation, such as Figure 3BAs shown, commands can be transmitted between SOC and PMU through IO hardwire, that is, by setting a dedicated IO specifically for SOC to control PMU to enter the S5-M power supply state in the embodiment of the present application, for example, by controlling entry and exit from the above S5-M state through high and low levels, the efficiency of command transmission can be accelerated. In the embodiment of the present application, commands can be transmitted between SOC and PMU through a general SPMI interface, or by adding an IO interface dedicated to transmitting shutdown and startup commands between SOC and PMU to further improve the efficiency of shutdown and startup, as well as unlocking after startup. For example, when command transmission is performed using IO hardwire, commands can be quickly issued, which is equivalent to a quick IO interface dedicated to controlling the power on and off of the machine.
[0154] In a possible implementation, SOC 101 is further used to: send the first power-on command to PMU 102 via an SPMI line; or send the first power-on command to PMU 102 via an IO hard line. In the embodiment of the present application, commands can be transmitted between SOC and PMU via a common SPMI interface, or an IO interface dedicated to transmitting shutdown and startup commands can be added between SOC and PMU to further improve the efficiency of shutdown and startup, as well as unlocking after startup. For example, when the IO hard line is used for command transmission, the command can be issued quickly, which is equivalent to a quick IO interface dedicated to controlling the power on and off.
[0155] In a possible implementation, the SOC 101 is further configured to: receive a shutdown instruction sent by the user, determine whether biometric information is currently entered, and if the biometric information is currently entered, send the first shutdown command to the PMU 102. In the embodiment of the present application, after the SOC receives the shutdown instruction from the user, it determines whether the biometric information is entered in the system, and if it is entered, executes the first shutdown command in the embodiment of the present application.
[0156] In a possible implementation, SOC 101 is further used to: if no biometric information is currently entered, send a second shutdown command to PMU 102; PMU 102 is further used to receive the second shutdown command and control the first power domain 1011 and the second power domain 1012 to enter a power-off state. In the embodiment of the present application, after the SOC receives the user's shutdown instruction, it determines whether biometric information has been entered in the system. If it has not been entered, or the biometric unlocking function is not enabled, another shutdown command is executed, that is, the power domains of the entire SOC are powered off to save power consumption of the electronic device.
[0157] In a possible implementation, when the first power domain 1011 is in the first power supply state and the second power domain 1012 is in the second power supply state, the SOC 101 is also used to: send a second shutdown command to the PMU 102 when no biometric information is received within a preset time period; the PMU 102 is also used to receive the second shutdown command and control the first power domain 1011 to enter a power-off state. In the embodiment of the present application, in order to save power consumption of the electronic device, the electronic device can be set to further power off the first power domain that has not been powered off when no biometric information is received within a certain period of time, while the second power domain that is already in the power-off state can continue to be powered off. For example, when the user is in the evening rest period, the electronic device may not need to be used or operated for up to seven or eight hours or even longer. In this way, powering off all the relevant power domains can further effectively reduce the power consumption of the device without affecting the user experience.
[0158] In one possible implementation, the electronic device 10 also includes a power button 105; the PMU 102 is also used to receive a second power-on command triggered by the power button 105 when both the first power domain 1011 and the second power domain 1012 are in a power-off state, and to preferentially control the first power domain 1011 to enter a first power supply state, and further control the second power domain 1012 to enter a third power supply state, wherein the third power supply state is a power-on state. In the embodiment of the present application, since the first power domain and the second power domain are powered separately and independently, when the device is completely shut down and powered off and then restarted, the PMU can give priority to controlling the power on of the first power domain, so that functions such as collecting and caching biometric information can be executed first, and the power domain corresponding to the subsequent biometric identification and comparison functions can be powered on relatively later, because the first function involved in the biometric unlocking function is usually the biometric information collection. In addition, since the biometric collection is also related to the user's experience in the biometric unlocking function (because after the user's biometrics are collected first, the user does not need to enter the biometric information multiple times during the biometric unlocking process, for example, there is no need to enter fingerprints multiple times), and after the collection, the process of comparing and identifying the biometrics in the device is imperceptible to the user. In summary, the embodiment of the present application gives priority to powering on the first power domain that interacts with the sensor module, which can not only accelerate the biometric unlocking, but also improve the user experience.
[0159] In one possible implementation, Figure 3A or Figure 3BAs shown, the electronic device 10 also includes a double rate synchronous dynamic random access memory DDR 106, and the SOC also includes a third power domain 1013; the PMU 102 is also used to supply power to the third power domain 1013; the SOC 101 is also used to communicate with the DDR 106 through the third power domain 1013. Optionally, the DDR generally has four power supplies for internal operation, corresponding to the seventh pin, the eighth pin, the ninth pin, and the tenth pin. In the embodiment of the present application, the DDR in the present application can be separated and decoupled from the first power domain and the second power domain, and independently powered to meet the power-on and power-off and power supply voltage requirements under different functions and scenarios.
[0160] In a possible implementation, the PMU 102 is also used to power the sensor module 103, the peripheral device 104 or the DDR 106; or, the electronic device 10 further includes an external power supply, and the external power supply is used to power the sensor module 103, the peripheral device 104 or the DDR 106. In the embodiment of the present application, whether it is a sensor module, a peripheral device or a DDR, it can be powered directly by the PMU or by other power supply devices, and the SOC mainly communicates with the above devices through the first power domain, the second power domain or the third power domain.
[0161] See also Figure 4A , Figure 4A A schematic diagram of the structure of an electronic device in an SPMI transmission mode provided in an embodiment of the present application, exemplarily, as Figure 4A As shown in FIG. 1 , the SOC 101 and the PMU 102 transmit commands via SPMI-CLK and SPMI-DATA. The first power domain 1011 includes three power supplies, corresponding to Figure 3AThe Always On (AO) areas are AO_0.7V, IO_1.8V, and AO_1.2V, respectively. For example, AO_0.7V can be used for lower digital power supply, 1.8V can be used to power fingerprint collection IO, and 1.2V can be used for internal phase-locked loop (PLL) clock power supply. The second power domain includes PERI-FIX 0.8V, LDO46-1.8V, and PERI-FIX 1.2V. For example, the fixed voltage 0.8V can be used for low-voltage power supply of some analog PHYs, such as the universal serial bus USB, camera interface CSI, display interface DSI and other analog interfaces, 1.2V can be used for high-voltage power supply of these analog PHYs, and 1.8V can be used for rear-drive power supply of GPIO. The third power domain includes VDD1 1.8V, VDD2H 1.05V, VDD2L 0.9V, and VDDQ0.6V. For example, 1.8V, 1.05V, 0.9V, and 0.6V are all for providing corresponding power supply requirements for memory DRAM under the premise of meeting the new low-power memory standard (Low Power Double Data Rate 4, LPDDR4). It can be understood that the actual voltage value of each of the above pins can be selected according to the actual needs of the product or different application scenarios. The embodiment of the present application does not specifically limit this.
[0162] See also Figure 4B , Figure 4B A flowchart of a system entering and exiting a fingerprint collection state is provided in an embodiment of the present application, based on the above Figure 4A The structure of the electronic device 10 in the embodiment of the present invention is described below by taking the sensor module as a fingerprint module as an example to exemplarily describe how the SOC and PMU inside the electronic device 10 interact when the electronic device 10 is in different states. The different states of the electronic device 10 involved mainly include S0 (normal working state), S3 (standby state), S5 (software shutdown state, which can be understood as complete shutdown) and S5-M (deep sleep state provided in the embodiment of the present application or also referred to as fingerprint collection state). The interaction between the SOC and the PMU can specifically include the following three processes:
[0163] State 1: The electronic device is in S5-M (deep sleep or fingerprint collection) state
[0164] 1. When the electronic device is in the S5-M state, wait and determine whether a fingerprint touch interrupt is received.
[0165] 2. If a fingerprint interrupt is received, the SOC starts collecting fingerprints.
[0166] 3. The SOC detects whether the power button sent back by the PMU is pulled low.
[0167] 4. If the SOC detects that the power button sent back by the PMU is pulled low, the SOC instructs the PMU to start the S5-M to S0 (normal working state) timing.
[0168] 5. If the SOC detects that the power button sent back by the PMU is not pulled low, the SOC enters the S5-M state and waits for the fingerprint interrupt.
[0169] In the case of the above state 1, that is, when the electronic device is in the S5-M (deep sleep or fingerprint collection) state, and no fingerprint key is received for a long time, it will automatically go through the complete shutdown process to avoid continuous power consumption. When the electronic device is in the S5-M (deep sleep or fingerprint collection) state, if a fingerprint key is received within a certain period of time, it can enter S0 (normal working state), that is, the first power domain and the second power domain are both in the power-on state.
[0170] State 2: The electronic device is in S0 (normal operation) state and receives a soft shutdown operation from the user
[0171] 1. When the electronic device receives a soft shutdown instruction from the user, it determines whether the fingerprint flag register is in an enabled state.
[0172] 2. If the fingerprint flag register is in the enabled state, the SOC sends a command to the PMU, and the PMU starts to follow the S0 to S5-M timing sequence, keeping the AO minimum system in place (that is, only keeping the first power domain in the powered-on state), and the SOC enters the S5-M state waiting for the fingerprint interrupt; the SOC timing waits to see if the shutdown condition is met (configurable to be turned off), and if the shutdown condition is met, the S5 soft shutdown is performed (that is, the first power domain, the second power domain, the third power domain, etc. are all in the powered-off state, which can be understood as a complete shutdown), and if the shutdown condition is not met, the SOC enters the S5-M state waiting for the fingerprint interrupt.
[0173] 3. If the fingerprint flag register is not enabled, such as the Power-hold is in the low state, the normal power-off process (S5 power-off key path) is followed, and the PMU starts to follow the S0 to S5 timing sequence and is completely powered off.
[0174] In the case of the above state 2, when the user shuts down the machine after entering the fingerprint, it enters the S5-M fingerprint collection state, and the PMU only maintains the power supply of the AO area (AO_0V7, AO_1V8, AO_1V2), and other power supplies including UFS, DDR and other storage are completely powered off. At this time, the power consumption is reduced to the minimum while waiting for fingerprint collection, and one-click fingerprint startup can be achieved in the deep sleep state (S5_M). When the user shuts down the machine without entering the fingerprint, all power supplies can be powered off to enter the complete shutdown state (S5) to avoid power waste.
[0175] State 3: The electronic device is in S5 (soft shutdown, which can be understood as a complete shutdown) state
[0176] 1. When the electronic device is in S5 soft shutdown state, the PMU detects whether the Powerkey is pulled low / or whether the USB is inserted.
[0177] 2. If it is detected that the Powerkey is pulled low / or the USB is inserted, the PMU triggers the power-on process; the independent related power supply of the AO area is turned on first, and the system is reset (normal power-on process); determine whether the user has entered the fingerprint. If the user has entered the fingerprint, the SOC configures the S5-M-EN register flag to enter the fingerprint unlocking, that is, through the user fingerprint unlocking / password unlocking, enter S0 (normal working state); if the user has not entered the fingerprint, maintain the S5-M-EN register flag at 0, enter the password (direct power-on), that is, through direct power-on or password unlocking, enter S0 (normal working state). In the above two situations, after meeting certain conditions, if the user has not operated for a long time, it can be configured to enter the standby state, that is, the SOC enters S3 (standby state).
[0178] 3. If the Powerkey is not detected to be pulled low and the USB is not detected to be inserted, the S5 software shutdown is performed.
[0179] In the above state three, when the electronic device is completely powered off (i.e., S5 software shutdown state), when it is restarted, if the user has entered the fingerprint, the first power domain can be powered on first while other power domains are powered on normally to quickly enter the fingerprint collection state, thereby accelerating the fingerprint unlocking process. If the user has not entered the fingerprint, security can be enhanced by entering the password on the login interface.
[0180] In summary, the core idea of the embodiment of the present application is to directly connect the fingerprint with the SOC to enhance security, and to increase the independent power supply by stripping the coupling, so that only the minimum power supply is in place when the fingerprint is collected, and fast one-key fingerprint unlocking is achieved under the premise of ensuring low power consumption. In addition, in the above-mentioned SPMI transmission method, the power on and off command transmission through SPMI can solve the pin limit problem (bolllimit) and better achieve normalization from the system level. For example, entering the standby state also transmits commands through the SPMI interface.
[0181] It should be noted that in the description of the above process implementation examples, the numerical serial numbers do not represent a strict time execution order or sequence, that is, the serial numbers do not limit the sequence of process execution or the sequence of state occurrence, and the implementation examples under the above-mentioned states one, two and three do not limit each other. The process implementation examples under any state can be executed independently of each other or in combination with each other, and will not be explained in detail here.
[0182] See also Figure 5A , Figure 5A A structural diagram of an electronic device in an IO hard-wire transmission mode provided in an embodiment of the present application, such as Figure 5A As shown in the figure, the SOC and PMU transmit commands through the IO hard line, specifically by adding an IO hard line to indicate entering the fingerprint collection state. Compared with the above Figure 4A The structure in Figure 5A A new S5_M indication signal from SOC to PMU is added, which can be pulled high / low to enter and exit the fingerprint collection state: For the voltages provided by each power domain and the purpose of the voltage, as well as the various states involved in the electronic device, please refer to the above Figure 4A and Figure 4B Related description of the implementation example. Here we mainly describe the different processes involved when issuing commands through IO hardline. Please refer to Figure 5B , Figure 5B Another flow chart of the system entering and exiting the fingerprint collection state is provided in an embodiment of the present application. When the electronic device is in the above different states, the interaction process between the SOC and the PMU may specifically include the following three situations:
[0183] State 1: The electronic device is in S5-M (deep sleep or fingerprint collection) state
[0184] 1. When the electronic device is in S5-M state, wait and determine whether the user has pressed the fingerprint button to turn on the device.
[0185] 2. If the user's fingerprint power-on operation is received, the SOC will pull up the hardware pin of S5-M, and the PMU will start the S5-M to S0 timing, and then enter the S0 state, which is the normal working state.
[0186] 3. If the user's fingerprint startup operation is not received, the SOC will count whether the standby time reaches the shutdown condition. If the shutdown condition is met, the S5 software shutdown will be performed. If the shutdown condition is not met, the SOC will enter the S5-M state and wait for one-click fingerprint startup.
[0187] State 2: The electronic device is in S0 (normal operation) state and receives a soft shutdown operation from the user
[0188] 1. After the user soft-shuts down the computer, the software determines whether the user has entered the fingerprint.
[0189] 2. If the fingerprint has been entered, the SOC will pull down the S5-M hardware pin, the PMU will start the S0 to S5 sequence, keep the AO minimum system in place, and the SOC will enter the S5-M state and wait for one-key fingerprint startup.
[0190] 3. If the fingerprint is not entered, the SOC will lower the power-hold, and the PMU will start the S0 to S5 sequence, completely power off, and enter the S5 software shutdown state.
[0191] 4. PMU starts to go through the S0 to S5-M sequence, keeping the AO minimum system in place.
[0192] 5. SOC enters S5-M state and waits for one-key fingerprint startup.
[0193] State 3: The electronic device is in S5 (soft shutdown, which can be understood as a complete shutdown) state
[0194] 1. When the electronic device is in the S5 software shutdown state, the PMU detects whether the Powerkey is pulled low / or whether a USB is inserted. If it detects that the Powerkey is pulled low / or the USB is inserted, the PMU triggers the boot process; the independent power supply of the AO area is turned on first, the login password interface / fingerprint unlocking interface is entered, and the SOC enters S0 (normal working state). In the above two situations, after meeting certain conditions, if the user has not operated for a long time, it can be configured to enter the standby state, and the SOC enters S3 (standby state).
[0195] 2. If the Powerkey is not detected to be pulled low and the USB is not detected to be inserted, perform S5 software shutdown.
[0196] In summary, the core idea of the embodiment of the present application is to directly connect the fingerprint with the SOC to enhance security, and to increase independent power supply by stripping coupling, so that only the minimum power supply is in place when the fingerprint is collected, and fast one-key fingerprint unlocking is achieved under the premise of ensuring low power consumption. In addition, in the above-mentioned IO hard-wired transmission method, since an IO interface dedicated to transmitting shutdown / power-on commands is added between the SOC and the PMU, the efficiency of shutdown, startup, and unlocking after startup can be further improved.
[0197] It should be noted that in the description of the above process implementation examples, the numerical serial numbers do not represent a strict time execution order or sequence, that is, the serial numbers do not limit the sequence of process execution or the sequence of state occurrence, and the implementation examples under the above-mentioned states one, two and three do not limit each other. The process implementation examples under any state can be executed independently of each other or in combination with each other, and will not be explained in detail here.
[0198] See also Figure 6 , Figure 6 is a flow chart of a power supply management method provided in an embodiment of the present application. The power supply management method is applied to an electronic device, which can be the above-mentioned Figure 2A-Figure 5BAny one of the processing devices in the invention may include a system on chip SOC, a power management unit PMU, a sensor module and a peripheral device, and the SOC includes a first power domain and a second power domain; the method may include the following steps S601-S603, wherein:
[0199] Step S601: The PMU supplies power to the first power domain and the second power domain in the SOC respectively; the power supplies between the first power domain and the second power domain are independent of each other.
[0200] Step S602: The SOC communicates with the sensor module through the first power domain, and communicates with the peripheral device through the second power domain, wherein the sensor module is used to collect biometric information.
[0201] Step S603: Upon receiving the first shutdown command sent by the SOC, the PMU controls the first power domain to enter a first power supply state and controls the second power domain to enter a second power supply state, wherein the first power supply state is a power-on state and the second power supply state is a power-off state.
[0202] In a possible implementation, the device also includes a power button; the method also includes: the SOC receives a power-on operation of the user on the power button at a first moment t1, and sends a first power-on command to the PMU; after receiving the first power-on command, the PMU controls the second power domain to enter a third power supply state, wherein the third power supply state is a power-on state; and the SOC powers on in the third power supply state through the second power domain.
[0203] In a possible implementation, the power button is a physical power button, and the sensor module is disposed on the physical power button; the method further includes: collecting biometric information of the user at a first moment t2 through the sensor module, and sending the biometric information to the first power domain in the SOC; wherein t2 is a moment before the second power domain enters a power-on state; the SOC receives the biometric information through the first power domain, and caches the biometric information in the first power domain. Optionally, t1 and t2 are the same moment, or the time difference between t1 and t2 is less than a preset threshold.
[0204] In a possible implementation, the method further includes: when the power-on is successful, the SOC compares the biometric information cached in the first power domain with the biometric template pre-stored in the second power domain, and if a match is successful, it is determined that the biometric unlocking is successful.
[0205] In a possible implementation manner, the biometric template is pre-stored in a secure area trustzone in the second power domain.
[0206] In a possible implementation, the PMU supplies power to the first power domain and the second power domain in the SOC respectively, including: the PMU supplies power to the first power domain through a first power pin set, and supplies power to the second power domain through a second power pin set; the first pin set or the second pin set includes multiple power pins, and each power pin is used to provide a different voltage value.
[0207] In a possible implementation, the method further includes: the SOC sending the first shutdown command to the PMU through a system power management interface SPMI; or, the SOC sending the first shutdown command to the PMU through an input / output IO hard line; the IO hard line is a hard line set between the SOC and the PMU.
[0208] In a possible implementation, the device also includes a power button; the method also includes: the SOC receives a shutdown instruction sent by the power button, and determines whether biometric information is currently entered; if the biometric information has been entered, the SOC sends the first shutdown command to the PMU.
[0209] In a possible implementation, the method further includes: if biometric information is not currently entered, the SOC sends a second shutdown command to the PMU; the PMU receives the second shutdown command and controls both the first power domain and the second power domain to enter a power-off state.
[0210] In a possible implementation, when the first power domain is in the first power supply state and the second power domain is in the second power supply state; the method also includes: when no biometric information is received within a preset time period, the SOC sends a second shutdown command to the PMU; and the PMU receives the second shutdown command and controls the first power domain to enter a power-off state.
[0211] In a possible implementation, the device also includes a power button; the method also includes: when the first power domain and the second power domain are both in a power-off state, the PMU receives a second power-on command triggered by the power button, preferentially controls the first power domain to enter the first power supply state, and further controls the second power domain to enter a third power supply state, wherein the third power supply state is a power-on state.
[0212] In a possible implementation, the device further includes a double data rate synchronous dynamic random access memory DDR, and the SOC further includes a third power domain; the method further includes: the PMU supplies power to the third power domain; and the SOC communicates with the DDR through the third power domain.
[0213] In a possible implementation, the PMU is further used to supply power to the sensor module, peripheral device or DDR; or the device further includes an external power supply, and the external power supply is used to supply power to the sensor module, peripheral device or DDR.
[0214] It should be noted that the specific process of the power supply management method described in the embodiment of the present application can be found in the above Figure 2A-Figure 5B The relevant descriptions in the application embodiments described in will not be repeated here.
[0215] See also Figure 7 , Figure 7 : is a structural diagram of a system on chip SOC provided in an embodiment of the present application, the SOC includes a first power domain and a second power domain, a first power supply interface, and a second power supply interface; the SOC is connected to a power management unit PMU, a sensor module and a peripheral device, wherein:
[0216] The first power supply interface is used for the PMU to supply power to the first power domain, and the first power domain is used to communicate with the sensor module; the sensor module is used to collect biometric information;
[0217] The second power supply interface is used for the PMU to supply power to the second power domain; the second power domain is used to communicate with the peripheral device; the power supply between the first power domain and the second power domain is independent of each other;
[0218] The first power domain is further used to enter a first power supply state under the control of the PMU when the PMU receives a first shutdown command, and the first power supply state is a power-on state;
[0219] The second power domain is further used to enter a second power supply state under the control of the PMU when the PMU receives the first shutdown command, and the second power supply state is a power-off state.
[0220] In a possible implementation, the SOC is also connected to a power button; the second power domain is also used to enter a third power supply state under the control of the PMU after the PMU receives the first power-on command, and the third power supply state is a power-on state. The first power-on command is sent to the PMU by the SOC after receiving a power-on operation of the user on the power button at the first moment t1.
[0221] In a possible implementation, the power button is a physical power button, and the sensor module is disposed on the physical power button; the first power domain is further used to receive the user's biometric information collected by the sensor module at the first time t2, and cache the biometric information, wherein t2 is the time before the second power domain enters the power-on state. Optionally, t1 and t2 are the same time, or the time difference between t1 and t2 is less than a preset threshold.
[0222] In a possible implementation, the first power domain is also used to compare the cached biometric information with the biometric template pre-stored in the second power domain after the electronic device is successfully powered on. If a match is successful, it is determined that the biometric unlocking is successful.
[0223] In a possible implementation manner, the biometric template is pre-stored in a secure area trustzone in the second power domain.
[0224] In a possible implementation, the PMU connects the first power supply interface through a first power supply pin set to supply power to the first power domain; the PMU connects the second power supply interface through a second power supply pin set to supply power to the second power domain; the first pin set or the second pin set both include multiple power supply pins, and each power supply pin is used to provide a different voltage value.
[0225] In a possible implementation, the first shutdown command is sent by the SOC to the PMU via SPMI; or, an input / output (IO) hard line is provided between the SOC and the PMU, and the first shutdown command is sent by the SOC to the PMU via the IO hard line.
[0226] In a possible implementation, the first shutdown command is sent to the PMU by the SOC when the SOC receives a shutdown instruction sent by the user and determines that the biometric information has been currently entered.
[0227] In a possible implementation, the first power domain and the second power domain are also used to enter a power-off state under the control of the PMU when the PMU receives the second shutdown command; the second shutdown command is sent to the PMU by the SOC when it receives a shutdown instruction sent by the user and determines that no biometric information is currently entered.
[0228] In a possible implementation, the first power domain is also used to enter a power-off state under the control of the PMU when the PMU receives a second shutdown command; the second shutdown command is sent to the PMU when the first power domain is in the first power supply state, the second power domain is in the second power supply state, and the SOC does not receive biometric information within a preset time period.
[0229] In a possible implementation, when the first power domain and the second power domain are both in a power-off state, the first power domain is also used to preferentially enter the first power supply state under the control of the PMU when the PMU receives a second power-on command; the second power domain is also used to further enter the first power supply state under the control of the PMU.
[0230] In a possible implementation, the SOC is also connected to a double rate synchronous dynamic random access memory DDR, and the SOC also includes a third power domain and a third power supply interface; the third power supply interface is used for the PMU to power the third power domain; the third power domain is used to communicate with the DDR.
[0231] It should be noted that the relevant functions of the system on chip SOC described in the embodiments of the present application can be found in the above Figure 2A-Figure 5B The relevant descriptions in the application embodiments described in will not be repeated here.
[0232] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program, and when the program is executed by an electronic device, the program includes part or all of the steps of any one of the above method embodiments.
[0233] An embodiment of the present application also provides a computer program, which includes instructions. When the computer program is executed by an electronic device, the electronic device can execute part or all of the steps of any power supply management method.
[0234] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0235] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, some steps may be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0236] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0237] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0238] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0239] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. Among them, the aforementioned storage medium may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviated: ROM) or random access memory (Random Access Memory, abbreviated: RAM) and other media that can store program codes.
[0240] 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 deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An electronic device, characterized in that: It includes a system on chip SOC, a power management unit PMU, a sensor module and peripherals, wherein the SOC includes a first power domain and a second power domain, wherein: The PMU is used to respectively supply power to the first power domain and the second power domain in the SOC; the power supply between the first power domain and the second power domain is independent of each other; The SOC is used to communicate with the sensor module through the first power domain, and to communicate with the peripheral device through the second power domain, and the sensor module is used to collect biometric information; The PMU is further used to control the first power domain to enter a first power supply state and control the second power domain to enter a second power supply state upon receiving a first shutdown command sent by the SOC, wherein the first power supply state is a power-on state and the second power supply state is a power-off state.
2. The device according to claim 1, characterized in that The sensor module is a fingerprint module, and the device further comprises a power button; the power button is a physical power button, and the fingerprint module is arranged on the physical power button.
3. The device according to claim 1 or 2, characterized in that: The device also includes a power button; The SOC is further configured to receive a power-on operation of the power button by a user at a first moment t1, and send a first power-on command to the PMU; The PMU is configured to control the second power domain to enter a third power supply state after receiving the first power-on command, wherein the third power supply state is a power-on state; The SOC is further configured to start up in the third power supply state through the second power domain.
4. The device according to claim 1 or 2, characterized in that: The sensor module is further used to collect biometric information of the user at a second time t2, and send the biometric information to the first power domain in the SOC; wherein t2 is a time before the second power domain enters a power-on state; The SOC is further configured to receive the biometric information through the first power domain and cache the biometric information in the first power domain.
5. The device according to claim 4, characterized in that The SOC is also used to compare the biometric information cached in the first power domain with the biometric template pre-stored in the second power domain after the device is successfully powered on. If a match is successful, it is determined that the biometric unlocking is successful.
6. The device according to claim 5, characterized in that The biometric template is pre-stored in a secure area trustzone in the second power domain.
7. The device according to any one of claims 1 to 6, characterized in that: The SOC is further used to send the first shutdown command to the PMU via a system power management interface SPMI; or, an input / output IO hard line is provided between the SOC and the PMU, and the SOC is further used to send the first shutdown command to the PMU via the IO hard line.
8. The device according to any one of claims 1 to 7, characterized in that: The SOC is also used to: Receive a shutdown instruction sent by the user and determine whether biometric information is currently being entered; If the biometric information has been currently entered, the first shutdown command is sent to the PMU.
9. The device according to claim 8, characterized in that The SOC is also used to: If no biometric information is currently entered, sending a second shutdown command to the PMU; The PMU is further configured to receive the second shutdown command and control the first power domain and the second power domain to enter a power-off state.
10. The device according to any one of claims 1 to 9, characterized in that: When the first power domain is in the first power supply state and the second power domain is in the second power supply state, the SOC is further configured to: If no biometric information is received within a preset time period, sending a second shutdown command to the PMU; The PMU is further configured to receive the second shutdown command and control the first power domain to enter a power-off state.
11. The device according to claim 9 or 10, characterized in that The device also includes a power button; The PMU is also used to receive a second power-on command triggered by the power key when both the first power domain and the second power domain are in a power-off state, preferentially control the first power domain to enter the first power supply state, and further control the second power domain to enter a third power supply state, wherein the third power supply state is a power-on state.
12. A power supply management method, characterized in that: Applied to an electronic device, the electronic device includes a system on chip SOC, a power management unit PMU, a sensor module and a peripheral device, the SOC includes a first power domain and a second power domain; the method includes: The PMU supplies power to the first power domain and the second power domain in the SOC respectively; the power supplies between the first power domain and the second power domain are independent of each other; The SOC communicates with the sensor module through the first power domain, and communicates with the peripheral device through the second power domain, and the sensor module is used to collect biometric information; When the PMU receives the first shutdown command sent by the SOC, it controls the first power domain to enter a first power supply state and controls the second power domain to enter a second power supply state, wherein the first power supply state is a power-on state and the second power supply state is a power-off state.
13. The method according to claim 12, characterized in that The device further includes a power button; and the method further includes: The SOC receives a power-on operation of the power button by the user at a first moment t1, and sends a first power-on command to the PMU; After receiving the first power-on command, the PMU controls the second power domain to enter a third power supply state, wherein the third power supply state is a power-on state; The SOC is powered on in the third power supply state through the second power domain.
14. The method according to claim 12 or 13, characterized in that The method further comprises: collecting biometric information of the user at a first time t2 through the sensor module, and sending the biometric information to the first power domain in the SOC; wherein t2 is a time before the second power domain enters a power-on state; The biometric information is received by the SOC through the first power domain, and the biometric information is cached in the first power domain.
15. The method according to claim 14, characterized in that The method further comprises: When the computer is powered on successfully, the SOC compares the biometric information cached in the first power domain with the biometric information template pre-stored in the second power domain. If a match is successful, it is determined that the biometric unlocking is successful.
16. The method according to any one of claims 12 to 15, characterized in that: The PMU respectively supplies power to the first power domain and the second power domain in the SOC, comprising: The PMU supplies power to the first power domain through a first power pin set, and supplies power to the second power domain through a second power pin set; the first pin set or the second pin set includes multiple power pins, each power pin is used to provide a different voltage value.
17. The method according to any one of claims 12 to 16, characterized in that: The method further comprises: The SOC sends the first shutdown command to the PMU through a system power management interface SPMI; or, The SOC sends the first shutdown command to the PMU via an input / output (IO) hard line; the IO hard line is a hard line set between the SOC and the PMU.
18. The method according to any one of claims 12 to 17, characterized in that: The device further includes a power button; and the method further includes: The SOC receives a shutdown instruction sent by the power button and determines whether biometric information is currently being entered; If the biometric information has been currently entered, the SOC sends the first shutdown command to the PMU.
19. The method according to claim 18, characterized in that The method further comprises: If no biometric information is currently entered, the SOC sends a second shutdown command to the PMU; The PMU receives the second shutdown command and controls both the first power domain and the second power domain to enter a power-off state.
20. The method according to any one of claims 12 to 19, characterized in that: When the first power domain is in the first power state and the second power domain is in the second power state; the method further includes: When no biometric information is received within a preset time period, the SOC sends a second shutdown command to the PMU; The PMU receives the second shutdown command and controls the first power domain to enter a power-off state.
21. The method according to claim 19 or 20, characterized in that The device further includes a power button; and the method further includes: When both the first power domain and the second power domain are in a power-off state, the PMU receives a second power-on command triggered by the power key, preferentially controls the first power domain to enter the first power supply state, and further controls the second power domain to enter a third power supply state, wherein the third power supply state is a power-on state.
22. A system on chip SOC, characterized in that: It includes a first power domain and a second power domain, a first power supply interface, and a second power supply interface; the SOC is connected to a power management unit PMU, a sensor module, and a peripheral device, wherein: The first power supply interface is used for the PMU to supply power to the first power domain, the first power domain is used to communicate with the sensor module, and the sensor module is used to collect biometric information; The second power supply interface is used for the PMU to supply power to the second power domain; the second power domain is used to communicate with the peripheral device; the power supply between the first power domain and the second power domain is independent of each other; The first power domain is further used to enter a first power supply state under the control of the PMU when the PMU receives a first shutdown command, and the first power supply state is a power-on state; The second power domain is further used to enter a second power supply state under the control of the PMU when the PMU receives the first shutdown command, and the second power supply state is a power-off state.
23. The SOC according to claim 22, characterized in that: The SOC is also connected to a power button; The second power domain is also used to enter a third power supply state under the control of the PMU after the PMU receives the first power-on command. The third power supply state is a power-on state. The first power-on command is sent to the PMU by the SOC after receiving the user's power-on operation on the power button at the first moment t1.
24. The SOC according to claim 22 or 23, characterized in that: The first power domain is further used to receive biometric information of the user collected by the sensor module at a first moment t2, and cache the biometric information, wherein t2 is a moment before the second power domain enters a power-on state.
25. The SOC according to claim 24, characterized in that The first power domain is also used to compare the cached biometric information with the biometric information template pre-stored in the second power domain when the electronic device is successfully powered on. If a match is successful, it is determined that the biometric unlocking is successful.
26. The SOC according to any one of claims 22 to 25, characterized in that: The first shutdown command is sent to the PMU when the SOC receives a shutdown instruction sent by the user and determines that the biometric information has been entered.
27. The SOC according to any one of claims 22 to 26, characterized in that: The first power domain and the second power domain are also used to enter a power-off state under the control of the PMU when the PMU receives a second shutdown command; the second shutdown command is sent to the PMU by the SOC when it receives a shutdown instruction sent by the user and determines that no biometric information is currently entered.
28. The SOC according to claim 27, characterized in that The first power domain is also used to enter a power-off state under the control of the PMU when the PMU receives a second shutdown command; the second shutdown command is sent to the PMU when the first power domain is in the first power supply state, the second power domain is in the second power supply state, and the SOC does not receive biometric information within a preset time period.
29. The SOC according to claim 27 or 28, characterized in that: When both the first power domain and the second power domain are in a power-off state, the first power domain is also used to preferentially enter the first power supply state under the control of the PMU when the PMU receives a second power-on command; the second power domain is also used to further enter the first power supply state under the control of the PMU.
30. A computer-readable storage medium, characterized in that: The computer-readable medium is used to store program codes, and when the program codes are executed by an electronic device, the method described in any one of claims 12 to 21 is implemented.
Citation Information
Cited By
Package test method based on power supply pin distribution
CN119805173A
Power-on control method and system, chip, equipment and storage medium
CN121232950A