Method and device for calculating power-down time of refrigerator electric control system and refrigerator electric control system

By obtaining the delay time and voltage value for segmentation judgment, the initial capacitance voltage of the refrigerator electronic control system is calculated, which solves the problem of inaccurate capacitance capture and improves the accuracy and reliability of power-down time calculation.

CN120490577APending Publication Date: 2025-08-15MIANYANG MEILING REFRIGERATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510691994.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, the refrigerator electronic control system cannot accurately capture the initial voltage of the capacitor when it is powered on for the first time, resulting in inaccurate calculation results of the power-down time, which affects the reliable start of the compressor.

Method used

By obtaining the delay time from the system to the first sampling and the first sampling voltage value, a segmented judgment is performed to determine the compensation coefficient, and the initial capacitance power-on voltage is calculated based on the compensation coefficient and the first sampling voltage value, and the system power-down time is determined based on the preset voltage-time mapping relationship.

Benefits of technology

It improves the reliability and accuracy of power-down time calculation, reduces the voltage calculation error caused by the difference in delay time, and enhances the system's adaptability under different operating conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120490577A_ABST
    Figure CN120490577A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for calculating power-down time of a refrigerator electric control system and the refrigerator electric control system. The method comprises the steps that delay time from system power-on to first-time sampling and a first-time sampling voltage value are obtained; performing segmentation judgment according to the delay time to determine a compensation coefficient; wherein the segmentation judgment comprises the steps of carrying out discretization division on a delay time interval, and configuring a corresponding compensation coefficient for each interval; calculating the initial power-on voltage of the capacitor according to the compensation coefficient and the first sampling voltage value; and determining the power-down time of the system based on the initial power-on voltage of the capacitor and a preset voltage-time mapping relation so as to solve the problem that the initial voltage of the capacitor cannot be accurately captured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of refrigerator control technology, and in particular to a method and device for calculating power-off time of a refrigerator electronic control system, and a refrigerator electronic control system. Background Art

[0002] Before starting the refrigerator system, the compressor downtime must meet minimum requirements to restore system pressure to the allowable range, ensuring reliable compressor startup. This requirement is particularly critical during initial power-up, as the software cannot retrieve historical time parameters due to incomplete initialization, requiring hardware circuitry to implement downtime detection. Specifically, upon power-up, the capacitor is charged through the charging circuit resistor to generate an initial voltage signal, which serves as a reference for determining downtime.

[0003] In related technologies, capacitor voltage decay is controlled through a discharge circuit. During a system power outage, the capacitor first discharges through the discharge circuit resistor. Adjusting the capacitance and resistance of the capacitors adjusts the discharge time constant. This solution leverages the capacitor's charge and discharge characteristics to indirectly reflect downtime, resulting in simple hardware and low-cost circuit design.

[0004] However, because the resistance of the charging circuit is much smaller than that of the discharging circuit, the capacitor charges significantly faster than it discharges, causing the capacitor voltage to rise rapidly during the initial power-up phase. Furthermore, the initialization time from chip power-up to the first voltage sampling can fluctuate depending on chip model and program. The capacitor voltage at the actual first sampling moment deviates from its true value at initial power-up, making it impossible to accurately capture the capacitor's initial voltage, which in turn affects the reliability of the power-down time calculation. Summary of the Invention

[0005] The present application provides a method and device for calculating the power-off time of a refrigerator electronic control system and a refrigerator electronic control system, so as to solve the problem of being unable to accurately capture the initial voltage of a capacitor.

[0006] A first aspect of the present application provides a method for calculating the power-off time of a refrigerator electronic control system, the method comprising:

[0007] Obtain the delay time from system power-on to first sampling and the first sampling voltage value;

[0008] Performing segmented determination based on the delay time to determine the compensation coefficient; wherein the segmented determination includes discretizing the delay time interval and configuring a corresponding compensation coefficient for each interval;

[0009] Calculating the initial power-on voltage of the capacitor according to the compensation coefficient and the first sampling voltage value;

[0010] The system power-off time is determined based on the initial power-on voltage of the capacitor and a preset voltage-time mapping relationship.

[0011] By obtaining the delay time from system power-on to the first sampling and the first sampling voltage value, and determining the compensation coefficient based on segmented judgment, and then calculating the initial power-on voltage of the capacitor, it helps to alleviate the problem of inaccurate capture of the initial capacitor voltage, thereby improving the reliability of the system power-off time calculation; among them, the segmented judgment adopts the method of discretely dividing the delay time interval and configuring the corresponding compensation coefficient, which can reduce the voltage calculation error caused by the delay time difference and improve the accuracy of the power-off time determination.

[0012] Optionally, the formula for calculating the initial power-on voltage of the capacitor is:

[0013] u0=k*u(t_delay)+u*(1-k);

[0014] Where k is the compensation coefficient; t_delay is the delay time from system power-up to the first sampling; u(t_delay) is the first sampling voltage value; and u is the power supply voltage.

[0015] By using a compensation coefficient and combining the delay time with the first sampled voltage value to calculate the capacitor's initial power-on voltage, the initial voltage estimation deviation caused by delayed sampling can be reduced, thereby improving the accuracy of the capacitor's initial voltage and providing a more reliable basis for subsequent power-off time calculation.

[0016] Optionally, when the delay time is at a first threshold, the compensation coefficient is dynamically determined based on a median of a preset discretization interval; when the delay time exceeds the first threshold, it is determined that the initial power-on voltage of the capacitor cannot be calculated.

[0017] By setting a first threshold to distinguish the delay time, when the delay time is within the first threshold range, the compensation coefficient is dynamically determined based on the median of the preset discretization interval, which helps to improve the adaptability of the calculation of the initial voltage of the capacitor; when the delay time exceeds the first threshold, it is determined that the initial voltage cannot be calculated, which can reduce the error accumulation caused by excessive delay, thereby improving the reliability of power-off time estimation.

[0018] Optionally, the method for establishing the preset voltage-time mapping relationship includes:

[0019] Generate a discretized correspondence table between voltage and power-off time based on the capacitor discharge curve equation;

[0020] The voltage values in the discretization correspondence table are divided into multiple intervals according to a preset accuracy, and are associated with corresponding power-off times.

[0021] A discrete correspondence table between voltage and power-off time is generated using the capacitor discharge curve equation, and the voltage interval is divided according to the preset accuracy to associate the corresponding power-off time. This can reduce the impact of voltage fluctuations on time calculation, improve the accuracy of power-off time mapping, and thus enhance the stability and consistency of system power-off time estimation.

[0022] Optionally, after performing segmented determination based on the delay time to determine the compensation coefficient, the method further includes:

[0023] Get the voltage at a certain moment after the system loses power;

[0024] The system power-off time is calculated according to the voltage at a certain moment after the power-off and the power supply voltage.

[0025] By obtaining the voltage at a specific moment after the system power is lost and combining it with the power supply voltage to calculate the system power-off time, the error caused by a single sampling point can be reduced, the accuracy of the power-off time estimation can be improved, and the adaptability of time calculation under different working conditions can be enhanced.

[0026] Optionally, the voltage calculation formula at a certain moment after the system loses power is:

[0027]

[0028] Where u(t) is the voltage value; u is the power supply voltage; and RC is the time constant of the discharge circuit.

[0029] By using an exponential function that includes the power supply voltage and the discharge circuit time constant to calculate the voltage value at a specific moment after the system power is lost, the capacitor discharge characteristics can be more accurately reflected, thereby reducing the impact of voltage sampling errors on the power-off time calculation and improving the reliability of the time estimation results.

[0030] A second aspect of the present application provides a device for calculating the power-off time of a refrigerator electronic control system, characterized in that the device is applicable to the method for calculating the power-off time of a refrigerator electronic control system according to the first aspect, and comprises:

[0031] Confirmation module, used to obtain the delay time from system power-on to first sampling and the first sampling voltage value;

[0032] A determination module, configured to determine the delay time in segments and output a compensation coefficient;

[0033] A voltage compensation module, configured to calculate an initial power-on voltage of the capacitor based on the compensation coefficient and the first sampled voltage value;

[0034] The time mapping module is configured to convert the initial power-on voltage into a system power-off time based on a preset voltage-time mapping relationship.

[0035] By obtaining the delay time and the first sampling voltage value through the confirmation module, the output compensation coefficient is determined in segments by the judgment module, and the initial power-on voltage of the capacitor is calculated by the voltage compensation module. Finally, it is converted into the system power-off time through the time mapping module. This can reduce the impact of sampling errors on the calculation results, improve the accuracy of power-off time estimation, and enhance the adaptability of the system under different working conditions.

[0036] Optionally, the determination module includes:

[0037] A discretization unit is used to divide the delay time axis into multiple non-overlapping intervals;

[0038] The coefficient matching unit is used to match the corresponding compensation coefficient according to the interval of the current delay time.

[0039] The delay time axis is divided into multiple non-overlapping intervals by a discretization unit, and the coefficient matching unit matches the corresponding compensation coefficient according to the current delay time. This can reduce the impact of time measurement error on the compensation effect, improve the adaptation accuracy of the compensation coefficient, and thus enhance the reliability of the capacitor initial voltage calculation.

[0040] A third aspect of the present application provides a refrigerator electronic control system, comprising:

[0041] Power-off time detection hardware circuit, used to reflect the capacitor voltage signal of power-off time;

[0042] Sampling module, used to collect capacitor voltage values in the power-off time detection hardware circuit;

[0043] A processor is used to execute the steps of the method for calculating the power-off time of the refrigerator electronic control system described in the first aspect.

[0044] The refrigerator electronic control system reflects the capacitor voltage signal through the power-off time detection hardware circuit, combines the sampling module to collect the voltage value, and executes the power-off time calculation method by the processor. This can reduce signal interference during the voltage sampling process, improve the accuracy of power-off time detection, and at the same time improve the system's responsiveness to capacitor voltage changes.

[0045] Optionally, the power-off time detection hardware circuit includes: the power-off time detection hardware circuit includes: one end of the charging resistor is connected to the power input node, the other end of the charging resistor is connected to the anode of the diode, the cathode of the diode is connected to the positive electrode of the energy storage capacitor, the negative electrode of the energy storage capacitor is grounded, the discharge resistor is connected in parallel with the energy storage capacitor, the voltage sampling node is connected to one end of the current limiting resistor, the other end of the current limiting resistor is connected to the anode of the diode, one end of the capacitor is connected to the anode of the diode, and the other end of the capacitor is grounded.

[0046] The power-off time detection hardware circuit charges the energy storage capacitor through a charging resistor and a diode, uses a discharge resistor to control the discharge rate, and combines the current limiting resistor and the capacitor to stabilize the input of the voltage sampling node. This can reduce the impact of power supply fluctuations on the detection process and improve the accuracy of power-off time detection. At the same time, through reasonable component configuration, the problem of uneven discharge speed of the energy storage capacitor is alleviated, and the reliability of the circuit under different working conditions is improved.

[0047] It can be seen from the above technical solution that the present application provides a method, device and refrigerator electronic control system for calculating the power-off time of a refrigerator electronic control system, the method comprising: obtaining the delay time from system power-on to first sampling and the first sampling voltage value; performing segmented judgment according to the delay time to determine the compensation coefficient; wherein the segmented judgment includes discretizing the delay time interval and configuring a corresponding compensation coefficient for each interval; calculating the initial power-on voltage of the capacitor according to the compensation coefficient and the first sampling voltage value; determining the system power-off time based on the initial power-on voltage of the capacitor and a preset voltage-time mapping relationship to solve the problem of not being able to accurately capture the initial voltage of the capacitor. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0049] Figure 1 A flow chart of a method for calculating power-off time of a refrigerator electronic control system provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of the structure of a power-off time detection hardware circuit in a refrigerator electronic control system provided in an embodiment of the present application;

[0051] Figure 3 A power-on timing diagram of the refrigerator hardware system in the method for calculating the power-off time of the refrigerator electronic control system provided in an embodiment of the present application;

[0052] Figure 4 A schematic diagram of the relationship between the delay time and the initial power-on voltage of the capacitor in the method for calculating the power-off time of the refrigerator electronic control system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following embodiments are described in detail, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following embodiments are not intended to represent all possible implementations consistent with the present application. They are merely examples of systems and methods consistent with certain aspects of the present application.

[0054] Before starting the refrigerator system, the compressor downtime must meet minimum requirements to restore system pressure to the allowable range, ensuring reliable compressor startup. This requirement is particularly critical during initial power-up, as the software cannot retrieve historical time parameters due to incomplete initialization, requiring hardware circuitry to implement downtime detection. Specifically, upon power-up, the capacitor is charged through the charging circuit resistor to generate an initial voltage signal, which serves as a reference for determining downtime.

[0055] In related embodiments, a discharge circuit is used to control capacitor voltage decay. During a system power outage, the capacitor first discharges through the discharge circuit resistor. Adjusting the capacitance and resistance of the capacitors adjusts the discharge time constant. This solution leverages the capacitor's charge and discharge characteristics to indirectly reflect downtime, resulting in simple hardware and low-cost circuit design.

[0056] However, because the resistance of the charging circuit is much smaller than that of the discharging circuit, the capacitor charges significantly faster than it discharges, causing the capacitor voltage to rise rapidly during the initial power-up phase. Furthermore, the initialization time from chip power-up to the first voltage sampling can fluctuate depending on chip model and program. The capacitor voltage at the actual first sampling moment deviates from its true value at initial power-up, making it impossible to accurately capture the capacitor's initial voltage, which in turn affects the reliability of the power-down time calculation.

[0057] To solve the problem of not being able to accurately capture the initial voltage of the capacitor, see Figures 1-4 Some embodiments of the present application provide a method for calculating the power-off time of a refrigerator electronic control system, the method comprising:

[0058] S100: Obtain the delay time from system power-on to first sampling and the first sampling voltage value.

[0059] It should be understood that the delay time from system power-on to first sampling can be obtained by using an oscilloscope test or software timing; the first sampling voltage value can be obtained through the sampling module in the refrigerator electronic control system.

[0060] S200: Perform segmented determination according to the delay time to determine a compensation coefficient.

[0061] The segment determination includes discretizing the delay time interval and configuring a corresponding compensation coefficient for each interval.

[0062] In some embodiments, when the delay time is at a first threshold, the compensation coefficient is dynamically determined based on a median of a preset discretization interval; when the delay time exceeds the first threshold, it is determined that the initial power-on voltage of the capacitor cannot be calculated.

[0063] It should be understood that the first threshold may be 2-2.3S. Figure 4 When t_delay is greater than or equal to 2.3s, the slope of the curve is very large, making the calculation of the capacitor's initial power-on voltage useless. Considering the actual accuracy requirements and to avoid exponential and division operations, in practical applications, the delay time t_delay < 2.3, especially t_delay < 2, is often pre-segmented offline. For example, this is evenly segmented into 0.2-second intervals: {[0, 0.2), [0.2, 0.4), …, [1.8, 2), [2, 2.3)}. The compensation coefficient k value corresponding to the median value in each segment is then taken. Alternatively, the segment is segmented by k and then reversely mapped to the segmented values of t_delay. For example, if k is {1, 2, …, 7, 8}, the reverse mapping results in segmented t_delay values of {[0, 0.4), [0.4, 0.9), …, [1.88, 2), [2, 2.3)}. The specific number of segments can be adjusted as needed. For example, considering that the actual t_delay is mostly in the range of <1s, the number of segments in this range can be appropriately increased.

[0064] In some embodiments, the following determination may be made regarding the delay time t_delay:

[0065] When t_delay>2s, the correct u0 cannot be obtained by calculation;

[0066] When t_delay<0.5s, take k=1;

[0067] When 0.5s≤t_delay<1.5s, take k=1.6;

[0068] When 1.5s≤t_delay<2s, take k=5.

[0069] By setting a first threshold to distinguish the delay time, when the delay time is within the first threshold range, the compensation coefficient is dynamically determined based on the median of the preset discretization interval, which helps to improve the adaptability of the calculation of the initial voltage of the capacitor; when the delay time exceeds the first threshold, it is determined that the initial voltage cannot be calculated, which can reduce the error accumulation caused by excessive delay, thereby improving the reliability of power-off time estimation.

[0070] S300: Calculating the initial power-on voltage of the capacitor according to the compensation coefficient and the first sampled voltage value.

[0071] In some embodiments, the formula for calculating the initial power-on voltage of the capacitor is:

[0072] u0=k*u(t_delay)+u*(1-k);

[0073] Where k is the compensation coefficient; t_delay is the delay time from system power-up to the first sampling; u(t_delay) is the first sampling voltage value; and u is the power supply voltage.

[0074] Since the initialization time of each chip is basically the same, the following consideration can be made: the collected voltage is compensated with the time of the first collection to more reasonably calculate the initial power-on voltage.

[0075] When powered on, the voltage equation can be obtained:

[0076]

[0077] Where u(t) is the voltage on the positive electrode of the capacitor, u0 is the voltage on the positive electrode of the capacitor when power is applied, and u is the power supply voltage.

[0078] Substituting the relevant parameters and t = t_delay, and inversely solving for u0, we have:

[0079]

[0080] Therefore, when t_delay is determined, u0 is a linear function of u(t_delay), and u(t_delay) can be obtained from the first sampling.

[0081] It should be understood that the power supply voltage u can be selected as 5V; see Figure 2 For ease of calculation, the charging resistor R1 = 10K, the capacitor C2 = 100uF, and the discharge resistor R3 = R4 = 750K. The diode voltage drop is ignored. Specifically, the compensation coefficient k obtained by segmented determination and the first sampled voltage value u(t_delay) obtained by sampling are substituted into the formula for calculating the initial power-on voltage of the capacitor to calculate u0.

[0082] The calculation formula of the compensation coefficient k is as follows:

[0083]

[0084] By using a compensation coefficient and combining the delay time with the first sampled voltage value to calculate the capacitor's initial power-on voltage, the initial voltage estimation deviation caused by delayed sampling can be reduced, thereby improving the accuracy of the capacitor's initial voltage and providing a more reliable basis for subsequent power-off time calculation.

[0085] S400: Determine a system power-off time based on the initial power-on voltage of the capacitor and a preset voltage-time mapping relationship.

[0086] In some embodiments, the method for establishing the preset voltage-time mapping relationship includes:

[0087] Generate a discretized correspondence table between voltage and power-off time based on the capacitor discharge curve equation;

[0088] The voltage values in the discretization correspondence table are divided into multiple intervals according to a preset accuracy, and are associated with corresponding power-off times.

[0089] A discrete correspondence table between voltage and power-off time is generated using the capacitor discharge curve equation, and the voltage interval is divided according to the preset accuracy to associate the corresponding power-off time. This can reduce the impact of voltage fluctuations on time calculation, improve the accuracy of power-off time mapping, and thus enhance the stability and consistency of system power-off time estimation.

[0090] Specifically, considering the actual situation and avoiding complex calculations, the mapping of the capacitor's initial power-on voltage u0 to the power-off time is also segmented as follows:

[0091] u0 Power-off time u0 Power-off time >4.09 0 >0.83 240 >3.35 30 >0.68 270 >2.74 60 >0.55 300 >2.25 90 >0.45 330 >1.84 120 >0.37 360 >1.51 150 >0.3 390 >1.23 180 >0.25 420 >1.01 210 >0.2 450

[0092] When u0 is less than 0.2V, it can be considered that the power-off time has exceeded the maximum rating.

[0093] By obtaining the delay time from system power-on to the first sampling and the first sampling voltage value, and determining the compensation coefficient based on segmented judgment, and then calculating the initial power-on voltage of the capacitor, it helps to alleviate the problem of inaccurate capture of the initial capacitor voltage, thereby improving the reliability of the system power-off time calculation; among them, the segmented judgment adopts the method of discretely dividing the delay time interval and configuring the corresponding compensation coefficient, which can reduce the voltage calculation error caused by the delay time difference and improve the accuracy of the power-off time determination.

[0094] In some embodiments, after performing segmented determination based on the delay time to determine the compensation coefficient, the method further includes:

[0095] Get the voltage at a certain moment after the system loses power;

[0096] The system power-off time is calculated according to the voltage at a certain moment after the power-off and the power supply voltage.

[0097] By obtaining the voltage at a specific moment after the system power is lost and combining it with the power supply voltage to calculate the system power-off time, the error caused by a single sampling point can be reduced, the accuracy of the power-off time estimation can be improved, and the adaptability of time calculation under different working conditions can be enhanced.

[0098] In some embodiments, the voltage calculation formula at a certain moment after the system loses power is:

[0099]

[0100] Where u(t) is the voltage value; u is the power supply voltage; and RC is the time constant of the discharge circuit.

[0101] It should be understood that, in the embodiment of the present application, the time constant RC of the discharge circuit is equal to (R3+R4)*C2.

[0102] By using an exponential function that includes the power supply voltage and the discharge circuit time constant to calculate the voltage value at a specific moment after the system power is lost, the capacitor discharge characteristics can be more accurately reflected, thereby reducing the impact of voltage sampling errors on the power-off time calculation and improving the reliability of the time estimation results.

[0103] Some embodiments of this application further provide a device for calculating the power-off time of a refrigerator electronic control system, which is applicable to the method for calculating the power-off time of a refrigerator electronic control system described in the above embodiment, and the device includes:

[0104] Confirmation module, used to obtain the delay time from system power-on to first sampling and the first sampling voltage value;

[0105] A determination module, configured to determine the delay time in segments and output a compensation coefficient;

[0106] A voltage compensation module, configured to calculate an initial power-on voltage of the capacitor based on the compensation coefficient and the first sampled voltage value;

[0107] The time mapping module is configured to convert the initial power-on voltage into a system power-off time based on a preset voltage-time mapping relationship.

[0108] By obtaining the delay time and the first sampling voltage value through the confirmation module, the output compensation coefficient is determined in segments by the judgment module, and the initial power-on voltage of the capacitor is calculated by the voltage compensation module. Finally, it is converted into the system power-off time through the time mapping module. This can reduce the impact of sampling errors on the calculation results, improve the accuracy of power-off time estimation, and enhance the adaptability of the system under different working conditions.

[0109] In some embodiments, the determination module includes:

[0110] A discretization unit is used to divide the delay time axis into multiple non-overlapping intervals;

[0111] The coefficient matching unit is used to match the corresponding compensation coefficient according to the interval of the current delay time.

[0112] The delay time axis is divided into multiple non-overlapping intervals by a discretization unit, and the coefficient matching unit matches the corresponding compensation coefficient according to the current delay time. This can reduce the impact of time measurement error on the compensation effect, improve the adaptation accuracy of the compensation coefficient, and thus enhance the reliability of the capacitor initial voltage calculation.

[0113] Some embodiments of the present application also provide a refrigerator electronic control system, including:

[0114] Power-off time detection hardware circuit, used to reflect the capacitor voltage signal of power-off time;

[0115] Sampling module, used to collect capacitor voltage values in the power-off time detection hardware circuit;

[0116] The processor is used to execute the steps of the method for calculating the power-off time of the refrigerator electronic control system described in the above embodiment.

[0117] The refrigerator electronic control system reflects the capacitor voltage signal through the power-off time detection hardware circuit, combines the sampling module to collect the voltage value, and executes the power-off time calculation method by the processor. This can reduce signal interference during the voltage sampling process, improve the accuracy of power-off time detection, and at the same time improve the system's responsiveness to capacitor voltage changes.

[0118] In some embodiments, the power-off time detection hardware circuit includes: one end of the charging resistor R1 is connected to the power input node, the other end of the charging resistor R1 is connected to the anode of the diode D1, the cathode of the diode D1 is connected to the positive electrode of the energy storage capacitor C2, the negative electrode of the energy storage capacitor C2 is grounded, the discharge resistors R3 and R4 are connected in parallel with the energy storage capacitor C2, the voltage sampling node Vin is connected to one end of the current limiting resistor R2, the other end of the current limiting resistor R2 is connected to the anode of the diode D1, one end of the capacitor C1 is connected to the anode of the diode D1, and the other end of the capacitor C1 is grounded.

[0119] It should be understood that the discharge resistors R3 and R4 are connected in series. Figure 3 When power is on, the energy storage capacitor C2 is charged through the charging resistor R1. When power is off, the energy storage capacitor C2 is discharged through the discharging resistors R3 and R4. The capacitor discharge time can be adjusted by adjusting the parameters of C2, R3, and R4. R1 < (R3 + R4), so the capacitor charging time is much shorter than the capacitor discharging time.

[0120] The power-off time detection hardware circuit charges the energy storage capacitor C2 through the charging resistor R1 and the diode D1, uses the discharge resistors R3 and R4 to control the discharge rate, and combines the current limiting resistor R2 and the capacitor C1 to stabilize the input of the voltage sampling node Vin. This can reduce the impact of power supply fluctuations on the detection process and improve the accuracy of power-off time detection. At the same time, through reasonable component configuration, the problem of uneven discharge speed of the energy storage capacitor C2 is alleviated, thereby improving the reliability of the circuit under different working conditions.

[0121] It can be seen from the above technical solution that the embodiment of the present application provides a method, device and refrigerator electronic control system for calculating the power-off time of a refrigerator electronic control system, the method including: obtaining the delay time from system power-on to first sampling and the first sampling voltage value; performing segmented judgment according to the delay time to determine the compensation coefficient; wherein the segmented judgment includes discretizing the delay time interval and configuring a corresponding compensation coefficient for each interval; calculating the initial power-on voltage of the capacitor according to the compensation coefficient and the first sampling voltage value; determining the system power-off time based on the initial power-on voltage of the capacitor and the preset voltage-time mapping relationship to solve the problem of not being able to accurately capture the initial voltage of the capacitor.

[0122] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the overall concept of this application and do not constitute a limitation on the scope of protection of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without expending creative work shall fall within the scope of protection of this application.

Claims

1. A method for calculating the power-off time of a refrigerator electronic control system, characterized in that: The method comprises: Obtain the delay time from system power-on to first sampling and the first sampling voltage value; Performing segmented determination based on the delay time to determine the compensation coefficient; wherein the segmented determination includes discretizing the delay time interval and configuring a corresponding compensation coefficient for each interval; Calculating the initial power-on voltage of the capacitor according to the compensation coefficient and the first sampling voltage value; The system power-off time is determined based on the initial power-on voltage of the capacitor and a preset voltage-time mapping relationship.

2. The method for calculating the power-off time of the refrigerator electronic control system according to claim 1, characterized in that: The formula for calculating the initial power-on voltage of the capacitor is: u0=k*u(t_delay)+u*(1-k); Where k is the compensation coefficient; t_delay is the delay time from system power-up to the first sampling; u(t_delay) is the first sampling voltage value; and u is the power supply voltage.

3. The method for calculating the power-off time of the refrigerator electronic control system according to claim 1, characterized in that: When the delay time is at a first threshold, the compensation coefficient is dynamically determined based on a median of a preset discretization interval; When the delay time exceeds a first threshold, it is determined that the initial power-on voltage of the capacitor cannot be calculated.

4. The method for calculating the power-off time of the refrigerator electronic control system according to claim 3, characterized in that: The method for establishing the preset voltage-time mapping relationship includes: Generate a discretized correspondence table between voltage and power-off time based on the capacitor discharge curve equation; The voltage values in the discretization correspondence table are divided into multiple intervals according to a preset accuracy, and are associated with corresponding power-off times.

5. The method for calculating the power-off time of the refrigerator electronic control system according to claim 1, characterized in that: After performing segmented determination based on the delay time to determine the compensation coefficient, the method further includes: Get the voltage at a certain moment after the system loses power; The system power-off time is calculated according to the voltage at a certain moment after the power-off and the power supply voltage.

6. The method for calculating the power-off time of the refrigerator electronic control system according to claim 5, characterized in that: The voltage calculation formula at a certain moment after the system loses power is: Where u(t) is the voltage value; u is the power supply voltage; and RC is the time constant of the discharge circuit.

7. A device for calculating the power-off time of a refrigerator electronic control system, characterized in that: The method for calculating the power-off time of a refrigerator electronic control system according to any one of claims 1 to 6, wherein the device comprises: Confirmation module, used to obtain the delay time from system power-on to first sampling and the first sampling voltage value; A determination module, configured to determine the delay time in segments and output a compensation coefficient; A voltage compensation module, configured to calculate an initial power-on voltage of the capacitor based on the compensation coefficient and the first sampled voltage value; The time mapping module is configured to convert the initial power-on voltage into a system power-off time based on a preset voltage-time mapping relationship.

8. The device for calculating power-off time of a refrigerator electronic control system according to claim 7, characterized in that: The determination module includes: A discretization unit is used to divide the delay time axis into multiple non-overlapping intervals; The coefficient matching unit is used to match the corresponding compensation coefficient according to the interval of the current delay time.

9. A refrigerator electronic control system, characterized in that: include: Power-off time detection hardware circuit, used to reflect the capacitor voltage signal of power-off time; Sampling module, used to collect capacitor voltage values in the power-off time detection hardware circuit; A processor, configured to execute the steps of the method for calculating the power-off time of a refrigerator electronic control system according to any one of claims 1 to 6.

10. The refrigerator electronic control system according to claim 9, characterized in that: The power-off time detection hardware circuit includes: the power-off time detection hardware circuit includes: one end of the charging resistor is connected to the power input node, the other end of the charging resistor is connected to the anode of the diode, the cathode of the diode is connected to the positive electrode of the energy storage capacitor, the negative electrode of the energy storage capacitor is grounded, the discharge resistor is connected in parallel with the energy storage capacitor, the voltage sampling node is connected to one end of the current limiting resistor, the other end of the current limiting resistor is connected to the anode of the diode, one end of the capacitor is connected to the anode of the diode, and the other end of the capacitor is grounded.