Electricity data storage device, method, controller and multi-connection system

The optocoupler detection circuit determines the power-off event and realizes the timely storage of power data. It solves the problem of frequent erasing and writing that affects the chip life and data inaccuracy, and improves the accuracy of power data and the life of the memory chip.

CN113606762BActive Publication Date: 2024-09-20GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110769018.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-07
Publication Date
2024-09-20
Estimated Expiration
2041-07-07

AI Technical Summary

Technical Problem

In the existing power data storage method, frequent erasing and writing operations affect the life of the memory chip, and when the unit unexpectedly loses power, data is not written in time, resulting in inaccurate power data.

Method used

An optocoupler detection circuit is used to detect the level signal of the power supply to determine whether a power outage event occurs. When a power outage occurs, the power data is stored in time to avoid frequent erasing and writing of the memory chip.

Benefits of technology

It extends the life of the memory chip, improves the accuracy of power data, and realizes timely storage by detecting power-off events through hardware circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113606762B
    Figure CN113606762B
Patent Text Reader

Abstract

The present application relates to an electric quantity data storage device, method, controller and multi-connection system, wherein the electric quantity data storage device comprises an optocoupler detection circuit, wherein the input end of the optocoupler detection circuit is connected to a power supply, the output end of the optocoupler detection circuit is used to output a level signal, and the level signal changes according to the output voltage change of the power supply, a control module is connected to the optocoupler detection circuit, and is used to obtain the output level signal of the optocoupler detection circuit, and judge whether a power failure event occurs according to the output level signal, and a storage module is connected to the control module, and is used to store electric quantity data when a power failure event occurs. The present application detects whether a power failure event occurs through a hardware circuit to realize timely storage of electric quantity data without having to frequently erase and write the storage chip, thereby extending the life of the storage chip and improving the accuracy of the stored electric quantity data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of power storage, and in particular relates to a power data storage device, method, controller and multi-connection system. Background Art

[0002] At present, many electrical appliances, such as air conditioners, have the function of electricity metering. The electricity metering function often needs to store a large amount of electricity data according to the electricity parameters that need to be calculated. These electricity data need to be written into the chip with storage function at regular intervals. However, due to the limit of the number of erase and write times of the storage chip, it is impossible to erase and write unlimitedly, and frequent erase and write operations affect the life of the storage chip; in addition, when the unit loses power abnormally, the electricity data before the power failure is not written into the storage chip in time, resulting in inaccurate electricity data. Summary of the invention

[0003] In order to at least to some extent overcome the problem that frequent erasing and writing operations affect the life of storage chips during power data storage, and when the unit loses power abnormally, the power data before the power failure is not written into the storage chip in time, resulting in inaccurate power data, the present application provides a power data storage device, method, controller and multi-connected system.

[0004] In a first aspect, the present application provides an electric quantity data storage device, comprising:

[0005] An optocoupler detection circuit, wherein an input end of the optocoupler detection circuit is connected to a power supply, and an output end of the optocoupler detection circuit is used to output a level signal, and the level signal changes according to a change in an output voltage of the power supply;

[0006] A control module, connected to the optocoupler detection circuit, for obtaining an output level signal of the optocoupler detection circuit, and determining whether a power-off event occurs according to the output level signal;

[0007] The storage module is connected to the control module and is used to store the power data when a power failure occurs.

[0008] Furthermore, the optical coupler detection circuit includes:

[0009] A first optocoupler chip and a second optocoupler chip;

[0010] A first diode, an input positive electrode of the first optocoupler chip is connected to an output end of the first diode, an input end of the first diode is connected to a live wire of a power supply, an input negative electrode of the first optocoupler chip is connected to a neutral wire of a power supply, an output end of the first optocoupler chip is connected to a first output end, and when the first optocoupler chip is turned on, the first output end outputs a low level, otherwise the first output end outputs a high level;

[0011] A second diode, an input positive electrode of the second optocoupler chip is connected to an output end of the second diode, an input end of the second diode is connected to a neutral line of a power supply, an input negative electrode of the second optocoupler chip is connected to a live line of a power supply, an output end of the second optocoupler chip is connected to a second output end, and when the second optocoupler chip is turned on, the second output end outputs a low level, otherwise the second output end outputs a high level.

[0012] Furthermore, it also includes:

[0013] A first current limiting resistor, wherein the first current limiting resistor is arranged between the first optocoupler chip and the first diode;

[0014] A second current limiting resistor is arranged between the second optocoupler chip and the second diode.

[0015] Furthermore, it also includes:

[0016] A first pull-up resistor, wherein the first pull-up resistor is connected to an output end of the first optocoupler chip;

[0017] A second pull-up resistor is connected to the output end of the second optocoupler chip.

[0018] Furthermore, it also includes:

[0019] AC filter module, the optocoupler detection circuit is arranged between the power supply and the AC filter module.

[0020] Furthermore, it also includes:

[0021] A rectifier and filter module is provided between the AC filter module and the load.

[0022] Furthermore, the rectification and filtering module includes:

[0023] A rectifier bridge and a filter capacitor, wherein the filter capacitor is connected in parallel to the output end of the rectifier bridge.

[0024] Furthermore, it also includes:

[0025] A negative temperature coefficient thermistor is arranged between the AC filter module and the rectifier filter module to suppress surge current.

[0026] In a second aspect, the present application provides a method for storing electric quantity data, comprising:

[0027] Detecting a level signal at an output end of an optocoupler detection circuit connected to a power supply;

[0028] Determining whether a power-off event occurs according to a level signal at an output end of the optocoupler detection circuit;

[0029] The power data is stored when a power failure occurs.

[0030] Furthermore, it also includes:

[0031] Setting a detection cycle, and detecting a level signal at an output end of an optocoupler detection circuit connected to a power supply according to the detection cycle;

[0032] The detection period t=(T1+T2) / 10, the detection period t is in seconds, wherein T1 is the duration of the first optocoupler chip in the optocoupler detection circuit outputting a high level; T2 is the duration of the first optocoupler chip in the optocoupler detection circuit outputting a low level.

[0033] Further, judging whether a power-off event occurs according to the level signal at the output end of the optocoupler detection circuit includes:

[0034] If the output level of the output terminal of the first optocoupler chip is opposite to the output level of the output terminal of the second optocoupler chip, and the output level of the output terminal of the first optocoupler chip flips once within the first preset time length, it is determined that the power supply is normal;

[0035] If the output level of the first optocoupler chip output terminal and the output level of the second optocoupler chip output terminal are both detected to be high level for a second preset time period, it is considered that a power failure event occurs;

[0036] If the output levels of the first optocoupler chip output terminal and the second optocoupler chip output terminal are both detected to be low levels for a third consecutive preset time period or the output levels of the first optocoupler chip output terminal and the second optocoupler chip output terminal have not flipped, it is determined that the optocoupler detection circuit is abnormal.

[0037] Furthermore, it also includes:

[0038] When the optocoupler detection circuit is abnormal, a prompt message is sent, and the prompt message includes a push notification and a display page power warning abnormality.

[0039] In a third aspect, the present application provides a controller, comprising:

[0040] The electric quantity data storage device as described in the first aspect.

[0041] In a fourth aspect, the present application provides a multi-link system, comprising:

[0042] External unit, compressor drive, multiple internal units and multiple wired controllers;

[0043] The external machine is provided with the controller as described in the third aspect.

[0044] Further, the controller is drivingly connected to the compressor;

[0045] Furthermore, each wire controller is connected to an indoor unit, and the wire controller is used to display the power level of the corresponding indoor unit.

[0046] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0047] The embodiments of the present invention provide an electric quantity data storage device, method, controller and multi-split system, wherein the electric quantity data storage device includes an optocoupler detection circuit, wherein the input end of the optocoupler detection circuit is connected to a power supply, and the output end of the optocoupler detection circuit is used to output a level signal, and the level signal changes according to the output voltage of the power supply. A control module is connected to the optocoupler detection circuit and is used to obtain the output level signal of the optocoupler detection circuit, and to determine whether a power failure event occurs according to the output level signal. A storage module is connected to the control module and is used to store electric quantity data when a power failure event occurs. Without having to frequently erase and write a storage chip, a hardware circuit is used to detect whether a power failure event occurs so as to realize timely storage of electric quantity data, thereby extending the life of the storage chip and improving the accuracy of the stored electric quantity data.

[0048] 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

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

[0050] Figure 1 A functional structure diagram of an electrical quantity data storage device provided in one embodiment of the present application.

[0051] Figure 2 A circuit diagram of an electrical quantity data storage device provided in one embodiment of the present application.

[0052] Figure 3 A flowchart of a method for storing electrical power data is provided in one embodiment of the present application.

[0053] Figure 4 A functional structure diagram of a multi-connection system provided for one embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other implementation methods obtained by ordinary technicians in the field without creative work belong to the scope of protection of the present application.

[0055] Figure 1 This is a functional structure diagram of an electric quantity data storage device provided by an embodiment of the present application, such as Figure 1 As shown, the electric quantity data storage device comprises:

[0056] An optocoupler detection circuit 11, wherein the input end of the optocoupler detection circuit is connected to the power supply, and the output end of the optocoupler detection circuit is used to output a level signal, and the level signal changes according to the output voltage change of the power supply;

[0057] The control module 12 is connected to the optocoupler detection circuit and is used to obtain the output level signal of the optocoupler detection circuit and determine whether a power failure event occurs according to the output level signal;

[0058] The storage module 13 is connected to the control module and is used to store the power data when a power failure occurs.

[0059] The traditional method of storing power data requires that the power data be written into a chip with storage function at regular intervals. However, due to the limitation of the number of times the storage chip can be erased and written, it is impossible to erase and write indefinitely, and frequent erase and write operations affect the life of the storage chip. In addition, when the unit loses power abnormally, the power data before the power failure is not written into the storage chip in time, resulting in inaccurate power data. For example, it is necessary to set the interval time to store power once every T minutes. If the unit loses power abnormally before the interval time, the power data within the interval time will be lost, resulting in inaccurate stored power data.

[0060] In this embodiment, the power data storage device includes an optocoupler detection circuit, the input end of the optocoupler detection circuit is connected to the power supply, the output end of the optocoupler detection circuit is used to output a level signal, and the level signal changes according to the output voltage of the power supply. The control module is connected to the optocoupler detection circuit and is used to obtain the output level signal of the optocoupler detection circuit, and judge whether a power failure event occurs according to the output level signal. The storage module is connected to the control module and is used to store the power data when a power failure event occurs. Without having to frequently erase and write the storage chip, the hardware circuit is used to detect whether a power failure event occurs to realize timely storage of power data, extend the life of the storage chip, and improve the accuracy of the stored power data.

[0061] The embodiment of the present invention provides another electric quantity data storage device, such as Figure 2 As shown in the circuit diagram, the electrical quantity data storage device comprises:

[0062] An optocoupler detection circuit, wherein an input end of the optocoupler detection circuit is connected to a power supply, and an output end of the optocoupler detection circuit is used to output a level signal, and the level signal changes according to a change in an output voltage of the power supply;

[0063] Optocoupler detection circuit, including:

[0064] A first optocoupler chip U1 and a second optocoupler chip U2;

[0065] The first diode D3, the input positive electrode of the first optocoupler chip U1 is connected to the output end of the first diode D3, the input end of the first diode D3 is connected to the live wire L1 of the power supply, the input negative electrode of the first optocoupler chip U1 is connected to the neutral wire N of the power supply, and the output end of the first optocoupler chip U1 is connected to the first output end MCU-A. When the first optocoupler chip U1 is turned on, the first output end MCU-A outputs a low level, otherwise the first output end MCU-A outputs a high level;

[0066] The second diode D2, the input positive pole of the second optocoupler chip U2 is connected to the output end of the second diode D2, the input end of the second diode D2 is connected to the power supply neutral line N, the input negative pole of the second optocoupler chip U2 is connected to the power supply live line L1, and the output end of the second optocoupler chip U2 is connected to the second output end MCU-B. When the second optocoupler chip U2 is turned on, the second output end MCU-B outputs a low level, otherwise the second output end MCU-B outputs a high level.

[0067] Also includes:

[0068] A first current limiting resistor R7, which is disposed between the first optocoupler chip U1 and the first diode D3 and is used to control the magnitude of the current input to the first optocoupler chip U1;

[0069] The second current limiting resistor R6 is arranged between the second optocoupler chip U2 and the second diode D2, and is used to control the current input to the second optocoupler chip U2.

[0070] A first pull-up resistor R4, the first pull-up resistor R4 is connected to the output end of the first optocoupler chip U1;

[0071] The second pull-up resistor R1 is connected to the output end of the second optocoupler chip U2.

[0072] The pull-up resistor is used to clamp the output end of the first optocoupler chip U1 or the output end of the second optocoupler chip U2 at a high level through the pull-up resistor when an uncertain signal exists at the output end of the first optocoupler chip U1 or the output end of the second optocoupler chip U2. The pull-up resistor also plays a role of current limiting.

[0073] The AC filter module and the optocoupler detection circuit are arranged between the power supply and the AC filter module.

[0074] The AC filter module is used to filter the input AC current, filter out the harmonics of the AC current, and ensure that the input current is noise-free.

[0075] The rectifier and filter module is arranged between the AC filter module and the load.

[0076] The rectifier and filter module includes:

[0077] The rectifier bridge DB1 and the filter capacitor C4 are connected in parallel to the output end of the rectifier bridge DB1.

[0078] The rectifier and filter module is used to rectify and filter the input AC current to ensure the stability of the input voltage of the load.

[0079] Negative temperature coefficient thermistor R5, the negative temperature coefficient thermistor R5 is arranged between the AC filter module and the rectifier filter module, and is used to suppress surge current.

[0080] A control module is connected to the optocoupler detection circuit and is used to obtain an output level signal of the optocoupler detection circuit and determine whether a power-off event occurs according to the output level signal;

[0081] The storage module is connected to the control module and is used to store the power data when a power failure occurs.

[0082] In some embodiments, the control module and the storage module are centrally arranged in one controller.

[0083] In this embodiment, by adding an optocoupler detection circuit to the hardware, the power data is stored in time before the main chip loses power, and a power data write operation is performed before the unit loses power, thereby ensuring the accuracy of the stored power data.

[0084] The embodiment of the present invention provides a method for storing electric quantity data. Figure 3 As shown in the flowchart, the method for storing electric quantity data includes:

[0085] S31: Detecting the level signal at the output end of the optocoupler detection circuit connected to the power supply;

[0086] S32: judging whether a power-off event occurs according to a level signal at the output end of the optocoupler detection circuit;

[0087] In some embodiments, judging whether a power-off event occurs according to a level signal at an output end of an optocoupler detection circuit includes:

[0088] If the output level of the output terminal of the first optocoupler chip is opposite to the output level of the output terminal of the second optocoupler chip, and the output level of the output terminal of the first optocoupler chip flips once within the first preset time length, it is determined that the power supply is normal;

[0089] If the output level of the first optocoupler chip output terminal and the output level of the second optocoupler chip output terminal are both detected to be high level for a second preset time period, it is considered that a power failure event occurs;

[0090] If the output levels of the first optocoupler chip output terminal and the second optocoupler chip output terminal are both detected to be low levels for a third consecutive preset time period or the output levels of the first optocoupler chip output terminal and the second optocoupler chip output terminal have not flipped, it is determined that the optocoupler detection circuit is abnormal.

[0091] S33: Storing the power data when a power failure event occurs.

[0092] In some embodiments, it also includes:

[0093] Setting a detection cycle, and detecting a level signal at an output end of an optocoupler detection circuit connected to a power supply according to the detection cycle;

[0094] Detection cycle t=(T1+T2) / 10, the detection cycle t is in seconds, where T1 is the duration of the first optocoupler chip in the optocoupler detection circuit outputting a high level; T2 is the duration of the first optocoupler chip in the optocoupler detection circuit outputting a low level.

[0095] For example, the effective value of the power supply is U0V, and the frequency is fhz: when the power supply is working normally, when U1 is turned on, MCU-A detects a low level, while U2 is turned off, and MCU-B detects a high level; when U2 is turned on, MCU-B detects a low level, while U1 is turned off, and MCU-A detects a high level. The levels of MCU-A and MCU-B change periodically with a period of 1 / fs, (T1+T2=1 / f), T1 is the high level duration of MCU-A or MCU-B output, and T2 is the low level duration of MCU-A or MCU-B output. When the power supply is cut off, both A and B become high levels.

[0096] Assume that the turn-on voltage of the optocoupler chips U1 and U2 is V0, and T2-T1=2t1 in the figure.

[0097] Then V0=U0*sin(wt1),

[0098] wt1=arcsin(V0 / U0), where w=2πf.

[0099] Because the turn-on voltage V0 of the optocoupler chip is small, t1 is small, and the sampling period t=(T1+T2) / 10s is much larger than t1. Therefore, the duration t1 can be ignored when setting the detection period, and the detection period is set to t=(T1+T2) / 10s to ensure the timeliness of the detection.

[0100] According to the above detection cycle, the first preset time length is set to, for example, 10ts, the second preset time length is set to, for example, 3ts, and the third preset time length is set to, for example, 20ts.

[0101] In some embodiments, it also includes:

[0102] When the optocoupler detection circuit is abnormal, a prompt message is sent, and the prompt message includes a push notification and a display page power warning abnormality.

[0103] In this embodiment, by detecting the level signal at the output end of the optocoupler detection circuit connected to the power supply, it is determined whether a power failure event occurs based on the level signal at the output end of the optocoupler detection circuit. When a power failure event occurs, the power data is stored, thereby extending the life of the storage chip and improving the accuracy of the stored power data.

[0104] An embodiment of the present invention provides a controller, including:

[0105] The electric quantity data storage device as described in the above embodiment.

[0106] An embodiment of the present invention provides a multi-connection system, including:

[0107] External unit, compressor drive, multiple internal units and multiple wired controllers;

[0108] The external unit is provided with a controller as described in the above embodiment;

[0109] The controller is drivingly connected to the compressor;

[0110] Each wire controller is connected to an indoor unit, and the wire controller is used to display the power level of the corresponding indoor unit.

[0111] like Figure 4 As shown in the figure, since the power consumption of the air conditioner is the sum of the total power of the indoor and outdoor units, the indoor unit of the air conditioner collects and calculates the total power of the indoor unit P 内 The compressor driver collects and calculates the power of the compressor and the driver board and sends it to the outdoor unit controller through the communication network 2. The air conditioner outdoor unit controller collects and calculates the total power P of the outdoor unit. 外 At this point, the outdoor unit can obtain the power of each indoor unit and the total power of the outdoor unit itself. Therefore, the outdoor unit controller calculates the power consumption of each device, and stores the power consumption of each device in the outdoor unit controller to realize the storage of power data.

[0112] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0113] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0114] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0115] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0116] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0117] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0118] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0119] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0120] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

[0121] It should be noted that the present invention is not limited to the above-mentioned optimal implementation mode. Those skilled in the art can derive other various forms of products under the guidance of the present invention. However, no matter what changes are made in the shape or structure, all technical solutions that are the same or similar to those of the present application fall within the protection scope of the present invention.

Claims

1. An electric quantity data storage device, characterized in that: include: An optocoupler detection circuit, wherein an input end of the optocoupler detection circuit is connected to a power supply, and an output end of the optocoupler detection circuit is used to output a level signal, and the level signal changes according to a change in an output voltage of the power supply; The optocoupler detection circuit specifically includes: a first optocoupler chip and a second optocoupler chip; a first diode, the input positive electrode of the first optocoupler chip is connected to the output end of the first diode, the input end of the first diode is connected to the live wire of the power supply, the input negative electrode of the first optocoupler chip is connected to the neutral wire of the power supply, the output end of the first optocoupler chip is connected to the first output end, when the first optocoupler chip is turned on, the first output end outputs a low level, otherwise the first output end outputs a high level; a second diode, the input positive electrode of the second optocoupler chip is connected to the output end of the second diode, the input end of the second diode is connected to the neutral wire of the power supply, the input negative electrode of the second optocoupler chip is connected to the live wire of the power supply, the output end of the second optocoupler chip is connected to the second output end, when the second optocoupler chip is turned on, the second output end outputs a low level, otherwise the second output end outputs a high level; A control module, connected to the optocoupler detection circuit, for obtaining an output level signal of the optocoupler detection circuit, and determining whether a power-off event occurs according to the output level signal; The storage module is connected to the control module and is used to store the power data when a power failure occurs.

2. The electric quantity data storage device according to claim 1, characterized in that: Also includes: A first current limiting resistor, wherein the first current limiting resistor is arranged between the first optocoupler chip and the first diode; A second current limiting resistor is arranged between the second optocoupler chip and the second diode.

3. The electric quantity data storage device according to claim 1, characterized in that: Also includes: A first pull-up resistor, wherein the first pull-up resistor is connected to an output end of the first optocoupler chip; A second pull-up resistor is connected to the output end of the second optocoupler chip.

4. The electric quantity data storage device according to claim 1, characterized in that: Also includes: AC filter module, the optocoupler detection circuit is arranged between the power supply and the AC filter module.

5. The electric quantity data storage device according to claim 4, characterized in that: Also includes: A rectifier and filter module is provided between the AC filter module and the load.

6. The electric quantity data storage device according to claim 5, characterized in that: The rectification and filtering module comprises: A rectifier bridge and a filter capacitor, wherein the filter capacitor is connected in parallel to the output end of the rectifier bridge.

7. The electric quantity data storage device according to claim 5, characterized in that: Also includes: A negative temperature coefficient thermistor is arranged between the AC filter module and the rectifier filter module to suppress surge current.

8. A method for storing electric quantity data, characterized in that: include: Detecting a level signal at an output end of an optocoupler detection circuit connected to a power supply; Determining whether a power-off event occurs according to a level signal at an output end of the optocoupler detection circuit; Storing power data when a power outage occurs; Wherein, the optocoupler detection circuit specifically includes: a first optocoupler chip and a second optocoupler chip; a first diode, the input positive electrode of the first optocoupler chip is connected to the output end of the first diode, the input end of the first diode is connected to the live wire of the power supply, the input negative electrode of the first optocoupler chip is connected to the neutral wire of the power supply, the output end of the first optocoupler chip is connected to the first output end, when the first optocoupler chip is turned on, the first output end outputs a low level, otherwise the first output end outputs a high level; a second diode, the input positive electrode of the second optocoupler chip is connected to the output end of the second diode, the input end of the second diode is connected to the neutral wire of the power supply, the input negative electrode of the second optocoupler chip is connected to the live wire of the power supply, the output end of the second optocoupler chip is connected to the second output end, when the second optocoupler chip is turned on, the second output end outputs a low level, otherwise the second output end outputs a high level.

9. The method for storing electric quantity data according to claim 8, characterized in that: Also includes: Setting a detection cycle, and detecting a level signal at an output end of an optocoupler detection circuit connected to a power supply according to the detection cycle; The detection period t=(T1+T2) / 10, the detection period t is in seconds, wherein T1 is the duration of the first optocoupler chip in the optocoupler detection circuit outputting a high level; T2 is the duration of the first optocoupler chip in the optocoupler detection circuit outputting a low level.

10. The method for storing electric quantity data according to claim 9, characterized in that: The step of determining whether a power-off event occurs according to a level signal at an output end of the optocoupler detection circuit comprises: If the output level of the output terminal of the first optocoupler chip is opposite to the output level of the output terminal of the second optocoupler chip, and the output level of the output terminal of the first optocoupler chip flips once within the first preset time length, it is determined that the power supply is normal; If the output level of the first optocoupler chip output terminal and the output level of the second optocoupler chip output terminal are both detected to be high level for a second preset time period, it is considered that a power failure event occurs; If the output levels of the first optocoupler chip output terminal and the second optocoupler chip output terminal are both detected to be low levels for a third consecutive preset time period or the output levels of the first optocoupler chip output terminal and the second optocoupler chip output terminal have not flipped, it is determined that the optocoupler detection circuit is abnormal.

11. The method for storing electric quantity data according to claim 10, characterized in that: Also includes: When the optocoupler detection circuit is abnormal, a prompt message is sent, and the prompt message includes a push notification and a display page power warning abnormality.

12. A controller, characterized in that: include: The electrical quantity data storage device according to any one of claims 1 to 7.

13. A multi-link system, characterized in that: include: External unit, compressor drive, multiple internal units and multiple wired controllers; The external unit is provided with a controller as claimed in claim 12.

14. The multi-connection system according to claim 13, characterized in that: The controller is drivingly connected to the compressor.

15. The multi-connection system according to claim 13, characterized in that: Each wire controller is connected to an indoor unit, and the wire controller is used to display the power level of the corresponding indoor unit.