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

By dynamically adjusting the operating frequency after the main chip of the smart home device receives the interrupt signal, the problem of high power consumption after the smart home device is woken up in standby state, and a longer battery life is achieved.

CN119644776AActive Publication Date: 2025-03-18TP-LINK
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

After the smart home device is awakened in standby mode, how to reduce power consumption and achieve long-term battery life while ensuring normal operation has become an urgent problem.

Method used

After the main chip receives the interrupt signal, the source module of the interrupt signal is determined and the appropriate operating frequency is determined according to the source module, so that the main chip can operate at a dynamically adjusted frequency after being awakened.

Benefits of technology

It effectively reduces the redundant power consumption generated after the main chip is awakened and extends the battery life of smart home devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119644776A_ABST
    Figure CN119644776A_ABST
Patent Text Reader

Abstract

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

Description

Technical Field

[0001] The present application belongs to the technical field of smart home devices, and in particular, relates to a control method, a control device, a smart home device and a computer program product. Background Art

[0002] Smart home devices have become increasingly popular, laying the foundation for the construction of smart homes. In order to increase the richness of applicable application scenarios, various smart home devices will integrate multiple different functions. Currently, smart home devices usually set a fixed operating frequency for their main chips to support the operation of various functions.

[0003] For smart home devices that use batteries, such as smart door locks and smart doorbells, they are very sensitive to power consumption. Therefore, after these smart home devices are awakened from standby mode, how to reduce the power consumption of smart home devices while ensuring normal operation and achieve long battery life for smart home devices has become an urgent problem to be solved. Summary of the invention

[0004] The present application provides a control method, a control device, a smart home device and a 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, the present application provides a control method, which is applied to a smart home device, wherein the smart home device includes a main chip and at least two functional modules, and the control method includes:

[0006] In the case where the main chip receives an interrupt signal, determining a source module of the interrupt signal in at least two functional modules, 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;

[0007] determining a first target frequency based on the source module;

[0008] The main chip is controlled to operate at the first target frequency after being awakened by the interrupt signal.

[0009] In a second aspect, the present application provides a control device, which is applied to a smart home device, wherein the smart home device includes a main chip and at least two functional modules, and the control device includes:

[0010] A first determination module is used to determine the source module of the interrupt signal in at least two functional modules when the main chip receives the interrupt signal, wherein the source module is the functional module that sends the interrupt signal, and the interrupt signal is used by the source module to wake up the main chip;

[0011] A second determination module, configured to determine a first target frequency based on the source module;

[0012] The first control module is used to control the main chip to operate at a first target frequency after being awakened by an interrupt signal.

[0013] In a third aspect, the present 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, and the processor implements the steps of the method of the first aspect when executing the computer program.

[0014] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

[0015] In a fifth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, it implements the steps of the method of the first aspect.

[0016] Compared with the prior art, the present application has the following beneficial effects: after the main chip receives an interrupt signal, the smart home device can adjust its operating frequency after being awakened according to the functional module that sends the interrupt signal. In this way, after the main chip is awakened, its operating frequency can be adapted to the relevant algorithm requirements of the functional module, that is, its operating frequency is no longer fixed to a higher frequency. Through the above operation, excessive redundant power consumption is avoided after the main chip is awakened, and the battery life of the smart home device can be extended.

[0017] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 This is a sample diagram of the architecture of smart home devices;

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

[0021] Figure 3This is another implementation flow diagram of the control method provided in the embodiment of the present application;

[0022] Figure 4 is a structural block diagram of a control device provided in an embodiment of the present application;

[0023] Figure 5 It is a schematic diagram of the structure of the smart home device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work 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 described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

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

[0027] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

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

[0029] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0030] The control method provided in the embodiment of the present application is described below. The execution subject of the control method is a smart home device, which can be a battery-powered device or a plug-in device, which is not limited here. In fact, as long as there is a need to save power consumption, the smart home device can be used as the execution subject of the control method in the embodiment of the present application.

[0031] To facilitate understanding of the control method provided in the embodiments of the present application, the following first introduces the smart home device. The smart home device generally includes a main chip and at least two functional modules, wherein each functional module can perform its own unique related functions. Figure 1 , Figure 1 The following is an example of the architecture of a smart home device when the smart home device is a smart door lock. Figure 1 As shown, the functional modules of the smart home device may include: wireless network (Wireless Fidelity, Wi-Fi) module, fingerprint recognition module, near field communication (Near Field Communication, NFC) recognition module, touch module and face recognition module. Each functional module can be connected to a pin of the main chip, and different functional modules are connected to different pins of the main chip, so that each functional module can communicate with the main chip through the pins.

[0032] Based on the above proposed smart home device architecture, please refer to Figure 2 , the control method proposed in the embodiment of the present application includes:

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

[0034] For the functional module, when it detects external interactive operations or receives external input instructions, it can send an interrupt signal to the main chip to wake up the main chip. For the main chip, when it receives an interrupt signal, it can determine the source module of the interrupt signal among all the functional modules currently configured in the smart home device. Among them, the source module refers to: the functional module that sends an interrupt signal, that is, the source of the interrupt signal. Through the interrupt signal, the source module can wake up the main chip, thereby triggering the main chip to run the algorithm related to the source module and execute the corresponding decision. For example, when the source module is a fingerprint recognition module, the main chip can subsequently execute the fingerprint recognition algorithm, etc., and determine whether it can be unlocked based on the algorithm 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 specifically determine the source module of the interrupt signal in the following manner: First, determine the target pin that receives the interrupt signal. Then, based on the target pin, determine the source module in at least two functional modules. Among them, the main chip pre-records the functional modules corresponding to each of its pins, so by querying the functional module corresponding to the target pin, the source module of the interrupt signal can be known. That is, in the embodiment of the present application, the source module can be determined based on the one-to-one relationship between the pin and the functional module.

[0036] Step 202: determine a first target frequency based on a source module.

[0037] Different functional modules may have different working requirements. For example, the touch module may only need the main control module to respond to the user's touch operation, so it is only necessary to simply require the main chip to run at a lower frequency to save energy; the fingerprint recognition module may need the main control module to perform more complex algorithm processing, so the main chip is required to run at a higher frequency to improve the efficiency of algorithm processing. Based on this, by analyzing the source of the interrupt signal, 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 the module-frequency mapping relationship is given below in Table 1:

[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 comparison relationship can be set by the manufacturer of the smart home device 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 comparison relationship, 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 operate at the first target frequency after being awakened by the interrupt signal.

[0043] The source module can wake up the main chip through an interrupt signal. In order to achieve adaptive adjustment of the operating frequency of the main chip, the main chip will no longer work at a fixed frequency after being awakened, but will work at a determined first target frequency. For example, based on Table 1, when the source module is a fingerprint recognition module, the first target frequency is F1, that is, the main chip will work at the operating frequency of F1 after being awakened by the fingerprint recognition module; when the source module is an NFC recognition module, the first target frequency is F2, that is, the main chip will work at the operating frequency of F2 after being awakened by the NFC recognition module.

[0044] In some embodiments, the state of the main chip when the main chip receives the interrupt signal is not limited. That is, the main chip may receive an interrupt signal in a standby state; or, it may receive an interrupt signal in a working state (a state that has been awakened). This is because in actual application scenarios, the main chip may continuously receive interrupt signals issued by more than two functional modules in a short period of time. In view of the situation that the main chip receives at least two interrupt signals within the target time period, the main chip can determine at least two source modules accordingly, and compare the main chip frequencies corresponding to each source module in the module-frequency comparison 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 determined respectively, thereby determining at least two source modules; step 202 can be further optimized as follows: in the preset module-frequency comparison relationship, the main chip operating frequency corresponding to each source module is searched respectively; the maximum main chip operating frequency obtained by the search is determined as the first target frequency.

[0045] For example, at time T0, the main chip receives an interrupt signal from the fingerprint recognition module in the standby state. After the main chip is awakened, it will operate at the operating frequency F1 as the first target frequency.

[0046] For another example, based on the interrupt signal sent by the fingerprint recognition module at time T0, the main chip has completed the execution of the fingerprint recognition algorithm at time T1, and obtained the execution result of fingerprint matching failure; based on this, the user expects to change the unlocking method from fingerprint unlocking to face unlocking, then at time T2, the main chip receives the interrupt signal sent by the face recognition module in the working state; when F4>F1, the main chip can switch the first target frequency from F1 to F4 and continue to work, conversely, when 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 the power consumption of each functional module; thereby, the power consumption of smart home devices can be further reduced without affecting the actual user experience. It can be understood that in order to achieve low power consumption, from an actual microscopic scale, each functional module works periodically. For example, the operating frequency of the touch module itself is 5Hz, which means that every 200 milliseconds, the touch module will wake up from sleep to scan. Only then is it really working, and after working for a short period of time (about tens of milliseconds), it will enter sleep again and scan again after an interval of 200 milliseconds. It should be noted that the operating frequency of the functional modules described here is actually a concept of a larger range; depending on the functional module, the operating frequency can be further refined into scanning frequency and keep-alive period, etc., which will not be elaborated here. Please refer to Figure 3 , the control method proposed in the embodiment of the present application may also include:

[0048] Step 301 , periodically counting the number of times each functional module wakes up the main chip within a statistical time period.

[0049] Among them, the statistical time period refers to: a time period with a preset statistical time as the end time and a cycle duration as the statistical duration. For example, the cycle duration can be 24 hours, and the statistical time can be 0:00 every day, that is, the main chip can count the number of wake-up times of each functional module waking up the main chip in the previous day at 0:00 every day. For another example, the cycle duration can be 7 days, and the statistical time can be 0:00 every Monday, that is, the main chip can count the number of wake-up times of each functional module waking up the main chip in the previous week at 0:00 every Monday.

[0050] Step 302: Control the operating frequency of each functional module according to the wake-up times corresponding to each functional module.

[0051] According to the wake-up times corresponding to each functional module, the smart home device can determine the activity level of each functional module in the recent period. On this basis, the activity level of the functional module can be set to be positively correlated with the working frequency of the functional module, thereby controlling the working frequency of each functional module. In other words, a functional module with a large number of wake-up times is relatively active, so the working frequency of the functional module can be controlled to be maintained at a relatively high level; conversely, a functional module with a small number of wake-up times is relatively inactive, so the working frequency of the functional module can be controlled to be maintained at a relatively low level.

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

[0053] A1. When the wake-up times corresponding to the module to be controlled are less than a preset times threshold, the working frequency of the module to be controlled is reduced.

[0054] The preset number threshold can be initially set by the manufacturer of the smart home device, and can be subsequently changed by the user according to actual needs, which is not limited here. When the number of wake-up times corresponding to the module to be controlled is less than the preset number threshold, the smart home device can reduce the operating frequency of the module to be controlled to a fixed value; or, it can also linearly and gradually reduce the operating frequency of the module to be controlled; or, it can also nonlinearly and gradually reduce the operating frequency of the module to be controlled, which is not limited in the embodiment of the present application. Among them, the module to be controlled can be any functional module; that is, for each functional module, relevant processing can be performed through step A1 and step A2.

[0055] Specifically, the smart home device can linearly and gradually reduce the operating frequency of the module to be controlled in the following manner:

[0056] First, according to a plurality of consecutive statistical time periods in which the wake-up times corresponding to the module to be controlled are less than a preset number threshold, the target duration is updated. The target duration refers to the consecutive duration in which the wake-up times corresponding to the module to be controlled are less than the preset number threshold.

[0057] Taking a cycle duration of 24 hours, a statistical time of 0:00 every day, and a preset threshold of 1 as an example, assuming that the number of wake-up times corresponding to the NFC identification module has been found to be 0 for three consecutive times (that is, the number of wake-up times corresponding to the NFC identification module has been 0 in the last three days), the target duration can be updated to three days.

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

[0059] As an example only, the calculation formula of the second target frequency may be: F n =F0-(F0-F m )*N / M. Among them, F n Indicates the second target frequency, F0 indicates the default operating frequency, F mRepresents the lower limit of the operating frequency, N represents the target duration, and M represents the aging duration. Among them, the aging duration, the lower limit of the operating frequency and the default value of the operating frequency can all be determined according to the module to be controlled. That is, different aging durations, lower limits of the operating frequency and default values ​​of the operating frequency can be configured for different modules to be controlled. In addition, the user can adjust the aging duration, the lower limit of the operating frequency and / or the default value of the operating frequency according to their needs. Taking into account that the user is not a professional R&D personnel, the embodiment of the present application may consider providing the user with parameter value configuration items of different power saving levels in the parameter configuration interface of the application associated with the smart home device; in this way, the user only needs to select the 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] That is, the smart home device may adjust the operating frequency of the module to be controlled to the second target frequency, so that the module to be controlled operates at the reduced operating frequency.

[0062] It should be noted that after updating the continuous number of target statistical time periods, if the target duration exceeds the aging duration, there is no need to calculate the second target frequency, and the module to be controlled can be directly controlled to operate at the lower limit of the operating frequency. That is, the second target frequency cannot be lower than the lower limit of the operating frequency.

[0063] In some application scenarios, the lower limit of the operating frequency mentioned above can be configured as 0 at the lowest. In this case, a certain functional module may not wake up the main chip for a long time, resulting in its operating frequency being reduced to 0, that is, the functional module is turned off. In this case, the user needs to manually trigger the turned-off functional module, for example, the user manually wakes up the panel of the smart home device, thereby triggering each functional module to power on.

[0064] A2. When the wake-up times corresponding to the module to be controlled are greater than or equal to a preset times threshold, the working frequency of the module to be controlled is restored to a preset working frequency default value.

[0065] When the number of wake-up times corresponding to the module to be controlled is greater than or equal to the preset number, it indicates that the module to be controlled is relatively active in the most recent statistical time period. Based on this, it can be inferred that due to the inertia of the user's behavior, the module to be controlled is likely to remain active in the current new statistical time period. In this regard, the smart home device 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 the embodiment of the present application, after the main chip receives the interrupt signal, the smart home device can adjust the working frequency of the main chip after it is awakened according to the functional module that sends the interrupt signal. In this way, after the main chip is awakened, its working frequency can be adapted to the relevant algorithm requirements of the functional module, that is, its working frequency is no longer fixed to a higher frequency. Through the above operation, excessive redundant power consumption is avoided after the main chip is awakened, and the battery life of the smart home device can be extended.

[0067] Corresponding to the control method provided above, the embodiment of the present application further provides a control device. The 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. Figure 4 , the control device 400 comprises:

[0068] A first determination module 401 is used to determine the source module of the interrupt signal in at least two functional modules when the main chip receives the interrupt signal, wherein the source module is the functional module that sends the interrupt signal, and the interrupt signal is used by the source module to wake up the main chip;

[0069] A second determination module 402, configured to determine a first target frequency based on a source module;

[0070] The first control module 403 is used to control the main chip to operate at a first target frequency after being awakened by an interrupt signal.

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

[0072] A first determining unit, configured to determine a target pin that receives an interrupt signal if the main chip receives an interrupt signal;

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

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

[0075] A search unit, used to search for the main chip operating frequency corresponding to the source module in a preset module-frequency comparison 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] A statistical unit, 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 working frequency of each functional module according to the wake-up times corresponding to each functional module.

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

[0081] A reducing unit, used to reduce the operating frequency of the module to be controlled when the number of wake-up times corresponding to the module to be controlled is less than a preset number threshold, wherein the module to be controlled is any functional module;

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

[0083] In some embodiments, the lowering unit comprises:

[0084] An updating subunit, used to update the target duration according to a plurality of consecutive statistical time periods in which the number of wake-up times corresponding to the module to be controlled is less than a preset number threshold;

[0085] A determination subunit, configured to calculate a second target frequency according to a target duration, a preset aging duration, a preset lower limit value of the operating frequency, and a preset default value of the operating frequency, wherein the aging duration, the lower limit value 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 a second target frequency.

[0087] In some embodiments, the lowering unit further comprises:

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

[0089] As can be seen from the above, in the embodiment of the present application, after the main chip of the smart home device receives the interrupt signal, the smart home device can adjust its working frequency after being awakened according to the functional module that sends the interrupt signal. In this way, after the main chip is awakened, its working frequency can be adapted to the relevant algorithm requirements of the functional module, that is, its working frequency is no longer fixed to a higher frequency. Through the above operation, excessive redundant power consumption is avoided after the main chip is awakened, and the battery life of the smart home device can be extended.

[0090] Corresponding to the control method provided above, the present application embodiment also provides a smart home device. Figure 5 The smart home device 5 in the embodiment of the present application includes: a memory 501, one or more processors 502 ( Figure 5Only one is shown in the figure) and a computer program stored in the memory 501 and can be run on the processor. It should be noted that the smart home device also includes a main chip and at least two functional modules. Figure 5 The memory 501 is used to store software programs and units, and the processor 502 executes various functional applications and controls by running the software programs and units stored in the memory 501 to obtain the resources corresponding to the above-mentioned preset events. Specifically, the processor 502 implements the following steps when running the computer program stored in the memory 501:

[0091] In the case where the main chip receives an interrupt signal, determining a source module of the interrupt signal in at least two functional modules, 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;

[0092] determining a first target frequency based on the source module;

[0093] The main chip is controlled to operate at the first target frequency after being awakened by the interrupt signal.

[0094] Assuming that the above is a first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, determining a source module of an interrupt signal in at least two functional modules includes:

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

[0096] According to the target pin, a source module is determined in at least two functional modules.

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

[0098] In the preset module-frequency comparison relationship, find the main chip operating frequency 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 on the basis of the first possible implementation, or the second possible implementation, or the third possible implementation, the processor 502 implements the following steps by 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] According to the wake-up times corresponding to each functional module, the operating frequency of each functional module is controlled respectively.

[0103] In a fifth possible implementation provided on the basis of the fourth possible implementation, the operating frequency of each functional module is controlled respectively according to the wake-up times corresponding to each functional module, including:

[0104] When the number of wake-up times corresponding to the module to be controlled is less than a preset number threshold, reducing the working frequency of the module to be controlled, wherein the module to be controlled is any functional module;

[0105] When the wake-up times corresponding to the module to be controlled are greater than or equal to the preset times threshold, the working frequency of the module to be controlled is restored to the preset working frequency default value.

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

[0107] Update the target duration according to a plurality of consecutive statistical time periods in which the number of wake-up times corresponding to the module to be controlled is less than a preset number threshold;

[0108] Calculate the second target frequency according to the target duration, the preset aging duration, the preset lower limit value of the operating frequency and the preset default value of the operating frequency, wherein the aging duration, the lower limit value of the operating frequency and the default value of the operating frequency are determined according to the module to be controlled;

[0109] The module to be controlled is controlled to operate at a second target frequency.

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

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

[0112] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0113] The memory 501 may include a read-only memory and a random access memory, and provide instructions and data to the processor 502. A part or all of the memory 501 may also include a non-volatile random access memory. For example, the memory 501 may also store information of a device category.

[0114] As can be seen from the above, in the embodiment of the present application, after the main chip of the smart home device receives the interrupt signal, the smart home device can adjust its working frequency after being awakened according to the functional module that sends the interrupt signal. In this way, after the main chip is awakened, its working frequency can be adapted to the relevant algorithm requirements of the functional module, that is, its working frequency is no longer fixed to a higher frequency. Through the above operation, excessive redundant power consumption is avoided after the main chip is awakened, and the battery life of the smart home device can be extended.

[0115] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned 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 embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0116] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0117] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the associated hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased 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 does not include electrical carrier signals and telecommunication signals.

[0118] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A control method, characterized in that: The control method is applied to a smart home device, wherein the smart home device includes a main chip and at least two functional modules. The control method includes: In the case where the main chip receives an interrupt signal, determining a source module of the interrupt signal in the at least two functional modules, 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; The main chip is controlled to operate at the first target frequency after being awakened by the interrupt signal.

2. The control method according to claim 1, characterized in that: The source module for determining the interrupt signal in the at least two functional modules includes: Determine the target pin receiving the interrupt signal; The source module is determined in the at least two functional modules according to the target pin.

3. The control method according to claim 1, characterized in that: The determining a first target frequency based on the source module comprises: In the preset module-frequency comparison relationship, searching for the main chip operating frequency corresponding to the source module; The operating frequency of the main chip corresponding to the source module is determined as the first target frequency.

4. The control method according to any one of claims 1 to 3, characterized in that: The control method further comprises: Periodically counting the number of times each of the functional modules wakes up the main chip within a statistical time period; According to the wake-up times corresponding to the functional modules, the operating frequencies of the functional modules are controlled respectively.

5. The control method according to claim 4, characterized in that: The controlling the operating frequency of each functional module according to the wake-up times corresponding to each functional module comprises: When the wake-up times corresponding to the module to be controlled are less than a preset times threshold, reducing the working frequency of the module to be controlled, wherein the module to be controlled is any of the functional modules; When the wake-up times corresponding to the module to be controlled are greater than or equal to the preset times threshold, the working frequency of the module to be controlled is restored to a preset working frequency default value.

6. The control method according to claim 5, characterized in that: The step of reducing the operating frequency of the module to be controlled includes: Update the target duration according to a plurality of consecutive statistical time periods in which the number of wake-up times corresponding to the module to be controlled is less than a preset number threshold; Calculating a second target frequency according to the target duration, a preset aging duration, a preset lower limit value of the operating frequency, and a preset default value of the operating frequency, wherein the aging duration, the lower limit value of the operating frequency, and the default value of the operating frequency are determined according to the module to be controlled; The module to be controlled is controlled to operate at the second target frequency.

7. The control method according to claim 6, characterized in that: After the continuous number of the target statistical time periods is updated, the control method further includes: When the target duration exceeds the aging duration, the module to be controlled is controlled to operate at the lower limit of the operating frequency.

8. A control device, characterized in that: The control device is applied to a smart home device, wherein the smart home device includes a main chip and at least two functional modules, and the control device includes: A first determining module is used to determine a source module of the interrupt signal in the at least two functional modules when 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 determination module, configured to determine a first target frequency based on the source module; The first control module is used to control the main chip to operate at the first target frequency after being awakened by the interrupt signal.

9. 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: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Household equipment control method and device and computer equipment

    CN111665729A

  • Intelligent equipment awakening method and device and electronic equipment

    CN111968644A

  • Sleep control method and device of smart home equipment, processor and electronic equipment

    CN114265327A

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

    CN115909546A

  • Device wake-up method

    WO2023020076A1