Control method and device of electrical equipment, electrical equipment and storage medium

By using zero crossing detection circuit and delay control time in electromagnetic multi-head stove, adjusting the zero crossing moment of the power board, the problem of the relay inrushing current under high power supply is solved, and the safety of the equipment is improved.

CN118921780APending Publication Date: 2024-11-08FOSHAN SHUNDE MIDEA ELECTRICAL HEATING APPLIANCES MFG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310509469.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The relay of the electromagnetic multi-head stove is susceptible to shock current when the AC power is turned on or off when it is large, which may cause burning and affecting the safety of the equipment.

Method used

The zero crossing detection circuit is introduced in the electrical equipment. By detecting the zero crossing time of the AC power supply, the delay control time is used to adjust the deviation between the zero crossing time of the second power board and the zero crossing time of the first power board, so as to Turn on or off the switch module at zero crossing to avoid shock current.

Benefits of technology

It effectively reduces the impact current of the switch module when it is turned on or off, reduces the probability of being burned, and ensures the safety of electrical equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921780A_ABST
    Figure CN118921780A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control method for electrical equipment, and the method comprises the steps: controlling a first zero-cross detection circuit to carry out the zero-cross detection of a first AC power supply connected with a first power board in response to a target instruction; when zero-crossing interruption occurs in the first zero-crossing detection circuit, the first switch module is controlled to be opened or closed based on the target instruction; and controlling the second switch module to be turned on or turned off based on a first zero-crossing moment when zero-crossing interruption occurs in the first zero-crossing detection circuit, the delay control duration and the target instruction. According to the technical scheme provided by the embodiment of the invention, both the first switch module and the second switch module can be ensured to be switched on or switched off at the zero-crossing moment of the alternating current power supply connected with the first switch module and the second switch module, and the situation that the impact current borne by the first switch module and the second switch module at the switching-on or switching-off moment is too large is avoided; the probability that the first switch module and the second switch module are burnt is reduced, and the use safety of the electrical equipment is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electrical equipment, and more specifically, to a control method and device for electrical equipment, electrical equipment, and a storage medium. Background Art

[0002] An electromagnetic multi-burner stove is an electromagnetic heating device with multiple heating areas. Its power is usually large, so multiple (for example, two) power panels are provided.

[0003] At present, different power boards of the electromagnetic multi-head stove are connected to the AC power supply of different phases in the three-phase four-wire, and a relay is arranged between the power board and the AC power supply. When the electrical device receives a power-on command, the electrical device controls the relay to close so that the power board is connected to the AC power supply. When the electrical device receives a shutdown command, the electrical device controls the relay to disconnect so as to cut off the path between the power board and the AC power supply.

[0004] However, when the AC power supply is large, the relay will be subjected to a large impact current when it is turned on or off, and the relay may be burned, thus affecting the safety of the electrical equipment. Summary of the invention

[0005] Embodiments of the present application provide a control method and device for an electrical device, an electrical device, and a storage medium.

[0006] In a first aspect, an embodiment of the present application provides a control method for an electrical device, wherein the electrical device comprises a first power board and a second power board; the first power board and the second power board are respectively connected to an AC power supply of different phases in a three-phase four-wire; the first power board integrates a first zero-crossing detection circuit, a first switch module and a first electromagnetic heating circuit, and the first switch module is used to control the power-on state of the first electromagnetic heating circuit; the second power board integrates a second switch module and a second electromagnetic heating circuit, and the second switch module is used to control the power-on state of the second electromagnetic heating circuit; the method comprises: in response to a target instruction, controlling the first zero-crossing detection circuit to perform zero-crossing detection on the first AC power supply connected to the first power board; when a zero-crossing interrupt occurs in the first zero-crossing detection circuit, controlling the first switch module to open or close based on the target instruction; controlling the second switch module to open or close based on the first zero-crossing moment of the zero-crossing interrupt in the first zero-crossing detection circuit, a delay control duration and a target instruction; wherein the delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply.

[0007] In a second aspect, an embodiment of the present application provides a control device for an electrical device, the electrical device comprising a first power board and a second power board; the first power board and the second power board are respectively connected to an AC power supply of different phases in a three-phase four-wire; the first power board integrates a first zero-crossing detection circuit, a first switch module and a first electromagnetic heating circuit, the first switch module is used to control the power-on state of the first electromagnetic heating circuit; the second power board integrates a second switch module and a second electromagnetic heating circuit, the second switch module is used to control the power-on state of the second electromagnetic heating circuit; the device comprises: a zero-crossing detection module, which is used to control the first zero-crossing detection circuit to perform zero-crossing detection on the first AC power supply connected to the first power board in response to a target instruction; a first control module, which is used to control the first switch module to open or close based on the target instruction when a zero-crossing interrupt occurs in the first zero-crossing detection circuit; a second control module, which is used to control the second switch module to open or close based on the first zero-crossing moment of the zero-crossing interruption in the first zero-crossing detection circuit, a delay control duration and a target instruction; wherein the delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply.

[0008] In a third aspect, an embodiment of the present application provides an electrical device, comprising: a first power board and a second power board; the first power board and the second power board are respectively connected to AC power supplies of different phases in a three-phase four-wire system; the first power board integrates a first zero-crossing detection circuit, a first switch module and a first electromagnetic heating circuit; the second power board integrates a second switch module and a second electromagnetic heating circuit; one or more processors; a memory; one or more applications, wherein one or more applications are stored in the memory and configured to be executed by one or more processors, and the one or more applications are configured to execute the method of the first aspect.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code is called by a processor to execute the method of the first aspect.

[0010] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed, is used to implement the method of the first aspect.

[0011] An embodiment of the present application provides a control method for an electrical device. When the electrical device receives a target instruction, it will not directly control the first switch module and the second switch module to open or close, but will first perform zero-crossing detection through a first zero-crossing detection circuit, control the first switch module to open or close when a zero-crossing interruption occurs, and control the second switch module to open or close based on the first zero-crossing moment when the zero-crossing interruption occurs in the first zero-crossing detection circuit and a delay control duration. The delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply. In this way, the electrical device can ensure that the first switch module and the second switch module can both be opened or closed at the zero-crossing moment of the AC power supply to which they are connected, avoid the situation where the first switch module and the second switch module are subjected to excessive impact current at the moment of opening or closing, reduce the probability of the first switch module and the second switch module being burned, and ensure the safe use of the electrical device. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0013] Figure 1 It is a schematic diagram of an electrical device provided by an embodiment of the present application.

[0014] Figure 2 It is a circuit structure diagram of an electrical device provided in one embodiment of the present application.

[0015] Figure 3 It is a flow chart of a control method of an electrical device provided by an embodiment of the present application.

[0016] Figure 4 It is a flow chart of the control logic of the display control panel provided by one embodiment of the present application.

[0017] Figure 5 It is a flow chart of a control method of an electrical device provided by an embodiment of the present application.

[0018] Figure 6 This is a flow chart of the control logic of the first power board provided by one embodiment of the present application.

[0019] Figure 7 It is a schematic diagram of a process for setting the delay control duration provided by an embodiment of the present application.

[0020] Figure 8 This is a flow chart of the control logic of the second power board provided by one embodiment of the present application.

[0021] Fig. 9 It is a block diagram of a control device for an electrical device provided in one embodiment of the present application.

[0022] Fig.10 It is a structural block diagram of an electrical device provided in an embodiment of the present application.

[0023] Fig.11 It is a structural block diagram of the computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0025] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0026] Please refer to Figure 1 , which shows a schematic diagram of an electrical device 100 shown in an embodiment of the present application. The electrical device 100 can be an induction cooker or an induction cooker. In the embodiment of the present application, the electrical device 100 is an electromagnetic multi-head cooker, that is, an electromagnetic cooker with multiple heating areas. The power of the electromagnetic multi-head cooker is usually high, so it is usually equipped with multiple (for example, two) power motherboards, and the power supplies of different power motherboards are independent of each other.

[0027] Combine the following Figure 2 The internal structure of the electrical device 100 is introduced. The electrical device 100 includes a first power board 10, a second power board 20, a display control board 30 and a housing. The number of the first power board 10 can be one, and the number of the second power board 20 can be one or more.

[0028] In the embodiment of the present application, the first power board 10 and the second power board 20 are respectively connected to the AC power supply of different phases in the three-phase four-wire. For example, the electrical device 100 includes 1 first power board 10 and 1 second power board 20; the first power board 10 can be connected to the A-phase AC power and the N line; the second power board 20 can be connected to the B-phase AC power and the N line, or the second power board 20 can be connected to the C-phase AC power and the N line. For another example, the electrical device 100 includes 1 first power board 10 and 2 second power boards 20; the first power board 10 can be connected to the A-phase AC power and the N line; the two second power boards 20 can be connected to the B-phase AC power and the N line, or the second power boards 20 can be connected to the C-phase AC power and the N line, or one second power board 20 is connected to the B-phase AC power and the N line, and the other second power board 20 is connected to the C-phase AC power and the N line. In the embodiment of the present application, only an example is taken in which the electrical equipment includes a first power board 10 and a second power board 20, the first power board 10 is connected to the A-phase AC power and the N line, and the second power board 20 is connected to the B-phase AC power and the N line.

[0029] The first power board 10 integrates a first resonant module 110, a first bridge stack 120, a first filter circuit 130, a first switch module 140, a first drive module 150, a first micro control unit 160, a first power supply module 170, a first switch control circuit 180 and a first zero-crossing detection circuit 190.

[0030] The first resonant module 110, the first bridge 120, the first filter circuit 130 and the first switch module 140 are connected in series in sequence. After the series connection, the end close to the first switch module 140 is connected to the A-phase AC power. After the series connection, the end close to the first resonant module 110 is connected to the output end of the first driving module 150; the common end between the first resonant module 110 and the first bridge 120 is grounded. The first filter circuit 130 is also connected to the N line. The input end of the first driving module 150 is connected to the first micro control unit 160; the third end of the first driving module 150 is grounded. The first micro control unit 160 is grounded through the ground pin. The first end of the first power module 170 is connected to the power pin of the first micro control unit 160, the second end of the first power module 170 is connected to the first switch module 140, the third end of the first power module 170 is grounded, and the fourth end of the first power module 170 is connected to the A-phase AC power and the N-line AC power respectively. It should be noted that the branch of the first switch module 140 connected to the A-phase AC partially overlaps with the branch of the first power module 170 connected to the A-phase AC. In addition, a first diode D1 is provided on the first branch of the first power module 170 connected to the A-phase AC, and a second diode D2 is provided on the second branch of the first power module 170 connected to the N-line AC. One end of the first switch control circuit 180 is connected to the control end of the first switch module 140, and the other end is grounded. The first zero-crossing detection circuit 140 is connected to the fourth end of the first power module 170.

[0031] The first resonant module 110 includes a coil disk and a switch tube. The coil disk can generate an alternating magnetic field. Eddy current will appear inside the conductor in the alternating magnetic field. The Joule heating effect of the eddy current causes the conductor to heat up, thereby achieving heating. The first bridge stack 120, that is, a bridge rectifier stack, is used to convert alternating current into direct current. It can be a full-bridge stack or a half-bridge stack. The first filter circuit 130 is used to remove pulsation, smooth output, reduce noise, etc. The first switch module 140 is used to control the power supply of the first resonant module 110, the first bridge stack 120, and the first filter 130; when the first switch module 140 is closed, the first resonant module 110, the first bridge stack 120, and the first filter 130 are powered on; when the first switch module 140 is disconnected, the first resonant module 110, the first bridge stack 120, and the first filter 130 are powered off. The first switch module 140 can be a relay. The first drive module 150 is used to drive the switch tube in the first resonant module 110 so that the first resonant module 110 starts to heat. The first microcontroller unit 160 is used to control the first power board 10, including but not limited to: communicating with the display control board 30, outputting switch tube drive signals, etc. The first power supply module 170 is used to supply power to the first switch module 140 and the first microcontroller unit 160, respectively, wherein the first power supply module 170 provides an 18V power supply to the first switch module 140, and the first power supply module 170 provides a 5V power supply to the first microcontroller unit. The first switch control circuit 180 is used to control the first switch module 140 to open or close. The first zero-crossing detection circuit 190 is used to perform zero-crossing detection on the first AC power supply (A-phase AC power supply) connected to the first power board 10.

[0032] The second power board 20 integrates a second resonance module 210, a second bridge stack 220, a second filter circuit 230, a second switch module 240, a second drive module 250, a second micro control unit 260, a second power supply module 270, a second switch control circuit 280, a second zero-crossing detection circuit 290, and a communication isolation module 215.

[0033] The second resonance module 210, the second bridge 220, the second filter circuit 230 and the second switch module 240 are connected in series in sequence. After the series connection, one end close to the second switch module 240 is connected to the B-phase AC power. After the series connection, one end close to the second resonance module 210 is connected to the output end of the second drive module 250; the common end between the second bridge 220 and the second filter circuit 230 is grounded. The second filter circuit 230 is also connected to the N line. The input end of the second drive module 250 is connected to the second micro control unit 260; the third end of the second drive module 250 is grounded. The second micro control unit 260 is grounded through the ground pin. The first end of the second power module 270 is connected to the power pin of the second micro control unit 260 and the communication isolation module 215, the second end of the second power module 270 is grounded, and the third end of the second power module 270 is connected to the B-phase AC power and the N line respectively. It should be noted that the second switch module 240 is connected to the B-phase AC power branch, which partially overlaps with the second power module 270 connected to the B-phase AC power branch. In addition, a third diode D3 is provided on the first branch of the second power module 270 connected to the B-phase AC, and a fourth diode D4 is provided on the second branch of the second power module 270 connected to the N line. One end of the second switch control circuit 280 is connected to the control end of the second switch module 240, and the other end is grounded. One end of the second zero-crossing detection circuit 290 is connected to the second power module 270, and the other end is connected to the second micro control unit 260. The first end of the communication isolation module 215 is connected to the data receiving pin of the second micro control unit 260 through the first serial communication line, and is connected to the data sending pin of the second micro control unit 260 through the second serial communication line. Optionally, the first serial communication line is TXD2, and the second serial communication line is RXD2. The second end of the communication isolation module 215 is grounded.

[0034] The second resonance module 210 includes a coil disk and a switch tube. The coil disk can generate an alternating magnetic field. Eddy current will appear inside the conductor in the alternating magnetic field. The Joule heating effect of the eddy current causes the conductor to heat up, thereby achieving heating. The second bridge stack 220, that is, the bridge rectifier stack, is used to convert AC power into DC power. It can be a full-bridge stack or a half-bridge stack. The second filter 230 is used to remove pulsation, smooth output, reduce noise, etc. The second switch module 240 is used to control the power supply of the second resonance module 210, the second bridge stack 220, and the second filter 230; when the second switch module 240 is closed, the second resonance module 210, the second bridge stack 220, and the second filter 230 are powered on; when the second switch module 240 is disconnected, the second resonance module 210, the second bridge stack 220, and the second filter 230 are powered off. The second switch module 240 can be a relay. The second drive module 250 is used to drive the switch tube in the second resonance module 210 so that the second resonance module 210 starts to heat. The second micro control unit 260 is used to control the second power board 20, including but not limited to: communicating with the display control board 30, outputting switch tube drive signals, etc. The second power supply module 270 is used to supply power to the second zero-crossing detection circuit 290, the second micro control unit 260, and the communication isolation module 215, respectively, and the power supply voltage is 5V. The second switch control circuit 280 is used to control the second switch module 240 to open or close. The second zero-crossing detection circuit 290 is used to perform zero-crossing detection on the second AC power supply (B-phase AC power) connected to the second power board 20. The communication isolation module 215 is used to prevent communication interference or conflict between different systems.

[0035] The display control board 30 includes a first communication interface 310 and a second communication interface 320. The display control board 30 communicates with the first power board 10 through the first communication interface 310. Specifically, the first communication interface 310 is connected to the data receiving pin of the micro control unit in the first power board 20 through the third serial communication line, and the first communication interface 210 is connected to the data sending pin of the micro control unit in the first power board 10 through the fourth serial communication line. Optionally, the first communication interface 310 is UART1, the third serial communication line is TXD1, and the fourth serial communication line is RXD1. The display control board 30 communicates with the second power board 20 through the second communication interface 320. Specifically, the second communication interface 320 is connected to the data receiving pin of the micro control unit in the second power board 20 through the fifth serial communication line, and the second communication interface 320 is connected to the data sending pin of the micro control unit in the second power board 20 through the sixth serial communication line. Optionally, the second communication interface 320 is UART2, the fifth serial communication line is TXD2, and the sixth serial communication line is RXD2.

[0036] The display control board 30 is also connected to the first power module 170 in the first power board 10, and the first power module 170 is used to provide 18V power and 5V power for the display control board. In addition, the display control board 30 is also connected to the first switch control circuit 180 and the first zero-crossing detection circuit 190 in the first power board 10 through a control line, and the control line can be RELAY_CTR1, so as to control the first switch control circuit 180 and the first zero-crossing detection circuit 190. In addition, the display control board 30 is also connected to the second power module 270 in the second power board 20, and the second power module 270 is used to provide 18V power for the display control board. In addition, the display control board 30 is also connected to the second switch control circuit 280 in the second power board 20 through a control line, and the control line can be RELAY_CTR2, so as to control the second switch control circuit 280.

[0037] In some embodiments, the display control panel 30 further includes at least one functional control, through which the electrical device 100 is controlled. The functional control may include a power button, a mode selection control, a temperature setting control, a time setting control, etc. After receiving a trigger signal for any functional control, the control panel generates a control signal and controls the electrical device 100 based on the control signal.

[0038] In some embodiments, the housing includes a first housing and a second housing, and the first housing and the second housing cover each other to form a housing space for the first power board 10, the second power board 20, and a portion of the display control board 30, that is, the housing plays a role in protecting and storing the parts in the first power board 10, the second power board 20, and a portion of the display control board 30. A fixing structure is provided in the first housing, and the fixing structure is used to fix the first power board 10, the second power board 20, and a portion of the display control board 30 (for example, a circuit board). Specifically, the fixing structure includes but is not limited to a fixing groove, a clamp (for example, an elastic buckle), and other structures.

[0039] The outer surface of the second shell includes a portion of the display control panel 30 and a heating panel. The heating panel is used to place the cookware. The heating coils in the first power board 10 and the second power board 20 are arranged on the side away from the heating panel to achieve heating of the cookware.

[0040] According to the technical solution provided in the embodiment of the present application, when the electrical device receives the target instruction, it will not directly control the first switch module and the second switch module to open or close, but will first perform zero-crossing detection through the first zero-crossing detection circuit, control the first switch module to open or close when a zero-crossing interrupt occurs, and control the second switch module to open or close based on the first zero-crossing moment and the delay control duration when the zero-crossing interrupt occurs in the first zero-crossing detection circuit. The delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply. In this way, the electrical device can ensure that the first switch module and the second switch module can both be opened or closed at the zero-crossing moment of the AC power supply to which they are connected, avoid the situation where the first switch module and the second switch module are subjected to excessive impact current at the moment of opening or closing, reduce the probability of the first switch module and the second switch module being burned, and ensure the safe use of the electrical device.

[0041] Please refer to Figure 3 , which shows a flow chart of a control method for an electrical device provided by an embodiment of the present application. The method is applied to Figure 1 or Figure 2 The method comprises the following process.

[0042] S301, in response to a target instruction, controlling a first zero-crossing detection circuit to detect a first zero-crossing moment of a first AC power source connected to a first power board.

[0043] The target instruction is triggered by the user, which may be a power-on instruction for the electrical device or a power-off instruction for the electrical device. In the embodiment of the present application, only the first AC power source is the A-phase power in the three-phase four-wire as an example for explanation.

[0044] In some embodiments, the display control panel of the electrical device includes a target control. After receiving a trigger signal for the target control, the value of the working state flag of the electrical device is obtained. When the value of the working state flag is the third value, the electrical device controls the value of the working state flag to be updated to the fourth value, and determines that the trigger signal for the target control is used to trigger the shutdown instruction; when the value of the working state flag is the fourth value, the electrical device controls the value of the working state flag to be updated to the third value, and determines that the trigger signal for the target control is used to trigger the power-on instruction. In some embodiments, the third value is 1 and the fourth value is 0. The target control can be a physical button or a virtual control (such as a touch control). In the embodiment of the present application, only the target control is a physical button as an example for explanation. When the target control is a physical control, the above trigger signal can be a press signal.

[0045] Zero-crossing detection refers to the detection made by the system when the waveform passes through the zero position when switching from the positive half cycle to the negative half cycle in the AC system. After the electrical equipment obtains the target instruction, the first power board is in the power-on state. At this time, the display control board controls the first zero-crossing detection circuit to perform zero-crossing detection through the control line of the first zero-crossing detection circuit.

[0046] In some embodiments, the first zero-crossing detection circuit includes a comparator, the reference voltage of the comparator is 0V, when the first AC power supply is equal to the reference voltage, the output of the comparator jumps, such as jumping from a high level to a low level, or jumping from a low level to a high level, and the moment when the output of the comparator jumps is also the zero-crossing moment of the first AC power supply. In other embodiments, the first zero-crossing detection circuit includes an optical coupler, when the first AC power supply is 0V, the optical coupler is cut off, when the first AC power supply is not 0V, the optical coupler is turned on, and the cut-off moment of the optical coupler is also the zero-crossing moment of the first zero-crossing detection circuit.

[0047] In some embodiments, after receiving the target instruction, the electrical device may also update the value of the relay control flag (including the first relay control flag and the second relay control flag), and when the target instruction is a power-on instruction, the value of the relay control flag is updated from the fifth value to the sixth value, thereby allowing the relay to be controlled; when the target instruction is a power-off instruction, the value of the relay control flag is updated from the sixth value to the fifth value, thereby prohibiting the relay from being controlled. Optionally, the fifth value is 0 and the sixth value is 1.

[0048] Combine the following Figure 4 The control logic of the display control board is introduced. The control logic of the display control board includes the following S401-S406.

[0049] S401, obtaining a pressing signal of a switch key of a display control panel.

[0050] S402, detecting whether the working status flag of the electrical device is 1.

[0051] If so, it is determined that the pressing signal is a shutdown command, and S403-S404 are executed; if not, it is determined that the pressing signal is a startup command, and S405-S406 are executed.

[0052] S403, setting the working status flag of the electrical device to 0.

[0053] S404, setting the relay 1 control register RELAY_CTR1_ON=0, and the relay 1 control register RELAY_CTR2_ON=0.

[0054] S405, setting the working status flag of the electrical device to 1.

[0055] S406, setting the relay 1 control register RELAY_CTR1_ON=1, and the relay 1 control register RELAY_CTR2_ON=1.

[0056] S302, when a zero-crossing interruption occurs in the first zero-crossing detection circuit, control the first switch module to open or close based on the target instruction.

[0057] The first switch module is connected between the first power board and the first AC power supply, and is used to control the power-on state of the first electromagnetic heating circuit. When the first switch module is closed, the first electromagnetic heating circuit is in a power-on state, and when the first switch module is disconnected, the first electromagnetic heating circuit is in a power-off state. In an embodiment of the present application, when a zero-crossing interruption occurs in the first zero-crossing detection circuit of the electrical device, the first switch module is controlled to open or close based on the target instruction, which can avoid the situation where the first switch module is subjected to excessive impact current at the moment of opening or closing, reduce the probability of the first switch module being burned, and ensure the safe use of the electrical device.

[0058] S303, based on the first zero-crossing moment when the zero-crossing interruption occurs in the first zero-crossing detection circuit, the delay control duration and the target instruction, control the second switch module to open or close.

[0059] The second switch module is connected between the second power board and the second AC power supply, and is used to control the power-on state of the second electromagnetic heating circuit. When the second switch module is closed, the first electromagnetic heating circuit is in the power-on state, and when the second switch module is disconnected, the first electromagnetic heating circuit is in the power-off state. In the embodiment of the present application, the zero-crossing moment of the second AC power supply lags behind the zero-crossing moment of the first AC power supply. In the embodiment of the present application, only the second AC power supply is B-phase electricity as an example for explanation.

[0060] The delay control duration is used to characterize the deviation between the zero-crossing time of the second AC power source connected to the second power board and the zero-crossing time of the first AC power source. The setting process of the delay control duration will be described below.

[0061] When the target instruction is a power-on instruction, the electrical device will control the second switch module to close based on the first zero-crossing moment and the delay control duration. At this time, the second resonant module, the second filter module and the second bridge stack in the second power board are powered on, and the second resonant module can start heating; when the target instruction is a shutdown instruction, the electrical device will control the second switch module to open based on the first zero-crossing moment and the delay control duration. At this time, the second resonant module, the second filter module and the second bridge stack in the second power board are powered off, and the second resonant module stops heating.

[0062] The zero-crossing moments of AC power supplies of different phases are different, wherein the zero-crossing moment of C-phase AC power is later than the zero-crossing moment of B-phase AC power, and the zero-crossing moment of B-phase AC power is later than the zero-crossing moment of A-phase AC power. In an embodiment of the present application, the electrical equipment pre-tests to obtain the deviation between the zero-crossing moments of the AC power supplies to which the first power board and the second power board are respectively connected, so that when the first zero-crossing detection circuit has a zero-crossing detection, the second zero-crossing moment of the second AC power supply connected to the second power board can be inferred based on the first zero-crossing moment of the zero-crossing interruption and the delay control duration obtained in advance, and the second switch module is controlled to be opened or closed at the inferred second zero-crossing moment, which can avoid the situation where the second switch module is subjected to excessive impact current at the moment of opening or closing, reduce the probability of the second switch module being burned, and ensure the safe use of the electrical equipment.

[0063] It should be noted that, when the target instruction is a power-on instruction, since the second power board is not powered on at this time, the second zero-crossing detection circuit included therein cannot perform zero-crossing detection, and therefore it is necessary to estimate the second zero-crossing moment of the second AC power supply connected to the second power board based on the delay control duration and the first zero-crossing moment. When the target instruction is a shutdown instruction, the second power board is powered on at this time, and the second zero-crossing moment can be determined by performing zero-crossing detection through the second zero-crossing detection circuit, or the second zero-crossing moment of the second AC power supply connected to the second power board can be estimated based on the delay control duration and the first zero-crossing moment, and the embodiment of the present application does not limit this.

[0064] To summarize, according to the technical solution provided by the embodiment of the present application, when the electrical device receives the target instruction, it will not directly control the first switch module and the second switch module to open or close, but will first perform zero-crossing detection through the first zero-crossing detection circuit, and control the first switch module to open or close when a zero-crossing interruption occurs, and control the second switch module to open or close based on the first zero-crossing moment and the delay control duration of the zero-crossing interruption of the first zero-crossing detection circuit. The delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply. In this way, the electrical device can ensure that the first switch module and the second switch module can both be opened or closed at the zero-crossing moment of the AC power supply to which they are connected, avoiding the situation where the first switch module and the second switch module are subjected to excessive impact current at the moment of opening or closing, reducing the probability of the first switch module and the second switch module being burned, and ensuring the safe use of the electrical equipment.

[0065] Figure 5 A flow chart of a control method for an electrical device provided in one embodiment of the present application. Figure 3 In the optional embodiment provided by the illustrated embodiment, step S303 is replaced by S503-S504. The method includes the following process.

[0066] S501, in response to a target instruction, controlling a first zero-crossing detection circuit to perform zero-crossing detection on a first AC power source connected to a first power board.

[0067] S502: When a zero-crossing interruption occurs in the first zero-crossing detection circuit, control the first switch module to open or close based on the target instruction.

[0068] When the first zero-crossing detection circuit detects the zero-crossing moment of the first alternating current, it will generate a zero-crossing interrupt signal. When the target instruction is a power-on instruction, the electrical device will control the first switch module to close based on the zero-crossing interrupt signal. At this time, the first resonant module, the first filter module and the first bridge stack in the first power board are powered on, and the first resonant module can start heating; when the target instruction is a shutdown instruction, the electrical device controls the first switch module to disconnect. At this time, the first resonant module, the first filter module and the first bridge stack in the first power board are powered off, and the first resonant module stops heating.

[0069] Combine the following Figure 6 The control logic of the first power board is introduced. The control logic of the first power board includes the following S601-S606.

[0070] S601, power on electrical equipment.

[0071] S602: Acquire a first pressing signal for a switch key of a display control panel.

[0072] S603, when a zero-crossing interruption occurs in the first zero-crossing detection circuit, control relay 1 to close.

[0073] S604: Acquire a second pressing signal for a switch key of the display control panel.

[0074] S605, when a zero-crossing interruption occurs in the first zero-crossing detection circuit, control relay 1 to disconnect.

[0075] S503, obtaining the delay control duration.

[0076] When the electrical device has completed the delay control duration setting process, the electrical device can directly read the delay control duration from the local device. Optionally, the electrical device reads the value of the delay control duration field as the delay control duration.

[0077] In some embodiments, the electrical device can determine whether the delay control duration is set after obtaining the target instruction. In some embodiments, before S603, the method further includes the following process: obtaining the value of the setting flag bit; when the value of the setting flag bit is the first value, executing S503; when the value of the setting flag bit is the second value, executing the setting process of the delay control duration.

[0078] The first value is used to indicate that the setting process of the delay control duration has been completed; the second value is used to indicate that the setting process of the delay control duration has not been completed, and the first value is different from the second value. In some embodiments, the first value is 1 and the second value is 0. The setting process of the delay control duration will be described in the following embodiments.

[0079] S504, at a second zero-crossing moment after the first zero-crossing moment, controlling the second switch module to open or close based on the target instruction.

[0080] The time interval between the second zero-crossing moment and the first zero-crossing moment is the delay control duration. In the embodiment of the present application, after the electrical device pre-sets the delay control duration, if the first zero-crossing moment is detected, the second zero-crossing moment of the second AC power supply is directly determined based on the first zero-crossing moment and the delay control duration. Exemplarily, the first zero-crossing moment is 15:26:51, the delay control duration is 2 seconds, and the second zero-crossing moment is 15:26:53.

[0081] In some embodiments, S504 is specifically implemented as follows: controlling the timer to be in a timing mode, and setting the interruption time of the timer to the delay control duration; in the case of a timing interruption of the timer, controlling the second switch module to open or close based on the target instruction. When a zero-crossing interruption occurs in the first zero-crossing detection circuit, the electrical device initializes the timer to the timing mode, and sets the interruption time of the timer to the delay control duration, so that after the delay control duration, the timer will send a timing interruption signal to instruct the electrical device to control the second switch module to open or close based on the target instruction. In addition, when the initial timer of the electrical device is in the timing mode, it is also necessary to allow the timer to be interrupted, and after the timer is interrupted, the electrical device prohibits the timer from being interrupted.

[0082] To sum up, according to the technical solution provided by the embodiment of the present application, when the electrical device receives the target instruction, it will not directly control the first switch module and the second switch module to open or close, but will first perform zero-crossing detection through the first zero-crossing detection circuit, control the first switch module to open or close when a zero-crossing interrupt occurs, and estimate the second zero-crossing moment based on the first zero-crossing moment when the zero-crossing interrupt occurs in the first zero-crossing detection circuit and the delay control duration, and control the second switch module to open or close at the second zero-crossing moment. In this way, the electrical device can ensure that the first switch module and the second switch module can both be opened or closed at the zero-crossing moment of the AC power supply to which they are connected, avoid the situation where the first switch module and the second switch module are subjected to excessive impact current at the moment of opening or closing, reduce the probability of the first switch module and the second switch module being burned, and ensure the safe use of the electrical equipment.

[0083] Combine the following Figure 7The setting scheme of the delay control duration is described. The setting scheme of the delay control duration includes the following process.

[0084] S701, controlling the second switch module to close.

[0085] In the embodiment of the present application, the electrical device controls the second switch module to be forced closed so that the second power board is powered on.

[0086] S702, respectively controlling the first zero-crossing detection circuit and the second zero-crossing detection circuit to perform zero-crossing detection.

[0087] The electrical device controls the first zero-crossing detection circuit and the second zero-crossing detection circuit to perform zero-crossing detection. The specific implementation of zero-crossing detection can refer to the relevant explanation of S301, which will not be described here.

[0088] S703: In response to a zero-crossing interruption in the first zero-crossing detection circuit, send pairing data to the second power board.

[0089] When the display control board detects that a zero-crossing interrupt occurs in the first zero-crossing detection circuit, the display control board sends pairing data to the second power board through the second communication interface (i.e., UART2). The pairing data is used to inform the second power board of the zero-crossing moment of the first AC power supply, and to instruct the second power board to return response data when a zero-crossing interrupt occurs in the second zero-crossing detection circuit, so as to complete the setting of the delay control duration. The specific content of the pairing data is not limited in the embodiment of the present application.

[0090] In some embodiments, the electrical device further performs the following process: in response to a zero-crossing interruption of the first zero-crossing detection circuit, the timer is controlled to be in a timing mode and start timing. The electrical device initializes the timer to the timing mode, and subsequently directly reads the timing time of the timer as the deviation between the zero-crossing moment of the second AC power source and the zero-crossing moment of the first AC power source, which can make the above deviation acquisition process more convenient.

[0091] S704, receiving response data corresponding to the pairing data sent by the second power board after a zero-crossing interrupt occurs in the second zero-crossing detection circuit.

[0092] When a zero-crossing interrupt occurs in the second zero-crossing detection circuit, the second power board sends response data to the display control board through the second communication interface, and the response data is used to notify the second zero-crossing detection circuit of the occurrence of a zero-crossing interrupt. The specific content of the response data is not limited in the embodiment of the present application.

[0093] In some embodiments, before sending the response data, the electrical device sets the second communication interface's allow-send flag to the seventh value to indicate that data is allowed to be sent through the second communication interface through the second power board. Before sending the response data, the electrical device sets the second communication interface's allow-send flag to the eighth value to indicate that data is prohibited from being sent through the second communication interface through the second power board. In some embodiments, the seventh value is 1 and the eighth value is 0.

[0094] S705: Obtain a specified interval duration.

[0095] The specified interval duration refers to the time interval between the first moment and the second moment, the first moment refers to the moment when the first zero-crossing detection circuit has a zero-crossing interruption, and the second moment refers to the moment when the response data sent by the second power board is received. Exemplarily, the moment when the first zero-crossing detection circuit has a zero-crossing detection is 10:28:47, and the moment when the display control board receives the response data sent by the second power board is 10:28:49, then the specified time interval is 2 seconds.

[0096] In the case where the electrical device controls the timer to start timing from the first moment, when the electrical device receives the response data sent by the second power board, the electrical device reads the timing time of the timer as the designated time interval.

[0097] S706: Determine the sum of the specified interval duration and the preset difference as the delay control duration.

[0098] The preset difference is used to indicate the detection error of the first zero-crossing detection circuit, or / and, the detection error of the second zero-crossing detection circuit. Optionally, the preset difference refers to the detection error of the first zero-crossing detection circuit, and the difference between the detection error of the second zero-crossing detection circuit. Wherein, the detection error of the first zero-crossing detection circuit and the detection error of the second zero-crossing detection circuit can be obtained by experiment, and the embodiment of the present application does not limit this.

[0099] The electrical device determines the sum of the specified time interval and the preset difference as the delay control duration, and stores the delay control duration. For example, if the specified time interval is 2 seconds and the preset difference is 3 microseconds, the delay control duration is 2 seconds and 3 microseconds.

[0100] In some embodiments, after the electrical device completes the delay control duration setting process, the value of the setting flag is updated from the second value to the first value. In this way, the electrical device can avoid repeatedly setting the delay control duration and avoid wasting resources of the electrical device.

[0101] In summary, the technical solution provided by the embodiment of the present application, by sending pairing data to the second power board when a zero-crossing interrupt occurs in the first zero-crossing detection circuit, and the second power board returns response data corresponding to the pairing data when a zero-crossing interrupt occurs in the second zero-crossing detection circuit, thereby obtaining the deviation between the zero-crossing moment of the first AC power supply and the zero-crossing moment of the second AC power supply to set the delay control duration. Subsequently, when the second power board is not powered on, the electrical equipment can estimate the zero-crossing moment of the second AC power supply based on the delay control duration and the moment when the zero-crossing interrupt occurs in the first zero-crossing detection circuit, and control the second switch module to open or close, so as to avoid the situation where the second switch module is subjected to excessive impact current at the moment of opening or closing, reduce the probability of the second switch module being burned, and ensure the safety of the electrical equipment.

[0102] Combine the following Figure 8 The control logic of the second power board is introduced. The control logic of the second power board includes the following process S801-

[0103] S801, power on electrical equipment.

[0104] S802: Acquire a third pressing signal of a switch key of a display control panel.

[0105] S803, detecting whether the setting of the delay control duration is completed.

[0106] If not, execute S804-S807. If yes, execute S808-S809.

[0107] S804, control relay 2 to close.

[0108] S805, when a zero-crossing interrupt occurs in the first zero-crossing detection circuit, the timer is initialized to a timing mode, and pairing data is sent to the second power board through UART2.

[0109] S806, receiving response data for the pairing data sent by the second power board when a zero-crossing interrupt occurs in the second zero-crossing detection circuit, reading the timing time of the timer, and taking the sum of the timing time of the timer and the preset difference as the delay control duration.

[0110] S807, completing the setting of the delay control duration.

[0111] S808, when a zero-crossing interrupt occurs in the first zero-crossing detection circuit, the timer is initialized to a timing mode, and the interrupt time of the timer is set to a delay control time length, the timer is started, and the timer timing interrupt is allowed.

[0112] S809, when the timer is interrupted, control relay 2 to close and turn off the timer, prohibiting the timer from interrupting.

[0113] S810, obtaining a fourth pressing signal of a power key of a display control panel, or monitoring until the work is completed.

[0114] S811, when a zero-crossing interrupt occurs in the first zero-crossing detection circuit, the timer is initialized to a timing mode, and the interrupt time of the timer is set to a delay control time length, the timer is started, and the timer timing interrupt is allowed.

[0115] S812, when the timer is interrupted, control relay 2 to open and turn off the timer, prohibiting the timer from interrupting.

[0116] See also Fig. 9 , which shows a block diagram of a control device for an electrical device provided in an embodiment of the present application. The electrical device includes a first power board and a second power board; the first power board and the second power board are respectively connected to AC power supplies of different phases in the three-phase four-wire; the first power board integrates a first zero-crossing detection circuit, a first switch module and a first electromagnetic heating circuit, and the first switch module is used to control the power-on state of the first electromagnetic heating circuit; the second power board integrates a second switch module and a second electromagnetic heating circuit, and the second switch module is used to control the power-on state of the second electromagnetic heating circuit. The device includes: a zero-crossing detection module 910, a first control module 920 and a second control module 930.

[0117] The zero-crossing detection module 910 is used to control the first zero-crossing detection circuit to perform zero-crossing detection on the first AC power source connected to the first power board in response to the target instruction.

[0118] The first control module 920 is used to control the first switch module to open or close based on the target instruction when a zero-crossing interrupt occurs in the first zero-crossing detection circuit.

[0119] The second control module 930 is used to control the opening or closing of the second switch module based on the first zero-crossing moment of the zero-crossing interruption of the first zero-crossing detection circuit, the delay control duration and the target instruction; wherein the delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply.

[0120] In some embodiments, the second control module 930 is used to obtain the delay control duration; at a second zero-crossing moment after the first zero-crossing moment, the second switch module is controlled to open or close based on the target instruction, and the interval between the second zero-crossing moment and the first zero-crossing moment is the delay control duration.

[0121] In some embodiments, the second zero-crossing detection module 930 is used to: control the timer to be in timing mode, and set the interruption time of the timer to the delay control duration; when the timer is interrupted, control the second switch module to open or close based on the target instruction.

[0122] In some embodiments, the device further includes: a first acquisition module and a setting module (not shown in the figure). The first acquisition module is used to obtain the value of the setting flag bit, and the setting flag bit is used to characterize the setting state of the delay control duration. The second control module 930 is used to execute the step of controlling the opening or closing of the second switch module based on the first zero-crossing moment of the zero-crossing interruption of the first zero-crossing detection circuit, the delay control duration and the target instruction when the value of the setting flag bit is the first value, and the first value is used to characterize the setting of the completed delay control duration. The setting module is used to execute the setting process of the delay control duration when the value of the setting flag bit is the second value, and the second value is used to characterize the uncompleted setting of the delay control duration, and the first value is different from the second value.

[0123] In some embodiments, the second power board is integrated with a second zero-crossing detection circuit, and a module is set to: control the second switch module to close; respectively control the first zero-crossing detection circuit and the second zero-crossing detection circuit to perform zero-crossing detection; in response to a zero-crossing interruption in the first zero-crossing detection circuit, send pairing data to the second power board; receive response data corresponding to the pairing data sent by the second power board after the zero-crossing interruption in the second zero-crossing detection circuit occurs; obtain a specified interval duration, the specified interval duration refers to the time interval between a first moment and a second moment, the first moment refers to the moment when the first zero-crossing detection circuit has a zero-crossing interrupt, and the second moment refers to the moment when the response data sent by the second power board is received; the sum of the specified interval duration and the preset difference is determined as the delay control duration; the preset difference is used to indicate the detection error of the first zero-crossing detection circuit, or / and, the detection error of the second zero-crossing detection circuit.

[0124] In some embodiments, the device further includes: a timing module. The timing module is used to control the timer to be in a timing mode and start timing in response to a zero-crossing interruption of the first zero-crossing detection circuit; when receiving response data sent by the second power board, the timer is controlled to stop timing. A setting module is used to determine the timing time of the timer to a specified interval duration.

[0125] In some embodiments, the electrical device further includes: an updating module (not shown in the figure). The updating module is used to: update the value of the setting flag bit from the second value to the first value.

[0126] In summary, according to the technical solution provided by the embodiment of the present application, when the electrical device receives the target instruction, it will not directly control the first switch module and the second switch module to open or close, but will first perform zero-crossing detection through the first zero-crossing detection circuit, and control the first switch module to open or close when a zero-crossing interrupt occurs, and control the second switch module to open or close based on the first zero-crossing moment and the delay control duration when the zero-crossing interrupt occurs in the first zero-crossing detection circuit. The delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply. In this way, the electrical device can ensure that the first switch module and the second switch module can both be opened or closed at the zero-crossing moment of the AC power supply to which they are connected, avoiding the situation where the first switch module and the second switch module are subjected to excessive impact current at the moment of opening or closing, reducing the probability of the first switch module and the second switch module being burned, and ensuring the safe use of the electrical equipment.

[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0128] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0129] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0130] like Fig.10 As shown, the present application example also provides an electrical device 1000, which can be a terminal (such as a smart phone, a tablet computer, a personal computer, etc.) or a server, wherein the electrical device 1000 includes a processor 1010 and a memory 1020. The memory 1020 stores computer program instructions.

[0131] The processor 1010 may include one or more processing cores. The processor 1010 uses various interfaces and lines to connect various parts of the entire battery management system, and executes various functions and processes data of the battery management system by running or executing instructions, programs, code sets or instruction sets stored in the memory 1020, and calling data stored in the memory 1020. Optionally, the processor 1010 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 1010 can integrate one or more combinations of a central processing unit 1010 (CPU), a graphics processing unit 1010 (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1010, but may be implemented separately through a communication chip.

[0132] The memory 1020 may include a random access memory 1020 (Random Access Memory, RAM), and may also include a read-only memory 1020 (Read-Only Memory). The memory 1020 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, etc.), instructions for implementing the following various method examples, etc. The data storage area may also store data created by the electrical device during use, etc.

[0133] See also Fig.11 , which shows that an embodiment of the present application also provides a computer-readable storage medium 1100, in which computer program instructions 1110 are stored. The computer program instructions 1110 can be called by a processor to execute the method described in the above embodiment.

[0134] The computer-readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. Optionally, the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1100 has storage space for computer program instructions 1110 for executing any method step S in the above method. These computer program instructions 1110 may be read from or written to one or more computer program products. The computer program instructions 1110 may be compressed in an appropriate form.

[0135] The above are only preferred examples of the present application and are not intended to limit the present application in any form. Although the present application has been disclosed as the preferred examples above, they are not intended to limit the present application. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent examples with equivalent changes without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above examples based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A control method for an electrical device, characterized in that: The electrical equipment comprises a first power board and a second power board; the first power board and the second power board are respectively connected to AC power supplies of different phases in a three-phase four-wire; the first power board integrates a first zero-crossing detection circuit, a first switch module and a first electromagnetic heating circuit, and the first switch module is used to control the power-on state of the first electromagnetic heating circuit; the second power board integrates a second switch module and a second electromagnetic heating circuit, and the second switch module is used to control the power-on state of the second electromagnetic heating circuit; the method comprises: In response to the target instruction, controlling the first zero-crossing detection circuit to perform zero-crossing detection on the first AC power source connected to the first power board; When a zero-crossing interruption occurs in the first zero-crossing detection circuit, controlling the first switch module to open or close based on the target instruction; Based on the first zero-crossing moment of the zero-crossing interruption of the first zero-crossing detection circuit, the delay control duration and the target instruction, the second switch module is controlled to be opened or closed; wherein the delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply.

2. The method according to claim 1, characterized in that The controlling the second switch module to open or close based on the first zero-crossing moment of the zero-crossing interruption of the first zero-crossing detection circuit, the delay control duration and the target instruction comprises: Get the delay control duration; At a second zero-crossing moment after the first zero-crossing moment, the second switch module is controlled to be opened or closed based on the target instruction, and the interval between the second zero-crossing moment and the first zero-crossing moment is the delay control duration.

3. The method according to claim 2, characterized in that The controlling the second switch module to open or close based on the target instruction at a second zero-crossing moment after the first zero-crossing moment includes: Controlling the timer to be in timing mode, and setting the interruption time of the timer to the delay control duration; When a timing interrupt occurs to the timer, the second switch module is controlled to be opened or closed based on the target instruction.

4. The method according to any one of claims 1 to 3, characterized in that Before controlling the second switch module to open or close based on the first zero-crossing moment of the zero-crossing interruption of the first zero-crossing detection circuit, the delay control duration and the target instruction, the method further includes: Obtaining a value of a setting flag, wherein the setting flag is used to indicate a setting state of the delay control duration; In the case where the value of the setting flag bit is a first value, executing the step of controlling the second switch module to be opened or closed based on the first zero-crossing moment of the zero-crossing interruption of the first zero-crossing detection circuit, the delay control duration, and the target instruction, wherein the first value is used to indicate that the setting of the delay control duration has been completed; When the value of the setting flag is a second value, the delay control duration setting process is executed, the second value is used to indicate that the setting of the delay control duration is not completed, and the first value is different from the second value.

5. The method according to claim 4, characterized in that The second power board is integrated with a second zero-crossing detection circuit; The process of setting the delay control duration includes: Controlling the second switch module to close; Respectively controlling the first zero-crossing detection circuit and the second zero-crossing detection circuit to perform zero-crossing detection; In response to a zero-crossing interruption of the first zero-crossing detection circuit, sending pairing data to the second power board; receiving response data corresponding to the pairing data sent by the second power board after a zero-crossing interrupt occurs in the second zero-crossing detection circuit; Obtaining a specified interval duration, where the specified interval duration refers to the time interval between the first moment and the second moment, where the first moment refers to the moment when a zero-crossing interrupt occurs in the first zero-crossing detection circuit, and the second moment refers to the moment when the response data sent by the second power board is received; The sum of the specified interval duration and a preset difference is determined as the delay control duration; the preset difference is used to indicate a detection error of the first zero-crossing detection circuit, and / or a detection error of the second zero-crossing detection circuit.

6. The method according to claim 5, characterized in that The method further comprises: In response to a zero-crossing interruption of the first zero-crossing detection circuit, controlling the timer to be in a timing mode and start timing; When receiving the response data sent by the second power board, controlling the timer to stop timing; The obtaining of the specified interval duration includes: determining the timing time of the timer as the specified interval duration.

7. The method according to claim 5, characterized in that After the delay control duration setting process is performed, the method further includes: The value of the setting flag bit is updated from the second value to the first value.

8. A control device for an electrical device, characterized in that: The electrical equipment comprises a first power board and a second power board; the first power board and the second power board are respectively connected to an AC power supply of different phases in a three-phase four-wire; the first power board integrates a first zero-crossing detection circuit, a first switch module and a first electromagnetic heating circuit, and the first switch module is used to control the working state of the first electromagnetic heating circuit; the second power board integrates a second switch module and a second electromagnetic heating circuit, and the second switch module is used to control the working state of the second electromagnetic heating circuit; the device comprises: a zero-crossing detection module, configured to control the first zero-crossing detection circuit to perform zero-crossing detection on the first AC power source connected to the first power board in response to a target instruction; A first control module, configured to control the first switch module to open or close based on the target instruction when a zero-crossing interruption occurs in the first zero-crossing detection circuit; A second control module is used to control the second switch module to open or close based on the first zero-crossing moment of the zero-crossing interruption of the first zero-crossing detection circuit, the delay control duration and the target instruction; wherein the delay control duration is used to characterize the deviation between the zero-crossing moment of the second AC power supply connected to the second power board and the zero-crossing moment of the first AC power supply.

9. An electrical device, characterized in that: include: A first power board and a second power board; the first power board and the second power board are respectively connected to an AC power supply of different phases in a three-phase four-wire; the first power board integrates a first zero-crossing detection circuit, a first switch module and a first electromagnetic heating circuit; the second power board integrates a second switch module and a second electromagnetic heating circuit; one or more processors; Memory; One or more applications, wherein one or more of the applications are stored in the memory and configured to be executed by one or more of the processors, and one or more of the applications are configured to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, and the program code is called by a processor to execute the method according to any one of claims 1 to 7.