Power failure detection devices and electrical equipment
By sampling the voltage at two points in time and calculating the rate of change of voltage in the circuit system, the problem of high false positive rate and low efficiency of existing power failure detection methods is solved, and more accurate and efficient power failure detection is achieved.
Patent Information
- Application Number
- CN202011328064.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-24
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2040-11-24
AI Technical Summary
Existing power failure detection methods suffer from high false alarm rates and low efficiency, especially when dynamically assessing voltage changes, where accuracy is insufficient.
By sampling the voltage at two time points in the circuit system, comparing the sampled voltage with the discharge voltage of the energy storage circuit, calculating the voltage change rate, and comparing it with a preset voltage change rate, a power-down signal is output.
It improves the accuracy and efficiency of power failure detection, reduces false alarms, and ensures that the power failure status of the circuit system can be determined in a timely manner under voltage fluctuations.
Smart Images

Figure CN114545283B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power electronics technology, and more particularly to a power failure detection device and an electrical appliance. Background Technology
[0002] In equipment powered by AC, a power failure detection device is required to detect the input voltage and determine the power supply status when a power failure occurs. This allows the equipment to shut down or perform other operations as needed when abnormal conditions such as power outages occur. Furthermore, by sending a power failure signal to the workbench, the staff can be informed of the power failure and make timely adjustments to avoid affecting normal production operations.
[0003] However, existing power failure detection devices mostly use the method of sampling the voltage of the power supply to the device at one or several time points and comparing the sampled voltage with a preset voltage to determine whether the system has lost power. This method cannot dynamically determine the voltage change, resulting in a high false alarm rate for power failure.
[0004] To improve upon the aforementioned shortcomings, existing technologies have also provided a method of fitting the power supply voltage change curve and comparing it with a preset curve of the power supply. By judging the positional relationship between the voltage change curve and the preset curve, it is possible to determine whether there is a power failure. However, this method involves a large amount of computation and has a slow response speed. Although it is similar to dynamic tracking based on the voltage change curve, it actually compares the voltage at the corresponding time point with the voltage at the same time point on the preset curve to determine the power failure. The result is still not accurate enough. Summary of the Invention
[0005] One of the objectives of this invention is to provide a power failure detection method that can solve the technical problems of inaccurate power failure detection and low efficiency in existing power failure detection methods.
[0006] One of the objectives of this invention is to provide a power failure detection device.
[0007] One of the objectives of this invention is to provide an electrical device with a power failure detection device.
[0008] To achieve one of the above-mentioned objectives, an embodiment of the present invention provides a power-down detection method for a circuit system, comprising: acquiring a first sampled voltage of the circuit system at a first time point; comparing the first sampled voltage with a set discharge voltage of an energy storage circuit in the circuit system; acquiring a second sampled voltage of the circuit system at a second time point when the relationship between the value of the first sampled voltage and the discharge voltage satisfies a condition; comparing the second sampled voltage with a set second discharge voltage of the energy storage circuit in the circuit system at the second time point; calculating a third sampled voltage change rate of the circuit system between the first time point and the second time point when the relationship between the value of the second sampled voltage and the second discharge voltage satisfies a condition; comparing the third sampled voltage change rate with a set discharge voltage change rate of the energy storage circuit in the circuit system; and outputting a power-down signal when the value of the third sampled voltage change rate and the discharge voltage change rate satisfy a condition.
[0009] As a further improvement of one embodiment of the present invention, the discharge voltage includes the second discharge voltage and the first discharge voltage of the energy storage circuit at the first time point; the step of obtaining the second sampling voltage of the circuit system at the second time point when the relationship between the value of the first sampling voltage and the discharge voltage satisfies the condition specifically includes: obtaining the second sampling voltage of the circuit system at the second time point when the first sampling voltage is less than the first discharge voltage and greater than the second discharge voltage.
[0010] As a further improvement of one embodiment of the present invention, when the relationship between the value of the second sampling voltage and the second discharge voltage satisfies the condition, the calculation of the third sampling voltage change rate between the first time point and the second time point specifically includes: when the second sampling voltage is greater than or equal to the second discharge voltage, calculating the third sampling voltage change rate of the circuit system between the first time point and the second time point.
[0011] As a further improvement of one embodiment of the present invention, the discharge voltage change rate includes the second discharge voltage change rate of the energy storage circuit in the circuit system at a set second time point; the step of outputting a power-down signal when the value of the third sampling voltage change rate and the discharge voltage change rate meet the condition specifically includes: outputting a power-down signal when the third sampling voltage change rate is greater than the second discharge voltage change rate.
[0012] As a further improvement of one embodiment of the present invention, the discharge voltage includes the first discharge voltage of the energy storage circuit at the first time point; the step of obtaining the second sampling voltage of the circuit system at the second time point when the relationship between the value of the first sampling voltage and the discharge voltage satisfies the condition specifically includes: obtaining the second sampling voltage of the circuit system at the second time point when the first sampling voltage is greater than the first discharge voltage.
[0013] As a further improvement of one embodiment of the present invention, when the relationship between the value of the second sampling voltage and the second discharge voltage satisfies the condition, calculating the third sampling voltage change rate between the first time point and the second time point specifically includes: when the second sampling voltage is less than the second discharge voltage, calculating the third sampling voltage change rate of the circuit system between the first time point and the second time point.
[0014] As a further improvement of one embodiment of the present invention, the discharge voltage change rate includes the first discharge voltage change rate of the energy storage circuit in the circuit system at a set first time point; the step of outputting a power-down signal when the value of the third sampled voltage change rate and the discharge voltage change rate meet the condition specifically includes: outputting a power-down signal when the third sampled voltage change rate is greater than the first discharge voltage change rate.
[0015] To achieve one of the above-mentioned objectives, an embodiment of the present invention provides a power-down detection method for a circuit system, comprising: acquiring a pre-sampled voltage of the circuit system; comparing the pre-sampled voltage with a standard voltage set for the circuit system; acquiring a first sampled voltage of the circuit system at a first time point when the relationship between the value of the pre-sampled voltage and the standard voltage satisfies a condition; comparing the first sampled voltage with a set discharge voltage of an energy storage circuit in the circuit system; acquiring a second sampled voltage of the circuit system at a second time point when the relationship between the value of the first sampled voltage and the discharge voltage satisfies a condition; comparing the second sampled voltage with a set second discharge voltage of the energy storage circuit in the circuit system at a second time point; calculating a third sampled voltage change rate of the circuit system between the first time point and the second time point when the relationship between the value of the second sampled voltage and the second discharge voltage satisfies a condition; comparing the third sampled voltage change rate with a set discharge voltage change rate of the energy storage circuit in the circuit system; and outputting a power-down signal when the value of the third sampled voltage change rate and the discharge voltage change rate satisfy a condition.
[0016] As a further improvement of one embodiment of the present invention, the standard voltage includes a maximum standard voltage; when the relationship between the value of the pre-sampled voltage and the standard voltage satisfies a condition, the first sampled voltage of the circuit system within a first time period is obtained, specifically including: when the pre-sampled voltage is less than or equal to the maximum standard voltage, the first sampled voltage of the circuit system within a first time period is obtained.
[0017] As a further improvement of one embodiment of the present invention, the highest standard voltage is the lowest permissible operating voltage of the energy storage circuit when voltage fluctuations occur under normal operating conditions of the circuit system.
[0018] As a further improvement of one embodiment of the present invention, the standard voltage includes a minimum standard voltage; when the relationship between the value of the pre-sampled voltage and the standard voltage meets the condition, the first sampled voltage of the circuit system within a first time period is obtained, specifically including: when the pre-sampled voltage is greater than or equal to the minimum standard voltage, the first sampled voltage of the circuit system within a first time period is obtained.
[0019] As a further improvement of one embodiment of the present invention, the minimum standard voltage is the minimum operating voltage at which the circuit system performs power-down signal processing.
[0020] To achieve one of the above-mentioned objectives, one embodiment of the present invention provides a power failure detection device, including an energy storage circuit, a processor, and a sampling circuit. The processor is electrically connected to the energy storage circuit and the sampling circuit, respectively. The processor is used to acquire a standard voltage change rate, calculate a sampled voltage change rate, and output a power failure signal. The sampling circuit is used to sample the voltage of the circuit system. The power failure detection device is used to perform power failure detection of the circuit system according to the power failure detection method described in any of the above technical solutions.
[0021] As a further improvement of one embodiment of the present invention, the power failure detection device further includes a signal transmission module electrically connected to the processor, and a host computer communicatively connected to the signal transmission module. The signal transmission module is configured to receive a power failure signal from the processor and send the signal to the host computer.
[0022] As a further improvement of one embodiment of the present invention, the sampling circuit sampling process has a total sampling time, the processor signal processing process has a processing time, the signal transmission module has a signal transmission time, and the discharge time of the energy storage circuit is greater than the sum of the total sampling time, the processing time, and the signal transmission time.
[0023] To achieve one of the above-mentioned objectives, one embodiment of the present invention provides an electrical device, including a power input device, a working device, a main control device, and a power failure detection device as described in any of the above technical solutions.
[0024] Compared with the prior art, the power failure detection method of the present invention does not simply sample the voltage of the circuit system at a certain point in time and compare it with a preset voltage value to draw a conclusion about power failure. Instead, it first performs two voltage samples to preliminarily determine whether there is a possibility of power failure, and then calculates the voltage change rate between the two sampled voltages and compares it with a preset voltage change rate. This improves the accuracy of the detection results while maintaining detection efficiency. Attached Figure Description
[0025] Figure 1 This is a schematic diagram of the power failure detection device according to one embodiment of the present invention;
[0026] Figure 2 This is a partial circuit structure diagram of a power failure detection device according to one embodiment of the present invention;
[0027] Figure 3 This is a flowchart illustrating Embodiment 1 of the power failure detection method according to an embodiment of the present invention;
[0028] Figure 4 This is a flowchart illustrating a first specific example of a power failure detection method according to an embodiment of the present invention.
[0029] Figure 5 This is a flowchart illustrating a second specific example of Embodiment 1 of the power failure detection method according to an embodiment of the present invention.
[0030] Figure 6 This is a flowchart illustrating Embodiment 2 of the power failure detection method according to one embodiment of the present invention;
[0031] Figure 7 This is a flowchart illustrating the first specific example of Embodiment 2 of the power failure detection method according to an embodiment of the present invention.
[0032] Figure 8 This is a flowchart illustrating a second specific example of a power failure detection method according to an embodiment of the present invention;
[0033] Figure 9 This is a flowchart illustrating a third specific example of a power failure detection method according to an embodiment of the present invention, specifically Example 2. Detailed Implementation
[0034] The present invention will now be described in detail with reference to the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional modifications made by those skilled in the art based on these embodiments are included within the scope of protection of the present invention.
[0035] It should be noted that the term "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0036] In one embodiment of the present invention, an electrical device is provided, which may be a household appliance such as a refrigerator, air conditioner, or air purifier, or an electrical device from other fields. The electrical device is equipped with a circuit system, specifically including a power input device, a working device, a main control device, and a power failure detection device. Furthermore, the power input device is connected to the working device through the power failure detection device to provide power to the working device. The main control device is also electrically connected to the working device to control its operation. In one embodiment, the electrical device is a refrigerator, and the working device is the compressor inside the refrigerator. When the power supply relationship between the power input device and the compressor is abnormal, the power failure detection device can detect the power failure and send a signal to the main control device or other terminals, thereby assisting staff or users in adjusting the equipment status in a timely manner.
[0037] For the aforementioned power failure detection device, such as Figure 1As shown, this embodiment includes an energy storage circuit 101, a processor 102, and a sampling circuit 103. The processor 102 is electrically connected to the energy storage circuit 101 and the sampling circuit 103, respectively. More specifically, the sampling circuit 103 is used to sample the circuit system, while the processor 102 is used to obtain a preset discharge voltage change rate, obtain the sampling voltage obtained by the sampling circuit 103, calculate the sampling voltage change rate based on the sampling voltage, and output a power-down signal. Therefore, in the event of a power failure, the energy storage circuit 101 can act as a power failure detection device, or in other embodiments, as a follow current source for the circuit system, enabling the processor 102 to continue operating and output a power failure signal even when power is lost. Simultaneously, since the power failure detection device is in a power failure state, the overall power supply relies entirely on the energy storage circuit 101. As the energy storage circuit 101 continuously discharges and consumes power, its voltage drops. Therefore, by detecting the voltage status of the circuit system at this time, i.e., the voltage status of the energy storage circuit 101, the circuit status can be more accurately determined, preventing the processor 102 from misjudging the circuit system as power failure due to normal fluctuations in the power supply voltage, thus affecting its accuracy. This is the overall concept of the power failure detection method provided by this invention.
[0038] Meanwhile, since the nature of the energy storage circuit 101, the processor 102 and the sampling circuit 103 and their connection methods are conventional to those skilled in the art, they will not be described in detail.
[0039] It should be noted that in the prior art, most electrical devices have high requirements for power quality. In order to reduce the impact of AC power fluctuations on electrical devices, the circuit system of the aforementioned power failure detection device in this embodiment further includes a rectifier 104 and an inverter 105. The rectifier 104 is located at the front end of the power failure detection device and is connected to the energy storage circuit 101, while the inverter 105 is located at the rear end of the power failure detection device and is electrically connected to the sampling circuit 103. Thus, after the AC power is rectified into DC power by the rectifier 104, it enters the energy storage circuit 101 and is partially stored therein. Then, the electrical energy continues to pass through the energy storage circuit 101. The electrical energy is transmitted to the processor 102 and the sampling circuit 103 respectively. At this time, most of the electrical energy is sampled by the sampling circuit 103 and transmitted to the inverter 105, where it is converted into AC power to supply downstream devices such as the compressor of a refrigerator. A small portion of the electrical energy enters the processor 102 and supplies it. Furthermore, the sampling circuit 103 transmits the sampled voltage signal to the processor 102. That is, with the support of the electrical energy provided by the energy storage circuit 101, the processor 102 processes the voltage signal from the sampling circuit 103, calculates and analyzes the circuit state, and determines whether a power outage has occurred in the circuit system. However, this does not mean that the power outage detection device provided by this invention, especially the power outage detection method used by the power outage detection device, is only applicable to DC power detection; the power outage detection device is still applicable to AC power supply detection.
[0040] However, in actual operation, through repeated experiments, we found that when using a commercially available processor 102 to assemble a power failure detection device, it is actually difficult to implement the technical solution of directly applying the voltage that supplies power to the back-end working device, such as the compressor, after rectification to power the processor 102. The supply voltage that the commonly available processor 102 can accept is actually in a low range. Therefore, in this embodiment, a step-down circuit 106 is also provided between the energy storage capacitor 101 and the processor 102 to reduce the current input at the front end to a voltage that can be supplied to the processor 102.
[0041] The present invention does not restrict where the conclusion of whether or not a power failure has occurred, obtained by the processor 102 after calculation, should be transmitted. However, the present invention provides an implementation method in which the power failure detection device also includes a signal transmission module 107 and a host computer 108. The signal transmission module 107 is electrically connected to the processor 102, and the host computer 102 is communicatively connected to the signal transmission module 107. The signal transmission module 107 is configured to receive the power failure signal from the processor 102 and send the signal to the host computer 108. In this way, after the processor 102 obtains the conclusion of power failure through calculation, the signal transmission module 107 transmits the signal to the host computer 108, and relevant personnel can monitor the power failure status of the electrical equipment through the host computer 108 and carry out timely maintenance.
[0042] To ensure the smooth transmission of the aforementioned power-down signal from processor 102 to host computer 108 via signal transmission module 107, the sampling circuit 103, processor 102, transmission module 107, and energy storage circuit 101 are configured as follows: the sampling process of sampling circuit 103 has a total sampling time t1; the signal processing process of processor 102 has a processing time t2; the signal transmission module 107 has a signal transmission time t3; and the energy storage circuit 101 has a discharge time t4. Furthermore, the discharge time t4 is greater than the sum of the total sampling time t1, processing time t2, and signal transmission time t3. That is:
[0043] t4>K(t1+t2+t3);
[0044] Meanwhile, through repeated experiments, in the embodiments provided by this invention, when the discharge time t4 is greater than five times the sum of the total sampling time t1, processing time t2, and signal transmission time t3, that is, when K≥5 in the above formula, it can effectively transmit the power-off signal under any operating condition. Of course, this invention is not limited to this multiple or this time calculation method.
[0045] Regarding the configuration of internal components of the power failure detection device, such as Figure 2 As shown, in this embodiment, the AC power input at the front end is mains power 100, the rectifier 104 includes a rectifier bridge, the step-down circuit 106 includes a switching power supply, and the working device 109 is such as the compressor in a refrigerator; the sampling circuit 103 includes resistors and capacitors connected in series and parallel, using the capacitor to prevent voltage fluctuations and using the resistor to detect the voltage applied to it, thereby realizing sampling; the energy storage circuit 101 includes a large electrolytic capacitor connected in parallel. Since the large electrolytic capacitor has the characteristic of large capacitance per unit volume, it can provide a longer follow current for the power failure detection device, thereby providing a longer period of power for the operation of the sampling circuit 103 and the processor 102.
[0046] It is understood that the positional relationship between the components in the power failure detection device is not a necessary technical feature that limits the scope of protection of this invention. Any implementation method or arrangement of components that can achieve the corresponding function is within the scope of protection of this invention.
[0047] For the power failure detection method that implements the function of the power failure detection device, this invention mainly samples the voltage of the circuit system at two time points and compares it with the discharge voltage of the energy storage circuit 101 at the same two time points. When the voltage value alone cannot determine whether a power failure has occurred, the invention further calculates the voltage change between the two time points and compares it with the discharge voltage change of the energy storage circuit 101 to accurately determine whether a power failure has occurred in the circuit system. Based on this idea, this invention provides the following embodiments, but this invention is not limited to these embodiments.
[0048] Based on the above ideas, the present invention provides Embodiment 1, as follows: Figure 3 As shown, it includes the following steps:
[0049] Step 201: Obtain the first sampled voltage of the circuit system at the first time point.
[0050] In this embodiment, the processor 102 obtains the sampled voltage of the circuit system at a first time point through the sampling circuit 103, and marks it as the first sampled voltage for storage. It should be noted that the first time point and the first sampled voltage are not specific here. The processor 102 and the sampling circuit 103 are continuously in working state and perform voltage sampling on the circuit system according to a predetermined time interval. After each sampling, the sampling time and sampling voltage are recorded and stored for subsequent comparison.
[0051] Step 202: Compare the first sampling voltage with the discharge voltage of the energy storage circuit in the set circuit system.
[0052] After obtaining the first sampling voltage according to step 201, the process proceeds to the preliminary power-down judgment stage in step 202. Before this, it should be emphasized that before the power-down detection device is installed in the circuit system, there should be a step during hardware debugging, namely, testing the discharge voltage change of the energy storage circuit 101 and selecting the voltage at two time points as the discharge voltage to compare with the sampling voltage, thereby judging the state of the circuit system. Of course, according to the general understanding of those skilled in the art, the two time points selected here should be a period of time from the start of the discharge of the energy storage circuit 101 until the complete discharge ends. Specifically, the voltage at two time points should be selected as the discharge voltage during a period when the discharge of the energy storage circuit 101 is relatively stable, so as to obtain a more accurate power-down signal.
[0053] Step 203: When the relationship between the value of the first sampling voltage and the discharge voltage meets the condition, obtain the second sampling voltage of the circuit system at the second time point.
[0054] If a conclusion on whether power has been lost or not cannot be directly drawn based on the comparison between the first sampling voltage and the discharge voltage, it is necessary to further detect the sampling voltage of the circuit system at the second time point and mark it as the second sampling voltage, so as to facilitate subsequent comparison and judgment.
[0055] Step 204: Compare the second sampling voltage with the second discharge voltage of the energy storage circuit in the circuit system set at the second time point.
[0056] Based on the comparison between the second sampling voltage and the second discharge voltage, and combined with the comparison of the magnitude of the first sampling voltage in step 203, it is possible to determine whether the circuit system has experienced a power outage based on the combination of the two voltage conditions.
[0057] Step 205: When the relationship between the value of the second sampling voltage and the second discharge voltage satisfies the condition, calculate the rate of change of the third sampling voltage of the circuit system between the first time point and the second time point.
[0058] When it is impossible to determine whether a power outage has occurred in the circuit system solely based on the values of the first and second sampled voltages, the rate of change of the sampled voltage between the first and second time points can be estimated based on the obtained two sampled voltage values. To distinguish its relationship with the first and second sampled voltages, it is defined as the third rate of change of the sampled voltage and stored in the processor 102. Specifically, it is the ratio of the difference between the first and second sampled voltages to the difference between the first and second time points. In this embodiment, the first sampled voltage is defined as V. s1 The first sampling time is t s1 The second sampling voltage is V s2 The second sampling time is t s2 Then we have:
[0059]
[0060] Thus, the voltage fluctuation between the first and second time points can be obtained. When a power failure occurs, the third sampling voltage change rate calculated according to the above formula has a large value, so it can be used to determine whether the circuit system has experienced a power failure. The practice of taking the absolute value is only for the convenience of the subsequent judgment process and is not a necessary feature that limits the scope of the present invention. That is, when calculating the third sampling voltage change rate, the absolute value operation is not performed. At the same time, the subsequent judgment process is adjusted accordingly, and the expected power failure detection technology effect of the present invention can still be obtained.
[0061] Understandably, the purpose of defining the calculation formula for the sampling voltage change rate in this invention is to facilitate the explanation of the technical solution of this invention. However, this formula cannot be regarded as a technical feature that limits the scope of this invention. Other similar technical solutions, such as defining the sampling voltage change rate as the sampling voltage change rate, sampling voltage change speed, sampling voltage decrease rate, sampling voltage decrease rate, etc., that is, in step 205 of this embodiment, any implementation scheme that calculates the voltage change between two time points based on the voltage values at two time points, or more specifically, solves the slope between the two points, and then determines whether the circuit has lost power, is within the protection scope of this invention.
[0062] Step 206: Compare the rate of change of the third sampled voltage with the rate of change of the discharge voltage of the energy storage circuit in the circuit system.
[0063] In the aforementioned steps, the first and second sampling voltages corresponding to the first and second time points are mainly used and compared with the discharge voltages of the energy storage circuit 101 corresponding to the first and second time points to preliminarily determine whether a power outage has occurred. If the above comparison cannot determine the power outage, the voltage change rate between the two time points is calculated and compared with the discharge voltage change rate of the energy storage circuit 101 to obtain the most accurate circuit system status information. That is, before the power outage detection device is installed in the circuit system, there should be a step during hardware debugging, namely, testing the discharge voltage change rate of the energy storage circuit 101. In this way, when the circuit system is in a power outage state and the energy storage circuit 101 supplies power to the circuit system by discharging, it is possible to determine whether a power outage has occurred by comparing the sampling voltage change rate with the discharge voltage change rate.
[0064] The calculation of the discharge voltage change rate is not significantly different from the aforementioned sampling voltage change rate in terms of definition and underlying principle. The main difference is that although both use the ratio between the decrease in discharge voltage and the duration of the change, the time difference between the first and second time points is large due to the limitation of sampling speed. Therefore, if the voltage change is monitored in real time for every time period between the first and second time points, the computational workload will be enormous, and only a range of voltage change rate can be obtained. When this range is compared with the sampling voltage change rate, the instability of the power failure detection results is implicitly increased. Based on this, in this embodiment, the differential method will be used to test the discharge voltage of the energy storage circuit 101 near the first and second time points, and the discharge voltage change rate at the first and second time points will be obtained respectively. Specifically, the energy storage circuit 101 is defined as... d The voltage at time t is V d Then we have:
[0065]
[0066] At this point, the discharge voltage of the energy storage circuit in the set circuit system can be directly retrieved, and its magnitude can be compared with the third discharge voltage change rate to determine whether the circuit system has lost power.
[0067] Step 207: Output a power-down signal when the value of the third sampling voltage change rate and the discharge voltage change rate meet the condition.
[0068] Of course, it should be understood that in this embodiment, if the value of the third sampling voltage change rate does not meet the condition of step 207, it is determined that the circuit system has not lost power and the process returns to step 201.
[0069] Meanwhile, when actually comparing the sampling voltage change rate and the discharge voltage change rate, they should be placed in the same time state before comparison. A cyclic timing method can be adopted, that is, after the power failure detection device is powered on, the timing starts and enters step 201. After the above steps, if it is determined that there is no power failure, the timing is cleared and the timing is restarted and enters step 201 for a new round of sampling. Of course, the present invention is not limited to this simple implementation method. Other timing methods that cooperate with the power failure detection method of the present invention are all within the protection scope of the present invention.
[0070] Since absolute values were used in the calculation of the rate of change in this embodiment, the third sampling voltage rate of change will necessarily have a large value when the circuit system loses power. However, it is not mentioned above that the rate of change of discharge voltage at which time point it is compared with, or what conditions are met after comparison to output a power-down signal. Those skilled in the art can design this based on common knowledge and the specific circuit situation. However, in order to further prove the feasibility of the power-down detection method provided by this invention, two specific examples based on Embodiment 1 will be provided below for illustration. However, it should be clearly stated that the following two specific examples do not mean that this invention or Embodiment 1 of this invention is limited to these two specific examples.
[0071] The present invention provides a first specific example based on Embodiment 1, such as Figure 4 As shown, it includes the following steps:
[0072] Step 211: Obtain the first sampled voltage of the circuit system at the first time point.
[0073] Step 212: Compare the first sampling voltage with the first discharge voltage of the energy storage circuit at the first time point and the second discharge voltage at the second time point in the circuit system.
[0074] Regarding the selection of the first and second time points, it has been introduced above that they should be selected at two time points in the stable discharge phase of the energy storage circuit 101. Furthermore, in this embodiment, for the convenience of description and comparison, the first time point is selected earlier than the second time point. Therefore, in the event of a power outage in the circuit system, the voltage at and near the first time point is often higher than the voltage at and near the second time point.
[0075] Step 213: When the first sampling voltage is less than the first discharge voltage and greater than the second discharge voltage, obtain the second sampling voltage of the circuit system at the second time point.
[0076] Since the first sampling voltage is between the first and second discharge voltages, it is not possible to determine its voltage change at the second time point. That is, it cannot be concluded that it is definitely less than the second discharge voltage at the second time point, thus preventing a power outage. Therefore, it is necessary to further detect the sampling voltage at the second time point before determining if a power outage has occurred. It is understandable that if the first sampling voltage is already less than the second discharge voltage, then due to the large difference compared to the normal operating voltage of the circuit system, it is highly unlikely that the voltage will suddenly increase to a level sufficient to power the circuit system at the second time point. Therefore, when the first sampling voltage is less than the second discharge voltage, a system power outage is directly determined. Of course, the implementation method provided by this invention focuses on the subsequent calculation of the third sampling voltage change rate and its comparison with the third discharge voltage change rate. Therefore, those skilled in the art can adjust the steps before the calculation and comparison according to the actual needs of the circuit system.
[0077] Step 214: Compare the second sampling voltage with the second discharge voltage.
[0078] Step 215: When the second sampling voltage is greater than or equal to the second discharge voltage, calculate the rate of change of the third sampling voltage of the circuit system between the first time point and the second time point.
[0079] Since the first sampling voltage is between the first discharge voltage and the second discharge voltage, and the second sampling voltage is higher than the second discharge voltage, it is impossible to determine the trend of the voltage in the subsequent circuit system, whether it will rise and return to normal operation. Therefore, it is necessary to further calculate the rate of change of the third sampling voltage between the first time point and the second time point, that is, the curve that reflects the degree of easing of the voltage change.
[0080] Step 216: Compare the third sampling voltage change rate with the second discharge voltage change rate of the energy storage circuit in the circuit system at the set second time point.
[0081] The second discharge voltage change rate is calculated using the same method as described above, which is to use the differential method to sample the voltage near the second time point and calculate the corresponding discharge voltage change rate.
[0082] Step 217: When the rate of change of the third sampling voltage is greater than the rate of change of the second discharge voltage, output a power-down signal.
[0083] Because the discharge process of the circuit system or energy storage circuit 101 often follows an inverse proportional function curve—that is, the voltage change rate is large and the voltage drop is drastic at the beginning of the power outage—and the voltage change rate gradually decreases and the voltage drop becomes more moderate after a period of power outage or discharge, it is understandable that the second discharge voltage change rate is usually smaller than the first discharge voltage change rate. Furthermore, since the second sampling voltage is greater than the second discharge voltage, comparing the third sampling voltage change rate with the first discharge voltage change rate is meaningless, because the third sampling voltage change rate will inevitably be smaller than the first discharge voltage change rate. What truly affects the subsequent current change in the circuit system is the ratio of the third sampling voltage change rate to the first discharge voltage change rate. The relationship between the second and third discharge voltage change rates is as follows: If the third sampling voltage change rate is less than the second discharge voltage change rate, it means that the voltage change is relatively gentle between the first and second time points. Continuing to fluctuate the voltage along this rate does not rule out the possibility that it is just a temporary low voltage condition caused by insufficient voltage. Therefore, it is determined that there is no power failure, and the process returns to step 211 for a new round of sampling and detection. However, if the third sampling voltage change rate is greater than the second discharge voltage change rate, that is, the voltage drop is more severe at this time. Continuing to drop along this rate will inevitably result in the voltage dropping below the discharge voltage of the energy storage circuit 101 at some subsequent time point. Therefore, it is determined that the circuit system has lost power, and a power failure signal is output.
[0084] It should be emphasized that when using the calculation method for the sampling voltage change rate and discharge voltage change rate provided in this embodiment, since the calculation formula includes absolute value operations, when it is determined that the sampling voltage change rate is greater than the discharge voltage change rate, it is determined that the power is off. However, in other embodiments, especially those that do not perform absolute value operations when calculating the sampling voltage change rate and discharge voltage change rate, it should be noted that both the discharge voltage change rate and the sampling voltage change rate in the power-off state of the circuit system are negative. In this case, the condition for determining the power off changes to: when the third sampling voltage change rate is less than the second discharge voltage change rate. In this way, it is possible to determine whether the sampling voltage change rate is negative, i.e., whether the voltage has dropped, while comparing the magnitude of the discharge voltage change rate and the sampling voltage change rate, which is more conducive to actual detection. However, considering that those skilled in the art generally understand that the voltage change rate is non-negative, the judgment condition is still handled according to the conventional understanding. But this does not mean that the scope of protection of this invention is limited by only the judgment condition of "greater than".
[0085] The first specific example based on Embodiment 1 described above provides a case where the first sampling voltage is between the first discharge voltage and the second discharge voltage. However, in the prior art, when the value of the first sampling voltage is greater than the first discharge voltage, it is often directly determined that the circuit system has not lost power. This arbitrary judgment method often leads to a significant increase in the probability of power failure detection error. Therefore, the present invention makes a further judgment on this case and provides a second specific example based on Embodiment 1.
[0086] The present invention provides a second specific example based on Embodiment 1, such as... Figure 5 As shown, it includes the following steps:
[0087] Step 221: Obtain the first sampled voltage of the circuit system at the first time point.
[0088] Step 222: Compare the first sampling voltage with the first discharge voltage of the energy storage circuit in the circuit system at the first time point.
[0089] Step 223: When the first sampling voltage is greater than the first discharge voltage, obtain the second sampling voltage of the circuit system at the second time point.
[0090] The second specific example based on Embodiment 1 differs from the first specific example mainly in that it discusses how power failure detection should be performed when the first sampling voltage is greater than the first discharge voltage. In this invention, it is understood that even if the first sampling voltage is greater than the first discharge voltage, it cannot be determined that the circuit system has not experienced a power failure. The second sampling voltage of the circuit system at the second time point should be obtained to determine the subsequent voltage change of the circuit system.
[0091] Step 224: Compare the second sampling voltage with the second discharge voltage of the energy storage circuit in the circuit system at the set second time point.
[0092] Step 225: When the second sampling voltage is less than the second discharge voltage, calculate the rate of change of the third sampling voltage of the circuit system between the first time point and the second time point.
[0093] Since the first sampling voltage is greater than the first discharge voltage, if the second sampling voltage obtained after the second sampling is also greater than the second discharge voltage, the subsequent voltage change of the circuit system will most likely remain stable and higher than the discharge voltage of the energy storage circuit 101. Therefore, it can be determined that the system has not lost power, and the process returns to step 221 for a new round of sampling. However, when the second sampling voltage is less than the second discharge voltage, since the first sampling voltage is greater than the first discharge voltage, although the voltage change of the circuit system is relatively drastic at this time, it cannot be determined that the system has lost power. Therefore, it is necessary to calculate the rate of change of the third sampling voltage between the first time point and the second time point for the next step of judgment.
[0094] Step 226: Compare the rate of change of the third sampled voltage with the rate of change of the first discharge voltage of the energy storage circuit in the circuit system at the set first time point.
[0095] The first discharge voltage change rate is calculated using the same method as described above, which is to use the differential method to sample the voltage near the first time point and calculate the corresponding discharge voltage change rate.
[0096] Step 227: When the rate of change of the third sampling voltage is greater than the rate of change of the first discharge voltage, output a power-down signal.
[0097] Because the discharge process of the circuit system or energy storage circuit 101 often follows an inverse proportional function curve—that is, the voltage change rate is large and the voltage drop is drastic at the beginning of the power outage—and the voltage change rate gradually decreases and the voltage drop becomes more moderate after a period of power outage or discharge, it is understandable that the second discharge voltage change rate is usually smaller than the first discharge voltage change rate. Furthermore, since the second sampling voltage is greater than the second discharge voltage, comparing the third sampling voltage change rate with the second discharge voltage change rate is meaningless, because the third sampling voltage change rate will inevitably be greater than the second discharge voltage change rate. What truly affects the subsequent current change in the circuit system is the ratio of the third sampling voltage change rate to the second discharge voltage change rate. The relationship between the first discharge voltage change rate and the third sampling voltage change rate is as follows: if the third sampling voltage change rate is less than the first discharge voltage change rate, it means that the voltage change is relatively gentle between the first and second time points. If the voltage continues to fluctuate along this change rate, it cannot be ruled out that the low voltage condition is caused by a temporary voltage deficiency. Therefore, it is determined that there is no power failure, and the process returns to step 211 for a new round of sampling and detection. However, if the third sampling voltage change rate is greater than the first discharge voltage change rate, that is, the voltage drop is more severe at this time. If the voltage continues to drop along this change rate, it will inevitably drop below the discharge voltage of the energy storage circuit 101 at some subsequent time point. Therefore, it is determined that the circuit system is powered down, and a power failure signal is output.
[0098] In summary, this covers the complete content of the two specific examples based on Embodiment 1.
[0099] The above describes Embodiment 1 of the present invention, which basically follows the overall idea of the present invention. That is, the circuit system is sampled twice. First, the voltage magnitude obtained from the two samples is used to preliminarily determine whether the circuit system has lost power. When the power loss situation cannot be determined solely based on the voltage magnitude, the voltage change rate of the two samples is calculated and compared with the discharge voltage change rate of the energy storage circuit 101 set within this time period to conclude whether there is a power loss or not. However, regardless of whether the first or second specific example is adopted, due to the limitations of the power loss or discharge nature of the energy storage circuit 101, the selection of the first and second sampling times cannot be at the beginning of the power loss or discharge, nor at the critical point of power loss. When the voltage is exhausted, the processor 102 cannot recognize the situation because the voltage change in the specific circuit is in various cases. In the case that the high voltage obtained in the first sampling is obviously within the normal voltage fluctuation range and there is no possibility of power failure, or the low voltage obviously indicates that the circuit system has lost power, the processor 102 will still execute according to the steps of Embodiment 1. This may waste time and even cause the power failure signal to be unable to be sent to the host computer. Based on this, the present invention provides Embodiment 2, that is, a pre-program is set before Embodiment 1 to directly determine whether the circuit system has lost power based on the sampled voltage. This can improve the efficiency of the power failure detection method provided by the present invention and reduce the probability of misjudgment.
[0100] Based on the above ideas, the present invention provides Embodiment 2, as follows: Figure 6 As shown, it includes the following steps:
[0101] Step 301: Obtain the pre-sampled voltage of the circuit system.
[0102] Understandably, the pre-sampling voltage referred to here is actually the sampled voltage of the circuit system obtained by the sampling circuit 104. However, based on its sampling time being before the first time period, it is named pre-sampling voltage in order to distinguish it from the first sampled voltage.
[0103] Step 302: Compare the pre-sampled voltage with the standard voltage set by the circuit system.
[0104] Similar to the first discharge voltage change rate or second discharge voltage change rate of the energy storage circuit in the circuit system within the preset first time period mentioned in Embodiment 1, before the power failure detection device is installed in the circuit system, there should be a step during hardware debugging, that is, the test circuit system needs to enable the minimum or maximum voltage magnitude or other voltage limiting conditions of the power failure detection method in Embodiment 1, and define the condition as a standard voltage and store it in the processor 102 for subsequent comparison.
[0105] Step 303: When the relationship between the value of the pre-sampled voltage and the standard voltage meets the condition, obtain the first sampled voltage of the circuit system at the first time point.
[0106] The comparison between the pre-sampled voltage value and the standard voltage is the pre-process mentioned above. That is, after determining whether the pre-sampled voltage value meets or does not meet certain conditions, it directly determines whether the circuit system is powered off or not and returns to step 301 without executing subsequent steps. In other words, it omits the steps of sampling twice and calculating the rate of change of the sampled voltage, thus improving the efficiency of power failure detection. However, if the relationship between the pre-sampled voltage value and the standard voltage does not meet or meets certain conditions, it continues to execute the subsequent steps of calculating the rate of change of the sampled voltage.
[0107] Step 304: Compare the first sampling voltage with the discharge voltage of the energy storage circuit in the set circuit system.
[0108] Step 305: When the relationship between the value of the first sampling voltage and the discharge voltage meets the condition, obtain the second sampling voltage of the circuit system at the second time point.
[0109] Step 306: Compare the second sampling voltage with the second discharge voltage of the energy storage circuit in the circuit system at the set second time point.
[0110] Step 307: When the relationship between the value of the second sampling voltage and the second discharge voltage satisfies the condition, calculate the rate of change of the third sampling voltage of the circuit system between the first time point and the second time point.
[0111] Step 308: Compare the rate of change of the third sampled voltage with the rate of change of the discharge voltage of the energy storage circuit in the circuit system.
[0112] Step 309: When the value of the third sampling voltage change rate and the discharge voltage change rate meet the condition, output a power-down signal.
[0113] The steps 304 to 309 described above are the same as steps 202 to 207 in Embodiment 1 on the machine side, specifically on the processor 102 side, and will not be described again here.
[0114] Of course, it should be understood that in this embodiment, when the first sampling voltage change rate is less than or equal to the first discharge voltage change rate of the energy storage circuit in the first time period, it is determined that the circuit system has not lost power and the process continues to return to step 301.
[0115] As for the timing in this process, it can be similar to that in Embodiment 1, using a cyclic timing method. That is, after the pre-sampled voltage meets the condition, timing starts and the process enters step 301. After other steps are completed, if it is determined that there is no power failure, the timing is cleared, and the process enters step 301 and starts timing again to perform a new round of power failure detection. Of course, the present invention is not limited to this simple implementation method. Other timing methods that cooperate with the power failure detection method of the present invention are all within the protection scope of the present invention, and will not be described in detail below.
[0116] Regarding the selection of the standard voltage and the determination of the relationship between the pre-sampled voltage and the standard voltage, there can be many specific examples depending on the actual situation of the circuit system. In the following text, the present invention will provide three specific examples based on the technical solution of Embodiment 2. However, it should be clearly stated that the following three specific examples do not mean that the present invention or Embodiment 2 of the present invention is limited to these three specific examples.
[0117] This invention provides a first specific example based on Embodiment 2, corresponding to the foregoing description, achieving the technical effect of avoiding the initiation of sampling, calculation, and comparison steps even when the mains power 100 itself fluctuates, as follows: Figure 7 As shown.
[0118] Step 311: Obtain the pre-sampled voltage of the circuit system.
[0119] Step 312: Compare the pre-sampled voltage with the highest standard voltage set by the circuit system.
[0120] It should be noted that the maximum standard voltage here is actually the lowest permissible operating voltage of the energy storage circuit 101 when voltage fluctuations occur under normal operating conditions. That is, under normal circumstances, when the mains power 100 fluctuates, it actually fluctuates around a certain threshold value. In this invention, the lowest voltage of this threshold is set as the maximum standard voltage. The significance of this is that when the pre-sampled voltage obtained by the sampling circuit 103 is higher than this threshold, that is, greater than the maximum standard voltage, it means that the circuit system is actually only within the normal voltage fluctuation range and does not need to perform power-off detection, i.e., it does not need to perform subsequent sampling, calculation, and comparison steps. Of course, the maximum standard voltage here can be adaptively adjusted according to the actual situation of the circuit system.
[0121] Step 313: When the pre-sampled voltage is less than or equal to the highest standard voltage, obtain the first sampled voltage of the circuit system at the first time point.
[0122] As mentioned earlier, when the pre-sampled voltage is greater than the maximum standard voltage, the circuit system is likely not actually experiencing a power outage, so no further calculation and comparison steps are needed. However, when the pre-sampled voltage is still less than or equal to the maximum standard voltage, it means that the circuit system may experience a power outage, so further sampling, calculation, and comparison are needed to determine the status of the circuit system.
[0123] Step 314: Compare the first sampling voltage with the discharge voltage of the energy storage circuit in the set circuit system.
[0124] Step 315: When the relationship between the value of the first sampling voltage and the discharge voltage meets the condition, obtain the second sampling voltage of the circuit system at the second time point.
[0125] Step 316: Compare the second sampling voltage with the second discharge voltage of the energy storage circuit in the circuit system set at the second time point.
[0126] Step 317: When the relationship between the value of the second sampling voltage and the second discharge voltage satisfies the condition, calculate the rate of change of the third sampling voltage of the circuit system between the first time point and the second time point.
[0127] Step 318: Compare the rate of change of the third sampled voltage with the rate of change of the discharge voltage of the energy storage circuit in the circuit system.
[0128] Step 319: When the value of the third sampling voltage change rate and the discharge voltage change rate meet the condition, output a power-down signal.
[0129] Of course, it should be understood that in this embodiment, if the value of the third sampling voltage change rate and the discharge voltage change rate do not meet the conditions in step 319, it is determined that the circuit system has not yet lost power, and the process returns to step 311.
[0130] Furthermore, the present invention provides a second specific example based on Embodiment 2, corresponding to the foregoing description, to achieve the technical effect of avoiding the situation where the sampling voltage is sufficient to determine a system power failure, but the processor 102 still performs the sampling, calculation, and comparison steps, as described above. Figure 8 As shown.
[0131] Step 321: Obtain the pre-sampled voltage of the circuit system.
[0132] Step 322: Compare the pre-sampled voltage with the minimum standard voltage set by the circuit system.
[0133] It should be noted that the minimum standard voltage here is actually the minimum operating voltage for the circuit system to process power-down signals. That is, at this operating voltage, the sampling needs of the sampling circuit 103, the voltage comparison needs of the processor 102, and the need for the signal transmission module 107 to send the power-down signal to the host computer 108 can be basically met. This means that when the pre-sampling voltage is less than the minimum standard voltage, the circuit system will inevitably experience a power-down. In this case, there is no need to further calculate and verify the rate of change of the sampling voltage; only the value of the pre-sampling voltage needs to be detected and judged to arrive at the conclusion of a power-down, causing the processor 102 and the signal transmission module 107 to output a power-down signal. Of course, the minimum standard voltage here can be adaptively adjusted according to the actual situation of the circuit system.
[0134] Step 323: When the pre-sampled voltage is greater than or equal to the minimum standard voltage, obtain the first sampled voltage of the circuit system at the first time point.
[0135] As mentioned earlier, when the pre-sampled voltage is less than the minimum standard voltage, the circuit system will inevitably lose power, so there is no need for subsequent calculation and comparison steps. However, when the pre-sampled voltage is still greater than or equal to the minimum standard voltage, it means that there is a possibility that the circuit system has not lost power. Therefore, it is necessary to further determine the status of the circuit system based on subsequent sampling, calculation and comparison.
[0136] Step 324: Compare the first sampling voltage with the discharge voltage of the energy storage circuit in the set circuit system.
[0137] Step 325: When the relationship between the value of the first sampling voltage and the discharge voltage meets the condition, obtain the second sampling voltage of the circuit system at the second time point.
[0138] Step 326: Compare the second sampling voltage with the second discharge voltage of the energy storage circuit in the circuit system set at the second time point.
[0139] Step 327: When the relationship between the value of the second sampling voltage and the second discharge voltage satisfies the condition, calculate the rate of change of the third sampling voltage of the circuit system between the first time point and the second time point.
[0140] Step 328: Compare the rate of change of the third sampled voltage with the rate of change of the discharge voltage of the energy storage circuit in the circuit system.
[0141] Step 329: When the rate of change of the third sampling voltage meets the condition, output a power-down signal.
[0142] Of course, it should be understood that in this embodiment, if the third sampling voltage change rate does not meet the condition of step 329, it is determined that the circuit system has not lost power and the process returns to step 321.
[0143] Furthermore, combining the first and second specific examples based on Embodiment 2 described above, setting the standard voltage described in Embodiment 2 as a voltage window (i.e., a region) composed of the lowest and highest standard voltages, and determining whether the sampled pre-sampled voltage is within this voltage window, can achieve a more efficient judgment effect, thus obtaining the third specific example based on Embodiment 2, such as... Figure 9 .
[0144] Step 331: Obtain the pre-sampled voltage of the circuit system.
[0145] Step 332: Compare the pre-sampled voltage with the minimum and maximum standard voltages set by the circuit system.
[0146] Step 333: When the pre-sampled voltage is greater than or equal to the minimum standard voltage and less than or equal to the maximum standard voltage, obtain the first sampled voltage of the circuit system at the first time point.
[0147] Step 334: Compare the first sampling voltage with the discharge voltage of the energy storage circuit in the set circuit system.
[0148] Step 335: When the relationship between the value of the first sampling voltage and the discharge voltage meets the condition, obtain the second sampling voltage of the circuit system at the second time point.
[0149] Step 336: Compare the second sampling voltage with the second discharge voltage of the energy storage circuit in the circuit system set at the second time point.
[0150] Step 337: When the relationship between the value of the second sampling voltage and the second discharge voltage satisfies the condition, calculate the rate of change of the third sampling voltage of the circuit system between the first time point and the second time point.
[0151] Step 338: Compare the rate of change of the third sampled voltage with the rate of change of the discharge voltage of the energy storage circuit in the circuit system.
[0152] Step 339: When the value of the third sampling voltage change rate and the discharge voltage change rate meet the condition, output a power-down signal.
[0153] Of course, it should be understood that in this embodiment, if the value of the third sampling voltage change rate and the discharge voltage change rate do not meet the conditions of step 339, it is determined that the circuit system has not yet lost power, and the process returns to step 331.
[0154] Since the third specific example is merely a combination of the first and second specific examples, further details regarding this specific example will not be provided. However, it should be noted that step 333, where the voltage is greater than or equal to the minimum standard voltage and less than or equal to the maximum standard voltage, actually refers to any value within the range of being greater than or equal to the minimum standard voltage and less than the maximum standard voltage, or greater than the minimum standard voltage and less than or equal to the maximum standard voltage.
[0155] Furthermore, although sampling is described as occurring twice in this invention, it should be understood that in the embodiments provided by this invention, the more samplings there are, the more accurate the power failure detection will be, provided that the processor can send the power failure signal to the host computer. Therefore, it cannot be assumed that the first sampling and the second sampling mean that this invention is only applicable to the case of sampling twice.
[0156] It should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This way of describing the specification is only for clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
[0157] The detailed descriptions listed above are merely specific descriptions of feasible embodiments of the present invention, and are not intended to limit the scope of protection of the present invention. All equivalent embodiments or modifications made without departing from the spirit of the present invention should be included within the scope of protection of the present invention.
Claims
1. A power failure detection device, characterized in that, The system includes an energy storage circuit (101), a processor (102), and a sampling circuit (103), wherein the processor (102) is electrically connected to the energy storage circuit (101) and the sampling circuit (103), respectively. The processor (102) is used to acquire the standard voltage change rate, calculate the sampled voltage change rate, and output a power-down signal. The sampling circuit (103) is used to sample the voltage of the circuit system. The sampling circuit is used to obtain the first sampling voltage of the circuit system at a first time point; The processor is used to compare the first sampling voltage with the set discharge voltage of the energy storage circuit in the circuit system; the discharge voltage includes a second discharge voltage and a first discharge voltage of the energy storage circuit at the first time point; The sampling circuit is further configured to acquire the second sampling voltage of the circuit system at a second time point when the first sampling voltage is less than the first discharge voltage and greater than the second discharge voltage. The processor is also configured to compare the second sampling voltage with a second discharge voltage of the energy storage circuit in the circuit system at a set second time point; The processor is further configured to calculate the third sampling voltage change rate of the circuit system between the first time point and the second time point when the second sampling voltage is greater than or equal to the second discharge voltage; The processor is further configured to compare the third sampling voltage change rate with a set discharge voltage change rate of the energy storage circuit in the circuit system; the discharge voltage change rate includes a set second discharge voltage change rate of the energy storage circuit in the circuit system at a second time point; The processor is also configured to output a power-down signal when the rate of change of the third sampling voltage is greater than the rate of change of the second discharge voltage.
2. The power failure detection device according to claim 1, characterized in that, The power failure detection device further includes a signal transmission module (107) electrically connected to the processor (102), and a host computer (108) communicatively connected to the signal transmission module (107). The signal transmission module (107) is configured to receive a power-down signal from the processor (102) and send the signal to the host computer (108).
3. The power failure detection device according to claim 2, characterized in that, The sampling circuit (103) has a total sampling time, the processor (102) has a processing time, the signal transmission module (107) has a signal transmission time, and the discharge time of the energy storage circuit (101) is greater than the sum of the total sampling time, the processing time, and the signal transmission time.
4. A power failure detection device, characterized in that, The system includes an energy storage circuit (101), a processor (102), and a sampling circuit (103), wherein the processor (102) is electrically connected to the energy storage circuit (101) and the sampling circuit (103), respectively. The processor (102) is used to acquire the standard voltage change rate, calculate the sampled voltage change rate, and output a power-down signal. The sampling circuit (103) is used to sample the voltage of the circuit system. The sampling circuit is used to obtain the first sampling voltage of the circuit system at a first time point; The processor is used to compare the first sampling voltage with a set discharge voltage of the energy storage circuit in the circuit system; the discharge voltage includes the first discharge voltage of the energy storage circuit at the first time point; The sampling circuit is also used to obtain the second sampling voltage of the circuit system at the second time point when the first sampling voltage is greater than the first discharge voltage; The processor is also configured to compare the second sampling voltage with a second discharge voltage of the energy storage circuit in the circuit system at a set second time point; The processor is also configured to calculate the third sampling voltage change rate of the circuit system between the first time point and the second time point when the second sampling voltage is less than the second discharge voltage; The processor is also configured to compare the third sampling voltage change rate with a set discharge voltage change rate of the energy storage circuit in the circuit system; the discharge voltage change rate includes a first discharge voltage change rate of the energy storage circuit in the circuit system at a set first time point; The processor is also configured to output a power-down signal when the rate of change of the third sampling voltage is greater than the rate of change of the first discharge voltage.
5. The power failure detection device according to claim 4, characterized in that, The power failure detection device further includes a signal transmission module (107) electrically connected to the processor (102), and a host computer (108) communicatively connected to the signal transmission module (107). The signal transmission module (107) is configured to receive a power-down signal from the processor (102) and send the signal to the host computer (108).
6. The power failure detection device according to claim 5, characterized in that, The sampling circuit (103) has a total sampling time, the processor (102) has a processing time, the signal transmission module (107) has a signal transmission time, and the discharge time of the energy storage circuit (101) is greater than the sum of the total sampling time, the processing time, and the signal transmission time.
7. A power failure detection device, characterized in that, The system includes an energy storage circuit (101), a processor (102), and a sampling circuit (103), wherein the processor (102) is electrically connected to the energy storage circuit (101) and the sampling circuit (103), respectively. The processor (102) is used to acquire the standard voltage change rate, calculate the sampled voltage change rate, and output a power-down signal. The sampling circuit (103) is used to sample the voltage of the circuit system. The sampling circuit is used to obtain the pre-sampled voltage of the circuit system; The processor is used to compare the pre-sampled voltage with a standard voltage set by the circuit system; the standard voltage includes a maximum standard voltage; the maximum standard voltage is the lowest operating voltage allowed by the energy storage circuit when voltage fluctuations occur under normal operating conditions of the circuit system; The sampling circuit is also used to acquire the first sampling voltage of the circuit system at a first time point when the pre-sampling voltage is less than or equal to the highest standard voltage; The processor is further configured to compare the first sampling voltage with a set discharge voltage of the energy storage circuit in the circuit system; the discharge voltage includes a second discharge voltage and a first discharge voltage of the energy storage circuit at the first time point; The sampling circuit is further configured to acquire the second sampling voltage of the circuit system at a second time point when the first sampling voltage is less than the first discharge voltage and greater than the second discharge voltage. The processor is also configured to compare the second sampling voltage with a second discharge voltage of the energy storage circuit in the circuit system at a set second time point; The processor is further configured to calculate the third sampling voltage change rate of the circuit system between the first time point and the second time point when the second sampling voltage is greater than or equal to the second discharge voltage; The processor is further configured to compare the third sampling voltage change rate with a set discharge voltage change rate of the energy storage circuit in the circuit system; the discharge voltage change rate includes a set second discharge voltage change rate of the energy storage circuit in the circuit system at a second time point; The processor is also configured to output a power-down signal when the rate of change of the third sampling voltage is greater than the rate of change of the second discharge voltage.
8. The power failure detection device according to claim 7, characterized in that, The power failure detection device further includes a signal transmission module (107) electrically connected to the processor (102), and a host computer (108) communicatively connected to the signal transmission module (107). The signal transmission module (107) is configured to receive a power-down signal from the processor (102) and send the signal to the host computer (108).
9. The power failure detection device according to claim 8, characterized in that, The sampling circuit (103) has a total sampling time, the processor (102) has a processing time, the signal transmission module (107) has a signal transmission time, and the discharge time of the energy storage circuit (101) is greater than the sum of the total sampling time, the processing time, and the signal transmission time.
10. A power failure detection device, characterized in that, The system includes an energy storage circuit (101), a processor (102), and a sampling circuit (103), wherein the processor (102) is electrically connected to the energy storage circuit (101) and the sampling circuit (103), respectively. The processor (102) is used to acquire the standard voltage change rate, calculate the sampled voltage change rate, and output a power-down signal. The sampling circuit (103) is used to sample the voltage of the circuit system. The sampling circuit is used to obtain the pre-sampled voltage of the circuit system; The processor is used to compare the pre-sampled voltage with a standard voltage set by the circuit system; the standard voltage includes a minimum standard voltage; the minimum standard voltage is the lowest operating voltage at which the circuit system performs power-down signal processing. The sampling circuit is also used to obtain the first sampling voltage of the circuit system within a first time period when the pre-sampling voltage is greater than or equal to the minimum standard voltage; The processor is further configured to compare the first sampling voltage with a set discharge voltage of the energy storage circuit in the circuit system; the discharge voltage includes a second discharge voltage and a first discharge voltage of the energy storage circuit at a first time point. The sampling circuit is further configured to acquire the second sampling voltage of the circuit system at a second time point when the first sampling voltage is less than the first discharge voltage and greater than the second discharge voltage. The processor is also configured to compare the second sampling voltage with a second discharge voltage of the energy storage circuit in the circuit system at a set second time point; The processor is further configured to calculate the third sampling voltage change rate of the circuit system between the first time point and the second time point when the second sampling voltage is greater than or equal to the second discharge voltage; The processor is further configured to compare the third sampling voltage change rate with a set discharge voltage change rate of the energy storage circuit in the circuit system; the discharge voltage change rate includes a set second discharge voltage change rate of the energy storage circuit in the circuit system at a second time point; The processor is also configured to output a power-down signal when the rate of change of the third sampling voltage is greater than the rate of change of the second discharge voltage.
11. The power failure detection device according to claim 10, characterized in that, The power failure detection device further includes a signal transmission module (107) electrically connected to the processor (102), and a host computer (108) communicatively connected to the signal transmission module (107). The signal transmission module (107) is configured to receive a power-down signal from the processor (102) and send the signal to the host computer (108).
12. The power failure detection device according to claim 11, characterized in that, The sampling circuit (103) has a total sampling time, the processor (102) has a processing time, the signal transmission module (107) has a signal transmission time, and the discharge time of the energy storage circuit (101) is greater than the sum of the total sampling time, the processing time, and the signal transmission time.
13. A power failure detection device, characterized in that, The system includes an energy storage circuit (101), a processor (102), and a sampling circuit (103), wherein the processor (102) is electrically connected to the energy storage circuit (101) and the sampling circuit (103), respectively. The processor (102) is used to acquire the standard voltage change rate, calculate the sampled voltage change rate, and output a power-down signal. The sampling circuit (103) is used to sample the voltage of the circuit system. The sampling circuit is used to obtain the pre-sampled voltage of the circuit system; The processor is used to compare the pre-sampled voltage with a standard voltage set by the circuit system; the standard voltage includes a maximum standard voltage; the maximum standard voltage is the lowest operating voltage allowed by the energy storage circuit when voltage fluctuations occur under normal operating conditions of the circuit system; The sampling circuit is also used to acquire the first sampling voltage of the circuit system at a first time point when the pre-sampling voltage is less than or equal to the highest standard voltage; The processor is further configured to compare the first sampling voltage with a set discharge voltage of the energy storage circuit in the circuit system; the discharge voltage includes a first discharge voltage of the energy storage circuit at the first time point; The sampling circuit is also used to obtain the second sampling voltage of the circuit system at the second time point when the first sampling voltage is greater than the first discharge voltage; The processor is also configured to compare the second sampling voltage with a second discharge voltage of the energy storage circuit in the circuit system at a set second time point; The processor is further configured to calculate the third sampling voltage change rate of the circuit system between the first time point and the second time point when the second sampling voltage is less than the second discharge voltage; The processor is also configured to compare the third sampling voltage change rate with a set discharge voltage change rate of the energy storage circuit in the circuit system; the discharge voltage change rate includes a first discharge voltage change rate of the energy storage circuit in the circuit system at a set first time point; The processor is also configured to output a power-down signal when the rate of change of the third sampling voltage is greater than the rate of change of the first discharge voltage.
14. The power failure detection device according to claim 13, characterized in that, The power failure detection device further includes a signal transmission module (107) electrically connected to the processor (102), and a host computer (108) communicatively connected to the signal transmission module (107). The signal transmission module (107) is configured to receive a power-down signal from the processor (102) and send the signal to the host computer (108).
15. The power failure detection device according to claim 14, characterized in that, The sampling circuit (103) has a total sampling time, the processor (102) has a processing time, the signal transmission module (107) has a signal transmission time, and the discharge time of the energy storage circuit (101) is greater than the sum of the total sampling time, the processing time, and the signal transmission time.
16. A power failure detection device, characterized in that, The system includes an energy storage circuit (101), a processor (102), and a sampling circuit (103), wherein the processor (102) is electrically connected to the energy storage circuit (101) and the sampling circuit (103), respectively. The processor (102) is used to acquire the standard voltage change rate, calculate the sampled voltage change rate, and output a power-down signal. The sampling circuit (103) is used to sample the voltage of the circuit system. The sampling circuit is used to obtain the pre-sampled voltage of the circuit system; The processor is used to compare the pre-sampled voltage with a standard voltage set by the circuit system; the standard voltage includes a minimum standard voltage; the minimum standard voltage is the lowest operating voltage at which the circuit system performs power-down signal processing. The sampling circuit is also used to obtain the first sampling voltage of the circuit system within a first time period when the pre-sampling voltage is greater than or equal to the minimum standard voltage; The processor is further configured to compare the first sampling voltage with a set discharge voltage of the energy storage circuit in the circuit system; the discharge voltage includes a first discharge voltage of the energy storage circuit at a first time point. The sampling circuit is also used to obtain the second sampling voltage of the circuit system at the second time point when the first sampling voltage is greater than the first discharge voltage; The processor is also configured to compare the second sampling voltage with a second discharge voltage of the energy storage circuit in the circuit system at a set second time point; The processor is further configured to calculate the third sampling voltage change rate of the circuit system between the first time point and the second time point when the second sampling voltage is less than the second discharge voltage; The processor is further configured to compare the third sampling voltage change rate with a set discharge voltage change rate of the energy storage circuit in the circuit system; the discharge voltage change rate includes a first discharge voltage change rate of the energy storage circuit in the circuit system at a set first time point. The processor is also configured to output a power-down signal when the rate of change of the third sampling voltage is greater than the rate of change of the first discharge voltage.
17. The power failure detection device according to claim 16, characterized in that, The power failure detection device further includes a signal transmission module (107) electrically connected to the processor (102), and a host computer (108) communicatively connected to the signal transmission module (107). The signal transmission module (107) is configured to receive a power-down signal from the processor (102) and send the signal to the host computer (108).
18. The power failure detection device according to claim 17, characterized in that, The sampling circuit (103) has a total sampling time, the processor (102) has a processing time, the signal transmission module (107) has a signal transmission time, and the discharge time of the energy storage circuit (101) is greater than the sum of the total sampling time, the processing time, and the signal transmission time.
19. An electrical appliance, characterized in that, The circuit system is provided, which includes a power input device, a working device (109), a main control device, and a power failure detection device as described in any one of claims 1-18.
Citation Information
Patent Citations
Power-down protection circuit and method of NAND Flash chip and solid state hard disk
CN108389596A
Power supply monitoring device
CN110579720A