Ultra-thin induction cooker cooperative control system and method based on dual-core MCU
Through the bidirectional data transmission channel and multi-level abnormality detection and early warning mechanism of the dual-core MCU architecture, the limitations of the existing induction cooker control system in terms of architectural design, data communication and security protection are solved, and the ultra-thin induction cooker with high precision and high security is realized. Coordinated control system.
Patent Information
- Application Number
- CN202510069283.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2045-01-16
AI Technical Summary
The existing induction cooker control system has limitations in architectural design, data communication and security protection, and it is difficult to meet users' needs for high precision and high security of ultra-thin induction cookers.
Adopting a dual-core MCU architecture, the two-way data transmission channel between the MCU and the main MCU can be displayed to achieve functional decoupling and modular design, support basic and scene control modes, dynamically adjust PWM parameter templates, and establish a multi-level abnormality detection and early warning mechanism .
It significantly improves the scalability and flexibility of the control system, ensures the reliability and security of data transmission, realizes accurate and personalized heating control, and ensures the safety of use to the greatest extent possible.
Smart Images

Figure CN119472481A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of collaborative control technology, and in particular to a collaborative control system and method for an ultra-thin induction cooker based on a dual-core MCU. Background Art
[0002] Induction cookers are indispensable cooking equipment in modern home kitchens, and the performance of their control systems directly determines the user's cooking experience and safety. Traditional induction cookers mainly use a single MCU architecture, integrating display control and heating control in the same processor. This design has inherent defects such as low real-time performance and high risk of single-point failure.
[0003] The existing control strategies of induction cookers generally have technical shortcomings, such as the lack of intelligent identification and precise matching mechanism for different pots, simple PWM compensation algorithm, low data communication reliability, and single abnormal detection and early warning mechanism. These technical limitations restrict the performance and reliability of the induction cooker control system, making it difficult to meet the actual needs of users for high precision and high safety of ultra-thin induction cookers. Summary of the invention
[0004] In view of the limitations of the existing induction cooker control system in terms of architecture design, data communication and security protection, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is how to achieve reliable two-way data communication and accurate PWM control through the distributed architecture of the display MCU and the main control MCU, and establish a multi-level abnormality detection and early warning mechanism.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: In the first aspect, an embodiment of the present invention provides an ultra-thin induction cooker collaborative control system based on a dual-core MCU, which includes a display MCU, a main control MCU and a communication link module; the communication link module includes an SPI communication interface and a data channel management module, and the data channel management module is used to establish a two-way data transmission channel between the display MCU and the main control MCU; the display MCU includes a touch panel, an instruction encoding module, an abnormality detection module and an alarm prompt module, the touch panel collects control instructions input by the user, the instruction encoding module encodes the control instructions into a first data packet, and the display MCU transmits the first data packet to the main control MCU through the two-way data transmission channel; the abnormality detection module reads and parses the status code in the second data packet sent by the main control MCU, and obtains an electromagnetic field The working state parameters are used to judge the abnormal state; the alarm prompt module sends an alarm signal to the user when an abnormal state is identified; the main control MCU includes a control strategy library, an instruction parsing module, a PWM control module, a parameter acquisition module and a state encoding module. The instruction parsing module reads and parses the instruction code in the first data packet, the PWM control module determines the control mode according to the instruction code, and generates a pulse signal for controlling the heating coil. The pulse signal changes the electromagnetic field working state parameters by adjusting the duty cycle and frequency; the parameter acquisition module collects the electromagnetic field working state parameters in real time, the state encoding module encodes the electromagnetic field working state parameters into a second data packet, and the main control MCU transmits the second data packet to the display MCU through a two-way data transmission channel to complete two-way information interaction.
[0007] As a preferred solution of the ultra-thin induction cooker collaborative control system based on dual-core MCU described in the present invention, wherein: the electromagnetic field working state parameters include electromagnetic field strength, coil temperature, coil current; the first data packet is composed of a frame header identifier, an instruction code and a check code, and the second data packet is composed of a frame header identifier, a status code and a check code.
[0008] As a preferred solution of the ultra-thin induction cooker collaborative control system based on dual-core MCU described in the present invention, the working process of the data channel management module is as follows: configure the display MCU as the master device and the main control MCU as the slave device, and connect the display MCU and the main control MCU through the SPI bus; establish a sending buffer and a receiving buffer in the display MCU and the main control MCU, and the sending buffer and the receiving buffer adopt a circular queue structure; the display MCU sends a handshake request data packet to the main control MCU, and the main control MCU returns a handshake response data packet, and the display MCU determines whether the handshake is successful based on the handshake response data packet; when the handshake is successful, start the interrupt service program in the display MCU and the main control MCU.
[0009] As a preferred solution of the ultra-thin induction cooker collaborative control system based on dual-core MCU described in the present invention, the working process of the instruction encoding module is as follows: the working process of the instruction encoding module includes: dividing the instruction cache area in the sending buffer, and writing the control instructions into the instruction cache area; using the instruction mapping table, the control instructions in the instruction cache area are converted into instruction codes according to a unified encoding format; the instruction code is verified by a cyclic redundancy check algorithm to generate a check code, and the frame format template is called to generate a frame header identifier; the frame header identifier, the instruction code and the check code are assembled in sequence to generate a first data packet.
[0010] As a preferred solution of the ultra-thin induction cooker collaborative control system based on dual-core MCU described in the present invention, the working process of the PWM control module is as follows: determine the control mode according to the control mode identification bit of the control instruction code, and the control mode includes a basic control mode and a scene control mode; collect the impedance value of the current cookware, and match the impedance value with the cookware type mapping table to determine the cookware type; according to the control mode and the cookware type, retrieve the corresponding PWM parameter template from the control strategy library; according to the power gear data, perform interpolation calculation within the frequency range and duty cycle range specified by the PWM parameter template to obtain the frequency value and duty cycle value of the initial PWM wave; collect the coil temperature and coil current, and compensate and adjust the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and the coil current to generate an actual PWM control signal; output the actual PWM control signal to the heating coil through the IGBT drive circuit.
[0011] As a preferred solution of the ultra-thin induction cooker collaborative control system based on dual-core MCU described in the present invention, wherein: compensating and adjusting the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and the coil current includes: establishing a temperature compensation coefficient matrix and a current compensation coefficient matrix, dividing the temperature range and the current range into multiple sub-ranges, each sub-range corresponding to a set of frequency compensation coefficients and duty cycle compensation coefficients; collecting the coil temperature and coil current in each PWM cycle, calculating the effective value of the temperature using a weighted average algorithm, and obtaining the effective value of the current using the least squares fitting method; determining a first set of compensation coefficients in the temperature compensation coefficient matrix according to the effective value of the temperature, and determining a second set of compensation coefficients in the current compensation coefficient matrix according to the effective value of the current; weighted fusion of the first set of compensation coefficients and the second set of compensation coefficients to obtain a comprehensive compensation coefficient; performing compensation calculation on the frequency value and duty cycle value of the initial PWM wave according to the comprehensive compensation coefficient; generating an actual PWM control signal according to the compensated frequency value and duty cycle value.
[0012] As a preferred solution of the ultra-thin induction cooker collaborative control system based on dual-core MCU described in the present invention, the working process of the abnormality detection module is as follows: the working process of the abnormality detection module is as follows: establish a threshold interval table of electromagnetic field working state parameters, the threshold interval table includes a safe operation interval, a prompt level warning interval, a warning level warning interval and an emergency level warning interval, and the threshold interval table is dynamically adjusted with the change of the control mode and the power gear; after receiving the second data packet, the abnormality detection module verifies the integrity of the data packet and extracts the electromagnetic field working state parameters in the status code; constructs a sliding window for the electromagnetic field working state parameters according to the sampling period, and calculates the change characteristics of each parameter in the sliding window; constructs a multi-parameter state prediction model based on the parameter change characteristics, and calculates the predicted values of the next sampling period of the electromagnetic field intensity, coil temperature and coil current respectively; compares the parameter prediction value with the threshold interval table, and generates an independent abnormal level identifier for each parameter; judges the comprehensive abnormal level in combination with the parameter weight, and sends the comprehensive abnormal level to the alarm prompt module.
[0013] In the second aspect, an embodiment of the present invention provides a collaborative control method for an ultra-thin induction cooker based on a dual-core MCU, which includes establishing a two-way data transmission channel between the display MCU and the main control MCU through a priority communication scheduling mechanism; collecting control instructions input by the user, encoding the control instructions into a first data packet, and the display MCU transmitting the first data packet to the main control MCU through a two-way data transmission channel; the main control MCU receives and parses the instruction code in the first data packet, matches the corresponding control strategy from the control strategy library according to the instruction code, and generates a pulse signal for controlling the heating coil; collecting electromagnetic field working state parameters, encoding the electromagnetic field working state parameters into a second data packet, and the main control MCU transmits the second data packet to the display MCU through a two-way data transmission channel; the display MCU receives and parses the status code in the second data packet returned by the main control MCU, obtains the electromagnetic field working state parameters, performs abnormal state judgment, and sends an alarm signal to the user when an abnormal state is identified.
[0014] The beneficial effects of the present invention are as follows: the present invention adopts a dual-core architecture of a display MCU and a main control MCU, realizes a modular design of the system through functional decoupling, and significantly improves the scalability and flexibility of the control system; constructs a bidirectional data transmission channel based on SPI full-duplex communication, and ensures the reliability and security of data transmission through a strict handshake mechanism, CRC check, and multiple verifications; innovatively designs a control mode identification bit, supports basic and scene control modes, and dynamically adjusts the PWM parameter template according to the type of cookware and the power gear, so as to realize accurate and personalized heating control of the cooking scene; establishes a multi-level threshold monitoring mechanism for electromagnetic field working state parameters, which can capture anomalies in real time and provide sound and light alarms, intelligent power adjustment, and even automatic protection according to different levels, so as to ensure safety of use to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 This is the system architecture diagram of the ultra-thin induction cooker collaborative control system based on dual-core MCU.
[0017] Figure 2 This is the workflow diagram of the anomaly detection module of the ultra-thin induction cooker collaborative control system based on dual-core MCU.
[0018] Figure 3 This is the workflow diagram of the PWM control module of the ultra-thin induction cooker collaborative control system based on dual-core MCU. DETAILED DESCRIPTION
[0019] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0020] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0021] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0022] Example 1, reference Figure 1~Figure 3 , which is the first embodiment of the present invention, and provides an ultra-thin induction cooker collaborative control system based on a dual-core MCU. The system architecture diagram is shown in FIG. Figure 1 As shown, it includes display MCU, main control MCU and communication link module: The communication link module includes an SPI communication interface and a data channel management module. The data channel management module is used to establish a bidirectional data transmission channel between the display MCU and the main control MCU. The data transmission channel includes: a first data channel from the display MCU to the main control MCU (used to transmit a first data packet containing control instructions, 32 bits), and a second data channel from the main control MCU to the display MCU (used to transmit a second data packet containing electromagnetic field working status parameters, 48 bits). The establishment process is as follows: First, configure the display MCU as the master device and the master MCU as the slave device, and connect the display MCU and the master MCU through the SPI bus. Specifically, the display MCU outputs SS, SCLK, and MOSI signals through the GPIO port, and the master MCU outputs MISO signals through the GPIO port to form a full-duplex communication link. In the initialization phase, configure the SPI working mode to mode 0 (CPOL=0, CPHA=0), the initial baud rate is set to 2MHz, the data bit width is 8 bits, and the high bit is transmitted first. The system startup initialization time is controlled within 500ms.
[0023] Secondly, a sending buffer and a receiving buffer are established in the display MCU and the main control MCU, and the sending buffer and the receiving buffer adopt a circular queue structure. In the specific implementation, in order to ensure the stability of data transmission, the size of each buffer is set to 4KB, the read-write pointer interval is not less than 512 bytes, and the usage alarm threshold is set to 75%. The display MCU is allocated a sending buffer for storing the first data packet and a receiving buffer for storing the second data packet, and the main control MCU is allocated a sending buffer for storing the second data packet and a receiving buffer for storing the first data packet. The access of data is managed through the read-write pointer, and the buffer usage alarm threshold is set to monitor the buffer status.
[0024] Then, the display MCU sends a handshake request data packet to the main control MCU, and the main control MCU returns a handshake response data packet. The display MCU determines whether the handshake is successful based on the handshake response data packet. Specifically, the display MCU starts the timer after sending the handshake request data packet and waits for the handshake response data packet from the main control MCU. The display MCU sends a request data packet containing the 0xAA identifier, and the main control MCU returns a response data packet containing the 0x55 identifier. When receiving the handshake response data packet, the display MCU first verifies whether the frame header identifier of the data packet is correct, then checks whether the control field is the predetermined handshake response code, and finally performs a CRC check. Only when all three verifications pass and are completed within the specified timeout time (such as 100ms), the handshake is determined to be successful. If any verification fails or times out, the display MCU will resend the handshake request and retry up to 3 times. If all three handshakes fail, the upper-layer application is notified that the communication link establishment failed, and the communication link reconstruction timeout is set to 2s.
[0025] Finally, when the handshake is successful, the interrupt service routine is started in the display MCU and the main control MCU. The interrupt service routine is responsible for monitoring and processing the data in the send buffer and the receive buffer. Specifically, the send completion interrupt and receive completion interrupt related to SPI communication are configured in the two MCUs, and the receive interrupt priority is set higher than the send interrupt.
[0026] Among them, the main operations of the sending interrupt service program include: checking whether there is data to be sent in the sending buffer; if there is data, reading a data packet from the sending buffer; sending data through the SPI interface; updating the read pointer of the sending buffer; if the sending is completed, clearing the sending flag. The main operations of the receiving interrupt service program include: reading the received data from the SPI receiving buffer register; performing data frame format check and CRC check; if the check passes, storing the data in the receiving buffer; updating the write pointer of the receiving buffer; checking the usage rate of the receiving buffer, and notifying the upper-layer application if it exceeds the alarm threshold; clearing the receiving flag.
[0027] Preferably, the communication link module establishes a two-way data transmission channel between the display MCU and the main control MCU, adopts an SPI communication architecture with clear master-slave division of labor, differentiated data packet design, buffer management of a 4KB ring queue structure, a triple-verified handshake mechanism, and an interrupt processing mechanism with clear priorities, which better solves the reliability, real-time and stability issues of the communication link, improves the system response efficiency while ensuring the quality of data transmission.
[0028] The display MCU includes a touch panel, an instruction encoding module, an abnormality detection module, and an alarm prompt module. First, the touch panel collects the control instructions input by the user. The touch panel is a resistive or capacitive touch screen with anti-interference and multi-touch features, which can accurately capture the user's operation coordinates and touch signals.
[0029] Secondly, the instruction encoding module encodes the control instruction into the first data packet. The instruction encoding module workflow diagram is as follows: Figure 2As shown, the details are as follows: the instruction cache area and the instruction processing area are divided in the sending buffer, wherein the instruction cache area is used to store the control instructions to be sent, and the instruction processing area is used to record the encoding and sending status of the instructions; the control instructions are written into the instruction cache area; the instruction mapping table is implemented based on the hash table algorithm, and is stored in a Flash memory with a wear leveling algorithm, and the instruction mapping table stores the mapping relationship of control instructions such as heating gear instructions, timing control instructions, preset mode instructions, and shutdown instructions; the instruction mapping table adopts a key-value pair structure, wherein the key is a string identifier of the control instruction, and the value is a structure containing a control mode, a function type, and a parameter range; the control instructions in the instruction cache area are converted into a 16-bit instruction code according to a unified encoding format, including a 2-bit control mode identification bit ( Distinguish between basic control mode and scene control mode), 6-bit function code (indicating specific operation type), 6-bit parameter code (storing specific setting value of corresponding function) and 2 reserved bits; perform verification operation on 16-bit instruction code through cyclic redundancy check algorithm to generate 8-bit check code, and cyclic redundancy check algorithm adopts CRC-8 polynomial calculation; call frame format template to generate 8-bit frame header identifier, wherein the upper 4 bits of frame header identifier are fixed to 1010 for frame synchronization, and the lower 4 bits are 0-15 cycle count value for detecting communication anomalies, such as packet loss or duplicate packets; assemble 8-bit frame header identifier, 16-bit instruction code and 8-bit check code in sequence to generate 32-bit first data packet; write the first data packet into the to-be-sent area of the send buffer, update the write pointer and mark the encoding completion and to-be-sent status in the instruction processing area.
[0030] Specifically, the control instruction conversion process includes: first, searching the corresponding structure in the instruction mapping table according to the string identifier of the control instruction; then setting a 2-bit control mode identifier according to the control mode information in the structure; then generating a 6-bit function code according to the function type information in the structure, where 0-31 is used for basic function encoding in the basic control mode, and 32-63 is used for extended function encoding; finally, generating a 6-bit parameter code according to the specific parameter value in the control instruction and the parameter range information in the structure, and the parameter code uses a linear mapping method to map the actual parameter value to the encoding space of 0-63.
[0031] In this embodiment, the control mode identification bit adopts a 2-bit binary code: 00 represents the basic control mode, which is used for conventional heating control and supports 1-9 gears of firepower adjustment; 01 represents the scene control mode, which is used for professional control of specific cooking scenes, including soup making mode, stir-frying mode and warm stewing mode; 10 and 11 are reserved codes for future function expansion. In the basic control mode, the specific allocation of function codes is: 000000-heating switch control, 000001-firepower gear adjustment, 000010-timing control, 000011-child lock control, 000100 to 011111 reserved for basic function expansion; in the scene control mode, the specific allocation of function codes is: 000000-scene mode selection, 000001-scene parameter adjustment, 000010 to 111111 reserved for scene function expansion. The parameter code has different mapping rules under different functions: under the fire level adjustment function, 000000 represents level 1, 000001 represents level 2, and so on to 001000 represents level 9, and the rest of the codes are reserved; under the scene mode selection function, 000000 represents soup mode, 000001 represents stir-fry mode, 000010 represents warm stew mode, and the rest of the codes are reserved; under the timing control function, the parameter code supports linear mapping of 0-63 minutes.
[0032] Then, the display MCU transmits the first data packet to the receiving buffer of the main control MCU through the bidirectional data transmission channel. Figure 2As shown, the details are as follows: the abnormal detection module reads and parses the status code in the second data packet sent by the main control MCU from the receiving buffer of the display MCU, obtains the electromagnetic field working state parameters, and makes an abnormal state judgment. The specific process is as follows: a threshold interval table of the electromagnetic field working state parameters is established, and the electromagnetic field strength, coil temperature and coil current are all set with a safe operation interval, a prompt level warning interval, a warning level warning interval and an emergency level warning interval. The threshold interval table is dynamically adjusted with the change of the control mode and the power gear. The adjustment process adopts the following method: first, the benchmark threshold is calculated based on the power gear value in the current control mode. In the basic control mode, the benchmark threshold is determined according to the linear proportion of the firepower gear 1-9. In the scene In the control mode, the benchmark threshold is determined according to the characteristic power curves of different scenarios; then, the benchmark threshold is modified according to the characteristic requirements of different control modes. For example, in the soup-making mode, the safe operating range of the coil temperature is expanded to adapt to long-term low-temperature heating, and in the stir-frying mode, the warning range of the electromagnetic field strength is narrowed to achieve precise power control. In the warm stewing mode, the warning range of the coil current is expanded to allow a larger fluctuation range; finally, according to the real-time collected electromagnetic field working state parameters, the threshold range is fine-tuned using an adaptive algorithm based on parameter change trend prediction and PI control. By calculating the parameter change rate and the steady-state deviation from the set value in the last five sampling cycles, the threshold range is dynamically optimized while ensuring safety.
[0033] Furthermore, after receiving the second data packet, the abnormality detection module uses a dual mechanism of CRC check and data packet timing comparison to verify the integrity of the data packet, and extracts the electromagnetic field working state parameters (electromagnetic field strength, coil temperature and coil current) in the status code; constructs a sliding window for the electromagnetic field working state parameters according to the sampling period, and calculates the change characteristics of each parameter in the sliding window, including calculating the first-order difference sequence of the parameters to obtain the change rate, and the second-order difference sequence to obtain the change acceleration; constructs a multi-parameter state prediction model based on the parameter change characteristics, and calculates the next sampling period prediction values of the electromagnetic field strength, coil temperature and coil current respectively; compares the parameter prediction value with the threshold interval table, and generates an independent abnormal level identification for each parameter, including safe operation, prompt level warning, warning level warning and emergency level warning; maps the abnormal level identification to a numerical value, and maps safe operation, prompt level warning, warning level warning and emergency level warning to 1, 2, 3, and 4 respectively, and pre-sets weight coefficients for the three parameters of electromagnetic field strength, coil temperature and coil current; calculates a comprehensive score based on the parameter weight to obtain a comprehensive abnormal level, and sends the comprehensive abnormal level to the alarm prompt module, and the comprehensive abnormal level score range is pre-set.
[0034] Among them, the construction process of the multi-parameter state prediction model is as follows: standardize the parameter sequence in the sliding window, and extract the parameter change rate and acceleration characteristics; adopt the method combining ARIMA and exponential smoothing method to establish independent prediction models for the three parameters of electromagnetic field intensity, coil temperature and coil current. The model parameter selection is based on the stationarity test and autocorrelation analysis of the parameter sequence. The ARIMA model parameters automatically select the optimal order through the AIC and BIC criteria, and the unit root test is combined to ensure the effectiveness of the model.
[0035] Finally, the alarm prompt module selects the corresponding alarm mode according to the comprehensive abnormality level, sends an audible and visual alarm signal to the user, displays the abnormal prompt information on the display screen, and automatically terminates the alarm after waiting for user confirmation or the abnormal state is resolved.
[0036] The main control MCU includes a control strategy library, an instruction parsing module, a PWM control module, a parameter acquisition module and a status encoding module.
[0037] First, the instruction parsing module reads and parses the instruction code in the first data packet from the receiving buffer of the main control MCU. Then, the PWM control module workflow diagram is as follows: Figure 3 As shown, the details are as follows: the PWM control module matches the corresponding control mode from the control strategy library according to the instruction code, and generates a pulse signal for controlling the heating coil, which is as follows: the control mode is determined according to the control mode identification bit of the control instruction code, including the basic control mode and the scene control mode; the impedance value of the current cookware is collected through the impedance detection circuit, and the impedance value is matched with the cookware type mapping table to determine the cookware type, wherein the cookware type mapping table stores the impedance characteristic intervals of different types of cookware, and the cookware type is determined by comparing the interval in which the impedance value falls.
[0038] Furthermore, according to the control mode and the type of cookware, the corresponding PWM parameter template is retrieved from the control strategy library. The PWM parameter template contains the standard frequency range and duty cycle range of this type of cookware under the current control mode. The calling process is as follows: construct a two-dimensional index table with the control mode and the cookware type as double index key values; according to the current control mode identification bit and the identified cookware type, search the corresponding template ID in the index table; according to the template ID, read the corresponding PWM parameter template data structure from the control strategy library, which data structure contains upper and lower frequency limits, upper and lower duty cycle limits, power response curve parameters, etc.
[0039] Furthermore, according to the power gear data carried by the parameter code in the instruction code, interpolation calculation is performed within the frequency range and duty cycle range specified by the PWM parameter template to obtain the frequency value and duty cycle value of the initial PWM wave. The specific process is as follows: read the upper and lower limit parameters of the frequency and duty cycle from the PWM parameter template; normalize the power gear value extracted from the parameter code and map it to the 0-1 interval; construct a segmented frequency adjustment function, using a low slope in the low power interval to achieve a slow change in frequency, and a high slope in the high power interval to achieve a rapid adjustment of the frequency. This segmented design ensures the heating effect at different power gears; construct a duty cycle adjustment function based on a quadratic function to achieve nonlinear changes in the duty cycle with the power gear, ensuring a smooth transition of the heating power; substitute the normalized power value into the frequency adjustment function and the duty cycle adjustment function to calculate the actual frequency value and duty cycle value; output the calculated frequency value and duty cycle value as the parameters of the initial PWM wave.
[0040] Furthermore, the coil temperature and coil current are collected, and the frequency value and duty cycle value of the initial PWM wave are compensated and adjusted according to the coil temperature and coil current to generate an actual PWM control signal; the actual PWM control signal is output to the heating coil through the IGBT drive circuit, the on-off timing of the heating coil is adjusted, and the electromagnetic field working state parameters are changed, wherein the electromagnetic field working state parameters include electromagnetic field strength, coil temperature, and coil current.
[0041] It should be noted that the control strategy library stores PWM parameter templates corresponding to different control modes and cookware type combinations. Each PWM parameter template contains two sets of parameters: frequency range and duty cycle range. The frequency range defines the minimum and maximum frequencies of the PWM signal under this working condition; the duty cycle range defines the minimum and maximum duty cycles.
[0042] Among them, compensating and adjusting the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and the coil current includes: establishing a temperature compensation coefficient matrix and a current compensation coefficient matrix, dividing the temperature range and the current range into multiple sub-ranges, each sub-range corresponds to a set of frequency compensation coefficients and duty cycle compensation coefficients, and the compensation coefficients are obtained through experimental calibration; collecting the coil temperature and coil current in each PWM cycle, calculating the effective value of the temperature by using a weighted average algorithm, and obtaining the effective value of the current by using the least squares fitting method; determining a first set of compensation coefficients in the temperature compensation coefficient matrix according to the effective value of the temperature, and determining a second set of compensation coefficients in the current compensation coefficient matrix according to the effective value of the current; setting a compensation dead zone, and keeping the PWM parameters unchanged when the compensation value is within the dead zone; weighted fusion of the first set of compensation coefficients and the second set of compensation coefficients to obtain a comprehensive compensation coefficient; performing compensation calculation on the frequency value and duty cycle value of the initial PWM wave according to the comprehensive compensation coefficient; generating an actual PWM control signal according to the compensated frequency value and duty cycle value.
[0043] Next, the parameter acquisition module acquires the electromagnetic field working state parameters in real time, and updates the sampling values of the coil temperature and coil current in each PWM cycle for the PWM control signal compensation adjustment of the next cycle; then, the state encoding module encodes the electromagnetic field working state parameters into a second data packet, and the specific process is as follows: the state buffer area and the state processing area are divided in the sending buffer, wherein the state buffer area is used to store the working state parameters to be sent, and the state processing area is used to record the encoding and sending status; the collected electromagnetic field strength, coil temperature and coil current are written into the state buffer area; based on the first-in-first-out (FIFO) principle, the parameters in the state buffer area are converted into a 32-bit state code, and only the changed parameter values are updated each time, wherein the upper 12 bits are used to store the electromagnetic field strength value, and the middle 10 bits are used to store the electromagnetic field strength value. The coil temperature value is stored, and the lower 10 bits are used to store the coil current value; the 32-bit status code is checked by a cyclic redundancy check algorithm to generate an 8-bit check code, which is calculated using the same CRC-8 polynomial as the first data packet; the frame format template is called to generate an 8-bit frame header identifier, in which the upper 4 bits of the frame header identifier are fixed to 1010 for frame synchronization, and the lower 4 bits are 0-15 cycle count values for detecting communication anomalies; the 8-bit frame header identifier, the 32-bit status code and the 8-bit check code are assembled in sequence to generate a second data packet; the second data packet is written into the to-be-sent area of the send buffer, the write pointer is updated and the encoding completion and to-be-sent status are marked in the status processing area; finally, the main control MCU transmits the second data packet to the receiving buffer of the display MCU through the bidirectional data transmission channel to complete the bidirectional information interaction.
[0044] Furthermore, the present embodiment also provides a collaborative control method for an ultra-thin induction cooker based on a dual-core MCU, comprising establishing a two-way data transmission channel between the display MCU and the main control MCU through a priority communication scheduling mechanism; collecting control instructions input by the user, encoding the control instructions into a first data packet, and the display MCU transmitting the first data packet to the main control MCU through the two-way data transmission channel; the main control MCU receives and parses the instruction code in the first data packet, matches the corresponding control strategy from the control strategy library according to the instruction code, and generates a pulse signal for controlling the heating coil; collecting electromagnetic field working state parameters, encoding the electromagnetic field working state parameters into a second data packet, and the main control MCU transmitting the second data packet to the display MCU through the two-way data transmission channel; the display MCU receives and parses the status code in the second data packet returned by the main control MCU, obtains the electromagnetic field working state parameters, performs abnormal state judgment, and sends an alarm signal to the user when an abnormal state is identified.
[0045] In summary, the present invention adopts a dual-core architecture of display MCU and main control MCU, realizes system modular design through functional decoupling, and significantly improves the scalability and flexibility of the control system; constructs a two-way data transmission channel based on SPI full-duplex communication, and ensures the reliability and security of data transmission through a strict handshake mechanism, CRC check and multiple verifications; innovatively designs the control mode identification bit, supports basic and scene control modes, and dynamically adjusts the PWM parameter template according to the type of cookware and power level to achieve accurate and personalized heating control of the cooking scene; establishes a multi-level threshold monitoring mechanism for the working state parameters of the electromagnetic field, which can capture anomalies in real time and provide sound and light alarms, intelligent power adjustment and even automatic protection according to different levels, to ensure safety of use to the greatest extent.
[0046] Example 2, reference Figure 1~Figure 3 This is the second embodiment of the present invention. This embodiment provides an ultra-thin induction cooker collaborative control system based on a dual-core MCU. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0047] Based on the ultra-thin induction cooker collaborative control system of the present invention, the research team designed a system performance verification experiment. The experimental platform consists of two high-precision dual-core MCU controllers, a standardized kitchen cooking environment, and a professional data acquisition system. The experiment selected three common pots: an aluminum alloy frying pan (diameter 28cm), a cast iron soup pot (diameter 24cm), and a stainless steel kettle (diameter 16cm), aiming to comprehensively evaluate the control performance of the system under different pots.
[0048] In the basic control mode, the heating characteristics of different pots were examined. Through precise measurement, the cast iron soup pot has the best temperature uniformity at 1-3 fire levels, a gentle heating curve, and a temperature rise rate of 1.8-2.2℃ / second. The aluminum alloy wok has a faster temperature response at 7-9 fire levels, with a rise rate of 3.5-4.2℃ / second, but the temperature fluctuation is slightly larger, within the range of ±2.5℃.
[0049] The scene control mode experiment focuses on three cooking scenarios: soup, stir-fry and stew. Taking the soup mode as an example, during the process of heating from room temperature 20℃ to 95℃, the temperature fluctuation is controlled within the range of ±2℃, and the total heating time is about 14-15 minutes. The stir-fry mode simulates fast high-temperature cooking. The system can raise the pot temperature from room temperature to 200℃ within 45-50 seconds, and can adjust the temperature to the target temperature range of ±8℃ within 3-4 seconds.
[0050] In order to verify the abnormal detection and protection performance of the system, an extreme working condition test was designed. In the coil temperature abnormality experiment, when the temperature reaches the warning level warning range (about 150°C), the system can automatically reduce the firepower by one level within 0.8 seconds; if the temperature continues to rise to the emergency warning range (about 170°C), the system will automatically shut down after a 15-second countdown, effectively preventing safety risks.
[0051] In order to intuitively present the technical features of the present invention, a technical comparison table is drawn, as shown in Table 1: Table 1 Comparison of ultra-thin induction cooker collaborative control system technologies The experimental results show that the ultra-thin induction cooker collaborative control system of the present invention has significantly improved heating accuracy, response speed, safety protection, etc. Through dual MCU collaborative control and multi-dimensional dynamic adjustment, the system not only optimizes the cooking experience, but also provides users with a smarter and safer cooking solution.
[0052] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. An ultra-thin induction cooker collaborative control system based on a dual-core MCU, characterized in that: Including display MCU, main control MCU and communication link module; The communication link module includes an SPI communication interface and a data channel management module, and the data channel management module is used to establish a bidirectional data transmission channel between the display MCU and the main control MCU; The display MCU includes a touch panel, an instruction encoding module, an abnormality detection module and an alarm prompt module. The touch panel collects control instructions input by the user, the instruction encoding module encodes the control instructions into a first data packet, and the display MCU transmits the first data packet to the main control MCU through the bidirectional data transmission channel; The abnormality detection module reads and analyzes the status code in the second data packet sent by the main control MCU, obtains the electromagnetic field working state parameters, and makes an abnormal state judgment; the alarm prompt module sends an alarm signal to the user when an abnormal state is identified; The main control MCU includes a control strategy library, an instruction parsing module, a PWM control module, a parameter acquisition module and a state encoding module. The instruction parsing module reads and parses the instruction code in the first data packet. The PWM control module determines the control mode according to the instruction code and generates a pulse signal for controlling the heating coil. The pulse signal changes the electromagnetic field working state parameters by adjusting the duty cycle and frequency. The parameter acquisition module acquires electromagnetic field working state parameters in real time, the state encoding module encodes the electromagnetic field working state parameters into a second data packet, and the main control MCU transmits the second data packet to the display MCU through the bidirectional data transmission channel to complete bidirectional information interaction.
2. The ultra-thin induction cooker collaborative control system based on dual-core MCU as claimed in claim 1, characterized in that: The electromagnetic field working state parameters include electromagnetic field strength, coil temperature, and coil current; The first data packet is composed of a frame header identifier, an instruction code and a check code, and the second data packet is composed of a frame header identifier, a status code and a check code.
3. The ultra-thin induction cooker collaborative control system based on dual-core MCU as claimed in claim 1, characterized in that: The workflow of the data channel management module is as follows: Configure the display MCU as a master device and the main control MCU as a slave device, and connect the display MCU and the main control MCU via an SPI bus; Establishing a sending buffer and a receiving buffer in the display MCU and the main control MCU, wherein the sending buffer and the receiving buffer adopt a ring queue structure; The display MCU sends a handshake request data packet to the master MCU, and the master MCU returns a handshake response data packet, and the display MCU determines whether the handshake is successful according to the handshake response data packet; When the handshake is successful, an interrupt service program is started in the display MCU and the main control MCU.
4. The ultra-thin induction cooker collaborative control system based on dual-core MCU as claimed in claim 1, characterized in that: The workflow of the instruction encoding module includes: Dividing a command cache area in the sending buffer and writing the control instruction into the command cache area; Using an instruction mapping table, the control instructions in the instruction cache are converted into instruction codes according to a unified encoding format; Performing a check operation on the instruction code through a cyclic redundancy check algorithm to generate a check code, and calling a frame format template to generate a frame header identifier; The frame header identifier, the instruction code and the check code are assembled in sequence to generate a first data packet.
5. The ultra-thin induction cooker collaborative control system based on dual-core MCU as claimed in claim 1, characterized in that: The working process of the PWM control module is as follows: Determine a control mode according to the control mode identification bit of the control instruction code, wherein the control mode includes a basic control mode and a scene control mode; Collecting the impedance value of the current cookware, and matching the impedance value with a cookware type mapping table to determine the cookware type; According to the control mode and the cookware type, a corresponding PWM parameter template is retrieved from a control strategy library; According to the power gear data, interpolation calculation is performed within the frequency range and duty cycle range specified by the PWM parameter template to obtain the frequency value and duty cycle value of the initial PWM wave; Collecting coil temperature and coil current, and compensating and adjusting the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and the coil current to generate an actual PWM control signal; The actual PWM control signal is output to the heating coil through the IGBT driving circuit.
6. The ultra-thin induction cooker collaborative control system based on dual-core MCU as claimed in claim 5, characterized in that: Compensating and adjusting the frequency value and duty cycle value of the initial PWM wave according to the coil temperature and the coil current includes: A temperature compensation coefficient matrix and a current compensation coefficient matrix are established, and the temperature interval and the current interval are divided into a plurality of sub-intervals, each of which corresponds to a set of frequency compensation coefficients and duty cycle compensation coefficients; The coil temperature and coil current are collected in each PWM cycle, the effective value of temperature is calculated using the weighted average algorithm, and the effective value of current is obtained using the least squares fitting method; Determine a first set of compensation coefficients in a temperature compensation coefficient matrix according to the temperature effective value, and determine a second set of compensation coefficients in a current compensation coefficient matrix according to the current effective value; Performing weighted fusion on the first group of compensation coefficients and the second group of compensation coefficients to obtain comprehensive compensation coefficients; Perform compensation calculation on the frequency value and duty cycle value of the initial PWM wave according to the comprehensive compensation coefficient; The actual PWM control signal is generated according to the compensated frequency value and duty cycle value.
7. The ultra-thin induction cooker collaborative control system based on dual-core MCU as claimed in claim 1, characterized in that: The workflow of the anomaly detection module is as follows: Establishing a threshold interval table of electromagnetic field working state parameters, the threshold interval table includes a safe operation interval, a prompt level warning interval, a warning level warning interval and an emergency level warning interval, and the threshold interval table is dynamically adjusted with changes in control mode and power gear; After receiving the second data packet, the anomaly detection module verifies the integrity of the data packet and extracts the electromagnetic field working state parameters in the status code; Constructing a sliding window for the electromagnetic field working state parameters according to a sampling period, and calculating the variation characteristics of each parameter within the sliding window; A multi-parameter state prediction model is constructed based on the parameter change characteristics to calculate the predicted values of the electromagnetic field intensity, coil temperature and coil current in the next sampling period respectively; Comparing the parameter prediction value with the threshold interval table to generate an independent abnormal level identification for each parameter; The comprehensive abnormality level is determined in combination with the parameter weights, and the comprehensive abnormality level is sent to the alarm prompt module.
8. A collaborative control method for an ultra-thin induction cooker based on a dual-core MCU, based on the collaborative control system for an ultra-thin induction cooker based on a dual-core MCU according to any one of claims 1 to 7, characterized in that: Also includes, Establish a bidirectional data transmission channel between the display MCU and the main control MCU through a priority communication scheduling mechanism; Collecting control instructions input by a user, encoding the control instructions into a first data packet, and the display MCU transmitting the first data packet to the main control MCU through a bidirectional data transmission channel; The main control MCU receives and parses the instruction code in the first data packet, matches the corresponding control strategy from the control strategy library according to the instruction code, and generates a pulse signal for controlling the heating coil; Collecting electromagnetic field working state parameters, encoding the electromagnetic field working state parameters into a second data packet, and the main control MCU transmitting the second data packet to the display MCU through the bidirectional data transmission channel; The display MCU receives and parses the status code in the second data packet returned by the main control MCU, obtains the electromagnetic field working status parameters, makes an abnormal status judgment, and sends an alarm signal to the user when an abnormal status is identified.
Citation Information
Patent Citations
SPI (Serial Peripheral Interface) controller and communication method for SPI controller
CN104809094A
SPI communication method realizing dual-MCU data transmission
CN108470013A
Data buffering method and device, computer and readable storage medium
CN111245742A
Gas cooker with intelligent cooking function and cooking method
CN112594740A
Electromagnetic oven
CN208170461U
Cited By
Induction cooker heating process control method and system
CN120740105A
A method and system for controlling the heating process of an electromagnetic oven
CN120740105B
Signal machine control method and device based on dual-core safe constant current driving
CN121419057A