A hierarchical computing power management and dynamic frequency adjustment method for fingerprint mice, and fingerprint mice.
By implementing hierarchical computing power management and dynamic frequency adjustment, the problems of crude power consumption control and lag in fingerprint mice have been solved, achieving a comprehensive balance between low power consumption, fast authentication, and smooth interaction, extending battery life and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WARNER SECURITY (BEIJING) TECHNOLOGY CO LTD
- Filing Date
- 2026-03-16
- Publication Date
- 2026-06-02
Smart Images

Figure CN122131924A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of energy efficiency management technology, specifically to a method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse, and the fingerprint mouse itself. Background Technology
[0002] Peripheral-side identity authentication and cryptographic operations are gradually evolving from "simple passwords / external keys" to "biometric features + hardware trust". As a typical integrated peripheral, the fingerprint mouse needs to achieve stable data interaction between the mouse main controller, fingerprint module and cryptographic operation chip, and ensure the encrypted transmission of sensitive data and the trusted operation of the device side under various connection modes such as 2.4G wireless and USB wired.
[0003] In typical applications of trusted fingerprint mice, the power management module must not only control the power consumption of the mouse itself, but also manage the power consumption of the fingerprint module and the password processing chip. To achieve an acceptable battery life, existing products typically employ a low-power strategy of "entering sleep / light sleep / deep sleep after no operation and waking up by movement or pressing a button": for example, entering sleep or light sleep after 2 minutes of no operation and entering deep sleep after 3 minutes of no operation, and requiring immediate fingerprint recognition upon waking. Meanwhile, under a comprehensive usage model of 20-25 fingerprint verifications per day, long-term office use, and long-term low-power persistence, a single full charge is required to last for at least 15 days, with an estimated battery capacity of 600-1000mAh. In addition, trusted fingerprint mice must also maintain normal and smooth basic interactions such as mouse pointer movement and clicking while the user is waiting for fingerprint recognition or other applications to call the fingerprint interface.
[0004] However, existing fingerprint mice generally suffer from poor power consumption control, short battery life, and slow wake-up in low-power mode, making it difficult to balance battery life and the immediacy of fingerprint verification. Furthermore, insufficient integration and coordination between the fingerprint module and the encryption / cryptography chip can lead to resource contention between the fingerprint verification process and basic mouse functions, resulting in interactive stuttering. Current energy consumption control solutions primarily focus on state switching such as "power on / off / sleep / wake-up," lacking hierarchical management of the varying computing power required for different tasks within the working state (such as mouse interaction, fingerprint acquisition and comparison, and cryptographic operations and communication). The main control processor and related modules often operate at fixed or single-level frequencies, leading to redundant computing power and increased power consumption in light-load interaction scenarios, while in fingerprint and cryptographic operation scenarios, mismatched frequency and computing power configurations can introduce additional latency, making it difficult to achieve a stable balance between "real-time interaction, immediacy of fingerprint recognition, and long battery life." Therefore, a hierarchical computing power management and dynamic frequency adjustment method for fingerprint mice is urgently needed to achieve more refined and controllable energy consumption reduction and improved user experience consistency while meeting the parallel requirements of fingerprint / cryptography service calls and mouse interaction. Summary of the Invention
[0005] Based on the above description, the present invention provides a hierarchical computing power management and frequency dynamic adjustment method for a fingerprint mouse, as well as a fingerprint mouse, to solve the problem of how to achieve hierarchical computing power collaborative management that balances low power consumption, fast authentication and smooth interaction in a fingerprint mouse.
[0006] On the one hand, the technical solution of the present invention to solve the above-mentioned technical problems is as follows: a method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse, applied to a fingerprint mouse including a mouse main control chip, a fingerprint module and a password operation chip, executed by the mouse main control chip, the method comprising:
[0007] Obtain operational metrics, which include at least the interaction load metrics related to mouse interaction tasks, the fingerprint request or fingerprint stage metrics related to fingerprint tasks, the password request metrics related to password computation tasks, and the no-operation time metrics.
[0008] The target operating mode is determined based on the aforementioned operating indicators, and the target operating mode includes at least a working state and a low-power state.
[0009] When in the aforementioned working state, a target computing power level is determined based on the aforementioned operating indicators. The target computing power level includes at least an interaction energy-saving level, an interaction standard level, and an authentication acceleration level. The interaction energy-saving level is used to meet the real-time processing of mouse interaction tasks when there are no fingerprint tasks or password calculation tasks. The interaction standard level is used to ensure the real-time processing of mouse interaction tasks when the interaction load increases. The authentication acceleration level is used to shorten the authentication processing latency when fingerprint tasks or password calculation tasks are detected.
[0010] According to the target computing power level, at least one frequency parameter is dynamically adjusted, and the frequency parameter includes at least the main control processor frequency and / or bus frequency and / or peripheral operating frequency.
[0011] Based on the target computing power level, perform on-demand power-on, power-off and / or clock gating control on the domain where the fingerprint module is located and / or the domain where the cryptographic operation chip is located, so that the high power consumption duration window of the fingerprint task and the cryptographic operation task is less than the preset window.
[0012] During the execution of the fingerprint task or the cryptographic operation task, the task processing is performed in a preemptive scheduling manner, wherein the mouse interaction task has a higher scheduling priority than the fingerprint task and the cryptographic operation task; when it is determined that the margin for the mouse interaction task to meet the real-time constraints is insufficient, the target computing power level is temporarily increased and the frequency parameter is increased accordingly, and the target computing power level is reduced back to a lower level after the real-time constraints are met.
[0013] By acquiring multi-dimensional operational indicators such as interaction load, fingerprint request or stage, password request, and no-operation time, this invention can more accurately perceive and determine the current business status of the fingerprint mouse, thereby enabling targeted switching between working and low-power states and avoiding unnecessary power consumption caused by traditional fixed working modes. Furthermore, in the working state, the invention divides interaction into energy-saving levels, interaction standard levels, and authentication acceleration levels, and dynamically adjusts the main control processor frequency, bus frequency, and / or peripheral operating frequency accordingly. This ensures that the system's computing power supply matches the current task load, reducing redundant power consumption in light-load scenarios and promptly improving processing capabilities in fingerprint authentication or password computation scenarios, significantly shortening authentication response latency. Simultaneously, implementing on-demand power-on, power-off, and / or clock gating control for the fingerprint module and / or password computation chip domains effectively compresses the continuous working window of high-power modules, reducing the overall average power consumption and extending battery life. Furthermore, by employing preemptive scheduling and assigning higher priority to mouse interaction tasks, the basic input functions can be prevented from being blocked by fingerprint or password calculation tasks, ensuring the smoothness of cursor movement, key clicks, and scroll wheel operations. When real-time margin is insufficient, the computing power level can be temporarily increased and then reduced after the constraints are met, thus balancing peak performance and steady-state energy saving. Therefore, this invention achieves a comprehensive balance between low power consumption, fast authentication, and real-time interaction, improving the overall user experience and engineering practicality of the fingerprint mouse.
[0014] Based on the above technical solution, the present invention can be further improved as follows.
[0015] Furthermore, the low-power state includes a sleep state; when there are no operation timing indicators... satisfy When the timer is active, the system switches from working state to sleep state; wherein, the no-operation timing indicator... The cumulative time since the most recent interaction event, which includes at least motion events, button events, and scroll wheel events; when a swipe event and / or button event is detected, the system switches from sleep state to working state, and after switching to working state, it enters the authentication acceleration level to respond to the fingerprint task; wherein, switching to working state includes at least performing the following: turning on the main control processor clock and increasing the main control processor frequency to a frequency not lower than the frequency corresponding to the interaction standard level, restoring the HID link reporting capability, and performing pre-power-on or de-clock gating on the domain where the fingerprint module is located.
[0016] Furthermore, the low-power state includes a light sleep state and a deep sleep state; when there are no operation timing indicators satisfy ;
[0017] Switch to light sleep mode when there is no operation timer indicator. satisfy ;
[0018] The system switches to a deep sleep state; a light sleep state is woken up by a swipe event, and a deep sleep state is woken up by a button event; wherein, the light sleep state at least maintains the HID wake-up source and motion detection capability, and the deep sleep state at least disables motion detection and retains only the button wake-up source; and, when waking up from the light sleep state or deep sleep state to the working state, it first enters the preheating sub-state, in which the domain where the fingerprint module is located is powered on and the interface is initialized before entering the authentication acceleration level.
[0019] Furthermore, the target computing power level further includes a keep-alive monitoring level and a parallel guarantee level; wherein, the keep-alive monitoring level is used to maintain wake-up source monitoring in a low-power state and to perform shutdown or deep gating on the domain where the fingerprint module is located and the domain where the cryptographic operation chip is located; the parallel guarantee level is used to briefly increase the frequency of the main control processor and the bus frequency to prioritize clearing the interactive task queue when the interaction load index exceeds a threshold during the execution of the fingerprint task or cryptographic operation task; wherein, the triggering criterion of the parallel guarantee level includes at least one of the following: ;or ;or Furthermore, the exit criteria for the parallel protection level include at least a hysteresis condition: ;
[0020] in , , After exiting the parallel protection level, it will automatically fall back to the authentication acceleration level or the interactive energy saving level.
[0021] Furthermore, the interaction load metric includes at least the HID sending queue length. and / or motion interruption density and / or sensor FIFO water level The method constructs an interactive congestion index based on the interactive load index when determining the target computing power level. and according to Switching between interactive energy efficiency levels and interactive standard levels; among which ; For preset weighting coefficients; when Switch to the standard interaction level when Switch to interactive energy-saving level at any time, and This creates hysteresis.
[0022] Furthermore, the interaction load metric includes at least the HID sending queue length. and / or motion interruption density and / or sensor FIFO water level The method constructs an interactive congestion index based on the interactive load index when determining the target computing power level. and according to Switching between interactive energy efficiency levels and interactive standard levels; among which ; For preset weighting coefficients; when Switch to the standard interaction level when Switch to interactive energy-saving level at any time, and This creates hysteresis.
[0023] Furthermore, the fingerprint task and cryptographic operation task are divided into multiple stage windows, which at least include a preheating-up power-on stage, an acquisition stage, a comparison stage, a cryptographic operation stage, and a data transmission stage. Upon entering the preheating-up power-on stage, power is applied to the domain containing the fingerprint module, and the frequency of the bus communicating with the fingerprint module is increased to ensure the main control processor frequency meets the requirements. ;
[0024] in The main control processor frequency corresponds to the interaction standard level; after authentication, a delayed power-off hold time is applied to the domain where the fingerprint module is located and the domain where the cryptographic processing chip is located. After power is cut off, the frequency parameter is returned to the frequency corresponding to the interactive energy-saving level; wherein, the delayed power-off hold time Used to suppress power-on losses caused by repeated authentication within a short period of time, and to meet the requirements ;
[0025] And when When a fingerprint request or password request is detected again, the domain where the fingerprint module is located and the domain where the password operation chip is located are kept in a power-on or non-deep gating state.
[0026] Furthermore, the preemptive scheduling method includes time-slicing the fingerprint task and the cryptographic operation task for execution; let the authentication task time slice be... When the length of the HID sending queue reaches the upper limit threshold Or HID reporting waiting time Reaching the upper limit threshold When, shorten and / or upgrade to the aforementioned parallel protection level; wherein, the At least one of the following adaptive relationships must be satisfied: ;or ;
[0027] in , For the smallest time slice, As the reference time slice, For adjustment coefficients, This serves as a reference waiting time, thereby reducing the processing latency of mouse interaction tasks.
[0028] Secondly, the technical solution of the present invention to solve the above-mentioned technical problems is as follows: a fingerprint mouse, comprising: a mouse main control chip, a motion sensor, a button / scroll wheel assembly, a communication interface, a fingerprint module, a password operation chip, and a power management circuit;
[0029] The mouse main control chip includes a power management unit, a task scheduling unit, and a clock management unit; the power management unit is electrically connected to the power management circuit and is used to perform on-demand power-on, power-off, and / or clock gating control on the domain where the fingerprint module is located and / or the domain where the password operation chip is located.
[0030] The clock management unit is used to dynamically adjust at least one frequency parameter, which includes at least the main control processor frequency. and / or bus frequency and / or peripheral operating frequency ;
[0031] The task scheduling unit is used to preemptively schedule mouse interaction tasks, fingerprint tasks, and password calculation tasks, and to give mouse interaction tasks a higher scheduling priority than fingerprint tasks and password calculation tasks.
[0032] The mouse main control chip is configured to: determine the target computing power level based on the operating indicators, and adjust the frequency parameters and control the domain where the fingerprint module is located and / or the domain where the cryptographic operation chip is located according to the target computing power level, so as to prioritize the real-time performance of the mouse interaction task during the execution of the fingerprint task or the cryptographic operation task, and shorten the high power consumption duration window of the fingerprint task and the cryptographic operation task.
[0033] Furthermore, the target computing power level includes at least an interactive energy-saving level, an interactive standard level, an authentication acceleration level, and a parallel guarantee level; the mouse main control chip is configured to acquire at least the HID sending queue length. Interruption density of motion and motion sensor FIFO water level The interaction load metrics are calculated, and the congestion metric is also calculated.
[0034] ;in For preset weighting coefficients; when Switching to the interactive standard level or the parallel assurance level at any time can improve the... and / or ,when Switch to interactive energy-saving level to reduce the and / or And satisfy To create hysteresis; and after authentication, to perform a delayed power-off hold time for the domain where the fingerprint module is located and the domain where the cryptographic processing chip is located. Power is then cut off to suppress power-up losses caused by frequent power-on cycles due to repeated authentication in short periods.
[0035] Compared with the prior art, the technical solution of this application has the following beneficial technical effects:
[0036] 1. By jointly sensing operational metrics such as interaction load, fingerprint requests or stages, password requests, and no-operation timers, and switching between working and low-power states, and between interaction energy-saving levels, interaction standard levels, and authentication acceleration levels, this solution dynamically adjusts the main control processor frequency, bus frequency, and peripheral operating frequencies. It also implements on-demand power-on / power-off or clock gating for the fingerprint module domain and password processing chip domain. This approach better matches the system's computing power supply with the actual business load, avoiding ineffective power consumption caused by computing power redundancy in light-load scenarios and response delays caused by insufficient computing power in authentication scenarios. Combined with delayed power-off retention after authentication and adaptive control based on low power and connection status, this approach helps reduce losses from frequent power-on / off cycles, lowers the average power consumption of the entire device, extends battery life, and improves the consistency of experience under different power and battery conditions.
[0037] 2. By setting a sleep state, or further setting two low-power states of light sleep and deep sleep, and selecting different sleep depths based on the duration of no operation, while retaining and cutting corresponding wake-up sources, the main control processor clock is restored upon detecting a sliding event or key event. This is achieved by increasing the frequency to at least the interaction standard level, restoring HID link reporting capabilities, and performing pre-power-on, degating, or completing interface initialization in the preheating sub-state before entering the authentication acceleration level for the fingerprint module's domain. This solution effectively shortens the preparation time of the "sleep-wake-authentication" link. Its effects are: on the one hand, it significantly reduces power consumption during idle standby; on the other hand, it ensures that basic mouse operations and fingerprint authentication capabilities are quickly restored after the user wakes up, thus balancing low-power standby, fast wake-up, and authentication immediacy.
[0038] 3. By employing preemptive scheduling during fingerprint or password processing tasks, mouse interaction tasks have a higher scheduling priority than authentication tasks. When increased interaction load, congestion exceeding a threshold, or HID queue length and waiting time approaching their limits are detected, the system temporarily upgrades to a parallel guarantee level, increases the main control and bus frequency, and implements time-slicing and adaptive shortening for authentication tasks. After congestion subsides, the system returns to its previous state based on hysteresis conditions. This solution prioritizes clearing the interaction task queue, reducing the problem of authentication tasks occupying processing resources for extended periods. This helps reduce latency and stuttering probability in basic interactions such as cursor movement, key clicks, and scroll wheel reporting, enabling fingerprint recognition, password processing, and mouse input to run stably in parallel, improving overall real-time performance, smoothness, and system stability. Attached Figure Description
[0039] Figure 1 This is a table of symbols and values for embodiments of the present invention;
[0040] Figure 2 This is a flowchart of the hierarchical computing power management and dynamic frequency adjustment method for the fingerprint mouse of the present invention.
[0041] Figure 3 This is a schematic diagram illustrating the relationship between the hardware / functional modules and power consumption domain of a fingerprint mouse provided in an embodiment of the present invention.
[0042] Figure 4 This is a flowchart illustrating the outer state machine and wake-up recovery process for a single sleep mode according to an embodiment of the present invention.
[0043] Figure 5 This is a schematic diagram illustrating the mapping between computing power level and frequency / domain control in the working state according to an embodiment of the present invention;
[0044] Figure 6 This is a logic diagram for congestion index calculation, hysteresis switching, and parallel guarantee triggering / exit in an embodiment of the present invention.
[0045] Figure 7 This is a schematic diagram of the authentication phase windowing and timing and Hold control according to an embodiment of the present invention;
[0046] Figure 8 This is a flowchart illustrating the combined time-slice adaptation and parallel guarantee of anti-stuttering control in an embodiment of the present invention. Detailed Implementation
[0047] To facilitate understanding of this application, a more complete description will be provided below with reference to the accompanying drawings, which illustrate embodiments of the present application. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of this application will be thorough and complete.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
[0049] This invention provides a hierarchical computing power management and dynamic frequency adjustment method for a fingerprint mouse, applied to a fingerprint mouse including a mouse main control chip, a fingerprint module, and a password calculation chip, executed by the mouse main control chip. The method acquires operational indicators during operation, including at least interaction load indicators related to mouse interaction tasks, fingerprint request or fingerprint stage indicators related to fingerprint tasks, password request indicators related to password calculation tasks, and no-operation time indicators; determines a target operating mode based on the operational indicators, including at least a working state and a low-power state; when in the working state, determines a target computing power level based on the operational indicators, including at least an interaction energy-saving level, an interaction standard level, and an authentication acceleration level; and dynamically adjusts at least one frequency parameter according to the target computing power level, including at least the main control processor frequency and / or total frequency. Line frequency and / or peripheral operating frequency; perform on-demand power-on, power-off, and / or clock gating control on the domain where the fingerprint module and / or the cryptographic operation chip are located, according to the target computing power level, so that the high power consumption duration window of the fingerprint task and the cryptographic operation task is less than the preset window; during the execution of the fingerprint task or the cryptographic operation task, the task processing is performed in a preemptive scheduling manner, wherein the mouse interaction task has a higher scheduling priority than the fingerprint task and the cryptographic operation task; when it is determined that the margin for the mouse interaction task to meet the real-time constraints is insufficient, the target computing power level is temporarily increased and the frequency parameters are increased accordingly, and the target computing power level is reduced back to a lower level after the real-time constraints are met.
[0050] To enable the technical solution of this invention to be directly implemented, the symbols and parameters involved in the specification are first uniformly defined below, and a set of executable example values are given. It should be understood that the listed values are only used to illustrate the feasibility of this invention, and the actual product can be equivalently adjusted without departing from the spirit of this invention.
[0051] Symbol explanations and example value tables are provided in the accompanying drawings. Figure 1 .
[0052] In addition, the mouse interaction rate in this embodiment can be configured at 500Hz to form an engineering reference for HID real-time constraints.
[0053] Example 1:
[0054] refer to Figure 2 and Figure 8A hierarchical computing power management and dynamic frequency adjustment method for a fingerprint mouse is disclosed. This method is applied to a fingerprint mouse comprising a main control chip, a fingerprint module, and a password processing chip. The method is executed by the main control chip and includes the following steps:
[0055] S01 Obtain operational metrics, which include at least the interaction load metrics related to the mouse interaction task, the fingerprint request or fingerprint stage metrics related to the fingerprint task, the password request metrics related to the password operation task, and the no-operation time metrics.
[0056] S02 determines the target operating mode based on the operating indicators, and the target operating mode includes at least a working state and a low-power state;
[0057] S03 When in the working state, the target computing power level is determined based on the operating indicators. The target computing power level includes at least an interaction energy saving level, an interaction standard level, and an authentication acceleration level. The interaction energy saving level is used to meet the real-time processing of mouse interaction tasks when there are no fingerprint tasks or password calculation tasks. The interaction standard level is used to ensure the real-time processing of mouse interaction tasks when the interaction load increases. The authentication acceleration level is used to shorten the authentication processing latency when fingerprint tasks or password calculation tasks are detected.
[0058] S04 dynamically adjusts at least one frequency parameter according to the target computing power level, wherein the frequency parameter includes at least the main control processor frequency and / or bus frequency and / or peripheral operating frequency;
[0059] S05 performs on-demand power-on, power-off and / or clock gating control on the domain where the fingerprint module is located and / or the domain where the cryptographic operation chip is located according to the target computing power level, so that the high power consumption duration window of the fingerprint task and the cryptographic operation task is less than the preset window.
[0060] S06 During the execution of the fingerprint task or the cryptographic operation task, the task processing is performed in a preemptive scheduling manner, wherein the mouse interaction task has a higher scheduling priority than the fingerprint task and the cryptographic operation task; when it is determined that the margin for the mouse interaction task to meet the real-time constraints is insufficient, the target computing power level is temporarily increased and the frequency parameter is increased accordingly, and the target computing power level is reduced back to a lower level after the real-time constraints are met.
[0061] As a preferred option, I. Regarding hierarchical computing power management and dynamic frequency adjustment in single sleep mode
[0062] The main control chip integrates a power management unit, a task scheduling unit, and a clock management unit, used to execute the method of this invention and control the frequency of the main control processor. Bus frequency and peripheral operating frequency Dynamic adjustments are made, and on-demand power-on, power-off, and / or clock gating control is performed on the domain where the fingerprint module is located and / or the domain where the cryptographic operation chip is located, thereby compressing the high power consumption duration of the fingerprint task and the cryptographic operation task within a preset window.
[0063] The computing power levels within the working state are divided into at least four tiers: Interactive Energy Saving Tier (Tier 1), Interactive Standard Tier (Tier 2), Certified Acceleration Tier (Tier 3), and Parallel Guarantee Tier (Tier 4 Short-Term). A frequency tier table is preset for each computing power tier; for example, Tier 1 corresponds to... Tier 2 correspondence (Right now Tier 3 corresponding Tier 4 correspondence Meanwhile, for communication and sampling links, a pre-defined binding with Tier is implemented. and To ensure the stability of HID reporting, fingerprint communication and peripheral sampling at different frequency levels, the above frequency levels can be replaced with equivalent ones according to the chip platform capabilities.
[0064] In single sleep mode, there are no operation timing indicators. Accumulated since the most recent interaction event, the interaction events include at least motion events, button events, and scroll wheel events. When the following conditions are met... At that time, it switches from working state to sleep state, among which In this embodiment, 120 seconds is used. After entering sleep mode, the main control chip stops HID high-frequency reporting and continuous sampling by the motion sensor, retaining only the necessary wake-up source monitoring and timing functions; at the same time, it performs shutdown or deep clock gating on the domain where the fingerprint module is located and the domain where the password operation chip is located, and reduces the frequency of the main control processor to the minimum frequency required for keep-alive monitoring, so as to reduce average power consumption.
[0065] The system maintains necessary wake-up source listening during sleep mode. Upon detecting a swipe event and / or key press event, it switches from sleep mode to active mode. To ensure "immediate access to the fingerprint recognition window upon wake-up," during the recovery process from the active mode switch, the main control chip sequentially performs the following: restoring the main control processor clock and the necessary HID link peripheral clocks; increasing the main control processor frequency to a frequency no lower than the frequency corresponding to the interaction standard level (i.e., meeting the requirements). The recovery steps include: restoring the HID link's reporting capability and establishing a transmission queue; performing pre-power-on or de-clock gating on the domain where the fingerprint module is located; and initializing the communication interface with the fingerprint module. These recovery steps can be performed serially or in parallel depending on the actual hardware platform, but should adhere to the priority principle of "restoring the interaction link first, then entering authentication acceleration" to avoid pointer lag during wake-up.
[0066] Within the operational state, the main control chip collects interaction load metrics and calculates congestion metrics at fixed intervals or in an event-driven manner. ,in .in, The length of the HID send queue. This represents the motion interruption density (e.g., the number of motion interruptions within a 10ms statistical window). For motion sensor FIFO water level or occupancy rate, The preset weighting coefficients are used. To avoid frequent jittering switching, this embodiment employs dual threshold hysteresis: when... Switch to the interactive standard level and increase the main control processor frequency to Or higher, while increasing the frequency of HID-related peripherals and the bus to a mid-range level matching Tier 2; when Switching to the interactive power-saving level and reducing the main control processor frequency and bus frequency to a low level, among which This approach avoids redundant energy consumption caused by fixed high frequencies in scenarios with light user movement or intermittent clicking, while maintaining real-time interaction and queue stability in scenarios with high-frequency movement or high reward rates.
[0067] When a fingerprint or password request is detected, the main control chip enters the authentication acceleration level and divides the fingerprint and password calculation tasks into stages such as preheating power-on, acquisition, comparison, password calculation, and data transmission. The fingerprint request can be triggered by a fingerprint trigger event, a host computer fingerprint interface call event, or an authentication control command; the password request can be triggered by a password calculation command in the authentication process. During the preheating power-on stage, the main control chip powers on the domain containing the fingerprint module and increases the frequency of the bus communicating with the fingerprint module to ensure the main control processor frequency meets the requirements. If necessary, the frequency will be increased to the corresponding Tier 3 frequency to shorten the preparation time from wake-up to data collection readiness. Simultaneously, authentication-related buffers, session contexts, and task queues will be initialized to ensure continuity from the data collection phase to the comparison phase. During the data collection phase, the main control chip drives the fingerprint module to complete one or more data collections using a preset sampling clock, and writes the collected data or feature results to the authentication cache. During the comparison phase, the main control chip performs fingerprint comparison calculations or triggers the fingerprint module to complete the comparison and obtain the comparison results. During the cryptographic calculation phase, the main control chip sends calculation commands to the cryptographic calculation chip and waits for a response. During the data transmission phase, the main control chip returns the authentication results to the host computer or local authentication control module through a predetermined interface. Interactive task preemption points are allowed between each phase to ensure the real-time performance of the mouse interaction link.
[0068] After authentication, the main control chip performs a delayed power-off hold time for the domain where the fingerprint module is located and the domain where the cryptographic processing chip is located. Power was then cut off, and the following conditions were met: This embodiment takes ms. Settings The purpose is to suppress the power-on overhead and clock stabilization overhead caused by repeated authentication requests within a short period of time: if in If a fingerprint or password request is detected again within the domain, the domain remains in a power-on or non-deep-gated state and directly enters the corresponding stage window; if... If no new authentication request is received, the domain will be closed after the retention period ends and the main control processor frequency will drop back to the corresponding Tier 1 or Tier 2 frequency, thus forming an energy consumption curve of "high frequency during authentication window - drop back upon completion".
[0069] During authentication, to prevent authentication tasks from crowding out the interaction chain and causing lag, the main control chip employs preemptive scheduling, where mouse interaction tasks have higher scheduling priority than fingerprint and password calculation tasks. Specifically, interaction tasks (including motion / button interrupt handling, HID queue dequeueing and sending) are configured as high-priority or processed quickly in interrupt context; authentication tasks run on lower-priority threads and employ a preemptive segmented execution method: each time a preset authentication sub-step is completed or a preset execution duration is reached, the processor is actively yielded to insert an interaction task processing window. Furthermore, when the interaction load exceeds a threshold, the main control chip temporarily enters the parallel protection level (Tier 4 short-term), and its triggering criteria at least meet the following conditions. or or One of the measures; after entering the parallel protection level, the main control chip will and Elevate to a higher priority level to clear the interaction queue and shorten the HID sending wait time, while compressing the proportion of processor time that authentication tasks can occupy within the scheduling cycle; when the conditions are met... and and After the hysteresis exit condition, it will fall back to the certified acceleration level or the interactive energy-saving level, where , , This avoids frequent upscaling / downscaling caused by threshold jitter. Through the combined strategy of "preemptive scheduling + short-term frequency increase and queue clearing + hysteresis exit," mouse interaction can be maintained in real-time and smoothly during fingerprint or password processing tasks, while high-frequency operation is limited to necessary short windows to reduce average power consumption and improve battery life stability.
[0070] As a preferred option, the second feature is a dual low-power mode for light sleep / deep sleep and low-power adaptive mode.
[0071] The difference from the "tiered computing power management and dynamic frequency adjustment method in single sleep mode" lies in the following: the low-power state is divided into two levels, light sleep and deep sleep, and a low-power adaptive strategy is introduced in the dual low-power mode. This allows the device to further reduce peak and average power consumption in the later stages of battery life, while still meeting the experience constraint of "immediately entering the fingerprint recognition window after waking up". Except where specifically stated in this embodiment, the tiered computing power management, dynamic frequency adjustment, windowing of the authentication stage, and the preemptive scheduling mechanism with interaction priority within the working state can be implemented with reference to Embodiment 1.
[0072] In dual low-power mode, there are no operation timing indicators. Accumulated since the most recent interaction event, the interaction events include at least motion events, button events, and scroll wheel events. When the following conditions are met... The sleeper switches from a working state to a light sleep state when the following conditions are met. and The system switches from a working state or a light sleep state to a deep sleep state; the light sleep state is woken up by a swipe event, and the deep sleep state is woken up by a button event. In this embodiment... Take 120 seconds A duration of 180 seconds was used to cover application scenarios where "light sleep begins in 2 minutes and deep sleep begins in 3 minutes." The difference between light sleep and deep sleep lies in the following control: light sleep maintains at least the ability to listen to sliding (motion) wake-up sources and the minimum peripheral context required for rapid recovery of the HID link; deep sleep further reduces power consumption by disabling motion detection and high-frequency sampling, retaining only button wake-up sources and necessary keep-alive timing functions, thereby reducing the average power consumption in long-term placement scenarios.
[0073] To avoid jitter caused by repeated threshold switching between light and deep sleep states, this embodiment may optionally employ an "entry threshold / exit threshold" hysteresis strategy: after entering a light or deep sleep state, the corresponding low-power state is exited only when an interaction event is detected or a preset exit condition is met (e.g., valid interaction exists for a continuous period of time); or a minimum dwell time is set for the deep sleep state. This is to avoid additional wake-up losses caused by repeatedly entering and exiting deep sleep in a short period of time. The aforementioned hysteresis and minimum dwell time are optional implementations and do not constitute a limitation on the scope of protection of this invention.
[0074] When waking from a light or deep sleep state to the working state, the main control chip first enters a preheating sub-state. This preheating sub-state is used to shorten the initial response time from wake-up to fingerprint acquisition / recognition without significantly increasing continuous power consumption. Specifically, after detecting a swipe-to-wake event in the light sleep state or a button-to-wake event in the deep sleep state, the main control chip first restores the necessary peripherals of the HID link and increases the main control processor frequency to meet the requirements. At the same time, the fingerprint communication bus frequency was increased to match... The matching gear is then performed; subsequently, power is applied to the domain where the fingerprint module is located, and interface initialization and clock stabilization are completed (including but not limited to reset release, communication handshake, buffer clearing, and sampling parameter loading). After completing the preheating sub-state, if a fingerprint request is detected (e.g., a fingerprint trigger event or a host computer calling the fingerprint interface event), the system immediately switches to the authentication acceleration level (Tier 3) to enter the acquisition phase window; if it is only a general interactive wake-up and there is no fingerprint request, the system enters the interactive energy-saving level or the interactive standard level, and follows the congestion index in Example 1. Dynamic frequency adjustment is implemented to balance smoothness and energy consumption.
[0075] To further improve the consistency of the user experience in both low-power modes, this embodiment can optionally configure different "preheating power-on strategies" for the light sleep and deep sleep states: for example, in the light sleep state, some context or low-power clock gating state of the domain where the fingerprint module is located is retained, making its power-on and initialization path shorter; in the deep sleep state, a complete power-off strategy is adopted to obtain lower static power consumption, but a preheating sub-state is used to complete rapid recovery after button wake-up. This differentiated strategy can achieve a better balance between the two scenarios of "frequent short-term hand-off" and "long-term placement".
[0076] Further, a low-battery adaptive strategy is introduced; the operating metrics include a battery percentage indicator. With power threshold ,when At this time, the main control chip executes more aggressive energy-saving control to reduce the peak power consumption impact in the later stages of battery life and extend the usable time. In this embodiment, we take... This can correspond to low battery warning logic (e.g., slow flashing indicator light). In low battery adaptive state, at least one or more of the following strategies should be executed: First, shorten or limit the trigger frequency and duration of the parallel protection level (Tier 4 short-term upgrade); Second, accelerate the entry into light sleep and deep sleep states, i.e., dynamically adjust the low power state entry threshold; Third, shorten the retention time of the authentication acceleration level and fall back to the interactive power saving level more quickly after authentication; Fourth, appropriately increase the fragmentation of the authentication task to make the interactive link easier to preempt, thereby avoiding stuttering or repeated retries caused by processor performance fluctuations due to battery voltage drop.
[0077] Regarding dynamic threshold adjustment, at least one of the following adaptive relationships must be satisfied: ;or ;
[0078] in and always maintain .when From time to time ,thereby , The system reverts to a non-low power strategy; when hour, With / or Follow This reduces power consumption, allowing the device to enter a low-power state more quickly in inactive scenarios, thereby lowering average power consumption. To ensure engineering feasibility, [the following can be done / adjusted / implemented]. , Set a lower limit, for example , This is to avoid the threshold being too small, which would cause frequent entry and exit from the low-power state.
[0079] Regarding the duration limit of the parallel protection level, in order to suppress the peak power consumption impact under low power conditions, the maximum duration of the parallel protection level is limited to [missing information]. ;
[0080] and Follow Decrease rather than increase; specifically, this embodiment uses a piecewise function example: when hour, ;when hour, After entering the parallel protection level, if it reaches... If the exit hysteresis condition is still not met, the main control chip shall take at least one of the following measures: prioritize falling back to the certification acceleration level and increase the certification task slicing intensity; or temporarily increase the priority of the interaction task and reduce the time slice ratio of the certification task; or reduce the sampling frequency of non-critical peripherals to limit peak power consumption without compromising the real-time performance of the interaction.
[0081] Combining the aforementioned dual low-power modes and low-power adaptive strategy, this embodiment can maintain a consistent experience of "2 minutes of light sleep and 3 minutes of deep sleep" within the normal power range. In the low-power range, threshold adaptation and parallel protection of the duration limit control suppress the power consumption impact in the later stages of the battery. At the same time, the preheating sub-state ensures that the fingerprint collection and recognition window can be quickly entered after waking up from light sleep / deep sleep, thus balancing the battery life target and the interaction / authentication experience.
[0082] As a preferred option, the third feature is its ability to preemptively schedule time slices and ensure parallel operation to prevent buffering issues.
[0083] The key focus is on the following specific application scenarios: During the execution of fingerprint or password calculation tasks, users continue to move the mouse, click buttons, or scroll the wheel, requiring the mouse interaction link (HID acquisition and reporting) to remain real-time and smooth, while the authentication process must be completed within an acceptable latency. To address this, anti-lag is achieved through the coordinated control of "preemptible time slice scheduling (authentication task segmentation) + parallel guarantee level (short-term frequency increase and queue clearing)," and energy consumption increases caused by long-term high-frequency operation are suppressed through hysteresis and duration limits. During authentication execution, preemptive scheduling is adopted, with mouse interaction tasks having higher scheduling priority. When the real-time margin is insufficient, the computing power level and frequency parameters are temporarily increased, and then reduced back after the real-time constraints are met.
[0084] For ease of implementation, this embodiment divides the mouse firmware runtime tasks into at least three categories: interactive real-time tasks, authentication tasks, and background low-priority tasks. Interactive real-time tasks include at least motion interruption handling, button / scroll wheel event handling, HID data packaging, and HID data dequeueing and transmission. Authentication tasks include at least fingerprint acquisition and comparison control, password calculation command triggering, and result feedback. Background low-priority tasks include at least status statistics and log recording. The scheduling priority is set as follows: interactive real-time tasks are the highest, followed by authentication tasks, and then background tasks are the lowest. Interactive real-time tasks are allowed to preempt authentication tasks. To reduce the risk of long-term occupation of the interaction link by authentication tasks, authentication tasks adopt a "stage windowing + time slice segmentation" execution method: the authentication process is divided into stage windows such as warm-up, acquisition, comparison, password calculation, and feedback. Each stage window is further executed in a time slice manner, thus creating frequent handover points within each stage.
[0085] Let the time slice for the authentication task be... This means: the maximum length of time that an authentication task can continuously occupy processor and bus resources within a single scheduling cycle; when the time reaches... After completing an authentication sub-step, the authentication task must be handed over to the processor to be inserted into the interactive real-time task processing window. To ensure anti-lag performance, the real-time constraints of the interactive link are expressed as at least one type of hard constraint criterion: firstly, the length of the HID sending queue. Not exceeding the upper limit threshold of the queue Secondly, HID reporting waiting time. Not exceeding the upper limit threshold .in, It can be defined as the maximum waiting time from when a data unit enters the HID transmission queue to when the actual transmission is completed, and is used to directly characterize whether a perceptible stutter / trailing occurs.
[0086] When any hard constraint criterion is detected to be approaching or exceeding the limit, the main control chip performs at least one of two actions: "time slice compression" and / or "upgraded parallel protection". Specifically, when or At that time, the main control chip shortens This allows authentication tasks to more frequently relinquish CPU and bus resources to the interaction link; simultaneously or alternatively, the main control chip is upgraded to the parallel guarantee level (Tier 4 for short periods), temporarily increasing the main control processor frequency and bus frequency to accelerate HID queue dequeueing and transmission, and reduce... And it suppresses further queue accumulation. To avoid overly coarse time slice adjustment, this embodiment uses an adaptive relationship. Perform continuous or segmented adjustments. At least one of the following adaptive relationships must be satisfied:
[0087] ;or ;
[0088] in , It is the minimum time slice used to prevent the authentication task from being completely starved. As a reference time slice; This is the adjustment coefficient; This serves as a reference waiting time. Through the aforementioned adaptive relationship, when interaction pressure increases (e.g., ... Exceed or Exceed )hour, Automatically reducing preemption points allows processor and bus resources to be allocated to the interaction link at a higher frequency, reducing the latency of interaction task processing; when the interaction pressure decreases, Gradually recover to avoid excessively long certification tasks.
[0089] To further clarify the control logic of the "parallel protection level", this embodiment defines the parallel protection level as a "short-term frequency boosting and queue clearing" mode, and adopts a hysteresis criterion for triggering and exiting to avoid frequent jitter switching; the triggering condition for entering the parallel protection level must meet at least one of the following: or or ;in For the density of motion interruption, This refers to the sensor FIFO level or occupancy rate, used to detect precursory states of "high-frequency movement but no significant queue accumulation." The condition for exiting the parallel protection level is that the following conditions are simultaneously met: , , And satisfy , , This is to create hysteresis and avoid repeated increases / decreases near the threshold. After entering the parallel protection level, the main control chip must at least perform the following: Upgrade to parallel protection level, Upgrade to a high-speed level that matches the parallel guarantee level, increase the scheduling priority of HID queue dequeue and sending threads or shorten their scheduling cycle; and further compress the upper limit of the time slice that authentication tasks can occupy or reduce their execution quota during the maintenance of the parallel guarantee level, so that the hard constraint of "interaction priority" is given priority.
[0090] To mitigate the increase in energy consumption caused by prolonged high-frequency operation, a maximum duration can also be optionally set for the parallel protection level. And after reaching the maximum duration, it will be forced to enter the "fallback and load reduction" path: when the duration of the parallel protection level reaches If the exit hysteresis condition has not yet been met, the main control chip shall take at least one of the following measures: First, maintain the high priority of the interaction task, but divide the authentication task into finer-grained sub-steps and further shorten the time. First, to ensure real-time interaction without continuously high frequency; second, to switch the authentication process from "continuous execution" to "interval execution," that is, to insert a stable interaction window between the acquisition phase or the cryptographic calculation phase; third, to temporarily reduce the operating frequency of non-critical peripherals or reduce the sensor sampling configuration (without affecting the interaction accuracy) to reduce the overall load on the bus and processor. These measures aim to create a "short peak, fast fallback" energy consumption curve, so that high-frequency operation is only used to clear backlogs and not to remain in a high-frequency state for extended periods.
[0091] Regarding the authentication process, the emphasis is on a combination of "authentication windowing + interactive preemption points": during the fingerprint acquisition stage, acquisition segment boundaries can be set so that an interactive preemption point is inserted after each frame acquisition or preprocessing segment is completed; during the fingerprint comparison stage, the comparison process can be divided into feature blocks or iteration rounds, and checks can be performed between each round. , Hard constraint criteria are used; during the cryptographic operation phase, the command interaction with the cryptographic operation chip can be broken down into three sub-steps: request sending, waiting for response, and result reading. Interaction tasks are prioritized during the response waiting period, thus avoiding interaction blocking caused by "synchronous waiting." This is achieved by continuously monitoring interaction load metrics at each stage and dynamically adjusting... With different computing power levels, mouse interaction can remain real-time and smooth during authentication, while limiting high-frequency, high-power-consumption phases to necessary short windows, reducing average power consumption and improving battery life stability.
[0092] In summary, by combining the strategies of "time slice adaptation + hysteresis ramp-up / pull-down + maximum duration constraint + preemption point design during the authentication phase", anti-lag control is achieved when fingerprint and password calculation tasks are executed in parallel, and the high-frequency operation is made to exhibit short-time pulsed characteristics, thereby taking into account the interactive experience, authentication latency and energy consumption targets.
[0093] Example 2:
[0094] A fingerprint mouse is provided for human-computer interaction input on a computer or other host device. When the fingerprint recognition is triggered on the host side, it can complete the calculation and interaction related to fingerprint acquisition and authentication. At the same time, it ensures the real-time performance and smoothness of interactive functions such as mouse pointer movement and clicking during the authentication process, and reduces the average power consumption and peak power consumption caused by fingerprint tasks and password calculation tasks.
[0095] In this embodiment, the fingerprint mouse includes: a mouse main control chip, a motion sensor, a button / scroll wheel assembly, a communication interface, a fingerprint module, a cryptographic processing chip, and a power management circuit; the communication interface may include a 2.4G wireless interface and / or a USB interface, used to communicate with a host computer to report HID data and interact with control commands; the motion sensor is used to output motion sampling data or interrupt events; the button / scroll wheel assembly is used to output button events and scroll wheel events; the fingerprint module is used for fingerprint trigger detection, acquisition, and optional preprocessing / comparison output; the cryptographic processing chip is used to perform cryptographic operations or secure interactions related to the authentication process; the power management circuit is used to provide battery power management, charging management, and control of power supply paths for different functional domains.
[0096] The mouse main control chip includes a power management unit, a task scheduling unit, and a clock management unit. The power management unit is electrically connected to the power management circuit and is used to perform on-demand power-on, power-off, and / or clock gating control on the area where the fingerprint module and / or the password processing chip are located. The clock management unit is used to dynamically adjust at least one frequency parameter, which includes at least the main control processor frequency. and / or bus frequency and / or peripheral operating frequency The task scheduling unit is used to preemptively schedule mouse interaction tasks, fingerprint tasks, and password calculation tasks, and prioritizes mouse interaction tasks over fingerprint and password calculation tasks, thereby ensuring the real-time performance of mouse interaction tasks during the execution of fingerprint or password calculation tasks.
[0097] In this embodiment, the mouse main control chip is configured to: determine the target computing power level based on operating indicators, and adjust frequency parameters and control the domain where the fingerprint module and / or the domain where the cryptographic operation chip are located according to the target computing power level, so as to shorten the high power consumption duration window of the fingerprint task and the cryptographic operation task; the operating indicators include: the HID sending queue length related to the interaction load. Interruption density of motion FIFO motion sensor water level The system includes fingerprint request flags, fingerprint stage flags, or password request flags related to authentication; and optional metrics such as inactivity timer and battery percentage. These metrics can be collected by the main control chip at fixed intervals or updated by event triggers.
[0098] For ease of implementation and control, the target computing power level should include at least the interactive energy-saving level, the interactive standard level, the certified acceleration level, and the parallel guarantee level; the interactive energy-saving level is used to achieve lower performance under low interactive load conditions. , and / or Maintain basic mouse interaction reporting capabilities and disable or gate fingerprint / password domains to reduce redundant power consumption; the interaction standard level is used to improve performance when interaction load increases. and / or This ensures timely dequeueing and real-time reporting of the HID queue; the authentication acceleration level is used to improve the efficiency of fingerprint or password requests when they are detected. The frequency of the fingerprint communication bus and the relevant domains are powered on in stages to shorten the processing latency of the authentication link; the parallel protection level is used to briefly increase the frequency to clear the interaction queue when interaction congestion or high load occurs during authentication execution, suppress interaction stuttering, and then automatically fall back to reduce average power consumption.
[0099] In one specific implementation, the mouse main control chip is configured to acquire at least the following: , as well as The interaction load metrics are used to calculate the congestion index. ;
[0100] in The preset weighting coefficients are used. The main control chip determines the computing power level switching based on the relationship between the congestion index and the threshold: when... When necessary, switch to the interactive standard level or the parallel protection level, and increase the corresponding level accordingly. and / or ;when When switching to the interactive energy-saving level, the power consumption will be reduced accordingly. and / or And satisfy This creates hysteresis, thereby avoiding the additional energy consumption and latency jitter caused by frequent jittering and switching near the threshold. The calculation of congestion indicators and thresholds can be set according to chip capacity, return rate configuration, and queue capacity; this invention does not limit specific values.
[0101] In terms of authentication control, the main control chip enters the authentication acceleration level upon detecting a fingerprint or password request. It then drives the power management unit to perform on-demand power-on and clock gating de-gating on the domain where the fingerprint module and / or the domain where the password processing chip resides. Simultaneously, the clock management unit increases the frequency of the bus communicating with the fingerprint module, concentrating the acquisition and interaction overhead during the authentication phase within a short time window. After authentication, the main control chip implements a delayed power-off hold-up time for the domains where the fingerprint module and the password processing chip reside. Power is then cut off to suppress the power-up losses and clock stabilization overhead caused by frequent short-term repeated authentication; if in If a fingerprint or password request is detected again, the domain remains in a power-on or non-deep-gated state and directly enters the corresponding authentication stage, thereby reducing the additional latency and energy consumption caused by repeated initialization.
[0102] In terms of task scheduling, the main control chip implements preemptive scheduling with "interaction priority" through a task scheduling unit: mouse interaction tasks include at least motion interruption handling, button / scroll wheel event handling, HID data packaging, and HID queue dequeueing and transmission; fingerprint tasks include at least fingerprint acquisition control, quality assessment, preprocessing, and comparison control; and cryptographic operation tasks include at least cryptographic operation command interaction and result feedback. During authentication execution, if the interaction load indicators show queue accumulation or increased waiting time, the main control chip can enter the parallel protection level to temporarily increase performance. and / or Prioritize clearing the interaction queue and compress the continuous occupancy time of authentication tasks to ensure the real-time performance of mouse interaction tasks. After the interaction load index drops, the main control chip automatically drops back to the authentication acceleration level or the interaction energy-saving level to form a "short peak, fast fallback" energy consumption curve and reduce average power consumption.
[0103] Symbol Explanation and Example Values: In the above embodiments, the symbols have the following meanings: The main control processor frequency, For bus frequency, For peripheral operating frequency; The length of the HID send queue. This represents the density of motion interruptions (which can be counted within a fixed statistical window). For motion sensor FIFO water level or occupancy rate; As a congestion index, These are the weighting coefficients; and The congestion hysteresis threshold; This refers to the power-off retention time after authentication is completed. As an example, the computing power level can correspond to multiple frequencies: the interaction energy-saving level can use a lower frequency, the interaction standard level can use a mid-frequency, the authentication acceleration level can use a higher frequency, and the parallel guarantee level can use a higher frequency for short periods. This can be taken in the hundreds of milliseconds range to reduce frequent power-on overhead in repetitive authentication scenarios. The above values can be adjusted accordingly based on different chip platforms, polling rate configurations, and battery capacities.
[0104] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse, applied to a fingerprint mouse including a mouse main control chip, a fingerprint module, and a password processing chip, executed by the mouse main control chip, characterized in that, The method includes: Obtain operational metrics, which include at least the interaction load metrics related to mouse interaction tasks, the fingerprint request or fingerprint stage metrics related to fingerprint tasks, the password request metrics related to password computation tasks, and the no-operation time metrics. The target operating mode is determined based on the aforementioned operating indicators, and the target operating mode includes at least a working state and a low-power state. When in the aforementioned working state, a target computing power level is determined based on the aforementioned operating indicators. The target computing power level includes at least an interaction energy-saving level, an interaction standard level, and an authentication acceleration level. The interaction energy-saving level is used to meet the real-time processing of mouse interaction tasks when there are no fingerprint tasks or password calculation tasks. The interaction standard level is used to ensure the real-time processing of mouse interaction tasks when the interaction load increases. The authentication acceleration level is used to shorten the authentication processing latency when fingerprint tasks or password calculation tasks are detected. According to the target computing power level, at least one frequency parameter is dynamically adjusted, and the frequency parameter includes at least the main control processor frequency and / or bus frequency and / or peripheral operating frequency. Based on the target computing power level, perform on-demand power-on, power-off and / or clock gating control on the domain where the fingerprint module is located and / or the domain where the cryptographic operation chip is located, so that the high power consumption duration window of the fingerprint task and the cryptographic operation task is less than the preset window. During the execution of the fingerprint task or the cryptographic operation task, the task processing is performed in a preemptive scheduling manner, wherein the mouse interaction task has a higher scheduling priority than the fingerprint task and the cryptographic operation task; when it is determined that the margin for the mouse interaction task to meet the real-time constraints is insufficient, the target computing power level is temporarily increased and the frequency parameter is increased accordingly, and the target computing power level is reduced back to a lower level after the real-time constraints are met.
2. The method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse according to claim 1, characterized in that, The low-power state includes a sleep state; when there are no operation timing indicators... satisfy When the timer is active, the system switches from working state to sleep state; wherein, the no-operation timing indicator... The cumulative time since the most recent interaction event, which includes at least motion events, button events, and scroll wheel events; when a swipe event and / or button event is detected, the system switches from sleep state to working state, and after switching to working state, it enters the authentication acceleration level to respond to the fingerprint task; wherein, switching to working state includes at least performing the following: turning on the main control processor clock and increasing the main control processor frequency to a frequency not lower than the frequency corresponding to the interaction standard level, restoring the HID link reporting capability, and performing pre-power-on or de-clock gating on the domain where the fingerprint module is located.
3. The method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse according to claim 1, characterized in that, The low-power state includes light sleep state and deep sleep state; when there are no operation timing indicators satisfy ; Switch to light sleep mode when there is no operation timer indicator. satisfy ; The system switches to a deep sleep state; a light sleep state is woken up by a swipe event, and a deep sleep state is woken up by a button event; wherein, the light sleep state at least maintains the HID wake-up source and motion detection capability, and the deep sleep state at least disables motion detection and retains only the button wake-up source; and, when waking up from the light sleep state or deep sleep state to the working state, it first enters the preheating sub-state, in which the domain where the fingerprint module is located is powered on and the interface is initialized before entering the authentication acceleration level.
4. The method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse according to claim 1, characterized in that, The target computing power level further includes a keep-alive monitoring level and a parallel guarantee level; wherein, the keep-alive monitoring level is used to maintain wake-up source monitoring in a low-power state and to perform shutdown or deep gating on the domain where the fingerprint module is located and the domain where the cryptographic operation chip is located; the parallel guarantee level is used to briefly increase the frequency of the main control processor and the bus frequency to prioritize clearing the interactive task queue when the interaction load index exceeds a threshold during the execution of the fingerprint task or cryptographic operation task; wherein, the triggering criterion of the parallel guarantee level includes at least one of the following: ;or ;or Furthermore, the exit criteria for the parallel protection level include at least a hysteresis condition: ; in , , After exiting the parallel protection level, it will automatically fall back to the authentication acceleration level or the interactive energy saving level.
5. The method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse according to claim 1, characterized in that, The interaction load metric includes at least the HID sending queue length. and / or motion interruption density and / or sensor FIFO water level The method constructs an interactive congestion index based on the interactive load index when determining the target computing power level. and according to Switching between interactive energy efficiency levels and interactive standard levels; among which ; For preset weighting coefficients; when Switch to the standard interaction level when Switch to interactive energy-saving level at any time, and This creates hysteresis.
6. The method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse according to claim 1, characterized in that, The fingerprinting and cryptographic computation tasks are divided into multiple phase windows, each including at least a preheating-up and power-on phase, an acquisition phase, a comparison phase, a cryptographic computation phase, and a data transmission phase. During the preheating-up and power-on phase, the domain containing the fingerprint module is powered on, and the bus communicating with the fingerprint module is frequency-increased to ensure the main control processor frequency meets the requirements. ; in The main control processor frequency corresponds to the interaction standard level; after authentication, a delayed power-off hold time is applied to the domain where the fingerprint module is located and the domain where the cryptographic processing chip is located. After power is cut off, the frequency parameter is returned to the frequency corresponding to the interactive energy-saving level; wherein, the delayed power-off hold time Used to suppress power-on losses caused by repeated authentication within a short period of time, and to meet the requirements ; And when When a fingerprint request or password request is detected again, the domain where the fingerprint module is located and the domain where the password operation chip is located are kept in a power-on or non-deep gating state.
7. The method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse according to claim 1, characterized in that, The preemptive scheduling method includes time-slicing the fingerprint task and the cryptographic operation task for execution; let the authentication task time slice be... When the length of the HID sending queue reaches the upper limit threshold Or HID reporting waiting time Reaching the upper limit threshold When, shorten and / or upgrade to the aforementioned parallel protection level; wherein, the At least one of the following adaptive relationships must be satisfied: ;or ; in , For the smallest time slice, As the reference time slice, For adjustment coefficients, This serves as a reference waiting time, thereby reducing the processing latency of mouse interaction tasks.
8. The method for hierarchical computing power management and dynamic frequency adjustment of a fingerprint mouse according to claim 1, characterized in that, The operating indicators also include the percentage of electricity consumption. And connection status indicators; when the battery percentage indicator is lower than the preset battery threshold At the same time, reduce the trigger probability of the parallel protection level and / or limit its duration, and adjust the low-power state entry threshold to enable the device to enter the low-power state faster; wherein at least one of the following adaptive relationships is satisfied: ;or ;in It is the adjustment coefficient, and Furthermore, the maximum duration of the parallel protection level is limited to [missing information]. ;and Follow Instead of increasing it, reduce it; when the connection mode indicator indicates wireless power supply mode, prioritize and quickly fall back to the interaction power saving level after authentication; when the connection mode indicator indicates wired power supply mode, extend the maintenance time of the interaction standard level to improve the consistency of short-term interaction experience.
9. A fingerprint mouse, characterized in that, include: Mouse main control chip, motion sensor, button / scroll wheel assembly, communication interface, fingerprint module, password processing chip, and power management circuit; The mouse main control chip includes a power management unit, a task scheduling unit, and a clock management unit; the power management unit is electrically connected to the power management circuit and is used to perform on-demand power-on, power-off, and / or clock gating control on the domain where the fingerprint module is located and / or the domain where the password operation chip is located. The clock management unit is used to dynamically adjust at least one frequency parameter, which includes at least the main control processor frequency. and / or bus frequency and / or peripheral operating frequency ; The task scheduling unit is used to preemptively schedule mouse interaction tasks, fingerprint tasks, and password calculation tasks, and to give mouse interaction tasks a higher scheduling priority than fingerprint tasks and password calculation tasks. The mouse main control chip is configured to: determine the target computing power level based on the operating indicators, and adjust the frequency parameters and control the domain where the fingerprint module is located and / or the domain where the cryptographic operation chip is located according to the target computing power level, so as to prioritize the real-time performance of the mouse interaction task during the execution of the fingerprint task or the cryptographic operation task, and shorten the high power consumption duration window of the fingerprint task and the cryptographic operation task.
10. The fingerprint mouse according to claim 9, characterized in that, The target computing power level includes at least an interactive energy-saving level, an interactive standard level, an authentication acceleration level, and a parallel guarantee level; the mouse main control chip is configured to acquire at least the HID sending queue length. Interruption density of motion and motion sensor FIFO water level The interaction load metrics are calculated, and the congestion metric is also calculated. ;in For preset weighting coefficients; when Switching to the interactive standard level or the parallel assurance level at any time can improve the... and / or ,when Switch to interactive energy-saving level to reduce the and / or And satisfy To create hysteresis; and after authentication, to perform a delayed power-off hold time for the domain where the fingerprint module is located and the domain where the cryptographic processing chip is located. Power is then cut off to suppress power-up losses caused by frequent power-on cycles due to repeated authentication in short periods.