Power distribution control method, power distribution equipment and storage medium

By detecting the consistency between status update instructions and automatic control instructions in the distribution equipment and stopping the execution of automatic control instructions when there is inconsistency, the problem of damage that may be caused to the distribution equipment when executing automatic control instructions is solved, ensuring the normal use of the equipment.

CN116260236BActive Publication Date: 2025-09-19ECOFLOW INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310356342.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2025-09-19
Estimated Expiration
2043-03-29

AI Technical Summary

Technical Problem

When power distribution equipment executes automatic control instructions, it may cause damage to the equipment and affect normal use.

Method used

Before a predetermined time point, it is detected whether a status update instruction is received, and when the status update instruction is received, it is determined whether it is consistent with the automatic control instruction. If not, the automatic control instruction is stopped at the predetermined time point.

Benefits of technology

This avoids damage to the power distribution equipment caused by continuing to execute automatic control instructions at the scheduled time point, ensuring that the equipment can be used normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116260236B_ABST
    Figure CN116260236B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a power distribution control method, power distribution equipment, and storage medium. The method includes: obtaining an automatic control instruction, the automatic control instruction is used to turn on or off a target switch at a predetermined time point, the target switch including at least one of a first switch, a second switch, and an output switch; within a preset time period before the predetermined time point, detecting whether a status update instruction is received, the status update instruction including an update instruction for controlling the turning on or off of the target switch; upon receiving the status update instruction, executing the status update instruction, and after executing the status update instruction, determining whether the status update instruction is consistent with the automatic control instruction; if the status update instruction and the automatic control instruction are inconsistent, stopping the execution of the automatic control instruction when the predetermined time point is reached. The technical solution of the embodiments of the present application can avoid damage to the power distribution equipment caused by the execution of the automatic control instruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power distribution technology, and in particular to a power distribution control method, power distribution equipment, and a computer-readable storage medium. Background Art

[0002] With the advancement of technology, electronic devices are becoming increasingly intelligent. Power distribution equipment, as a type of electronic device, is used to achieve intelligent power distribution in the home. Power distribution equipment connects the output of the mains module and the output of the energy storage module, and also connects to the input of the household's power modules. It can directly power the household's power modules using the grid or energy storage modules.

[0003] When power distribution equipment is supplying power, users can configure automatic control instructions for power distribution to automatically control power distribution. However, in related technologies, power distribution equipment often suffers from damage caused by executing automatic control instructions, affecting its normal use. Summary of the Invention

[0004] In order to solve the above technical problems, the embodiments of the present application provide a power distribution control method, a power distribution device and a computer-readable storage medium, which aim to solve the technical problem that the power distribution device is damaged due to the execution of automatic control instructions, thereby affecting the normal use of the power distribution device.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a power distribution control method is provided.

[0007] Used for power distribution equipment, the power distribution equipment includes a first switch, a second switch and an output switch, the first switch is used to connect the mains module, the second switch is used to connect the energy storage module, the output switch is used to connect the power module, the power distribution equipment is used to control the on and off of the first switch, the second switch and the output switch to enable the mains module or the energy storage module to output power to the power module or the mains module to output power to the energy storage module, the method includes:

[0008] Obtaining an automatic control instruction, where the automatic control instruction is used to turn on or off a target switch at a predetermined time point, where the target switch includes at least one of a first switch, a second switch, and an output switch;

[0009] Within a preset time period before a predetermined time point, detecting whether a state update instruction is received, the state update instruction including an update instruction for controlling the on or off of a target switch;

[0010] Upon receiving a status update instruction, executing the status update instruction, and after executing the status update instruction, determining whether the status update instruction is consistent with the automatic control instruction;

[0011] If the status update instruction and the automatic control instruction are inconsistent, the automatic control instruction will be stopped when the predetermined time point is reached.

[0012] In an exemplary embodiment of the present application, the status update instruction includes a first update instruction triggered when the mains module is connected or disconnected, a second update instruction triggered when the energy storage module is connected or disconnected, or a third update instruction triggered when the power module is connected or disconnected; the first update instruction is used to control the first switch to be turned on or off, the second update instruction is used to control the first switch to be turned on or off, and the third update instruction is used to control the output switch to be turned on or off;

[0013] Determine whether the status update instruction is consistent with the automatic control instruction, including:

[0014] determining whether the automatic control instruction is related to the first update instruction, the second update instruction, or the third update instruction;

[0015] If the first update instruction is related to the automatic control instruction, and the first update instruction controls the first switch to be turned on or off differently from the automatic control instruction; or

[0016] The second update instruction is related to the automatic control instruction, and the second update instruction controls the second switch to be turned on or off differently from the automatic control instruction; or

[0017] The third update instruction is related to the automatic control instruction, and the third update instruction is different from the automatic control instruction in controlling the output switch to be turned on or off;

[0018] It is determined that the status update instruction and the automatic control instruction are inconsistent.

[0019] In an exemplary embodiment of the present application, the status update instruction includes a first fault instruction for the target switch triggered by a fault in the mains module, a second fault instruction for the target switch triggered by a fault in the energy storage module, a third fault instruction for the target switch triggered by a fault in the power module, or a fourth fault instruction for the target switch triggered by a fault in the power distribution equipment;

[0020] Determine whether the status update instruction is consistent with the automatic control instruction, including:

[0021] determining whether the automatic control instruction is related to the first fault instruction, the second fault instruction, or the third fault instruction;

[0022] If the automatic control instruction is related to the first fault instruction, and the control of turning on or off the target switch by the first fault instruction is different from that of the automatic control instruction; or

[0023] The automatic control instruction is related to the second fault instruction, and the second fault instruction controls the on / off of the target switch differently from the automatic control instruction; or

[0024] The automatic control instruction is related to the third fault instruction, and the control of turning on or off the target switch by the third fault instruction is different from that of the automatic control instruction; or

[0025] The automatic control instruction is related to the fourth fault instruction, and the fourth fault instruction controls the on / off of the target switch differently from the automatic control instruction;

[0026] It is determined that the status update instruction and the automatic control instruction are inconsistent.

[0027] In an exemplary embodiment of the present application, the power distribution device is further configured to connect to an intelligent terminal, and the state update instruction includes a current control instruction sent by the intelligent terminal at a current moment, and the current control instruction includes an update instruction for controlling the target switch to be turned on or off at the current moment;

[0028] Determine whether the status update instruction is consistent with the automatic control instruction, including:

[0029] Determine whether the automatic control instruction is related to the current control instruction;

[0030] If the current control instruction is related to the automatic control instruction, and the current control instruction for turning on or off the target switch is different from the automatic control instruction, calculate the time difference between the current moment and the predetermined time point;

[0031] If the time difference is less than or equal to the preset time difference, it is determined that the state update instruction and the automatic control instruction are inconsistent.

[0032] In an exemplary embodiment of the present application, the power distribution device is further configured to connect to a smart terminal, and the state update instruction includes a preset control instruction sent by the smart terminal, wherein the preset control instruction includes an update instruction for controlling the target switch to be turned on or off at a to-be-determined time point;

[0033] Determine whether the status update instruction is consistent with the automatic control instruction, including:

[0034] Determine whether the automatic control instruction is related to the preset control instruction;

[0035] If the preset control instruction is related to the automatic control instruction, and the preset control instruction and the automatic control instruction are different in controlling the on or off of the target switch, calculating the time difference between the pending time point and the predetermined time point;

[0036] If the time difference is less than or equal to the preset time difference, it is determined that the state update instruction and the automatic control instruction are inconsistent.

[0037] In an exemplary embodiment of the present application, determining whether the automatic control instruction is related to the first fault instruction, the second fault instruction, or the third fault instruction includes:

[0038] If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the first fault instruction, then it is determined that the automatic control instruction is related to the first fault instruction;

[0039] If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the second fault instruction, then it is determined that the automatic control instruction is related to the first fault instruction;

[0040] If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the third fault instruction, it is determined that the automatic control instruction is related to the first fault instruction.

[0041] In an exemplary embodiment of the present application, the automatic control instructions include control instructions at multiple levels, and the control instructions at the multiple levels correspond to different preset time periods.

[0042] In an exemplary embodiment of the present application, after stopping execution of the automatic control instruction, the method further includes:

[0043] Get the instruction mapping table;

[0044] Generate corresponding power distribution control instructions according to the instruction mapping table, status update instructions and automatic control instructions;

[0045] Execute power distribution control instructions.

[0046] According to one aspect of an embodiment of the present application, a power distribution device is provided, including: the power distribution device includes a first switch, a second switch, an output switch, and a main control chip, the first switch is used to connect to a mains module, the second switch is used to connect to an energy storage module, and the output switch is used to connect to a power module, and the power distribution device is used to control the on and off of the first switch, the second switch, and the output switch to enable the mains module or the energy storage module to output power to the power module or the mains module to output power to the energy storage module;

[0047] The main control chip is connected to the control ends of the first switch, the second switch and the output switch. The main control chip is used to store one or more programs. When one or more programs are executed by one or more processors, the main control chip implements any of the above power distribution control methods.

[0048] According to one aspect of an embodiment of the present application, there is provided a power distribution control device, comprising:

[0049] The power distribution control device is used for power distribution equipment. The power distribution equipment includes a first switch, a second switch and an output switch. The first switch is used to connect the mains module, the second switch is used to connect the energy storage module, and the output switch is used to connect the power module. The power distribution equipment is used to control the on and off of the first switch, the second switch and the output switch to enable the mains module or the energy storage module to output power to the power module or the mains module to output power to the energy storage module. The power distribution control device includes:

[0050] a first acquisition module configured to acquire an automatic control instruction, the automatic control instruction being used to turn on or off a target switch at a predetermined time point, the target switch including at least one of a first switch, a second switch, and an output switch;

[0051] a detection module configured to detect whether a state update instruction is received within a preset time period before a predetermined time point, the state update instruction including an update instruction for controlling the on or off of a target switch;

[0052] a judgment module configured to, upon receiving a status update instruction, execute the status update instruction, and after executing the status update instruction, determine whether the status update instruction is consistent with the automatic control instruction;

[0053] The stop execution module is configured to stop executing the automatic control instruction when a predetermined time point is reached if the state update instruction and the automatic control instruction are inconsistent.

[0054] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, which, when executed by one or more processors, enables the electronic device to implement the power distribution control method as described above.

[0055] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above power distribution control method.

[0056] According to one aspect of an embodiment of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the power distribution control method provided in the various optional embodiments described above.

[0057] The power distribution control method, power distribution equipment and computer-readable storage medium of the embodiments of the present application, before executing the automatic control instruction, if a status update instruction is detected, the status update instruction is first executed, and it is determined whether the status update instruction and the automatic control instruction are consistent; if it is determined that the status update instruction is inconsistent with the automatic control instruction, indicating that executing the automatic control instruction will cause damage to the power distribution equipment, the automatic control instruction is stopped when the predetermined time point is reached, thereby avoiding the problem of damage to the power distribution equipment caused by continuing to execute the automatic control instruction at the predetermined time point, so that the power distribution equipment can be used normally.

[0058] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings are incorporated into and constitute a part of the specification, illustrating embodiments consistent with the present application and, together with the specification, serving to explain the principles of the present application. It is obvious that the drawings described below are merely some embodiments of the present application, and a person of ordinary skill in the art can derive other drawings based on these drawings without inventive effort. In the drawings:

[0060] Figure 1 It is a schematic diagram of an implementation environment involved in this application;

[0061] Figure 2 This is a schematic diagram of a power distribution equipment involved in this application

[0062] Figure 3 This is a flow chart of a power distribution control method involved in this application;

[0063] Figure 4 is a flow chart of a power distribution control method according to another embodiment of the present application;

[0064] Figure 5 This is a flowchart of step S330 in an embodiment of the present application;

[0065] Figure 6 This is a flowchart of step S330 in an embodiment of the present application;

[0066] Figure 7 This is a flowchart of step S330 in an embodiment of the present application;

[0067] Figure 8 This is a flowchart of step S330 in an embodiment of the present application;

[0068] Figure 9 This is a flowchart of step S610 in an embodiment of the present application;

[0069] Figure 10 is a flow chart of a power distribution control method according to another embodiment of the present application;

[0070] Figure 11 is a block diagram of a power distribution control device involved in this application;

[0071] Figure 12 A schematic diagram of the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0072] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0073] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0074] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.

[0075] With the development of science and technology, existing electronic devices are becoming more and more intelligent. Taking power distribution equipment as an example, power distribution equipment can be used to realize intelligent power distribution in the home. Figure 1 As shown, Figure 1This is a schematic diagram of an implementation environment involved in this application, which includes a power distribution device, a mains module, an energy storage module, and a power consumption module. The input end of the power distribution device is connected to the mains module and the energy storage module, and is used to receive power input from the mains module and the energy storage module. The output end of the power distribution module is connected to various power consumption modules in the home, and is used to power the power consumption modules. The power distribution device can receive power input from the mains module and then use the power from the mains module to power various power consumption modules in the home. When the mains module inputs power, the power distribution device can simultaneously charge the energy storage module and power the power consumption modules. When the mains module is not connected, the power distribution device can control the energy storage module to power the power consumption modules. The above-mentioned power distribution device can be a distribution box, a distribution board, etc. The energy storage module can be an energy storage device with charging and discharging functions, etc., or a device with bidirectional inverter functions. The power consumption modules can be various electrical appliances that require power, such as refrigerators, air conditioners, etc. The power distribution device can be directly configured for AC power or DC power. When the power distribution equipment is configured with direct current, the energy storage module connected to it is configured with a module that realizes the inverter function, through which direct current is converted into alternating current, so that the energy storage equipment can use alternating current; when the power distribution equipment is configured with alternating current, the mains module connected to it is configured with a module with a rectifier function, through which alternating current is converted into direct current.

[0076] For easier management, users can configure desired automatic control instructions. For example, to save on electricity costs, during periods of low power, the mains module can be used to supply power to household electrical modules while also charging the energy storage module. During peak hours, the mains module can be disconnected, and the energy storage module can be used to supply power to household electrical modules. These automatic control instructions can be controlled by the MCU (Microcontroller Unit) within the power distribution equipment.

[0077] However, in actual use, when the user has configured the automatic control instructions, but due to unexpected circumstances, the user forgets the automatic logic, the user manually operates or other special circumstances, the automatic control instructions do not need to be executed, but the power distribution equipment will still continue to execute the automatic control instructions, which will cause unnecessary damage to the power distribution equipment, power modules or energy storage modules in the above implementation environment. For example, when the mains module is disconnected and the energy storage module inputs power, the energy storage module is insufficient, and the automatic control instructions still turn on the energy storage module to charge the power module, which will cause the energy storage module to continue to charge in an undervoltage state, which may damage the energy storage module. Or, when the power module fails, the user manually disconnects the output of the distribution equipment, but the automatic control logic immediately turns on the output of the distribution equipment again, causing damage to the power module. Therefore, in the above situation, it will lead to a poor user experience and will cause damage to the distribution equipment, power modules or energy storage modules.

[0078] To solve the above technical problems, the present application provides a power distribution control method, a power distribution device, and a storage medium. The following first introduces a power distribution control method provided by the present application.

[0079] See also Figure 2 , Figure 2 The present invention is a schematic structural diagram of a power distribution device 200 according to an exemplary embodiment, and a power distribution control method is used for the power distribution device 200. The power distribution device 200 includes a first switch K1, a second switch K2, and an output switch K0. The first switch K1 is used to connect to a mains module, the second switch K2 is used to connect to an energy storage module, and the output switch K0 is used to connect to a power consumption module. The power distribution device 200 is used to control the on and off of the first switch K1, the second switch K2, and the output switch K0 to enable the mains module or the energy storage module to output power to the power consumption module, or the mains module to output power to the energy storage module.

[0080] In an embodiment of the present application, the mains module is connected to the first switch K1. When the mains module is required to supply power to the power-consuming module, the first switch K1 and the output switch K0 are both turned on, and the electric energy of the mains module is transmitted to the power-consuming module through the power distribution equipment 200. Furthermore, when the first switch K1 and the second switch K2 are turned on at the same time, the mains module can also provide electric energy to the energy storage module. When the energy storage module is required to supply power to the power-consuming module, the first switch K1 is disconnected, and the second switch K2 and the output switch K0 are both turned on, and the electric energy stored in the energy storage module is transmitted to the power-consuming module. Regardless of whether the mains module transmits electric energy to the power-consuming module or the energy storage module transmits electric energy to the power-consuming module, the electric energy input by the mains module or the energy storage module will be collected on the BUS bus and then output to each power-consuming module. When on the power distribution device 200, the power distribution device 200 controls the on and off of the first switch K1, the second switch K2 and the output switch K0 to enable the AC module or the energy storage module to output power to the power module, and the AC module to output power to the energy storage module.

[0081] See also Figure 3 , Figure 3 This is a flow chart of a power distribution control method according to an exemplary embodiment. Figure 1 The implementation environment shown and Figure 2 The power distribution equipment 200 shown in FIG. Figure 3 As shown, the power distribution control method may include steps S310 to S340, which are described in detail as follows:

[0082] Step S310: obtaining an automatic control instruction, where the automatic control instruction is used to turn on or off at least one of the first switch, the second switch, and the output switch at a predetermined time point, where the target switch includes at least one of the first switch, the second switch, and the output switch.

[0083] In an embodiment of the present application, the automatic control instructions are pre-configured by the user and are used to achieve automated control of power distribution by turning on or off at least one of the first switch, the second switch, and the output switch at predetermined time points. For example, due to differences in time-based electricity charges, the user can configure the system to save electricity costs by using the AC module to power the power-consuming module and charge the energy storage module during cheaper electricity time periods; and by using the energy storage module to power the power-consuming module during more expensive electricity time periods. For example, when electricity costs are more expensive from 8:00 to 10:00 p.m. each day, an automatic control instruction can be generated to turn on the second switch and the output switch at 8:00 p.m. each day, so that the energy storage module supplies power to the power-consuming module. Simultaneously, an automatic control instruction can be generated to turn on the first switch and the output switch at 10:00 p.m. each day, so that the AC module supplies power to the power-consuming module and the AC module charges the energy storage module, facilitating the next use of the energy storage module.

[0084] Step S320 : detecting whether a status update instruction is received within a preset time period before the predetermined time point, where the status update instruction includes an update instruction for controlling the on or off of the target switch.

[0085] In the embodiment of the present application, whether the status update instruction is received is detected within a preset time period before the predetermined time point. In the embodiment of the present application, the preset time period can be pre-set to a fixed time period, such as setting the preset time period to five minutes or ten minutes.

[0086] Step S330: upon receiving the status update instruction, executing the status update instruction, and after executing the status update instruction, determining whether the status update instruction is consistent with the automatic control instruction.

[0087] In the embodiment of the present application, upon receiving the status update instruction, the status update instruction is directly executed, and a determination is made as to whether the status update instruction is consistent with the automatic control instruction. If the status update instruction indicates disconnecting the second switch, upon receiving the status update instruction, the status update instruction is directly executed to disconnect the second switch.

[0088] Step S340: If the state update instruction and the automatic control instruction are inconsistent, then the automatic control instruction is stopped when a predetermined time point is reached.

[0089] In an embodiment of the present application, when the status update instruction is inconsistent with the automatic control instruction, indicating that the control logics between the two are different, the execution of the automatic control instruction can be stopped at a predetermined time point.

[0090] In an embodiment of the present application, before executing the automatic control instruction, if a status update instruction is detected, the status update instruction is executed first, and it is determined whether the status update instruction and the automatic control instruction are consistent; when it is determined that the status update instruction is inconsistent with the automatic control instruction, indicating that executing the automatic control instruction will cause damage to the power distribution equipment, the execution of the automatic control instruction is stopped when the predetermined time point is reached, thereby avoiding the problem of damage to the power distribution equipment caused by continuing to execute the automatic control instruction at the predetermined time point, so that the power distribution equipment can be used normally.

[0091] In one embodiment of the present application, after determining whether the status update instruction is consistent with the automatic control instruction in step S330, the power distribution control method further includes:

[0092] If the status update instruction and the automatic control instruction are consistent, the automatic control instruction will be executed when the predetermined time point is reached.

[0093] In this embodiment of the present application, if the state update instruction and the automatic control instruction are consistent, indicating that the control logic between them is the same, then the automatic control instruction can continue to be executed at the predetermined time point. For example, if the state update instruction indicates that the second switch should be disconnected at 7:58, and the automatic control instruction indicates that the second switch should be disconnected at 8:00, and the state update instruction and the automatic control instruction are consistent, then the state update instruction will be executed. After the second switch is disconnected at 7:58, the automatic control instruction can still be executed at 8:00.

[0094] In an exemplary embodiment of the present application, see Figure 4 Before detecting whether a status update instruction is received within a preset time period before a predetermined time point in step S320, the power distribution control method further includes steps S410 to S420, which are described in detail as follows:

[0095] Step S410: Acquire a first connection state between the first switch and the mains module and a second connection state between the second switch and the energy storage module.

[0096] In an embodiment of the present application, the first connection state between the first switch and the mains module and the second connection state between the second switch and the energy storage module are the physical connection states of the mains module or the energy storage module. By judging the first connection state corresponding to the first switch and the mains module, it can be judged whether the mains module is connected to the power distribution equipment. If the mains module is not connected to the power distribution equipment, the mains module cannot be connected to the power distribution equipment even if the first switch is turned on. Among them, to judge whether the mains module is connected to the power distribution equipment, a sampling module can be directly set between the first switch and the mains module, and the sampling module is connected to the MCU of the power distribution equipment. When current is sampled, it indicates that it is connected. Similarly, the second connection state can be obtained in the same way as the first connection state, which will not be repeated here.

[0097] Step S420: determining a target time range according to the first connection state and the second connection state, and setting the target time range as a preset time period.

[0098] In an embodiment of the present application, a corresponding target time range is determined as a preset time period based on the first connection state between the first switch and the mains module and the second connection state between the second switch and the energy storage module. Specifically, when the first connection state between the first switch and the mains module and the second connection state between the second switch and the energy storage module both indicate a successful physical connection, the corresponding target time range can be set to the first target time range. When the first connection state between the first switch and the mains module and the second connection state between the second switch and the energy storage module both indicate an unsuccessful physical connection, the corresponding target time range can be set to the second target time range, where the first target time range is smaller than the second target time range.

[0099] In an embodiment of the present application, a corresponding target time range is determined based on two connection states. When both connection states indicate that the power distribution equipment is not connected, the corresponding target time range is longer than the target time range corresponding to other situations. When the power distribution equipment is in power distribution control, it needs to be powered by the corresponding mains module or energy storage module. When both connection states indicate that the power distribution equipment is not connected, power distribution control cannot be achieved, and after some instructions are executed, the ultimate goal cannot be achieved. Therefore, when both connection states indicate that the power distribution equipment is not connected, setting a longer target time range can better determine whether the automatic control instruction is executed after the execution status update instruction.

[0100] In an exemplary embodiment of the present application, see Figure 5 The status update instruction includes a first update instruction triggered when the AC power module is connected or disconnected, a second update instruction triggered when the energy storage module is connected or disconnected, or a third update instruction triggered when the power module is connected or disconnected. The first update instruction is used to control the first switch to be turned on or off, the second update instruction is used to control the first switch to be turned on or off, and the third update instruction is used to control the output switch to be turned on or off.

[0101] In step S330, it is determined whether the status update instruction is consistent with the automatic control instruction, including steps S510 and S520, which are described in detail as follows:

[0102] Step S510 , determining whether the automatic control instruction is related to the first update instruction, the second update instruction, or the third update instruction.

[0103] In an embodiment of the present application, there may be inconsistencies between the automatic control instruction and the status update instruction. When there is inconsistency, the power distribution device may cause damage to the power distribution device or the energy storage module when subsequently executing the automatic control instruction. The control instruction includes an instruction object and a control strategy. Determine whether the automatic control instruction is related to the first update instruction, the second update instruction or the third update instruction, that is, detect whether the instruction object of the automatic control instruction is related to each update instruction. If the automatic control instruction is for turning on or off the first switch, its instruction object is the first switch, and the status update instruction is the second update instruction triggered when the energy storage module is connected or disconnected, and its corresponding instruction object is the second switch, it can be determined that the automatic control instruction is not related to the second update instruction.

[0104] Step S520: If the first update instruction is related to the automatic control instruction, and the control of turning on or off the first switch by the first update instruction is different from the automatic control instruction; or

[0105] The second update instruction is related to the automatic control instruction, and the second update instruction controls the second switch to be turned on or off differently from the automatic control instruction; or

[0106] The third update instruction is related to the automatic control instruction, and the third update instruction is different from the automatic control instruction in controlling the output switch to be turned on or off;

[0107] It is determined that the status update instruction and the automatic control instruction are inconsistent.

[0108] In an embodiment of the present application, if the first update instruction is related to the automatic control instruction, and the first update instruction controls the first switch to be turned on or off differently from the automatic control instruction, that is, the automatic control instruction targets the first switch, but the control strategy of the automatic control instruction differs from the control strategy of the first update instruction. For example, if the control strategy of the automatic control instruction is to turn on the first switch at 10 pm, and the corresponding preset time period is 10 minutes, then at 9:50 pm, detection begins to check whether the first update instruction has been received, and upon receipt of the first update instruction, the first update instruction is executed. If the control strategy of the first update instruction is to control the mains module to be disconnected at 9:55 pm, then the status update instruction and the automatic control instruction are determined to be inconsistent; if the control strategy of the first update instruction is to control the mains module to be connected at 9:58 pm, then the status update instruction and the automatic control instruction are determined to be consistent. If the status update instruction and the automatic control instruction are inconsistent, execution of the automatic control instruction is terminated at 10 pm; if the status update instruction and the automatic control instruction are consistent, then the automatic control instruction is executed at 10 pm.

[0109] When the embodiment of the present application determines that the status update instruction is inconsistent with the automatic control instruction, which will cause the distribution equipment or the AC power module to be damaged by executing the automatic control instruction at a predetermined time point, it stops executing the automatic control instruction when the predetermined time point is reached, thereby avoiding the problem of damage to the distribution equipment or the AC power module caused by continuing to execute the automatic control instruction at the predetermined time point, so that the distribution equipment or the AC power module can be used normally.

[0110] In an embodiment of the present application, if the second update instruction is related to the automatic control instruction, and the second update instruction controls the second switch to be turned on or off differently from the automatic control instruction, that is, the automatic control instruction targets the second switch, but the control strategy of the automatic control instruction differs from the control strategy of the second update instruction. For example, if the control strategy of the automatic control instruction is to turn on the second switch at 8:00 PM, and the corresponding preset time period is 10 minutes, then at 7:50 PM, detection begins to determine whether the second update instruction has been received, and upon receipt of the second update instruction, the second update instruction is executed. If the control strategy of the second update instruction is to turn off the energy storage module at 7:54 PM, then the status update instruction and the automatic control instruction are determined to be inconsistent; if the control strategy of the second update instruction is to turn on the energy storage module at 7:58 PM, then the status update instruction and the automatic control instruction are determined to be consistent. If the status update instruction and the automatic control instruction are inconsistent, execution of the automatic control instruction is terminated at 8:00 PM; if the status update instruction and the automatic control instruction are consistent, then the automatic control instruction is executed at 8:00 PM.

[0111] When the embodiment of the present application determines that the status update instruction is inconsistent with the automatic control instruction, which will cause the distribution equipment or energy storage module to be damaged by executing the automatic control instruction at a predetermined time point, it stops executing the automatic control instruction when the predetermined time point is reached, thereby avoiding the problem of damage to the distribution equipment or energy storage module caused by continuing to execute the automatic control instruction at the predetermined time point, so that the distribution equipment or energy storage module can be used normally.

[0112] In an embodiment of the present application, if the third update instruction is related to the automatic control instruction, and the third update instruction controls the output switch to be turned on or off differently from the automatic control instruction, that is, the automatic control instruction targets the output switch, but the control strategy of the automatic control instruction differs from the control strategy of the third update instruction. For example, if the control strategy of the automatic control instruction is to turn on the output switch at 3:00 AM, and the corresponding preset time period is 10 minutes, then at 2:50 AM, detection begins to check whether the third update instruction has been received, and upon receipt of the third update instruction, the third update instruction is executed. If the control strategy of the third update instruction is to turn off the power module at 2:57 AM, then the status update instruction and the automatic control instruction are determined to be inconsistent; if the control strategy of the third update instruction is to turn on the power module at 7:58 AM, then the status update instruction and the automatic control instruction are determined to be consistent. If the status update instruction and the automatic control instruction are inconsistent, execution of the automatic control instruction is terminated at 3:00 AM; if the status update instruction and the automatic control instruction are consistent, then the automatic control instruction is executed at 3:00 AM.

[0113] When the embodiment of the present application determines that the status update instruction is inconsistent with the automatic control instruction, which will cause the distribution equipment or the power-consuming module to be damaged by executing the automatic control instruction at a predetermined time point, it stops executing the automatic control instruction when the predetermined time point is reached, thereby avoiding the problem of damage to the distribution equipment or the power-consuming module caused by continuing to execute the automatic control instruction at the predetermined time point, so that the distribution equipment or the power-consuming module can be used normally.

[0114] In an exemplary embodiment of the present application, see Figure 6 The status update instruction includes a first fault instruction for the target switch triggered by a fault in the AC power module, a second fault instruction for the target switch triggered by a fault in the energy storage module, a third fault instruction for the target switch triggered by a fault in the power consumption module, or a fourth fault instruction for the target switch triggered by a fault in the power distribution equipment.

[0115] In step S330, it is determined whether the status update instruction is consistent with the automatic control instruction, including steps S610 and S620, which are described in detail as follows:

[0116] Step S610 , determining whether the automatic control instruction is related to the first fault instruction, the second fault instruction, or the third fault instruction.

[0117] In the embodiment of the present application, the mains module, the energy storage module and the power consumption module respectively trigger corresponding fault instructions when a fault occurs. The automatic control instruction and the status update instruction may be inconsistent. When there is inconsistency, the power distribution equipment will cause damage to the power distribution equipment or the energy storage module when the automatic control instruction is subsequently executed. For example, the above-mentioned control instruction includes an instruction object and a control strategy. It is determined whether the automatic control instruction is related to the first fault instruction, the second fault instruction or the third fault instruction, that is, whether the instruction object of the automatic control instruction is related to each fault instruction. If the automatic control instruction is for turning on or off the first switch, its instruction object is the first switch, and the status update instruction is the second fault instruction triggered when the energy storage module fails, the second fault instruction instructs the second switch to disconnect, and its corresponding instruction object is the second switch, then it can be determined that the automatic control instruction is not related to the second fault instruction.

[0118] Step S620: If the automatic control instruction is related to the first fault instruction, and the control of turning on or off the target switch by the first fault instruction is different from the automatic control instruction; or

[0119] The automatic control instruction is related to the second fault instruction, and the second fault instruction controls the on / off of the target switch differently from the automatic control instruction; or

[0120] The automatic control instruction is related to the third fault instruction, and the control of turning on or off the target switch by the third fault instruction is different from that of the automatic control instruction; or

[0121] The automatic control instruction is related to the fourth fault instruction, and the fourth fault instruction controls the on / off of the target switch differently from the automatic control instruction;

[0122] It is determined that the status update instruction and the automatic control instruction are inconsistent.

[0123] In an embodiment of the present application, if the automatic control instruction is related to the first fault instruction, and the control of the first fault instruction for turning the target switch on or off is different from the automatic control instruction. That is, the instruction object of the automatic control instruction is the first switch, and the first fault instruction is generated based on a fault in the mains module. Its corresponding control strategy may be to control the mains module to be disconnected, but the control strategy of the automatic control instruction is different from the control strategy of the first fault instruction. For example, if the control strategy of the automatic control instruction is to control the first switch to be turned on at 10 o'clock in the evening, and its corresponding preset time period is 10 minutes, then at 9:50 in the evening, it is detected whether the first fault instruction is received, and after receiving the first fault instruction, the first fault instruction is executed. If the control strategy of the first fault instruction is to control the mains module to be disconnected at 9:55, that is, to control the first switch to be disconnected, then it is determined that the status update instruction and the automatic control instruction are inconsistent; if the control strategy of the first fault instruction is to control the first switch to be turned on at 9:58, then it is determined that the status update instruction and the automatic control instruction are consistent. If the status update instruction and the automatic control instruction are inconsistent, the execution of the automatic control instruction will be stopped at ten o'clock in the evening; if the status update instruction and the automatic control instruction are consistent, the automatic control instruction will be executed at ten o'clock in the evening.

[0124] When the embodiment of the present application determines that the status update instruction is inconsistent with the automatic control instruction, which will cause damage to the distribution equipment due to the execution of the automatic control instruction at a predetermined time point, it stops executing the automatic control instruction when the predetermined time point is reached, thereby avoiding the problem of damage to the distribution equipment caused by continuing to execute the automatic control instruction at the predetermined time point, so that the distribution equipment can be used normally.

[0125] In an embodiment of the present application, if the automatic control instruction is associated with a second fault instruction, and the second fault instruction's control of turning the target switch on or off differs from the automatic control instruction, then the state update instruction and the automatic control instruction are determined to be inconsistent. Specifically, the automatic control instruction targets the second switch, and the second fault instruction is generated based on a fault in the energy storage module. Its corresponding control strategy may be to turn the energy storage module off, but the control strategy of the automatic control instruction differs from that of the second fault update instruction. For example, if the automatic control instruction's control strategy is to turn the second switch on at 8:00 PM, and its corresponding preset time period is 10 minutes, then at 7:50 PM, a check is initiated to determine whether the second fault instruction has been received. Upon receipt of the second fault instruction, the second fault instruction is executed. If the second fault instruction's control strategy is to turn the second switch off, then the state update instruction and the automatic control instruction are determined to be inconsistent. If the second fault instruction's control strategy is to turn the second switch on at 7:58 PM, then the state update instruction and the automatic control instruction are determined to be consistent. If the state update instruction and the automatic control instruction are inconsistent, then execution of the automatic control instruction is terminated at 8:00 PM. If the state update instruction and the automatic control instruction are consistent, then execution of the automatic control instruction is resumed at 8:00 PM.

[0126] When the embodiment of the present application determines that the status update instruction is inconsistent with the automatic control instruction, which will cause damage to the distribution equipment due to the execution of the automatic control instruction at a predetermined time point, it stops executing the automatic control instruction when the predetermined time point is reached, thereby avoiding the problem of damage to the distribution equipment caused by continuing to execute the automatic control instruction at the predetermined time point, so that the distribution equipment can be used normally.

[0127] In an embodiment of the present application, if the automatic control instruction is related to the third fault instruction, and the third fault instruction's control of turning the target switch on or off is different from the automatic control instruction, then the state update instruction and the automatic control instruction are determined to be inconsistent. That is, the instruction target of the automatic control instruction is the output switch, and the third fault instruction is generated based on a fault in the power module. Its corresponding control strategy may be to control the power module to be disconnected, but the control strategy of the automatic control instruction is different from the control strategy of the third update instruction. For example, if the control strategy of the automatic control instruction is to control the output switch to be turned on at 3:00 a.m., and its corresponding preset time period is 10 minutes, then at 2:50 a.m., detection is started to determine whether the third fault instruction has been received. After receiving the third fault instruction, the third fault instruction is executed. If the control strategy of the third fault instruction is to control the output switch to be turned off at 2:57 a.m., then the state update instruction and the automatic control instruction are determined to be inconsistent; if the control strategy of the third fault instruction is to control the output switch to be turned on at 7:58 a.m., then the state update instruction and the automatic control instruction are determined to be consistent. If the status update instruction and the automatic control instruction are inconsistent, the execution of the automatic control instruction will be stopped at three o'clock in the morning; if the status update instruction and the automatic control instruction are consistent, the automatic control instruction will be executed at three o'clock in the morning.

[0128] When the embodiment of the present application determines that a status update instruction is inconsistent with an automatic control instruction, which would cause damage to the power distribution equipment if the automatic control instruction were executed at a predetermined time, the execution of the automatic control instruction is stopped at the predetermined time. This avoids the problem of damage to the power distribution equipment caused by continued execution of the automatic control instruction at the predetermined time, allowing the power distribution equipment to function normally.

[0129] In an embodiment of the present application, if the automatic control instruction is associated with a fourth fault instruction, and the fourth fault instruction's control of turning on or off the target switches differs from the automatic control instruction. That is, the automatic control instruction targets the first switch, the second switch, and the output switch, and the fourth fault instruction is generated based on a fault in the power distribution module, its corresponding control strategy is to control the power distribution device to disconnect from the mains module, the energy storage module, and the power consumption module, respectively. However, the control strategy of the automatic control instruction differs from the control strategy of the fourth fault instruction. For example, if the control strategy of the automatic control instruction is to control the output switch to be turned on at two points, and its corresponding preset time period is 10 minutes, then at 1:50, detection begins to determine whether the fourth fault instruction has been received. Upon receipt of the fourth fault instruction, the fourth fault instruction is executed. If the control strategy of the fourth fault instruction is to control the power distribution device to be turned off from the mains module, the energy storage module, and the power consumption module, respectively, i.e., to control the first switch, the second switch, and the output switch to be turned off, then the state update instruction and the automatic control instruction are determined to be inconsistent. If the control strategy of the fourth fault instruction is to control the output switch to be turned on at 1:54, then the state update instruction and the automatic control instruction are determined to be consistent. If the status update instruction and the automatic control instruction are inconsistent, the execution of the automatic control instruction is stopped at 2 o'clock; if the status update instruction and the automatic control instruction are consistent, the automatic control instruction is executed at 2 o'clock.

[0130] When an embodiment of the present application determines that a status update instruction is inconsistent with an automatic control instruction, which will cause damage to the power distribution equipment when the automatic control instruction is executed at a predetermined time point, the automatic control instruction is stopped from being executed when the predetermined time point is reached, thereby avoiding the problem of damage to the power distribution equipment or power consumption module caused by continuing to execute the automatic control instruction at the predetermined time point, so that the power distribution equipment or power consumption module can be used normally.

[0131] In an exemplary embodiment of the present application, see Figure 7 The power distribution equipment is also used to connect to the smart terminal. The status update instruction includes the current control instruction sent by the smart terminal at the current moment. The current control instruction includes an update instruction for controlling the on or off of the target switch at the current moment.

[0132] In step S330, it is determined whether the status update instruction is consistent with the automatic control instruction, including steps S710 to S730, which are described in detail as follows:

[0133] Step S710: determine whether the automatic control instruction is related to the current control instruction.

[0134] In an embodiment of the present application, the power distribution device is connected to at least one smart terminal, and the smart terminal includes any electronic device such as a smart phone, a tablet, a laptop computer, or a computer that can have an application corresponding to the power distribution device. The user can operate in the application corresponding to the power distribution device to generate a current control instruction for controlling the target switch, and send the current control instruction at the current moment through the smart terminal. After receiving the current control instruction, it is determined whether the automatic control instruction is related to the current control instruction, that is, whether the instruction object of the automatic control instruction is related to the instruction object of the current control instruction. For example, if the automatic control instruction is to turn on or off the first switch, its instruction object is the first switch, and the current control instruction is to turn on or off the output switch at the current moment, its corresponding instruction object is the output switch, then it can be determined that the automatic control instruction is not related to the current control instruction.

[0135] Step S720 : If the current control instruction is related to the automatic control instruction, and the current control instruction for turning on or off the target switch is different from the automatic control instruction, the time difference between the current moment and the predetermined time point is calculated.

[0136] In an embodiment of the present application, if the current control instruction is related to the automatic control instruction, and the current control instruction is different from the automatic control instruction in controlling the on or off of the target switch, that is, the instruction object of the automatic control instruction is the same as the instruction object of the current control instruction. For example, the automatic control instruction and the current control instruction both control the first switch, but the control strategy of the automatic control instruction is different from the control strategy of the current control instruction. If the control strategy of the automatic control instruction is to control the first switch to be turned on at 10 pm, and the corresponding preset time period is 10 minutes, then at 9:50 pm, it will start to detect whether the current control instruction is received, and after receiving the current control instruction, it will execute the current control instruction. If the control strategy of the current control instruction is to control the first switch to be turned off at 9:58 pm, then the time difference between the current moment and the predetermined time point is calculated, and the calculated time difference is two minutes.

[0137] Step S730: If the time difference is less than or equal to the preset time difference, it is determined that the state update instruction and the automatic control instruction are inconsistent.

[0138] In an embodiment of the present application, the above-mentioned preset time difference can be pre-set to a fixed time value, such as setting the preset time difference to five minutes or ten minutes, etc., or a corresponding time value can be determined as the preset time difference based on the connection status of the first switch and the AC power module and the connection status of the second switch and the energy storage module.

[0139] The time difference is compared with the preset time difference. If the time difference is less than or equal to the preset time difference, it is determined that the state update instruction and the automatic control instruction are inconsistent; if the time difference is greater than the preset time difference, it is determined that the state update instruction and the automatic control instruction are consistent. In the embodiment of the present application, whether the two are consistent is determined by the time difference between the current control instruction and the automatic control instruction. When the time difference is greater than the preset time difference, it indicates that the execution time interval between the two control instructions is long. When the automatic control instruction is executed at the predetermined time point, it will not cause damage to the distribution equipment or the energy storage module, and the distribution equipment and the energy storage module can be used normally.

[0140] In another embodiment of the present application, the power distribution device further includes a first button for controlling the on / off switching of the first switch, a second button for controlling the on / off switching of the second switch, and a third button for controlling the on / off switching of the output switch, and the state update instruction includes a current control instruction generated by triggering the first button, the second button, or the third button at the current moment. A user manually operates the first button, the second button, or the third button to control the on / off switching of the corresponding switch, and when the user manually operates the button at the current moment, the current control instruction is generated accordingly.

[0141] In an exemplary embodiment of the present application, see Figure 8 The power distribution equipment is also used to connect to the smart terminal. The status update instruction includes a preset control instruction sent by the smart terminal. The preset control instruction includes an update instruction for controlling the on or off of the target switch at a to-be-determined time point.

[0142] The preset control instructions in the embodiment of the present application are executed at a to-be-determined time point, while the above-mentioned current control instructions are executed at the current moment when the instructions are received. The preset control instructions provided by the present application allow users to pre-determine the time point for executing the preset control instructions on the smart terminal, enabling users to more selectively configure the preset control instructions when controlling the power distribution equipment, providing users with convenience in controlling the power distribution equipment.

[0143] In step S330, it is determined whether the status update instruction is consistent with the automatic control instruction, including steps S810 to S830, which are described in detail as follows:

[0144] Step S810: determining whether the automatic control instruction is related to the preset control instruction.

[0145] In an embodiment of the present application, the power distribution device is connected to at least one smart terminal, and the smart terminal includes any electronic device such as a smart phone, a tablet, a laptop computer, a computer, etc. that can have an application corresponding to the power distribution device. The user can operate in the application corresponding to the power distribution device, set the preset control instruction for controlling the target switch to be executed at a to-be-determined time point, and send the preset control instruction through the smart terminal. After receiving the preset control instruction, it is determined whether the automatic control instruction is related to the preset control instruction, that is, whether the instruction object of the automatic control instruction is related to the instruction object of the preset control instruction. If the automatic control instruction is to turn on or off the first switch, its instruction object is the first switch, and the preset control instruction is to turn on or off the output switch at a to-be-determined time, its corresponding instruction object is the output switch, then it can be determined that the automatic control instruction is not related to the preset control instruction.

[0146] In step S820 , if the preset control instruction is related to the automatic control instruction, and the preset control instruction and the automatic control instruction are different in controlling the target switch to be turned on or off, a time difference between the pending time point and the predetermined time point is calculated.

[0147] In an embodiment of the present application, if the preset control instruction is related to the automatic control instruction, and the preset control instruction controls the on / off of the target switch differently from the automatic control instruction. That is, the instruction object of the automatic control instruction is the same as the instruction object of the preset control instruction. For example, both the automatic control instruction and the preset control instruction control the first switch, but the control strategy of the automatic control instruction is different from the control strategy of the preset control instruction. For example, if the control strategy of the automatic control instruction is to control the first switch to be turned on at 10 o'clock, and the corresponding preset time period is 10 minutes, then at 9:50, a check is started to determine whether there is a preset control instruction with a pending time point within the time range of 9:50 to 10 o'clock. If a preset control instruction exists, the preset control instruction is executed at the pending time point. If the control strategy of the preset control instruction is to control the first switch to be turned off at 9:55, the time difference between the pending time point and the predetermined time point is calculated, and the obtained time difference is 5 minutes.

[0148] Step S830: If the time difference is less than or equal to the preset time difference, it is determined that the state update instruction and the automatic control instruction are inconsistent.

[0149] In an embodiment of the present application, the time difference is compared with a preset time difference. If the time difference is less than or equal to the preset time difference, it is determined that the state update instruction and the automatic control instruction are inconsistent; if the time difference is greater than the preset time difference, it is determined that the state update instruction and the automatic control instruction are consistent. In an embodiment of the present application, whether the two are consistent is determined by the time difference between the current control instruction and the automatic control instruction. When the time difference is greater than the preset time difference, it indicates that the execution time interval between the two control instructions is long. When the automatic control instruction is executed at the predetermined time point, it will not cause damage to the distribution equipment or the energy storage module, and the distribution equipment and the energy storage module can be used normally.

[0150] In an exemplary embodiment of the present application, see Figure 9 In step S610, it is determined whether the automatic control instruction is related to the first fault instruction, the second fault instruction, or the third fault instruction, including steps S910 to S930, which are detailed as follows:

[0151] Step S910: If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the first fault instruction, it is determined that the automatic control instruction is related to the first fault instruction.

[0152] In an embodiment of the present application, the first fault instruction is triggered when the AC power module fails. When the AC power module fails, the first switch, the second switch or the output switch will be controlled to be turned on or off. If the automatic control instruction contains at least one instruction for turning on or off the first switch, the second switch or the output switch that is the same as the first fault instruction, it is determined that the automatic control instruction is related to the first fault instruction.

[0153] Step S920: If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the second fault instruction, it is determined that the automatic control instruction is related to the first fault instruction.

[0154] In an embodiment of the present application, the second fault instruction is triggered when a fault occurs in the energy storage module. When a fault occurs in the energy storage module, the first switch, the second switch or the output switch will be controlled to be turned on or off. If the automatic control instruction contains at least one instruction for turning on or off the first switch, the second switch or the output switch that is the same as the second fault instruction, it is determined that the automatic control instruction is related to the first fault instruction.

[0155] Step S930: If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the third fault instruction, it is determined that the automatic control instruction is related to the first fault instruction.

[0156] In an embodiment of the present application, the third fault instruction is triggered by the power module when a fault occurs. When the power module fails, the first switch, the second switch or the output switch will be controlled to be turned on or off. If the automatic control instruction contains at least one instruction for turning on or off the first switch, the second switch or the output switch that is the same as the third fault instruction, it is determined that the automatic control instruction is related to the first fault instruction.

[0157] In the embodiment of this application, Figure 5 、 Figure 7 and Figure 8 In the corresponding embodiment, when determining whether the automatic control instruction is related to the corresponding state update instruction, it can be determined based on the principles corresponding to steps S910 to S930, which will not be described in detail here.

[0158] In an exemplary embodiment of the present application, the automatic control instructions include control instructions at multiple levels, and the control instructions at the multiple levels correspond to different preset time periods.

[0159] In an embodiment of the present application, multiple levels are set for automatic control instructions, each automatic control instruction can be matched to a level, and the control instructions of each level correspond to a preset time period. The preset time period corresponding to each level can better fit the requirements of the control instructions of the corresponding level, so that the subsequent judgment of whether the status update instruction is consistent with the automatic control instruction is more accurate.

[0160] For example, there are five levels of automatic control instructions, from level 1 to level 5, with the corresponding preset time periods decreasing in sequence. For example, the preset time period for level 1 is 20 minutes, the preset time period for level 2 is 17 minutes, the preset time period for level 3 is 14 minutes, the preset time period for level 4 is 11 minutes, and the preset time period for level 5 is 9 minutes. By determining the level to which the automatic control instruction corresponds, the corresponding preset time period can be determined.

[0161] In an exemplary embodiment of the present application, see Figure 10 After stopping the execution of the automatic control instruction in step S340, the power distribution control method further includes steps S1010 to S1030, which are described in detail as follows:

[0162] Step S1010, obtaining an instruction mapping table.

[0163] In the embodiment of the present application, a pre-configured command mapping table records the control commands for different states in the event that the automatic control command and the state update command are inconsistent. For example, the command mapping table records the control command corresponding to when the automatic control command is directed to the first switch and the state update command is directed to the output switch; or the control command corresponding to when the automatic control command is directed to the output switch and the state update command is directed to the second switch, etc. Different control commands correspond to different situations. In other words, the command mapping table contains multiple mapping tables of state update commands, automation commands, and power distribution control commands. Once the state update command and automation command are determined, the power distribution control command can be derived based on the command mapping table.

[0164] Step S1020: Generate corresponding power distribution control instructions according to the instruction mapping table, the status update instruction and the automatic control instruction.

[0165] In an embodiment of the present application, when a state update instruction and an automatic control instruction are inconsistent, a corresponding power distribution control instruction is generated based on the instruction mapping table, the state update instruction, and the automatic control instruction. Specifically, the control object and control strategy in the automatic control instruction and the state update instruction are extracted respectively, and a target range is matched in the instruction mapping table based on the control object. The target range records multiple control instructions that are adapted to the state update instruction and the automatic control instruction. Then, a matching control instruction is determined in the target range based on the control strategy, and the power distribution control instruction is generated.

[0166] Step S1030: executing the power distribution control instruction.

[0167] In the embodiment of the present application, the generated power distribution control instruction can be executed at the current time of generation, or at a corresponding subsequent time point. When the time reaches the corresponding execution time point, the power distribution control instruction is executed.

[0168] In an exemplary embodiment of the present application, see Figure 11 , Figure 11 A power distribution control device according to an exemplary embodiment includes:

[0169] The power distribution control device is used for power distribution equipment and includes:

[0170] A first acquisition module 1110 is configured to acquire an automatic control instruction, where the automatic control instruction is used to turn on or off a target switch at a predetermined time point, where the target switch includes at least one of a first switch, a second switch, and an output switch;

[0171] The detection module 1120 is configured to detect whether a state update instruction is received within a preset time period before a predetermined time point, where the state update instruction includes an update instruction for controlling the on or off of a target switch;

[0172] The judgment module 1130 is configured to execute the status update instruction upon receiving the status update instruction, and after executing the status update instruction, determine whether the status update instruction is consistent with the automatic control instruction;

[0173] The execution stop module 1140 is configured to stop executing the automatic control instruction when a predetermined time point is reached if the status update instruction and the automatic control instruction are inconsistent.

[0174] In an exemplary embodiment of the present application, the status update instruction includes a first update instruction triggered when the mains module is connected or disconnected, a second update instruction triggered when the energy storage module is connected or disconnected, or a third update instruction triggered when the power module is connected or disconnected; the first update instruction is used to control the first switch to be turned on or off, the second update instruction is used to control the first switch to be turned on or off, and the third update instruction is used to control the output switch to be turned on or off;

[0175] The judgment module 1130 includes:

[0176] a first determination submodule configured to determine whether the automatic control instruction is related to the first update instruction, the second update instruction, or the third update instruction;

[0177] The first determining submodule is configured to determine whether the first update instruction is related to the automatic control instruction, and the first update instruction is different from the automatic control instruction in controlling the first switch to be turned on or off; or

[0178] The second update instruction is related to the automatic control instruction, and the second update instruction controls the second switch to be turned on or off differently from the automatic control instruction; or

[0179] The third update instruction is related to the automatic control instruction, and the third update instruction is different from the automatic control instruction in controlling the output switch to be turned on or off;

[0180] It is determined that the status update instruction and the automatic control instruction are inconsistent.

[0181] In an exemplary embodiment of the present application, the status update instruction includes a first fault instruction for the target switch triggered by a fault in the mains module, a second fault instruction for the target switch triggered by a fault in the energy storage module, a third fault instruction for the target switch triggered by a fault in the power module, or a fourth fault instruction for the target switch triggered by a fault in the power distribution equipment;

[0182] The judgment module 1130 includes:

[0183] a second judgment submodule, configured to judge whether the automatic control instruction is related to the first fault instruction, the second fault instruction or the third fault instruction;

[0184] The second determining submodule is configured to determine if the automatic control instruction is related to the first fault instruction, and the first fault instruction is different from the automatic control instruction in controlling the turning on or off of the target switch; or

[0185] The automatic control instruction is related to the second fault instruction, and the second fault instruction controls the on / off of the target switch differently from the automatic control instruction; or

[0186] The automatic control instruction is related to the third fault instruction, and the control of turning on or off the target switch by the third fault instruction is different from that of the automatic control instruction; or

[0187] The automatic control instruction is related to the fourth fault instruction, and the fourth fault instruction controls the on / off of the target switch differently from the automatic control instruction;

[0188] It is determined that the status update instruction and the automatic control instruction are inconsistent.

[0189] In an exemplary embodiment of the present application, the power distribution device is further configured to connect to a smart terminal, and the state update instruction includes a current control instruction sent by the smart terminal at a current moment, and the current control instruction includes an update instruction for controlling the target switch to be turned on or off at the current moment;

[0190] The judgment module 1130 includes:

[0191] a third judgment submodule, configured to judge whether the automatic control instruction is related to the current control instruction;

[0192] a first calculation submodule configured to calculate a time difference between a current moment and a predetermined time point if the current control instruction is related to the automatic control instruction and the current control instruction for turning on or off the target switch is different from the automatic control instruction;

[0193] The third determining submodule is configured to determine that the state update instruction and the automatic control instruction are inconsistent if the time difference is less than or equal to a preset time difference.

[0194] In an exemplary embodiment of the present application, the power distribution device is further configured to connect to a smart terminal, and the state update instruction includes a preset control instruction sent by the smart terminal, wherein the preset control instruction includes an update instruction for controlling the on or off of a target switch at a to-be-determined time point;

[0195] The judgment module 1130 includes:

[0196] a fourth determination submodule, configured to determine whether the automatic control instruction is related to the preset control instruction;

[0197] a second calculation submodule configured to calculate a time difference between the pending time point and the predetermined time point if the preset control instruction is related to the automatic control instruction and the preset control instruction and the automatic control instruction are different in controlling the on or off of the target switch;

[0198] The fourth determining submodule is configured to determine that the state update instruction and the automatic control instruction are inconsistent if the time difference is less than or equal to a preset time difference.

[0199] In an exemplary embodiment of the present application, the second judgment submodule includes:

[0200] a first determining unit configured to determine that the automatic control instruction is related to the first fault instruction if the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the first fault instruction;

[0201] a second determining unit configured to determine that the automatic control instruction is related to the first fault instruction if the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the second fault instruction;

[0202] The third determining unit is configured to determine that the automatic control instruction is related to the first fault instruction if the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch or the output switch that is the same as the third fault instruction.

[0203] In an exemplary embodiment of the present application, the automatic control instructions include control instructions at multiple levels, and the control instructions at the multiple levels correspond to different preset time periods.

[0204] In an exemplary embodiment of the present application, the power distribution control device further includes:

[0205] A second acquisition module is configured to acquire an instruction mapping table;

[0206] A generation module configured to generate corresponding power distribution control instructions according to the instruction mapping table, the state update instruction and the automatic control instruction;

[0207] The execution module is configured to execute the power distribution control instructions.

[0208] It should be noted that the apparatus provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0209] In an exemplary embodiment of the present application, reference is made to Figure 2The present application provides a power distribution device 200, which includes a first switch K1, a second switch K2, an output switch K0, and a main control chip. The first switch K1 is used to connect to the mains module, the second switch K2 is used to connect to the energy storage module, and the output switch K0 is used to connect to the power module. The power distribution device 200 is used to control the on and off of the first switch K1, the second switch K2, and the output switch K0 to enable the mains module or the energy storage module to output power to the power module or the mains module to output power to the energy storage module;

[0210] The main control chip is connected to the control ends of the first switch K1, the second switch K2 and the output switch K0. The main control chip is used to store one or more programs. When one or more programs are executed by one or more processors, the main control chip implements any of the above-mentioned power distribution control methods.

[0211] In an embodiment of the present application, before executing the automatic control instruction, if a status update instruction is detected, the status update instruction is executed first, and it is determined whether the status update instruction and the automatic control instruction are consistent; when it is determined that the status update instruction is inconsistent with the automatic control instruction, indicating that executing the automatic control instruction will cause damage to the power distribution equipment 200, the execution of the automatic control instruction is stopped when the predetermined time point is reached, thereby avoiding the problem of damage to the power distribution equipment 200 caused by continuing to execute the automatic control instruction at the predetermined time point, so that the power distribution equipment 200 can be used normally.

[0212] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the power distribution control method provided in the above-mentioned embodiments.

[0213] Figure 12 A schematic diagram of the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application is shown.

[0214] It should be noted that Figure 12 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0215] like Figure 12As shown, the computer system 1200 includes a central processing unit (CPU) 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1202 or the program loaded from the storage part 1208 to the random access memory (RAM) 1203, such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM 1203. The CPU 1201, ROM 1202 and RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0216] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output section 1207 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage section 1208 including a hard disk; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I / O interface 1205 as needed. Removable media 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 1210 as needed, so that computer programs read from the removable media can be installed in the storage section 1208 as needed.

[0217] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1209, and / or installed from a removable medium 1211. When the computer program is executed by the central processing unit (CPU) 1201, the various functions defined in the system of the present application are executed.

[0218] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0219] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0220] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. In some cases, the names of these units do not constitute limitations on the units themselves.

[0221] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned method. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being incorporated into the electronic device.

[0222] Another aspect of the present application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the above embodiments.

[0223] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main ideas and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A power distribution control method, characterized in that: For power distribution equipment, the power distribution equipment includes a first switch, a second switch and an output switch, the first switch is used to connect to the mains module, the second switch is used to connect to the energy storage module, and the output switch is used to connect to the power module. The power distribution equipment is used to control the on and off of the first switch, the second switch and the output switch to enable the mains module or the energy storage module to output electric energy to the power module or the mains module to output electric energy to the energy storage module. The method includes: Acquire an automatic control instruction, where the automatic control instruction is used to turn on or off a target switch at a predetermined time point, where the target switch includes at least one of the first switch, the second switch, and the output switch; Within a preset time period before the predetermined time point, detecting whether a status update instruction is received, the status update instruction including a first fault instruction for the target switch triggered by a fault in the mains module, a second fault instruction for the target switch triggered by a fault in the energy storage module, a third fault instruction for the target switch triggered by a fault in the power consumption module, or a fourth fault instruction for the target switch triggered by a fault in the power distribution equipment; Upon receiving the state update instruction, executing the state update instruction, and after executing the state update instruction, determining whether the state update instruction is consistent with the automatic control instruction; If the state update instruction and the automatic control instruction are inconsistent, stopping the execution of the automatic control instruction when the predetermined time point is reached; Wherein, the determining whether the status update instruction is consistent with the automatic control instruction includes: determining whether the automatic control instruction is related to the first fault instruction, the second fault instruction, or the third fault instruction; If the automatic control instruction is related to the first fault instruction, and the control of turning on or off the target switch by the first fault instruction is different from that by the automatic control instruction; or The automatic control instruction is related to the second fault instruction, and the second fault instruction controls the on / off of the target switch differently from the automatic control instruction; or The automatic control instruction is related to the third fault instruction, and the control of turning on or off the target switch by the third fault instruction is different from that by the automatic control instruction; or The automatic control instruction is related to the fourth fault instruction, and the fourth fault instruction controls the on / off of the target switch differently from the automatic control instruction; It is determined that the status update instruction and the automatic control instruction are inconsistent.

2. The method according to claim 1, wherein The status update instruction also includes a first update instruction triggered when the mains module is connected or disconnected, a second update instruction triggered when the energy storage module is connected or disconnected, or a third update instruction triggered when the power module is connected or disconnected; the first update instruction is used to control the first switch to be turned on or off, the second update instruction is used to control the first switch to be turned on or off, and the third update instruction is used to control the output switch to be turned on or off; The determining whether the status update instruction is consistent with the automatic control instruction includes: determining whether the automatic control instruction is related to the first update instruction, the second update instruction, or the third update instruction; If the first update instruction is related to the automatic control instruction, and the control of turning on or off the first switch by the first update instruction is different from that by the automatic control instruction; or The second update instruction is related to the automatic control instruction, and the second update instruction is different from the automatic control instruction in controlling the second switch to be turned on or off; or The third update instruction is related to the automatic control instruction, and the control of turning on or off the output switch by the third update instruction is different from that by the automatic control instruction; It is determined that the status update instruction and the automatic control instruction are inconsistent.

3. The method according to claim 1, wherein The power distribution device is further configured to connect to an intelligent terminal, wherein the state update instruction includes a current control instruction sent by the intelligent terminal at a current moment, and the current control instruction includes an update instruction for controlling the target switch to be turned on or off at a current moment; The determining whether the status update instruction is consistent with the automatic control instruction includes: Determining whether the automatic control instruction is related to the current control instruction; If the current control instruction is related to the automatic control instruction, and the current control instruction for controlling the target switch to be turned on or off is different from the automatic control instruction, calculating the time difference between the current moment and the predetermined time point; If the time difference is less than or equal to the preset time difference, it is determined that the state update instruction and the automatic control instruction are inconsistent.

4. The method according to claim 1, wherein The power distribution equipment is further configured to connect to a smart terminal, wherein the status update instruction includes a preset control instruction sent by the smart terminal, and the preset control instruction includes an update instruction for controlling the target switch to be turned on or off at a to-be-determined time point; The determining whether the status update instruction is consistent with the automatic control instruction includes: Determining whether the automatic control instruction is related to the preset control instruction; If the preset control instruction is related to the automatic control instruction, and the preset control instruction controls the on or off of the target switch differently from the automatic control instruction, calculating a time difference between the pending time point and the predetermined time point; If the time difference is less than or equal to the preset time difference, it is determined that the state update instruction and the automatic control instruction are inconsistent.

5. The method according to claim 1, wherein The determining whether the automatic control instruction is related to the first fault instruction, the second fault instruction, or the third fault instruction includes: If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the first fault instruction, then it is determined that the automatic control instruction is related to the first fault instruction; If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the second fault instruction, then it is determined that the automatic control instruction is related to the first fault instruction; If the automatic control instruction includes at least one instruction for turning on or off the first switch, the second switch, or the output switch that is the same as the third fault instruction, it is determined that the automatic control instruction is related to the first fault instruction.

6. The method according to claim 1, wherein The automatic control instructions include control instructions at multiple levels, and the control instructions at multiple levels correspond to different preset time periods.

7. The method according to any one of claims 1 to 6, characterized in that After stopping the execution of the automatic control instruction, the method further includes: Get the instruction mapping table; Generate a corresponding power distribution control instruction according to the instruction mapping table, the state update instruction and the automatic control instruction; Execute the power distribution control instruction.

8. A power distribution device, characterized in that: include: The power distribution equipment includes a first switch, a second switch, an output switch and a main control chip, the first switch is used to connect the mains module, the second switch is used to connect the energy storage module, and the output switch is used to connect the power module. The power distribution equipment is used to control the on and off of the first switch, the second switch and the output switch to enable the mains module or the energy storage module to output electric energy to the power module or the mains module to output electric energy to the energy storage module; The main control chip is connected to the control ends of the first switch, the second switch and the output switch. The main control chip is used to store one or more programs. When the one or more programs are executed by the one or more processors, the main control chip implements the power distribution control method as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the power distribution control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • High-voltage solid-state power distribution control system suitable for multi-source input

    CN103616822A

  • High-reliability intelligent power distribution control switch and method with breakpoint recovery function

    CN112803595A