Control method, control apparatus, smart home device, and computer program product

By dynamically adjusting the operating frequency of the main chip and the activity level of functional modules in smart home devices, the problem of high power consumption after standby wake-up is solved, resulting in longer battery life and higher energy efficiency.

CN119644776BActive Publication Date: 2025-12-30TP-LINK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411799614.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-12-30
Estimated Expiration
2044-12-06

AI Technical Summary

Technical Problem

Existing smart home devices consume a lot of power after being woken up from standby mode, resulting in insufficient battery life, especially battery-powered devices such as smart locks and smart doorbells.

Method used

After receiving an interrupt signal, the main chip dynamically adjusts its operating frequency to meet the needs of the functional modules. Combined with the activity level of the functional modules, the operating frequency of each module is optimized to reduce overall power consumption.

Benefits of technology

It extends the battery life of smart home devices, reduces redundant power consumption, and improves the energy efficiency of the devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119644776B_ABST
    Figure CN119644776B_ABST
Patent Text Reader

Abstract

The application discloses a control method, a control device, a smart home device and a computer program product. The method is applied to a smart home device, the smart home device comprises a main chip and at least two function modules, and the method comprises the following steps: in the case that the main chip receives an interrupt signal, determining a source module of the interrupt signal in the at least two function modules, wherein the source module is a function module for sending the interrupt signal, and the interrupt signal is used for the source module to wake up the main chip; determining a first target frequency based on the source module; and controlling the main chip to work at the first target frequency after being woken up by the interrupt signal. According to the application scheme, the working frequency of the main chip of the smart home device can be intelligently adjusted based on an application scene, so that the power consumption of the smart home device is reduced to a certain extent, and the endurance time of the smart home device is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of smart home device technology, and in particular relates to a control method, control device, smart home device and computer program product. Background Technology

[0002] Smart home devices are becoming increasingly common, laying the foundation for building smart homes. To enhance the variety of applicable application scenarios, various smart home devices integrate multiple different functions. Currently, smart home devices typically set a fixed operating frequency for their main chip to support the operation of various functions.

[0003] For battery-powered smart home devices, such as smart locks and smart doorbells, power consumption is extremely sensitive. Therefore, how to reduce power consumption while ensuring normal operation and achieving longer battery life for these devices after they are woken from standby mode has become a pressing issue. Summary of the Invention

[0004] This application provides a control method, control device, smart home device, and computer program product, which can intelligently adjust the operating frequency of the main chip of the smart home device based on the application scenario, thereby reducing the power consumption of the smart home device to a certain extent and extending the battery life of the smart home device.

[0005] In a first aspect, this application provides a control method applied to a smart home device, the smart home device including a main chip and at least two functional modules, the control method including:

[0006] When the main chip receives an interrupt signal, the source module of the interrupt signal is determined from at least two functional modules. The source module is the functional module that issued the interrupt signal, and the interrupt signal is used to wake up the main chip.

[0007] The first target frequency is determined based on the source module;

[0008] The main control chip operates at the first target frequency after being woken up by an interrupt signal.

[0009] Secondly, this application provides a control device for use in a smart home device, the smart home device including a main chip and at least two functional modules, the control device including:

[0010] The first determining module is used to determine the source module of the interrupt signal among at least two functional modules when the main chip receives an interrupt signal. The source module is the functional module that issued the interrupt signal, and the interrupt signal is used by the source module to wake up the main chip.

[0011] The second determining module is used to determine the first target frequency based on the source module;

[0012] The first control module is used to control the main chip to work at the first target frequency after being woken up by the interrupt signal.

[0013] Thirdly, this application provides a smart home device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the method described in the first aspect.

[0014] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method described in the first aspect above.

[0015] Fifthly, this application provides a computer program product comprising a computer program that, when executed by one or more processors, implements the steps of the method described in the first aspect.

[0016] The beneficial effects of this application compared to existing technologies are as follows: After the main chip receives an interrupt signal, the smart home device can adjust its operating frequency after being woken up according to the functional module that issued the interrupt signal. In this way, the operating frequency of the main chip after being woken up can adapt to the relevant algorithm requirements of the functional module, meaning its operating frequency is no longer fixed at a higher frequency. Through the above operation, excessive redundant power consumption is avoided after the main chip is woken up, thus extending the battery life of the smart home device.

[0017] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is an example diagram of the architecture of smart home devices;

[0020] Figure 2 This is a schematic diagram illustrating an implementation flow of the control method provided in an embodiment of this application;

[0021] Figure 3This is a schematic diagram of another implementation flow of the control method provided in the embodiments of this application;

[0022] Figure 4 This is a structural block diagram of the control device provided in the embodiments of this application;

[0023] Figure 5 This is a schematic diagram of the structure of the smart home device provided in the embodiments of this application. Detailed Implementation

[0024] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0026] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0027] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0028] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."

[0029] Furthermore, in the description of this application, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0030] The control method provided in the embodiments of this application is described below. The executing subject of this control method is a smart home device, which can be a battery-powered device or a plug-in device; no limitation is made here. In fact, any smart home device that has a need for power saving can serve as the executing subject of the control method in the embodiments of this application.

[0031] To facilitate understanding of the control method provided in the embodiments of this application, a description of smart home devices is given below. Smart home devices typically include a main chip and at least two functional modules, each capable of performing its own specific related functions. Please refer to... Figure 1 , Figure 1 This document provides an example of the architecture for a smart home device when it is a smart door lock. Figure 1 As shown, the functional modules of this smart home device may include: a Wireless Fidelity (Wi-Fi) module, a fingerprint recognition module, a Near Field Communication (NFC) recognition module, a touch control module, and a facial recognition module. Each functional module can be connected to a pin of the main chip, and different functional modules are connected to different pins on the main chip, thereby establishing a communication connection between each functional module and the main chip through pins, enabling each functional module to interact with the main chip.

[0032] Based on the above-mentioned architecture of smart home devices, please refer to [link / reference]. Figure 2 The control method proposed in this application includes:

[0033] Step 201: When the main chip receives an interrupt signal, determine the source module of the interrupt signal from at least two functional modules.

[0034] For a functional module, upon detecting external interaction or receiving external input commands, it can send an interrupt signal to the main chip, thereby waking it up. The main chip, upon receiving the interrupt signal, can identify the source module among all currently configured functional modules in the smart home device. The source module refers to the functional module that issued the interrupt signal, i.e., the origin of the interrupt signal. Through this interrupt signal, the source module can wake up the main chip, subsequently triggering the main chip to run algorithms related to the source module and execute corresponding decisions. For example, if the source module is a fingerprint recognition module, the main chip can then execute fingerprint recognition algorithms and determine whether unlocking is possible based on the algorithm's execution result.

[0035] In some embodiments, since each functional module establishes a communication connection with the main chip through different pins, when the main chip receives an interrupt signal, it can determine the source module of the interrupt signal in the following way: First, determine the target pin that received the interrupt signal. Then, based on the target pin, determine the source module among at least two functional modules. The main chip pre-records the functional modules corresponding to each of its pins; therefore, by querying the functional module corresponding to the target pin, the source module of the interrupt signal can be determined. That is, in this embodiment, the source module can be determined based on the one-to-one relationship between pins and functional modules.

[0036] Step 202: Determine the first target frequency based on the source module.

[0037] Different functional modules may have different operating requirements. For example, the touch module may only require the main control module to respond to user touch operations, thus simply requiring the main chip to operate at a lower frequency to save energy; the fingerprint recognition module may require the main control module to perform more complex algorithm processing, thus requiring the main chip to operate at a higher frequency to improve algorithm processing efficiency. Based on this, by analyzing the source of interrupt signals, the main chip can dynamically adjust its operating frequency.

[0038] In some embodiments, the main chip may pre-store a module-frequency mapping relationship. An example of this module-frequency mapping relationship is given in Table 1 below:

[0039] Functional modules Main chip operating frequency Fingerprint recognition module F1 NFC identification module F2 Touch module F3 Face recognition module F4 Wi-Fi module F5

[0040] Table 1

[0041] The module-frequency mapping can be set by the smart home device manufacturer according to the actual architecture of the smart home device. Based on this, the main chip can find the main chip operating frequency corresponding to the source module in the module-frequency mapping, and then determine the main chip operating frequency corresponding to the source module as the first target frequency.

[0042] Step 203: Control the main chip to work at the first target frequency after being woken up by the interrupt signal.

[0043] The source module can wake up the main chip via an interrupt signal. To achieve adaptive adjustment of the main chip's operating frequency, the main chip, after being woken up, no longer operates at a fixed frequency, but instead operates at a predetermined first target frequency. For example, based on Table 1, when the source module is a fingerprint recognition module, the first target frequency is F1, meaning the main chip will operate at frequency F1 after being woken up by the fingerprint recognition module; when the source module is an NFC recognition module, the first target frequency is F2, meaning the main chip will operate at frequency F2 after being woken up by the NFC recognition module.

[0044] In some embodiments, the state of the main chip when it receives an interrupt signal is not limited. That is, the main chip may receive the interrupt signal in standby mode; or it may receive the interrupt signal in working mode (a woken-up state). This is because in actual application scenarios, the main chip may receive interrupt signals from two or more functional modules in a short period of time. For the case where the main chip receives at least two interrupt signals within a target time period, the main chip can identify at least two source modules and compare the main chip frequencies corresponding to each source module in the module-frequency mapping relationship, and determine the largest main chip frequency as the first target frequency. That is, step 201 can be further optimized as follows: when the main chip receives at least two interrupt signals within a preset time period, the source modules of each interrupt signal are identified, thereby identifying at least two source modules; step 202 can be further optimized as follows: in the preset module-frequency mapping relationship, the main chip operating frequency corresponding to each source module is searched; and the largest main chip operating frequency found is determined as the first target frequency.

[0045] For example, at time T0, if the main chip receives an interrupt signal from the fingerprint recognition module while in standby mode, the main chip will be woken up and will operate at the F1 operating frequency as the first target frequency.

[0046] For example, based on the interrupt signal issued by the fingerprint recognition module at time T0, the main chip has completed the fingerprint recognition algorithm at time T1 and obtained the execution result of fingerprint matching failure. Based on this, the user wants to change the unlocking method from fingerprint unlocking to face unlocking. At time T2, the main chip, in its working state, receives an interrupt signal issued by the face recognition module. If F4 > F1, the main chip can switch the first target frequency from F1 to F4 and continue to work. Conversely, if F4 ≤ F1, the main chip can keep the first target frequency at F1 and continue to work.

[0047] In some embodiments, in addition to adaptively adjusting the operating frequency of the main chip to reduce power consumption, the operating frequency of each functional module can also be controlled to reduce its own power consumption. This further reduces the power consumption of smart home devices without affecting the user experience. It is understood that, to achieve low power consumption, from a microscopic perspective, each functional module operates periodically. For example, the touch module operates at a frequency of 5Hz, meaning that every 200 milliseconds, the touch module wakes up from sleep mode to scan, at which point it is truly working. After working for a short period (approximately tens of milliseconds), it enters sleep mode again and scans again after another 200 millisecond interval. It should be noted that the operating frequency of the functional modules described here is actually a broad concept; depending on the functional module, this operating frequency can be further refined into scanning frequency and keep-alive cycle, etc., which will not be elaborated here. Please refer to [link to relevant documentation]. Figure 3 The control method proposed in the embodiments of this application may further include:

[0048] Step 301: Periodically count the number of times each functional module wakes up the main chip within the statistical time period.

[0049] The statistical time period refers to a time period with a preset statistical end time and a cycle duration. For example, the cycle duration can be 24 hours, and the statistical time can be 0:00 every day, meaning the main chip can count the number of times each functional module wakes up the main chip in the previous day at 0:00 every day. Another example is a 7-day cycle, with the statistical time being 0:00 every Monday, meaning the main chip can count the number of times each functional module wakes up the main chip in the previous week at 0:00 every Monday.

[0050] Step 302: Control the working frequency of each functional module according to the number of wake-ups corresponding to each functional module.

[0051] Based on the number of wake-ups corresponding to each functional module, smart home devices can determine the recent activity level of each module. Furthermore, a positive correlation can be established between the activity level and the operating frequency of each module, thereby controlling its operating frequency. That is, a functional module with a higher number of wake-ups is relatively more active, and its operating frequency can be kept at a relatively high level; conversely, a functional module with a lower number of wake-ups is relatively less active, and its operating frequency can be kept at a relatively low level.

[0052] In some embodiments, to achieve reasonable control over the operating frequency of the functional module, step 302 may include:

[0053] A1. If the number of wake-up attempts for the module to be controlled is less than the preset threshold, reduce the operating frequency of the module to be controlled.

[0054] The preset threshold number can be initially set by the smart home device manufacturer and can be subsequently changed by the user according to actual needs; this is not limited here. When the number of wake-ups corresponding to the module to be controlled is less than the preset threshold number, the smart home device can reduce the operating frequency of the module to be controlled to a fixed value; alternatively, it can linearly and gradually reduce the operating frequency of the module to be controlled; or it can non-linearly and gradually reduce the operating frequency of the module to be controlled; this embodiment does not limit this. The module to be controlled can be any functional module; that is, for each functional module, relevant processing can be performed through steps A1 and A2.

[0055] Specifically, smart home devices can linearly and gradually reduce the operating frequency of the modules to be controlled in the following way:

[0056] First, the target duration is updated based on multiple consecutive statistical time periods where the number of wake-ups corresponding to the module to be controlled is less than a preset threshold. The target duration refers to the consecutive periods during which the number of wake-ups corresponding to the module to be controlled is less than the preset threshold.

[0057] Taking a period of 24 hours, a statistical time of 0:00 every day, and a preset threshold of 1 time as an example, if the number of wake-ups corresponding to the NFC recognition module has been found to be 0 for three consecutive times (that is, the number of wake-ups corresponding to the NFC recognition module has been 0 for the most recent three days), then the target duration can be updated to three days.

[0058] Then, the second target frequency is calculated based on the target duration, the preset aging duration, the preset lower limit of the operating frequency, and the preset default value of the operating frequency.

[0059] As an example only, the formula for calculating the second target frequency can be: F n =F0-(F0-F m )*N / M. Where, F n This indicates the second target frequency, F0 represents the default operating frequency, and F... mThe values ​​represent the lower limit of the operating frequency, N represents the target duration, and M represents the aging time. The aging time, lower limit of the operating frequency, and default operating frequency can all be determined based on the module to be controlled. That is, different aging times, lower limits of the operating frequency, and default operating frequencies can be configured for different modules. Furthermore, users can adjust the aging time, lower limit of the operating frequency, and / or default operating frequency according to their needs. Considering that users are not professional R&D personnel, this embodiment of the application may provide users with parameter value configuration items for different power-saving levels in the parameter configuration interface of the application associated with the smart home device; in this way, users only need to select their desired power-saving level to adjust the corresponding parameters.

[0060] Finally, the module to be controlled is controlled to operate at the second target frequency.

[0061] In other words, smart home devices can adjust the operating frequency of the module to be controlled to a second target frequency, so that the module to be controlled can operate at the reduced operating frequency.

[0062] It is important to note that after updating the consecutive counts of the target statistical time period, if the target duration exceeds the aging duration, there is no need to calculate the second target frequency again, and the module under control can be directly controlled to operate at the lower limit of the operating frequency. That is, the second target frequency must not be lower than this lower limit of the operating frequency.

[0063] In some application scenarios, the minimum operating frequency limit mentioned above can be configured to 0. This could lead to a situation where a certain functional module's operating frequency drops to 0 due to prolonged inactivity in waking the main chip, effectively shutting down the module. In such cases, the user needs to manually trigger the disabled module, for example, by manually waking up the smart home device's control panel to power on and activate all functional modules.

[0064] A2. If the number of wake-up attempts corresponding to the module to be controlled is greater than or equal to the preset threshold, restore the operating frequency of the module to the preset default value.

[0065] If the number of wake-ups corresponding to the module to be controlled is greater than or equal to the preset number, it indicates that the module to be controlled has been relatively active in the recent statistical period. Based on this, it can be inferred that due to the inertia of user behavior, the module to be controlled is likely to remain active in the current new statistical period. In response, smart home devices can restore the operating frequency of the module to be controlled to the preset default operating frequency.

[0066] As can be seen from the above, in this embodiment, after the main chip receives an interrupt signal, the smart home device can adjust the operating frequency of the main chip after it is woken up according to the functional module that issued the interrupt signal. In this way, after the main chip is woken up, its operating frequency can adapt to the relevant algorithm requirements of the functional module, meaning its operating frequency is no longer fixed at a higher frequency. Through the above operation, excessive redundant power consumption after the main chip is woken up is avoided, thus extending the battery life of the smart home device.

[0067] Corresponding to the control method provided above, this application also provides a control device. This control device can be integrated into a smart home device, which includes a main chip and at least two functional modules, which will not be described in detail here. Please refer to... Figure 4 The control device 400 includes:

[0068] The first determining module 401 is used to determine the source module of the interrupt signal among at least two functional modules when the main chip receives an interrupt signal, wherein the source module is the functional module that issued the interrupt signal, and the interrupt signal is used to wake up the main chip by the source module.

[0069] The second determining module 402 is used to determine the first target frequency based on the source module;

[0070] The first control module 403 is used to control the main chip to work at the first target frequency after being woken up by the interrupt signal.

[0071] In some embodiments, the first determining module 401 includes:

[0072] The first determining unit is used to determine the target pin that received the interrupt signal if the main chip receives the interrupt signal.

[0073] The second determining unit is used to determine the source module from at least two functional modules based on the target pin.

[0074] In some embodiments, the second determining module 402 includes:

[0075] The lookup unit is used to find the operating frequency of the main chip corresponding to the source module in a preset module-frequency mapping relationship;

[0076] The third determining unit is used to determine the operating frequency of the main chip corresponding to the source module as the first target frequency.

[0077] In some embodiments, the control device 400 further includes:

[0078] The statistics unit is used to periodically count the number of times each functional module wakes up the main chip within a statistical time period;

[0079] The second control module is used to control the operating frequency of each functional module according to the number of wake-ups corresponding to each functional module.

[0080] In some embodiments, the second control module includes:

[0081] The reduction unit is used to reduce the operating frequency of the module to be controlled when the number of wake-ups corresponding to the module to be controlled is less than a preset threshold number, wherein the module to be controlled is any functional module.

[0082] The recovery unit is used to restore the operating frequency of the module to the preset default value when the number of wake-ups corresponding to the module to be controlled is greater than or equal to the preset number threshold.

[0083] In some embodiments, the reducing unit includes:

[0084] The update subunit is used to update the target duration based on multiple consecutive statistical time periods in which the number of wake-ups corresponding to the module to be controlled is less than a preset threshold.

[0085] The subunit is determined to calculate the second target frequency based on the target duration, the preset aging duration, the preset lower limit of the operating frequency, and the preset default value of the operating frequency. The aging duration, the lower limit of the operating frequency, and the default value of the operating frequency are determined according to the module to be controlled.

[0086] The first control subunit is used to control the module to be controlled to operate at the second target frequency.

[0087] In some embodiments, the reducing unit further includes:

[0088] The second control subunit is used to control the module to be controlled to operate at the lower limit of the operating frequency when the target duration exceeds the aging duration.

[0089] As can be seen from the above, in this embodiment, after the main chip of the smart home device receives an interrupt signal, the smart home device can adjust its operating frequency after being woken up according to the functional module that issued the interrupt signal. In this way, after being woken up, the operating frequency of the main chip can adapt to the relevant algorithm requirements of the functional module, meaning its operating frequency is no longer fixed at a higher frequency. Through the above operation, excessive redundant power consumption is avoided after the main chip is woken up, thus extending the battery life of the smart home device.

[0090] Corresponding to the control method provided above, this application also provides a smart home device. Please refer to... Figure 5 The smart home device 5 in this embodiment includes: a memory 501, and one or more processors 502. Figure 5Only one is shown in the image, along with a computer program stored in memory 501 and executable on the processor. It should be noted that smart home devices also include a main chip and at least two functional modules. Figure 5 Not shown in the diagram. The memory 501 stores software programs and units. The processor 502 executes various functional applications and controls by running the software programs and units stored in the memory 501 to obtain resources corresponding to the aforementioned preset events. Specifically, the processor 502 performs the following steps by running the computer program stored in the memory 501:

[0091] When the main chip receives an interrupt signal, the source module of the interrupt signal is determined from at least two functional modules. The source module is the functional module that issued the interrupt signal, and the interrupt signal is used to wake up the main chip.

[0092] The first target frequency is determined based on the source module;

[0093] The main control chip operates at the first target frequency after being woken up by an interrupt signal.

[0094] Assuming the above is the first possible implementation, then in the second possible implementation provided based on the first possible implementation, the source module of the interrupt signal is determined in at least two functional modules, including:

[0095] Determine the target pin that received the interrupt signal;

[0096] Based on the target pin, identify the source module from at least two functional modules.

[0097] In a third possible implementation provided based on the first possible implementation described above, determining the first target frequency based on the source module includes:

[0098] In the preset module-frequency mapping relationship, find the operating frequency of the main chip corresponding to the source module;

[0099] The operating frequency of the main chip corresponding to the source module is determined as the first target frequency.

[0100] In a fourth possible implementation provided based on the first possible implementation described above, or based on the second possible implementation described above, or based on the third possible implementation described above, the processor 502 performs the following steps when running a computer program stored in the memory 501:

[0101] Periodically count the number of times each functional module wakes up the main chip within the statistical time period;

[0102] The operating frequency of each functional module is controlled according to the number of wake-ups corresponding to each functional module.

[0103] In the fifth possible implementation based on the fourth possible implementation described above, the operating frequency of each functional module is controlled according to the number of wake-ups corresponding to each functional module, including:

[0104] If the number of wake-up calls corresponding to the module to be controlled is less than a preset threshold, reduce the operating frequency of the module to be controlled, where the module to be controlled is any functional module;

[0105] If the number of wake-up attempts corresponding to the module to be controlled is greater than or equal to the preset threshold, the operating frequency of the module to be controlled will be restored to the preset default operating frequency.

[0106] In the sixth possible implementation provided based on the fifth possible implementation described above, reducing the operating frequency of the module to be controlled includes:

[0107] The target duration is updated based on multiple consecutive statistical time periods in which the number of wake-ups corresponding to the module to be controlled is less than a preset threshold.

[0108] The second target frequency is calculated based on the target duration, the preset aging duration, the preset lower limit of the operating frequency, and the preset default value of the operating frequency. The aging duration, the lower limit of the operating frequency, and the default value of the operating frequency are determined according to the module to be controlled.

[0109] Control the module to be controlled to operate at the second target frequency.

[0110] In the seventh possible implementation provided based on the sixth possible implementation described above, after updating the consecutive number of the target statistical time period, the processor 502 performs the following steps by running a computer program stored in the memory 501:

[0111] If the target duration exceeds the aging duration, the module to be controlled will operate at the lower limit of the operating frequency.

[0112] It should be understood that, in the embodiments of this application, the processor 502 may be a central processing unit (CPU), but it may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0113] Memory 501 may include read-only memory and random access memory, and provides instructions and data to processor 502. Some or all of memory 501 may also include non-volatile random access memory. For example, memory 501 may also store device category information.

[0114] As can be seen from the above, in this embodiment, after the main chip of the smart home device receives an interrupt signal, the smart home device can adjust its operating frequency after being woken up according to the functional module that issued the interrupt signal. In this way, after being woken up, the operating frequency of the main chip can adapt to the relevant algorithm requirements of the functional module, meaning its operating frequency is no longer fixed at a higher frequency. Through the above operation, excessive redundant power consumption is avoided after the main chip is woken up, thus extending the battery life of the smart home device.

[0115] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the above device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0116] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0117] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing associated hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer-readable storage device, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the contents of the aforementioned computer-readable storage media may be appropriately added to or subtracted from the contents according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media may not include electrical carrier signals and telecommunication signals.

[0118] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A control method characterized by, The control method is applied to a smart home device, the smart home device comprising a main chip and at least two functional modules, and the control method comprising: determining a source module of the interrupt signal among the at least two functional modules in a case where the main chip receives the interrupt signal, wherein the source module is a functional module that sends the interrupt signal, and the interrupt signal is used by the source module to wake up the main chip; determining a first target frequency based on the source module; controlling the main chip to work at the first target frequency after being woken up by the interrupt signal; periodically counting a wake-up number of each of the functional modules in a statistical time period; in a case where a wake-up number corresponding to a to-be-controlled module is less than a preset number threshold, updating a target time length according to a plurality of continuous statistical time periods in which the wake-up number corresponding to the to-be-controlled module is less than the preset number threshold, and in a case where the target time length does not exceed a preset aging time length, calculating a second target frequency according to the target time length, the aging time length, a preset lower limit of a working frequency, and a preset default value of the working frequency, and controlling the to-be-controlled module to work at the second target frequency, wherein the aging time length, the lower limit of the working frequency, and the default value of the working frequency are determined according to the to-be-controlled module, and the to-be-controlled module is any of the functional modules.

2. The control method according to claim 1, characterized by, The determining of the source module of the interrupt signal among the at least two functional modules comprises: determining a target pin that receives the interrupt signal; determining the source module among the at least two functional modules according to the target pin.

3. The control method according to claim 1, characterized by, The determining of the first target frequency based on the source module comprises: looking up a main chip working frequency corresponding to the source module in a preset module-frequency correspondence relationship; determining the main chip working frequency corresponding to the source module as the first target frequency.

4. The control method according to any one of claims 1 to 3, characterized by, The control method further comprises: in a case where the wake-up number corresponding to the to-be-controlled module is greater than or equal to the preset number threshold, restoring a working frequency of the to-be-controlled module to a preset default value of the working frequency.

5. The control method according to any one of claims 1 to 3, characterized by, The control method further comprises: in a case where the target time length exceeds the aging time length, controlling the to-be-controlled module to work at the lower limit of the working frequency.

6. A control device characterized by comprising: The control device is applied to a smart home device, the smart home device comprising a main chip and at least two functional modules, and the control device comprising: a first determining module configured to determine a source module of the interrupt signal among the at least two functional modules in a case where the main chip receives the interrupt signal, wherein the source module is a functional module that sends the interrupt signal, and the interrupt signal is used by the source module to wake up the main chip; a second determining module configured to determine a first target frequency based on the source module; a first control module configured to control the main chip to work at the first target frequency after being woken up by the interrupt signal; a statistical unit configured to periodically count a wake-up number of each of the functional modules in a statistical time period; The second control module is configured to: in a case where the number of wake-up times corresponding to a to-be-controlled module is less than a preset number threshold, update a target time length according to a plurality of continuous statistical time periods in which the number of wake-up times corresponding to the to-be-controlled module is less than the preset number threshold; in a case where the target time length does not exceed a preset aging time length, calculate a second target frequency according to the target time length, the aging time length, a preset lower limit of working frequency and a preset default value of working frequency, and control the to-be-controlled module to work at the second target frequency, wherein the aging time length, the lower limit of working frequency and the default value of working frequency are determined according to the to-be-controlled module, and the to-be-controlled module is any of the functional modules.

7. A smart home device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the method of any one of claims 1-5 when executing the computer program.

8. A computer program product, characterised in that, The computer program product comprises a computer program which, when executed by one or more processors, implements the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Intelligent equipment awakening method and device and electronic equipment

    CN111968644A

  • Method and device for reducing power consumption of intelligent door lock

    CN115909546A