Operation control method and device for electric appliance and electric appliance controller
By dynamically adjusting the operating mode of electrical equipment according to task resource requirements, the problem of high power consumption of electrical equipment is solved, and energy-saving intelligent control is achieved.
Patent Information
- Application Number
- CN202111242192.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2041-10-25
AI Technical Summary
Existing electrical appliances consume a lot of power, especially after the implementation of intelligent functions, which leads to increased energy demand and the inability to cook during power outages.
The resource requirements for each task to be executed are determined by the electrical equipment controller. A voting mechanism is used to determine the target operating mode, and the task is executed by switching to the matching operating mode, including a hibernation state to dynamically adjust resource supply.
It enables dynamic adjustment of the operating mode of electrical equipment controllers according to task requirements, reducing power consumption while meeting the resource requirements of different tasks and avoiding redundant resource supply.
Smart Images

Figure CN116025929B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of operation control technology, and particularly relates to an operation control method and device for electrical equipment and its controller. Background Technology
[0002] Currently, power management in household gas stoves typically uses pulse power switches. The power is turned on when the stove is ignited and off after ignition. However, the more intelligent functions a stove has, the greater its energy consumption becomes. Therefore, pulse power switches are no longer sufficient to meet the demands of smart stove development and hinder its advancement. A common solution is to use a power adapter for continuous power to power the gas stove's controller, requiring the controller to always operate at its highest frequency to meet the smart stove's needs. However, this results in high power consumption and the stove cannot be used for cooking during power outages. Besides gas stoves, other electrical appliances also experience high power consumption for similar reasons. Summary of the Invention
[0003] The present invention provides an operation control method and apparatus for electrical equipment and electrical equipment controller, which at least to some extent solves the technical problem of high power consumption of electrical equipment.
[0004] In a first aspect, embodiments of the present invention provide an operation control method for an electrical equipment controller, comprising:
[0005] Determine the resource requirements of the electrical equipment controller for each task to be executed;
[0006] Based on the resource requirements of each task to be executed for the electrical equipment controller, a target operating mode is determined, wherein the resources provided by the target operating mode are matched with the task to be executed with the greatest resource requirements;
[0007] Control the electrical equipment controller to switch to the target operating mode to perform the task.
[0008] In some implementations, determining the resource requirements of the electrical equipment controller for each task to be executed by the electrical equipment controller includes:
[0009] Create at least one task to be executed for the electrical equipment controller;
[0010] For each task to be executed, a resource requirement analysis is performed to obtain the resource requirement information of the electrical equipment controller for each task to be executed.
[0011] In some implementations, creating at least one task to be executed includes:
[0012] When a user's target operation on an electrical device is obtained, at least one task to be executed is created based on the target operation; or
[0013] According to a pre-set cycle, at least one task to be executed is periodically created.
[0014] In some implementations, the step of performing resource requirement analysis on each task to obtain resource requirement information of the electrical equipment controller for each task to be executed includes:
[0015] Each task to be executed requests resources from the electrical equipment controller;
[0016] The resource requirements of each task to be executed for the electrical equipment controller are calculated to obtain the resource requirement information of each task to be executed for the electrical equipment controller.
[0017] In some implementations, determining the target operating mode based on the resource requirement information of each task to be executed for the electrical equipment controller includes:
[0018] A voting mechanism is triggered based on the resource requirements of each task to be executed for the electrical equipment controller, and the target operating mode is determined through the voting mechanism.
[0019] In some implementations, determining the target operating mode through a voting mechanism includes:
[0020] Based on the resource requirements of each task to be executed for the electrical equipment controller, trigger the corresponding resource requirement voting event;
[0021] Collect resource requirement votes for each resource requirement vote event, and arbitrate votes based on the resource requirement votes for each resource requirement vote event to determine the current resource requirement for the electrical equipment controller.
[0022] Based on the current resource requirements, the target operating mode is determined from multiple preset operating modes, wherein the multiple preset operating modes have different operating frequencies.
[0023] In some implementations, it also includes:
[0024] If there are no tasks to be executed at present, the electrical equipment controller is controlled to enter a sleep state.
[0025] In some implementations, controlling the electrical equipment controller to enter a sleep state includes:
[0026] Get the currently triggered sleep event;
[0027] The electrical equipment controller enters the sleep mode corresponding to the sleep event in the sleep state.
[0028] Secondly, embodiments of the present invention provide an operation control device for an electrical equipment controller, comprising:
[0029] An information determination unit is used to determine the resource requirements of the electrical equipment controller for each task to be executed;
[0030] The mode determination unit is used to determine a target operating mode based on the resource requirement information of each task to be executed for the electrical equipment controller, wherein the resources provided by the target operating mode match the task to be executed with the greatest current resource requirement;
[0031] The mode switching unit is used to control the electrical equipment controller to switch to the target operating mode to perform tasks.
[0032] Thirdly, embodiments of the present invention provide an electrical device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the operation control method of the electrical device controller described in any embodiment of the first aspect.
[0033] The embodiments of the present invention provide one or more technical solutions, which determine the resource requirements of each task to be executed for the electrical equipment controller; determine a target operating mode based on the resource requirements of each task to be executed for the electrical equipment controller, and match the resources provided by the target operating mode with the task to be executed with the greatest resource requirements; control the electrical equipment controller to switch to the target operating mode to execute the task, thereby realizing the dynamic adjustment of the operating mode of the electrical equipment controller according to the resources required for the task to be executed, thereby dynamically adjusting the resources provided by the electrical equipment controller for the execution of the task, so as to dynamically meet the needs of the electrical equipment controller to execute different tasks, without causing the controller to provide redundant resources, thereby reducing the power consumption of the electrical equipment controller. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 This is a flowchart of the operation control method of the electrical equipment controller in an embodiment of the present invention;
[0036] Figure 2This is a schematic diagram illustrating the power consumption changes of the electrical equipment controller in an embodiment of the present invention;
[0037] Figure 3 This is a schematic diagram illustrating the voting mechanism for determining the target operating mode in an embodiment of the present invention;
[0038] Figure 4 This is a functional block diagram of the operation control device of the electrical equipment controller in an embodiment of the present invention;
[0039] Figure 5 This is a schematic diagram of the electrical equipment in an embodiment of the present invention. Detailed Implementation
[0040] In view of the technical problem of high power consumption of electrical equipment in related technologies, the present invention provides an operation control method and device for electrical equipment and electrical equipment controller. The general idea is as follows: according to the resources required by the electrical equipment controller to perform tasks, the electrical equipment controller switches between different operating modes to achieve the purpose of energy consumption control.
[0041] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0042] First, it should be clarified that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0043] This invention provides a method for controlling the operation of an electrical appliance controller. The controller can be an MCU (Microcontroller Unit). The controller is electrically connected to various peripherals to control their operation. Taking a gas stove as an example, the peripherals controlled by the appliance include: a valve (solenoid valve) for opening or closing the gas supply to the burner, a temperature sensor, an ignition device, a flameout protection device, etc. The following description uses a gas stove as an example to illustrate this invention. It should be understood that the method is equally applicable to controllers in other electrical appliances, such as range hoods, microwave ovens, ovens, and air conditioners.
[0044] refer to Figure 1As shown, the operation control method for an electrical equipment controller provided in this embodiment of the invention includes the following steps:
[0045] S101. Determine the resource requirements of the electrical equipment controller for each task to be executed.
[0046] In this embodiment of the invention, the task to be executed is for the electrical equipment controller to perform, so as to control the various peripherals connected to the electrical equipment controller. Each time a new task to be executed for the electrical equipment controller is created, execution step S101 is triggered.
[0047] In some implementations, step S101 includes: when creating at least one task to be executed for the electrical equipment controller, triggering a resource requirement analysis for each task to be executed to obtain resource requirement information of each task to be executed for the electrical equipment controller.
[0048] In practice, there are several situations in which new tasks will be created to be executed. The following explains two scenarios for creating new tasks to be executed:
[0049] Scenario 1: When the target operation performed by the user on the electrical device is obtained, at least one task to be executed is created based on the target operation. The number of tasks to be executed will vary depending on the target operation, and there can be one or more tasks to be executed for the same target operation. The number and type of tasks created are related to the target operation.
[0050] The following explanation uses a gas stove as an example. If a user adjusts the flame level on the gas stove, at least one new task to be executed based on the flame level adjustment operation may include:
[0051] Task A1: Control the opening degree of the gas stove solenoid valve.
[0052] Task A2: Control peripheral device - gas stove temperature sensor to obtain flame temperature data.
[0053] If a user performs a cooking mode setting operation on the gas stove, such as setting a timer to turn off the gas, then at least one new task to be executed based on the timer-off setting operation may include:
[0054] Task B1: Control the peripheral device - the timer - to keep track of time.
[0055] Task B2: When the timer expires, control the external device - the gas stove solenoid valve to adjust its opening degree.
[0056] It should be understood that users can perform a variety of operations on electrical devices, and the corresponding tasks to be executed can also be varied. These can change depending on the actual application and scenario requirements. Therefore, this embodiment of the invention will not provide examples of the types of user operations and the types of newly created tasks to be executed.
[0057] In addition to scenario one above, scenario two may also involve creating new pending tasks: At least one pending task is periodically created according to a pre-set cycle. For example, if a gas stove needs to periodically check its flame intensity, say once per second, then a pending task needs to be created periodically.
[0058] After at least one new task is created to be executed, a resource requirement analysis will be retried for each task to obtain its resource requirements for the electrical equipment controller. This ensures timely dynamic switching of operating modes and meets the resource requirements for the completion of new tasks. It should be understood that the resource requirement analysis here includes not only each newly created task, but also each previously created but not yet executed task.
[0059] For example, if tasks 1, 2, and 3 were previously created, and tasks 4 and 5 are created after task 1 has been executed but before tasks 2 and 3 have been executed, then the events of creating tasks 4 and 5 will trigger a resource requirement analysis for tasks 2, 3, 4, and 5 to determine their resource requirements.
[0060] In some implementations, obtaining the resource requirement information of each task to be executed in step S101 may be: each task to be executed requests resources from the electrical equipment controller; the resources requested by each task to be executed from the electrical equipment controller are calculated to obtain the resource requirement information of each task to be executed from the electrical equipment controller.
[0061] It should be noted that resource requirement information includes the operating frequency required for the electrical equipment controller to perform the corresponding task. In addition, other information may be included, such as the peripherals that need to be accessed, the execution duration, etc. Different models of electrical equipment controllers will have significantly different operating frequencies and power consumption; therefore, specific values for resource requirement information such as operating frequency are not limited here.
[0062] S102. Based on the resource requirements of each task to be executed for the electrical equipment controller, determine the target operating mode, wherein the resources provided by the target operating mode are matched with the task to be executed with the greatest resource requirements.
[0063] After obtaining the resource requirements of each task to be executed, a voting mechanism is triggered based on the resource requirements of each task for the electrical equipment controller. This voting mechanism determines the target operating mode. Specifically, the resource requirements of each task for the electrical equipment controller are recorded; a veto-select voting mechanism is used to determine the target operating mode based on the resource requirements of each task. This quickly and accurately identifies the target operating mode that satisfies the resource needs of all tasks, ensuring that all tasks can be completed within the target operating mode.
[0064] Regarding the veto voting mechanism, in its specific implementation, it includes: each task to be executed sending a resource request to the air conditioner triggers a corresponding resource demand voting event; collecting resource demand votes for each resource demand voting event, and arbitrating votes based on the resource demand votes for each resource demand voting event to determine the current resource demand for the air conditioner controller; and determining the target operating mode from multiple preset operating modes based on the current resource demand, wherein the multiple preset operating modes have different operating frequencies.
[0065] Each resource request from a pending task triggers a resource requirement voting event, with each event representing the resource requirement of that task. By collecting the resource requirement votes from each event, the resource requirement for each task is obtained. To ensure each task can be completed in the target runtime mode, a vote arbitration process is performed based on the resource requirement votes from each event, selecting the highest resource requirement from all available resource requirements as the current requirement.
[0066] In this embodiment of the invention, the electrical equipment controller enters the initialization process after power-on reset; and after initialization is completed, it is in the running state. The running state of the electrical equipment controller can be preset with multiple running modes. Different running modes provide different resources, including different running frequencies. The determined target running mode is one of the preset multiple running modes. The resources provided by the target running mode meet the requirements of each task to be executed, that is, it can complete each task to be executed.
[0067] For example, three operating modes with decreasing frequency can be preset: high-performance operating mode, normal performance operating mode, and low-performance operating mode. Some tasks need to be executed in normal performance operating mode, while others need to be executed in low performance operating mode. In this case, normal performance mode will be determined as the target operating mode.
[0068] Specifically, by using different internal and / or external clock sources, different clock frequencies are provided to the electrical equipment controller, enabling the controller to operate in different frequency modes. For example, four common clock sources (RCH, OSC, PLL, RCL) can be used to implement four clock frequencies, thus providing four different operating modes.
[0069] Different tasks require different amounts of resources (running frequency), thus resulting in different power consumption. (See reference) Figure 2 As shown, Figure 2 The horizontal axis represents time, and the vertical axis represents the power of the electrical device controller. Therefore, power consumption is the area enclosed by the power curve and the horizontal and vertical axes. Reducing power consumption means making the corresponding area smaller. Thus, keeping the electrical device controller in sleep mode for longer periods, and operating it at a lower frequency when in operation, can reduce power consumption.
[0070] For example, three operating modes with decreasing priority are pre-set: high-performance mode (300MHz operating frequency), normal-performance mode (200MHz operating frequency), and low-performance mode (100MHz operating frequency). Suppose there are three tasks to be executed: tasks 1-3. Task 1 requests resources at a 300MHz operating frequency, while tasks 2 and 3 both request 200MHz resources. To ensure that tasks 1 / 2 / 3 can all run, a veto mechanism determines that the normal-performance mode must be used. If the normal mode is selected, then task 1's resource request cannot be met. Therefore, if any task requests a higher-priority operating mode, the electrical equipment controller will not switch to a lower-priority mode; this is the veto mechanism.
[0071] The following is for reference. Figure 3 As shown, the implementation process of determining the target operating mode through a veto voting mechanism is described to understand the embodiments of the present invention: If there are currently tasks 1, 2, 3, ..., N to be executed, the resource requests initiated by tasks 1, 2, 3, ..., N respectively trigger corresponding resource demand voting events 1, 2, 3, ..., N; collect the resource demand votes of resource demand voting events 1, 2, 3, ..., N, and perform vote arbitration based on the resource demand votes of each resource demand voting event to determine the current resource demand; determine the target operating mode from multiple preset operating modes based on the current resource demand.
[0072] After determining the target operating mode through step S102, step S103 is executed to switch the electrical equipment controller to the target operating mode to perform the task.
[0073] After switching to the target operating mode, the electrical equipment controller executes each task sequentially based on its priority, utilizing the resources provided by the target operating mode, until a new task is created. When at least one new task is created, steps S101-S103 are re-executed for each task (including the currently created task and the previously created but not executed task) to control the electrical equipment controller to switch to the next target operating mode. Specifically, the controller can either complete the currently executing task, switch to the next target operating mode, or pause the currently executing task; and resume execution of the currently executing task after switching to the next target operating mode.
[0074] In some implementations, if the electrical equipment controller executes each pending task sequentially according to its priority until all tasks are completed, then there are no more pending tasks. To further reduce power consumption, if there are no pending tasks, the electrical equipment controller enters a sleep state, where the sleep state is the state in which the electrical equipment controller stops working.
[0075] In this embodiment of the invention, in order to reduce power consumption while ensuring the necessary operation of peripherals under different states, multiple sleep modes are provided in the sleep state based on whether different peripherals are in a working state. A mapping relationship between sleep events and sleep modes is pre-established. Specifically, the currently triggered sleep event is obtained; the electrical device controller enters the sleep state and the sleep mode corresponding to the sleep event. This is achieved by sending a sleep event request to the corresponding sleep mode.
[0076] When entering hibernation mode, one or more methods can be specified to wake the user from hibernation. In hibernation mode, an external interrupt or alarm can be used to release the current hibernation mode and switch from hibernation to running state.
[0077] Specifically, regarding releasing the current sleep mode via an alarm clock, a timer begins when any sleep mode is entered. After the preset sleep duration is reached, the current sleep mode is released, allowing the electrical equipment controller to switch from sleep to running state. Furthermore, if a user operation is received, such as a power adjustment or shutdown operation, an external interrupt signal is generated to release the current sleep mode, allowing the electrical equipment controller to switch from sleep to running state.
[0078] Through the above technical solution, the electrical equipment controller enters the initialization process after power-on reset; and after initialization is completed, it will dynamically switch between different operating modes and different sleep modes to save power consumption.
[0079] Secondly, based on the same inventive concept, embodiments of the present invention provide an operation control device for an electrical equipment controller, referencing... Figure 4 As shown, it includes:
[0080] Information determination unit 401 is used to determine the resource requirement information of the electrical equipment controller for each task to be executed;
[0081] The mode determination unit 402 is used to determine a target operating mode based on the resource requirement information of each task to be executed for the electrical equipment controller, wherein the target operating mode satisfies the task to be executed with the largest resource requirement among each task to be executed;
[0082] The mode switching unit 403 is used to control the electrical equipment controller to switch to the target operating mode to perform tasks.
[0083] In some implementations, the information determination unit 401 includes:
[0084] The task creation subunit is used to create at least one task to be executed for use by the electrical equipment controller;
[0085] The requirements analysis subunit is used to perform resource requirements analysis on each task to be executed, and to obtain the resource requirements information of each task for the electrical equipment controller.
[0086] In some implementations, the task establishment subunit is specifically used for:
[0087] When the user's target operation on the electrical device is obtained, at least one new task to be executed is created based on the target operation; or
[0088] At least one new task to be executed is created periodically according to a pre-set cycle.
[0089] In some implementations, the requirements analysis subunit includes:
[0090] The request module is used for each task to request resources from the electrical equipment controller;
[0091] The calculation module is used to calculate the resources requested by each task from the electrical equipment controller, and obtain the resource requirement information of each task from the electrical equipment controller.
[0092] In some implementations, the pattern determination unit 402 includes:
[0093] A voting mechanism is triggered based on the resource requirements of each task to be executed for the electrical equipment controller, and the target operating mode is determined through the voting mechanism.
[0094] In some implementation methods, the target operating mode is determined through a voting mechanism, including:
[0095] Each task to be executed sends a resource request to the electrical equipment controller, triggering the corresponding resource demand ballot event. The resource request carries the resources required by the corresponding task to be executed.
[0096] Collect resource requirement votes for each resource requirement vote event and arbitrate votes based on the resource requirement votes for each resource requirement vote event to determine the current resource requirement for the electrical equipment controller.
[0097] Based on current resource requirements, a target operating mode is determined from multiple preset operating modes, where the operating frequencies of the multiple preset operating modes are different.
[0098] In some implementations, it also includes:
[0099] If there are no tasks to be executed at present, the controller of the electrical equipment enters a sleep state.
[0100] In some implementations, controlling the controller of an electrical device to enter a sleep state includes:
[0101] Get the currently triggered sleep event;
[0102] The electrical equipment controller enters a sleep state corresponding to the sleep event.
[0103] The aforementioned operating control device for the electrical equipment controller is the device used to implement the aforementioned operating control method for the electrical equipment controller. Therefore, based on the operating control method for the electrical equipment controller described in the embodiments of the present invention, those skilled in the art can understand the specific implementation methods and various variations of the operating control device for the electrical equipment controller in this embodiment. Therefore, how this operating control device implements the method in the embodiments of the present invention will not be described in detail here. Any device used by those skilled in the art to implement the operating control method for the electrical equipment controller in the embodiments of the present invention falls within the scope of protection of this application.
[0104] Fourthly, based on the same inventive concept, embodiments of the present invention provide an electrical device, see reference. Figure 5 As shown, it includes: a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502. When the processor 502 executes the computer program, it implements the operation control method of the electrical equipment controller described in any embodiment of the second aspect.
[0105] Among them, Figure 5In this document, a bus architecture (represented by bus 500) is used. Bus 500 may include any number of interconnected buses and bridges, linking various circuits including one or more processors represented by processor 502 and memory represented by memory 504. Bus 500 may also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. Bus interface 505 provides an interface between bus 500 and receiver 501 and transmitter 503. Receiver 501 and transmitter 503 may be the same element, i.e., a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 502 is responsible for managing bus 500 and general processing, while memory 504 can be used to store data used by processor 502 during operation.
[0106] The functions described herein can be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions can be stored as one or more instructions or codes on or transmitted via a computer-readable medium. Other examples and embodiments are within the scope and spirit of this invention and the appended claims. For example, due to the nature of software, the functions described above can be implemented using software executed by a processor, hardware, firmware, hardwired, or any combination thereof. Furthermore, the functional units can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit.
[0107] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0108] The units described as separate components may or may not be physically separate. Similarly, the components of the control device may or may not be physical units; they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0109] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0110] The above description is merely an embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of the claims of the present invention.
Claims
1. A method of operation control of an electric appliance controller, characterized by, The electric appliance controller is electrically connected with various peripherals to control the peripherals to work. The electric appliance controller is an MCU. The method comprises the following steps: determining resource requirement information of each to-be-executed task of the electric appliance controller, wherein the to-be-executed task is used for the electric appliance controller to execute to realize control over various peripherals connected with the electric appliance controller; determining a target operation mode according to the resource requirement information of each to-be-executed task of the electric appliance controller, comprising the following steps: recording the resource requirement information of each to-be-executed task of the electric appliance controller; adopting a one-vote-rejection voting mechanism to determine the target operation mode that meets the resource requirement of all to-be-executed tasks according to the resource requirement information of each to-be-executed task of the electric appliance controller, wherein the target operation mode provides resources matched with the to-be-executed task with the largest resource requirement; controlling the electric appliance controller to switch to the target operation mode to execute tasks.
2. The operation control method according to claim 1, characterized by, The method for determining the resource requirement information of each to-be-executed task of the electric appliance controller comprises the following steps: newly creating at least one to-be-executed task for the electric appliance controller to execute; analyzing the resource requirement of each to-be-executed task to obtain the resource requirement information of each to-be-executed task of the electric appliance controller.
3. The operation control method according to claim 2, characterized by, The method for newly creating at least one to-be-executed task comprises the following steps: when a target operation of a user for the electric appliance is obtained, newly creating the at least one to-be-executed task according to the target operation; or periodically newly creating the at least one to-be-executed task according to a preset period.
4. The operation control method according to claim 3, characterized by, The method for analyzing the resource requirement of each to-be-executed task to obtain the resource requirement information of each to-be-executed task of the electric appliance controller comprises the following steps: each to-be-executed task requests resources from the electric appliance controller; calculating the resources requested by each to-be-executed task from the electric appliance controller to obtain the resource requirement information of each to-be-executed task of the electric appliance controller.
5. The operation control method according to Claim 1, wherein The method for determining a target operation mode according to the resource requirement information of each to-be-executed task of the electric appliance controller comprises the following steps: triggering a voting mechanism according to the resource requirement information of each to-be-executed task of the electric appliance controller to determine the target operation mode through the voting mechanism.
6. The operation control method according to Claim 5, characterized by The method for determining the target operation mode through the voting mechanism comprises the following steps: triggering a corresponding resource requirement voting event according to the resource requirement information of each to-be-executed task of the electric appliance controller; collecting resource requirement votes of each resource requirement voting event and arbitrating the votes according to the resource requirement votes of each resource requirement voting event to determine a current resource requirement of the electric appliance controller; determining the target operation mode from a plurality of preset operation modes according to the current resource requirement, wherein the plurality of preset operation modes have different operation frequencies.
7. The operation control method according to Claim 1, wherein The method further comprises the following steps: if there is no to-be-executed task at present, controlling the electric appliance controller to enter a sleep state.
8. The operation control method according to claim 7, characterized by, The method for controlling the electric appliance controller to enter a sleep state comprises the following steps: acquiring a current triggered sleep event; the electrical equipment controller enters a sleep mode corresponding to the sleep event in the sleep state.
9. An operation control device of an electric appliance controller, characterized by comprising: The electrical equipment controller is electrically connected with various peripherals to control the operation of the various peripherals. The electrical equipment controller is an MCU. The device comprises: an information determining unit configured to determine resource requirement information of each to-be-executed task for the electrical equipment controller, the to-be-executed task being used for the electrical equipment controller to perform control on each peripheral connected to the electrical equipment controller; a mode determining unit configured to determine a target operation mode according to the resource requirement information of each to-be-executed task for the electrical equipment controller, including: recording the resource requirement information of each to-be-executed task for the electrical equipment controller; and determining the target operation mode satisfying the required resources of all to-be-executed tasks according to the resource requirement information of each to-be-executed task for the electrical equipment controller by using a one-vote-rejection voting mechanism, wherein the target operation mode provides resources matched with a to-be-executed task with the largest current resource requirement; a mode switching unit configured to control the electrical equipment controller to switch to the target operation mode to execute tasks.
10. An electrical appliance characterized by The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method in any one of claims 1-8 when executing the computer program.
Citation Information
Patent Citations
System clock setting device
CN1159021A
Configuration of operating frequency of chip
WO2021103618A1