Multi-single-chip microcomputer kitchen range low-power-consumption control system and method

By designing an external interrupt wake-up circuit coordinated by the host, low-power control of the multi-microcontroller stove system was achieved, solving the problems of sleep coordination and wake-up response, and improving the system's battery life.

CN120845798APending Publication Date: 2025-10-28GUANGDONG MACRO GAS APPLIANCE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511111813.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-08
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

The lack of sleep coordination and wake-up response mechanisms between units in a multi-microcontroller stove system makes it difficult to maintain stable communication in low-power conditions, resulting in increased system standby power consumption and reduced battery life.

Method used

The host is used as the global coordination unit. Synchronous sleep control and instant wake-up response are achieved through external interrupt wake-up lines. Wake-up requests are transmitted using hardware-level level signals to bypass software layer detection and achieve fast switching.

Benefits of technology

Stable communication of multi-microcontroller stove systems under low power consumption conditions has been achieved, avoiding power consumption accumulation and energy waste caused by timing deviations, and improving battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120845798A_ABST
    Figure CN120845798A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-single-chip-microcomputer cooker low-power-consumption control system and method, and the system comprises a host which is used for coordinating the low-power-consumption control of the whole system; the slaves are in communication connection with the host; the host is connected with the slaves through the external interrupt wake-up circuit so as to trigger wake-up operation through level change; the external interruption wake-up circuit comprises a first external interruption wake-up circuit and a second external interruption wake-up circuit, the host is connected with each slave through the first external interruption wake-up circuit to wake up each slave, and the slave is connected with the host through the second external interruption wake-up circuit to wake up the host. Compared with the prior art, according to the scheme, the host serves as a global coordination unit, the synchronous dormancy instruction is directly sent to all the slaves based on the system state, the problem of power consumption superposition caused by time sequence deviation during traditional multi-unit independent dormancy is solved, and all the control units synchronously enter the deep low-power-consumption state when no operation requirement exists.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cooktop technology, and in particular to a low-power control system and method for multi-microcontroller cooktops. Background Technology

[0002] With the increasing intelligence of household gas stoves, the number of functional modules is growing, and traditional single-chip control systems are gradually evolving into multi-chip collaborative architectures. However, the parallel operation of multiple independent control units leads to a significant increase in system standby power consumption and a sharp decline in battery life. Furthermore, the lack of sleep coordination and wake-up response mechanisms between units makes it difficult to maintain stable communication in low-power conditions. Therefore, there is an urgent need for a low-power management solution that can achieve synchronous sleep control and instant wake-up response in multi-chip systems, extending battery life while ensuring functional reliability. Summary of the Invention

[0003] The purpose of this application is to provide a low-power control system and method for multi-microcontroller stoves, which aims to solve the technical problem that the lack of sleep coordination and wake-up response mechanisms between units in existing multi-microcontroller stoves makes it difficult to maintain stable communication in a low-power state.

[0004] To solve the above-mentioned technical problems, the purpose of this application is achieved through the following technical solution:

[0005] The first aspect of this application provides a low-power control system for a multi-microcontroller stove, comprising:

[0006] The host unit is used to coordinate the low-power control of the entire system.

[0007] At least one slave device, which is communicatively connected to the master device;

[0008] An external interrupt wake-up line is provided, through which the host and each of the slave devices are connected to trigger a wake-up operation by a change in voltage level.

[0009] The external interrupt wake-up line includes: a first external interrupt wake-up line and a second external interrupt wake-up line. The host and each of the slave devices are connected through the first external interrupt wake-up line to wake up each of the slave devices, and the slave devices are connected to the host through the second external interrupt wake-up line to wake up the host.

[0010] The host is equipped with an external interrupt module, which is connected to the external interrupt wake-up line to wake up the host when a change in the level of the external interrupt wake-up line is detected.

[0011] In one possible implementation, the slave device is provided with a slave external interrupt module, which is connected to the external interrupt wake-up line to wake up the slave device when a level change of the external interrupt wake-up line is detected.

[0012] In one possible implementation, the multi-microcontroller stove low-power control system further includes a serial bus, through which the host and each of the slave devices are connected in pairs via the serial bus.

[0013] In one possible implementation, the host is provided with a host receive pin and a host transmit pin, and the slave is provided with a slave receive pin and a slave transmit pin. The host receive pin and the slave transmit pin are connected through the serial bus, and the host transmit pin and the slave receive pin are connected through the serial bus. All slave receive pins and all slave transmit pins are collinear.

[0014] In one possible implementation, the low-power control system for the multi-microcontroller stove further includes a power management module, which is connected to the host and each of the slave devices respectively, and is used to cut off the power supply to the non-essential circuits when the host or the slave device enters the shutdown mode, while retaining the power supply to the external interrupt wake-up line.

[0015] The non-essential circuits are those that do not need to operate in the shutdown mode, including the host's display driver circuit, the slave's sensor sampling circuit, the host and slave's serial communication driver circuit, the status indicator circuit, and the key scanning circuit.

[0016] In one possible implementation, the multi-microcontroller stove low-power control system further includes a timer, wherein the host and each of the slave devices are connected to the timer.

[0017] A second aspect of this application provides a low-power control method for a multi-microcontroller stove, the method comprising the following steps:

[0018] The host and the slave device respectively enter the shutdown mode;

[0019] When the slave device needs to be woken up, the master device sends a level change signal to the slave device through an external interrupt line;

[0020] The slave device enters normal operating mode after receiving the level change signal;

[0021] When the master needs to be woken up, the slave sends a level change signal to the master through an external interrupt line;

[0022] After receiving the level change signal, the host machine polls the data of each slave machine.

[0023] After the polling is completed, if there are no other task requirements, the host will re-enter the shutdown mode.

[0024] In one possible implementation, the steps for the host and the slave to enter shutdown mode respectively include:

[0025] When the host and the slave are powered on, they enter normal operating mode.

[0026] When the host and the slave meet the requirements of the shutdown mode, the host and the slave enter the shutdown mode;

[0027] In shutdown mode, the host and the slave are periodically woken up;

[0028] When the host and the slave are woken up, if the host and the slave meet the requirements of the normal working mode, the host and the slave enter the normal working mode.

[0029] If the host and the slave do not meet the requirements of the normal working mode, then continue to enter the shutdown mode.

[0030] In one possible implementation, when the slave device needs to be woken up, the steps following the master device sending a level change signal to the slave device via an external interrupt line include:

[0031] The host sends data to the slave.

[0032] In one possible implementation, the method further includes:

[0033] The host machine polls the data of each slave machine at a predetermined time and sends a query command to each slave machine.

[0034] After receiving the query command, the slave device returns the corresponding data to the master device.

[0035] The advantages of this application compared to existing technologies are as follows: This application provides a low-power control system and method for multi-microcontroller stoves. Through the coordinated design of a unified host coordination and a dedicated external interrupt wake-up circuit, it overcomes the control bottleneck of traditional multi-microcontroller systems in low-power mode. Compared to existing technologies, this solution, by using the host as a global coordination unit, can directly send synchronous sleep commands to all slave devices based on the system state. This solves the problem of power consumption superposition caused by timing deviations when multiple units are in independent sleep mode, enabling each control unit to synchronously enter a deep low-power state when there is no operational need, avoiding energy waste caused by some units idling. Secondly, the external interrupt wake-up circuit transmits wake-up requests through hardware-level level signals, eliminating the delay caused by protocol parsing and periodic detection. This allows critical operations such as ignition signals and safety alarms to bypass the software layer and directly trigger the entire system to wake up, achieving instantaneous switching from low-power state to working state. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

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

[0038] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0039] Figure 1 A flowchart illustrating a low-power control system for a multi-microcontroller stove provided in this application embodiment. Figure 1 ;

[0040] Figure 2 A flowchart illustrating a low-power control system for a multi-microcontroller stove provided in this application embodiment. Figure 2 ;

[0041] Figure 3 A flowchart illustrating a low-power control method for a multi-microcontroller stove provided in this application embodiment. Figure 1 ;

[0042] Figure 4 A flowchart illustrating a low-power control method for a multi-microcontroller stove provided in this application embodiment. Figure 2 ;

[0043] Figure 5 A flowchart illustrating a low-power control method for a multi-microcontroller stove provided in this application embodiment. Figure 3 ;

[0044] Figure 6 A flowchart illustrating a low-power control method for a multi-microcontroller stove provided in this application embodiment. Figure 4 ;

[0045] Figure 7 A schematic block diagram illustrating the self-sleep principle of the microcontroller in a low-power control method for multi-microcontroller stoves provided in this application embodiment;

[0046] Figure 8 A schematic block diagram of a computer device provided in an embodiment of this application. Detailed Implementation

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

[0048] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0049] For ease of description, spatial relative terms may be used in the text to describe the relative position or movement of one element or feature relative to another element or feature, as shown in the figure. These relative terms include, for example, "inside," "outside," "middle," "outer," "below," "below," "above," "front," "back," etc. Such spatial relative terms are intended to include different orientations of the device in use or operation, other than those depicted in the figure. For example, if the device in the figure undergoes a positional flip, orientation change, or change of motion, these directional indications will change accordingly. For instance, an element described as "below other elements or features" or "below other elements or features" will subsequently be oriented "above other elements or features" or "above other elements or features." Therefore, the example term "below" can include both upper and lower orientations. The device may be otherwise oriented (rotated 90 degrees or in other directions), and the spatial relative descriptors used in the text will be interpreted accordingly.

[0050] To address the technical problems of delayed response due to wake-up latency and redundant power consumption waste caused by asynchronous sleep states of various units in existing technologies, this application provides a low-power control system and method for multi-microcontroller stoves. By using the host as a global coordinating unit, it can directly send synchronous sleep commands to all slave units based on the system status, solving the problem of power consumption superposition caused by timing deviations when multiple units sleep independently. This allows each control unit to synchronously enter a deep low-power state when there is no operational need, avoiding energy waste caused by some units idling. Secondly, the external interrupt wake-up line transmits the wake-up request through hardware-level level signals, eliminating the delay caused by protocol parsing and periodic detection. This allows key operations such as ignition signals and safety alarms to bypass the software layer and directly trigger the entire system to wake up, achieving instantaneous switching from low-power state to working state.

[0051] Please see Figures 1 to 2 This application provides a low-power control system for a multi-microcontroller stove, comprising: a host for coordinating low-power control of the entire system; at least one slave device, which is communicatively connected to the host; and an external interrupt wake-up line, through which the host and each slave device are connected to trigger a wake-up operation by a level change.

[0052] Specifically, this system achieves low-power control through a hierarchical architecture of a master unit and at least one slave unit. The master unit sends a sleep command to the slave units via the communication bus, synchronously triggering all units to enter sleep mode. Upon receiving the master command, the slave units shut down unnecessary functional modules, retaining only the wake-up monitoring unit. The master unit and each slave unit are directly connected via independent external interrupt lines. When any unit needs to be woken up, the interrupt line level is changed to trigger the synchronous wake-up of all associated units. During sleep mode, the master unit maintains monitoring of critical signals (such as ignition requests and safety checks), and abnormal events trigger local wake-up via the interrupt line. The instruction coordination mechanism between the master and slave units ensures that multiple units enter a low-power state simultaneously, eliminating power redundancy caused by sleep timing deviations in traditional solutions. Furthermore, the independent external interrupt line bypasses the software protocol layer, directly triggering the wake-up operation through physical level changes, significantly reducing event response latency.

[0053] like Figure 1 As shown, the external interrupt wake-up line includes: a first external interrupt wake-up line and a second external interrupt wake-up line. The master and each slave are connected through the first external interrupt wake-up line to wake up each slave, and the slave and the master are connected through the second external interrupt wake-up line to wake up each master.

[0054] Specifically, this system employs a bidirectional independent external interrupt wake-up channel: the first external interrupt line is controlled by the master and connected to the interrupt input ports of all slave devices. When the master detects a wake-up request (such as a user operation command), it triggers the batch wake-up of slave devices by pulling the first line level high / low. The second external interrupt line is connected by each slave device to the interrupt port of the master. When any slave device detects a local wake-up event (such as a sensor malfunction), it sends a wake-up request to the master by changing the level of the second line. During sleep mode, the master and slave devices maintain only the physical connection of the interrupt lines; other communication buses are powered off. After waking up, the master first confirms the slave device status through the first line, and then restores the master communication bus for data interaction.

[0055] In some available embodiments, the host is provided with a host external interrupt module, which is connected to an external interrupt wake-up line to wake up the host when a level change of the external interrupt wake-up line is detected.

[0056] Specifically, the host integrates a dedicated external interrupt module, which is directly connected to the external interrupt wake-up line and includes a level transition detection circuit and a digital filtering unit. When a preset level transition (such as high to low or low to high) occurs on the external interrupt line, the interrupt module's hardware comparator captures the signal change in real time, filters and eliminates jitter, triggers the interrupt vector, forces the host to exit sleep mode, and starts the interrupt service routine. The module has a built-in priority controller that can distinguish different wake-up sources (such as security alarms and user operations) and respond in a preset order when multiple interrupts occur simultaneously.

[0057] In some available embodiments, the slave device is provided with a slave external interrupt module, which is connected to an external interrupt wake-up line to wake up the slave device when a level change of the external interrupt wake-up line is detected.

[0058] Specifically, the slave device integrates a dedicated external interrupt module. This module is directly connected to the external interrupt wake-up line via physical pins and incorporates a built-in level transition detection circuit and digital filtering unit. When a preset level change occurs on the external interrupt line (such as high to low or low to high), the module captures the signal characteristics in real time through a hardware comparator, shapes and filters out noise, and generates an interrupt request signal to force the slave device out of sleep mode and initiate the interrupt handling process. The module supports multi-level wake-up trigger modes, can distinguish wake-up event categories (such as regular operation instructions and emergency fault signals) based on the level change type, and independently controls the step-by-step power-on of the slave device's functional modules.

[0059] like Figure 1 As shown, the low-power control system for multi-microcontroller stoves also includes a serial bus, through which the host and each slave unit are connected in pairs via signals.

[0060] Specifically, the system features an independent serial bus, with point-to-point physical connections established between the master and each slave device, forming a fully interconnected topology. In sleep mode, the master disconnects the serial bus power supply to eliminate static power consumption, retaining only the physical bus interface. During wake-up, the master prioritizes restoring power to the serial bus and establishes communication links with each slave device via a preset protocol. The bus employs a master-slave time-division multiplexing mechanism; the master polls each slave port according to priority, and the slave devices only activate their transmitter driver circuits upon receiving a command from the master, avoiding bus conflicts caused by simultaneous communication from multiple devices.

[0061] In some available embodiments, the host is provided with a host receive pin and a host transmit pin, and the slave is provided with a slave receive pin and a slave transmit pin. The host receive pin and the slave transmit pin are connected through a serial bus, and the host transmit pin and the slave receive pin are connected through a serial bus. All slave receive pins and all slave transmit pins are collinear.

[0062] Specifically, the system employs a master-slave separated serial bus architecture: the master's transmit pin is connected to the receive pins of all slaves via a single physical line, forming a unidirectional broadcast channel; the master's receive pin is connected to the transmit pins of all slaves via another independent line, forming a convergence channel shared by multiple slaves. All slaves' receive pins are connected in parallel to the same broadcast bus, and their transmit pins are connected to the convergence bus via a common line, forming a "one master, multiple slaves" physical topology. During communication, the master sends control commands uniformly through the broadcast channel, and all slaves synchronously receive data but only respond to commands with matching addresses. When slaves transmit data, a time-division multiplexing mechanism is used, with the master polling and controlling each slave to activate its transmit driver sequentially, avoiding signal conflicts caused by multiple devices simultaneously occupying the convergence bus. When the bus is idle, the master forcibly disables the transmit / receive pin driver circuit, maintaining only the physical line connection.

[0063] In some available embodiments, the low-power control system for multi-microcontroller stoves also includes a power management module. The power management module is connected to the host and each slave device respectively. It is used to cut off the power supply to the non-essential circuits of the host or slave device when the host or slave device enters the stop mode, while retaining the power supply to the external interrupt wake-up line. The non-essential circuits are circuits that do not need to run in the stop mode, including the display driver circuit of the host, the sensor sampling circuit of the slave device, the serial communication driver circuit between the host and the slave device, the status indication circuit, and the key scanning circuit.

[0064] Specifically, the power management module in the low-power control system for multi-microcontroller stoves adopts a distributed power supply architecture. Its input is connected to the stove's main power supply, and its output is electrically connected to the host and each slave unit via independent power supply branches. The power management module has a built-in status detection unit, which is connected to the operating status output signals of the host and each slave unit to monitor in real time whether the host and each slave unit have entered stop mode. When the status detection unit detects that the host or a slave unit has entered stop mode, the power management module initiates the power supply control logic: for the host or slave unit in stop mode, the power management module cuts off the power supply to non-essential circuits in the device through switching elements (such as MOSFET switches) in its corresponding power supply branch. "Non-essential circuits" refer to circuits that do not need to operate in stop mode, such as the host's display driver circuit and the slave unit's sensor sampling circuit. Simultaneously, the power management module continuously supplies power to the device's external interrupt wake-up line through an independent reserved power supply branch. Specifically, the power supply branch is reserved only for the transmission path of the host's external interrupt module, the slave's external interrupt module, and the external interrupt wake-up line. This ensures that in shutdown mode, the external interrupt wake-up line can still detect level changes and trigger the wake-up operation normally. When the host or slave is woken up and enters normal operating mode, the status detection unit of the power management module recognizes the status change, controls the switching element to turn on, restores power supply to non-essential circuits, and enables the equipment to operate normally.

[0065] In some available embodiments, the multi-microcontroller stove low-power control system also includes a timer, with the master and each slave connected to the timer.

[0066] Specifically, the system is equipped with an independent hardware timer module. This module connects to the timer interfaces of the master and each slave unit via a dedicated clock line. When the master and each slave unit are in stop mode, the timer is woken up by the chips of the master and each slave unit. The timer module continuously outputs a global synchronization clock pulse, and the master and slave units maintain a low-power listening state of the timer interface during sleep. When a preset time threshold is reached, the timer module simultaneously sends a wake-up pulse signal to the master and slave units, triggering each unit to exit sleep mode. During operation, the master calibrates the local clock deviation of each slave unit through the timer to ensure the timing synchronization of multi-unit task execution. The timer module has built-in multi-channel independent timing units, supporting the setting of differentiated wake-up cycles for the master and each slave unit.

[0067] Furthermore, in the above embodiments, the number of microcontrollers is three or more, while in another embodiment, the number of microcontrollers can be two, and its unit architecture is quite different from that of three microcontrollers.

[0068] like Figure 2 As shown, the dual microcontroller system includes a master and a slave. The serial port receiver of the master is connected to the serial port transmitter of the slave, and the serial port receiver of the slave is connected to the serial port transmitter of the master.

[0069] Specifically, the host's serial port receiver is configured for external interrupt wake-up mode, while the slave's serial port transmitter is configured for general-purpose I / O mode during the wake-up phase. The slave triggers the host's external interrupt wake-up by outputting a level change signal. Once the host is woken up, both the host's serial port receiver and the slave's serial port transmitter synchronously switch to serial port mode for communication. The level change signal is a falling edge triggered signal, generated by the slave's serial port transmitter transitioning from high to low. After wake-up, the host sends an acknowledgment signal to the slave, triggering both the slave's serial port receiver and the host's serial port transmitter to synchronously switch to serial port mode, thus initiating normal communication.

[0070] Please see Figures 3 to 7 This application also provides a low-power control method for multi-microcontroller stoves, such as... Figure 3 As shown, the method includes the following steps S110-S160.

[0071] S110, the master and slave devices respectively enter the shutdown mode;

[0072] S120. When it is necessary to wake up the slave device, the master device sends a level change signal to the slave device through an external interrupt line.

[0073] S130. After receiving a level change signal, the slave device enters normal operating mode;

[0074] S140. When the master needs to be woken up, the slave sends a level change signal to the master through an external interrupt line.

[0075] S150: After receiving the level change signal, the host polls the data of each slave device.

[0076] S160. After polling is completed, if there are no other task requirements, the host will re-enter the shutdown mode.

[0077] Specifically, this system executes a phased low-power control process: the master and slave devices synchronously shut down non-core functional modules, retaining power only for the external interrupt line monitoring unit, and enter a stop mode; when a slave device needs to be woken up, the master device outputs a preset level transition (e.g., high to low) through an independent physical line, triggering the slave device's interrupt controller to forcibly exit the stop mode; the woken-up slave device automatically restores power to its functional modules, starts the initialization program, and reports its ready status; when a slave device detects an event requiring master intervention (e.g., an abnormal alarm), it sends a specific level sequence through the reverse interrupt line, forcing the master device to exit the stop mode; after waking up, the master device sequentially sends status query commands to each slave device, receives and processes feedback data; after data interaction is completed, the master device determines that there are no subsequent task requirements, immediately cuts off power to its own non-essential modules, and sends a synchronous stop command to cause all slave devices to re-enter the stop mode. This design significantly reduces the standby and operating power consumption of the stove control system while allowing multi-microcontroller stove systems to communicate and operate normally, greatly extending the lifespan of the stove battery.

[0078] like Figure 4 and Figure 7 As shown, in a more specific embodiment, execution step S110 further includes execution steps S111-S115.

[0079] S111. When the master and slave are powered on, the master and slave enter normal working mode.

[0080] S112. When the master and slave meet the requirements of the shutdown mode, the master and slave enter the shutdown mode.

[0081] S113. In shutdown mode, the master and slave devices are periodically woken up;

[0082] S114. When the master and slave are woken up, if the master and slave meet the requirements of the normal working mode, the master and slave enter the normal working mode.

[0083] S115. If the master and slave devices do not meet the requirements of the normal working mode, then continue to enter the shutdown mode.

[0084] Specifically, the system adopts a state-driven dynamic power management mode: after the master and slave devices are powered on, they automatically complete initialization and activate all functional modules, entering a normal working mode that continuously detects external signals; when the master and slave devices do not detect user operations, communication requests, or abnormal events continuously and the internal task queue is empty, the hardware state machine is triggered to switch to the shutdown mode. At this time, non-essential modules such as the display unit and sensor power supply are shut down, and only interrupt listening and basic clock operation are maintained; in the shutdown mode, the master and slave devices' built-in low-power timers periodically trigger microsecond-level wake-up windows, briefly restoring the core modules to scan external pin signals; if a valid event (such as button triggering or communication command) is detected during the wake-up period, the power supply to all functional modules is immediately restored and locked to the normal working mode; if no valid event is detected, the timer is automatically reset and the system re-enters the shutdown mode, forming a closed-loop control of "detection-determination-maintenance / switching". Based on event detection and dynamic switching of working modes according to task load, meaningless wake-up energy consumption caused by fixed sleep cycles can be avoided, achieving deep energy saving during idle periods. The periodic micro-wake-up mechanism prevents permanent system sleep caused by external interference or signal loss, ensuring the recoverability of critical functions.

[0085] like Figure 5 As shown, in a more specific embodiment, step S120 is followed by step S121.

[0086] S121, The master sends data to the slave.

[0087] Specifically, after the master wakes up the slave, it immediately performs the following operations: The master switches the pin mode of the external interrupt wake-up line from level output to serial port transmission function, establishing a bidirectional communication link through the same physical line; the master sends an encrypted handshake command to the woken slave, triggering the slave to synchronously switch the interrupt pin to serial port receive mode; the master sends control data or parameter configuration commands packet by packet through the serial port protocol, while monitoring the checksum returned by the slave; after the data transmission is completed, the master sends a stop preparation command, and after the slave returns an acknowledgment signal, the master and slave synchronously shut down the serial port driver circuit, switch the pin back to external interrupt monitoring mode, and enter the stop state. If the checksum fails, the master resends the data packet until it succeeds or triggers the exception handling process.

[0088] like Figure 6 As shown, in a more specific embodiment, the execution steps S210-S220 are also included.

[0089] S210, The host polls the data of each slave device at a predetermined time and sends a query command to each slave device;

[0090] S220. After receiving the query command, the slave device returns the corresponding data to the master device.

[0091] Specifically, the host computer has a built-in timed scheduling module that sends query commands carrying unique address identifiers to each slave computer at preset time intervals. During transmission, the host activates the communication bus driver circuit and transmits the command via an independent physical channel. Upon receiving a query command matching the address, the slave computer immediately activates its data acquisition module to obtain current status information and packages the data to send back to the host via a dedicated feedback line. The host maintains continuous power supply to the communication bus during the polling cycle and immediately shuts down the bus driver to cut off static power consumption after collecting data from all slave computers. For unresponsive slave computers, the host skips the current polling and records the exception, retrying communication in the next cycle.

[0092] Please see Figure 8 , Figure 8 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 300 can be a terminal or a server. The terminal can be an electronic device with communication functions, such as a smartphone, tablet, laptop, desktop computer, personal digital assistant, or wearable device. The server can be a standalone server or a server cluster composed of multiple servers.

[0093] Please see Figure 8 The computer device 300 includes a processor 302, a memory, and a network interface 305 connected via a system bus 301. The memory may include a non-volatile storage medium 203 and internal memory 304.

[0094] The non-volatile storage medium 303 can store an operating system 3031 and a computer program 3032. The computer program 3032 includes program instructions that, when executed, cause the processor 302 to perform a low-power control method for a multi-microcontroller stove.

[0095] The processor 302 provides computing and control capabilities to support the operation of the entire computer device 300.

[0096] The internal memory 304 provides an environment for the operation of the computer program 3032 in the non-volatile storage medium 303. When the computer program 3032 is executed by the processor 302, the processor 302 can execute a low-power control method for multi-microcontroller stoves.

[0097] This network interface 305 is used for network communication with other devices. Those skilled in the art will understand that... Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 300 to which the present application is applied. The specific computer device 300 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0098] It should be understood that in the embodiments of this application, the processor 302 may be a central processing unit (CPU), or it may 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.

[0099] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0100] Therefore, this application also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the following steps:

[0101] S110, the master and slave devices respectively enter the shutdown mode;

[0102] S120. When it is necessary to wake up the slave device, the master device sends a level change signal to the slave device through an external interrupt line.

[0103] S130. After receiving a level change signal, the slave device enters normal operating mode;

[0104] S140. When the master needs to be woken up, the slave sends a level change signal to the master through an external interrupt line.

[0105] S150: After receiving the level change signal, the host polls the data of each slave device.

[0106] S160. After polling is completed, if there are no other task requirements, the host will re-enter the shutdown mode.

[0107] The storage medium can be any computer-readable storage medium that can store program code, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk.

[0108] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0109] The software tools or components not belonging to our company that appear in the embodiments of this application are merely examples and do not represent actual use.

[0110] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0111] The steps in the methods of this application embodiment can be adjusted, merged, or deleted according to actual needs. The units in the apparatus of this application embodiment can be merged, divided, or deleted according to actual needs. Furthermore, the functional units in the various embodiments of this application 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.

[0112] 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 storage medium. Based on this understanding, the technical solution of this application, 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, a terminal, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application.

[0113] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A low-power control system for a multi-microcontroller stove, characterized in that, include: The host unit is used to coordinate the low-power control of the entire system. At least one slave device, which is communicatively connected to the master device; An external interrupt wake-up line is provided, through which the host and each of the slave devices are connected to trigger a wake-up operation by a change in voltage level. The external interrupt wake-up line includes: a first external interrupt wake-up line and a second external interrupt wake-up line. The host and each of the slave devices are connected through the first external interrupt wake-up line to wake up each of the slave devices, and the slave devices are connected to the host through the second external interrupt wake-up line to wake up the host. The host is equipped with an external interrupt module, which is connected to the external interrupt wake-up line to wake up the host when a change in the level of the external interrupt wake-up line is detected.

2. The low-power control system for multi-microcontroller stoves according to claim 1, characterized in that, The slave device is equipped with a slave external interrupt module, which is connected to the external interrupt wake-up line to wake up the slave device when a level change of the external interrupt wake-up line is detected.

3. The low-power control system for multi-microcontroller stoves according to claim 1, characterized in that, Also includes: The host and each of the slave devices are connected in pairs via a serial bus.

4. The low-power control system for multi-microcontroller stoves according to claim 4, characterized in that, The host is provided with a host receive pin and a host transmit pin, and the slave is provided with a slave receive pin and a slave transmit pin. The host receive pin and the slave transmit pin are connected through the serial bus, and the host transmit pin and the slave receive pin are connected through the serial bus. All slave receive pins and all slave transmit pins are shared.

5. The low-power control system for multi-microcontroller stoves according to claim 1, characterized in that, It also includes a power management module, which is connected to the host and each of the slave devices respectively, and is used to cut off the power supply to the non-essential circuits when the host or the slave device enters the shutdown mode, while retaining the power supply to the external interrupt wake-up line; The non-essential circuits are those that do not need to operate in the shutdown mode, including the host's display driver circuit, the slave's sensor sampling circuit, the host and slave's serial communication driver circuit, the status indicator circuit, and the key scanning circuit.

6. The low-power control system for multi-microcontroller stoves according to claim 1, characterized in that, Also includes: A timer is provided, and the host and each of the slave devices are connected to the timer.

7. A low-power control method for a multi-microcontroller stove, characterized in that, The method, applied to the low-power control system for multi-microcontroller stoves as described in any one of claims 1-6, includes the following steps: The host and the slave device respectively enter the shutdown mode; When the slave device needs to be woken up, the master device sends a level change signal to the slave device through an external interrupt line; The slave device enters normal operating mode after receiving the level change signal; When the master needs to be woken up, the slave sends a level change signal to the master through an external interrupt line; After receiving the level change signal, the host machine polls the data of each slave machine. After the polling is completed, if there are no other task requirements, the host will re-enter the shutdown mode.

8. The low-power control method for multi-microcontroller stoves according to claim 7, characterized in that, The steps for the host and the slave to enter shutdown mode respectively include: When the host and the slave are powered on, they enter normal operating mode. When the host and the slave meet the requirements of the shutdown mode, the host and the slave enter the shutdown mode; In shutdown mode, the host and the slave are periodically woken up; When the host and the slave are woken up, if the host and the slave meet the requirements of the normal working mode, the host and the slave enter the normal working mode. If the host and the slave do not meet the requirements of the normal working mode, then continue to enter the shutdown mode.

9. The low-power control method for multi-microcontroller stoves according to claim 7, characterized in that, When the slave device needs to be woken up, the steps following the master device sending a level change signal to the slave device via an external interrupt line include: The host sends data to the slave.

10. The low-power control method for multi-microcontroller stoves according to claim 7, characterized in that, The method further includes: The host machine polls the data of each slave machine at a predetermined time and sends a query command to each slave machine. After receiving the query command, the slave device returns the corresponding data to the master device.