Power supply protection method, controller and vehicle-mounted refrigerator

By monitoring the power bus voltage in real time and setting a threshold in the vehicle refrigerator, the problem of unstable voltage during compressor operation is solved, timely protection of the power supply is achieved, and safety is improved.

CN120879461APending Publication Date: 2025-10-31SHENZHEN H&T CONTROL TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510879496.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

When a car refrigerator is operating at high temperatures or under heavy load, the compressor's operating power increases, causing unstable output voltage from the adapter, which can easily lead to safety accidents.

Method used

By collecting the power bus voltage in real time, setting a first voltage threshold and a second voltage threshold, monitoring whether the voltage drops below the threshold or fluctuates abnormally, and promptly shutting off the power supply.

Benefits of technology

It enables real-time protection of the power supply, preventing voltage instability and fluctuations, and improving the safety of the vehicle-mounted refrigerator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120879461A_ABST
    Figure CN120879461A_ABST
Patent Text Reader

Abstract

The invention relates to a power supply protection method, a controller and a vehicle-mounted refrigerator, and the method comprises the steps: firstly obtaining a reference voltage, then determining a first voltage threshold and a second voltage threshold based on the reference voltage, and when a power supply supplies power to the vehicle-mounted refrigerator through a power bus, collecting the bus voltage of the power bus in real time to obtain a plurality of sampling voltages; and then comparing the plurality of sampling voltages with a first voltage threshold value, determining whether the sampling voltages with a first preset numerical value smaller than the first voltage threshold value exist or not, if yes, determining whether fluctuation of the plurality of sampling voltages is abnormal or not based on the plurality of sampling voltages and a second voltage threshold value, and if yes, turning off the power supply. Therefore, the power supply protection method can detect whether the power supply is abnormal or not, and timely performs protection measures on the power supply when the power supply is abnormal, so that the safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power protection, and in particular to a power protection method, controller, and vehicle refrigerator. Background Technology

[0002] With the booming development of new energy vehicles worldwide, in-vehicle refrigerators have emerged as a related industry and are gradually entering people's lives. Typically, the car's power supply system provides power, which enters an adapter. The adapter, based on the system's power requirements, converts the voltage of the power supply into the voltage required by the in-vehicle refrigerator's compressor to drive the compressor and thus enable the refrigerator to operate.

[0003] However, when the compressor operates at excessively high ambient temperatures or under excessive loads, its operating power will gradually increase. At the same time, due to the increase in ambient temperature, the efficiency of the adapter will also decrease. When the compressor's operating power exceeds the maximum power that the adapter can withstand, the adapter's output voltage will fluctuate, which can easily lead to safety accidents and result in low safety. Summary of the Invention

[0004] This application addresses at least one of the aforementioned technical problems to a certain extent. To this end, this application provides a power protection method, a controller, and a vehicle refrigerator, which can provide abnormal protection for the power supply and improve safety.

[0005] In a first aspect, embodiments of this application provide a power protection method, wherein a power supply supplies power to a vehicle-mounted refrigerator through a power bus, the method comprising: A first voltage threshold and a second voltage threshold are determined, wherein the first voltage threshold represents the lower limit threshold of the bus voltage, and the second voltage threshold represents the fluctuation threshold of the bus voltage, and the bus voltage is the voltage on the power bus. When the power supply supplies power to the vehicle refrigerator through the power bus, the voltage of the power bus is collected in real time to obtain several sampled voltages. The plurality of sampled voltages are compared with the first voltage threshold to determine whether there are sampled voltages of a first preset value that are all less than the first voltage threshold. If so, then based on the plurality of sampled voltages and the second voltage threshold, it is determined whether the fluctuation of the plurality of sampled voltages is abnormal; If so, then the power supply will be turned off.

[0006] In some embodiments, comparing the plurality of sampled voltages with the first voltage threshold to determine whether there are sampled voltages of a first preset value all less than the first voltage threshold includes: Determine the target sampling voltage that is less than the first voltage threshold among the plurality of sampling voltages, and the number of the target sampling voltages; If the number of target sampled voltages is greater than the first preset value, then it is determined that there are sampled voltages of the first preset value that are all less than the first voltage threshold.

[0007] In some embodiments, comparing the plurality of sampled voltages with the first voltage threshold to determine whether there are sampled voltages of a first preset value all less than the first voltage threshold further includes: The sampled voltages are sorted from smallest to largest to generate a first voltage data sequence; The first sampled voltage to the ith sampled voltage in the first voltage data sequence are determined as the target sampled voltage, where i is a first preset value, N is the number of sampled voltages, i is an integer, and 1≤i≤N; If all the target sampling voltages are less than the first voltage threshold, then it is determined that there are sampling voltages with a first preset value that are all less than the first voltage threshold.

[0008] In some embodiments, determining whether the fluctuation of the sampled voltage is abnormal based on the plurality of sampled voltages and the second voltage threshold includes: The sampled voltages are sorted from largest to smallest to generate a second voltage data sequence; Extract the first sampled voltage to the j-th sampled voltage from the second voltage data sequence to generate the first subsequence; Extract the N-j+1th sampled voltage to the Nth sampled voltage from the second voltage data sequence to generate the second subsequence, where N is the number of sampled voltages, j is an integer, and 1≤j≤N; Subtract each sampled voltage in the first subsequence from the sampled voltages in the corresponding order in the second subsequence to obtain j differences; Based on the j differences and the second voltage threshold, it is determined whether the fluctuation of the sampled voltage is abnormal.

[0009] In some embodiments, determining whether the fluctuation of the sampled voltage is abnormal based on the j differences and the second voltage threshold includes: Determine whether all j differences are greater than the second voltage threshold; If so, then it is determined that the fluctuation of the sampled voltage is abnormal.

[0010] In some embodiments, the real-time acquisition of the power bus voltage to obtain several sampled voltages includes: The voltage of the power bus is acquired in real time to obtain several real-time voltages. The several real-time voltages are then filtered to obtain the filtered several real-time voltages. The maximum and minimum values ​​among the filtered real-time voltages are removed to obtain the sampled voltages.

[0011] In some embodiments, determining the first voltage threshold and the second voltage threshold includes: Obtain a reference voltage, wherein the reference voltage is the voltage on the power bus when the vehicle refrigerator is not working; The first voltage threshold and the second voltage threshold are determined based on the reference voltage.

[0012] In some embodiments, determining the first voltage threshold and the second voltage threshold based on the reference voltage includes: Obtain the first preset coefficient and the second preset coefficient; The first voltage threshold is determined based on the reference voltage and the first preset coefficient; The second voltage threshold is determined based on the reference voltage and the second preset coefficient.

[0013] Secondly, embodiments of this application provide a controller, the controller including at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the power protection method as described above.

[0014] Thirdly, this application provides a vehicle refrigerator, including an adapter, a power supply circuit, a compressor, and a controller as described above. The adapter is connected to a power supply, and the adapter is connected to the power supply circuit via a power bus. The power supply circuit is also connected to the compressor, and the controller is connected to both the power supply circuit and the power bus. The adapter is used to convert the voltage of the power supply and output the converted voltage to the power supply circuit via the power bus; The controller is used to collect the voltage on the power bus and control the operating state of the power supply circuit so as to output the voltage of the power bus to the compressor.

[0015] Compared with the prior art, this application has at least the following advantages: In the power protection method of this application, a first voltage threshold and a second voltage threshold are first determined. The first voltage threshold represents the lower limit threshold of the bus voltage, and the second voltage threshold represents the fluctuation threshold of the bus voltage. The bus voltage is the voltage on the power bus. When the power supply supplies power to the vehicle refrigerator through the power bus, the voltage of the power bus is collected in real time to obtain several sampled voltages. Then, the several sampled voltages are compared with the first voltage threshold to determine whether there are any sampled voltages of a first preset value that are all lower than the first voltage threshold. If so, based on the several sampled voltages and the second voltage threshold, it is determined whether the fluctuation of the several sampled voltages is abnormal. If so, the power supply is shut off. Therefore, this power protection method samples the bus voltage in real time and determines whether there are any sampled voltages of a first preset value that drop below the first voltage threshold, and whether the fluctuation of the several sampled voltages is abnormal. When both conditions are met, it is determined that the power supply is abnormal, and the power supply is shut off in time, thereby improving safety. Attached Figure Description

[0016] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0017] Figure 1 This is a schematic diagram of the structure of a vehicle-mounted refrigerator provided in an embodiment of this application; Figure 2 This is a schematic diagram of a controller structure provided in an embodiment of this application; Figure 3 This is a schematic flowchart of one of the power protection methods provided in the embodiments of this application; Figure 4 This is provided by the embodiments of this application. Figure 3 A flowchart illustrating step S13; Figure 5 This is provided by the embodiments of this application. Figure 3 Another flowchart of step S13; Figure 6 This is provided by the embodiments of this application. Figure 3 A flowchart illustrating step S14; Figure 7 This is provided by the embodiments of this application. Figure 3 A flowchart illustrating step S11. Figure 8 This is a schematic diagram of the structure of a power protection device provided in an embodiment of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0019] It should be noted that, unless there is a conflict, the various features in the embodiments of this application can be combined with each other, all of which are within the protection scope of this application. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than the module division in the device or the order in the flowchart. Moreover, the terms "first," "second," and "third" used in this application do not limit the data or execution order, but only distinguish identical or similar items with essentially the same function and effect.

[0020] Please see Figure 1 , Figure 1 This is a schematic diagram of the circuit structure of a vehicle-mounted refrigerator provided in an embodiment of this application. Figure 1 As shown, the vehicle refrigerator 100 includes a controller 10, an adapter 20, a power supply circuit 30, and a compressor 40. The adapter 20 is connected to the power supply 200 and is connected to the power supply circuit 30 via a power bus. The power supply circuit 30 is connected to the compressor 40, and the controller 10 is connected to both the power supply circuit 30 and the power bus.

[0021] In some embodiments, the power supply circuit 30 includes a filter module 31, a driving MOSFET 32, and a voltage regulator module 33. The filter module 31 is connected to the adapter 20 and is also connected to the input terminal of the driving MOSFET 32 via the power bus. The output terminal of the driving MOSFET 32 is connected to the compressor 40, and the driving terminal of the driving MOSFET 32 is connected to the controller 10. The voltage regulator module 33 is connected to the power supply terminals of the filter module 31 and the controller 10, respectively.

[0022] The car refrigerator is typically powered by the car's power supply system via adapter 20. The car's power supply system provides power 200, which enters adapter 20. Adapter 20 precisely converts the input voltage specifications according to the system's power requirements, such as converting the voltage of power supply 200 to a first voltage (e.g., converting the voltage of power supply 200 provided by the car's power supply system to a DC voltage suitable for subsequent circuits, such as 12V). This first voltage flows into filter module 31. Filter module 31 internally uses capacitors, inductors, and other filtering components to construct a filtering circuit, effectively filtering out noise such as ripple, high-frequency interference, and pulse fluctuations in the voltage, outputting a stable and clean voltage.

[0023] The filtered first voltage is transmitted through the main power supply channel, the power bus, and sent to the drive MOSFET 32. The controller 10 controls the turn-on and turn-off of the drive MOSFET 32. When the drive MOSFET 32 is turned on, the first voltage is output through the drive MOSFET 32 to power the compressor 40 and drive the compressor 40 to run. When the drive MOSFET 32 is turned off, the power supply path of the compressor 40 is switched, thereby controlling the compressor 40 to stop running or adjust its power.

[0024] The filtered first voltage is input to the voltage regulator module 33. The voltage regulator module 33 converts the filtered first voltage into a second voltage through DC-DC conversion and linear regulation, such as converting 12V voltage into 5V voltage. The second voltage powers the controller 10, providing the controller 10 with an appropriate and reliable operating voltage to ensure the stable operation of the controller 10.

[0025] The first voltage is input to the driving MOSFET 32 via the power bus. The voltage on the power bus is called the bus voltage. For example, if the filtered first voltage is 12V, then the bus voltage is also 12V. In some embodiments, the power supply circuit 30 further includes a sampling module 34. The sampling module 34 is connected to both the power bus and the controller 10. The sampling module 34 continuously monitors the voltage of the power bus, collects the bus voltage, obtains the sampled voltage, and transmits the sampled voltage to the controller 10. The controller 10 then adjusts the control signal of the driving MOSFET 32 based on the sampled voltage, or processes and analyzes the sampled voltage. Once an abnormal voltage condition such as overvoltage or undervoltage is identified, protection measures are triggered, such as quickly shutting down the driving MOSFET 32 or initiating an alarm.

[0026] When the compressor 40 operates at excessively high ambient temperature or under excessive load, its operating power will gradually increase. At the same time, due to the increase in ambient temperature, the working efficiency of the adapter 20 will also decrease. When the operating power of the compressor 40 exceeds the maximum power that the adapter 20 can withstand, the output voltage of the adapter 20 (i.e., the voltage of the power bus) will fluctuate due to unstable power supply, which may easily cause safety accidents and has low safety.

[0027] Based on the above problems, this application provides a power protection method applied to a controller 10. The method includes first determining a first voltage threshold and a second voltage threshold, wherein the first voltage threshold represents the lower limit threshold of the bus voltage, and the second voltage threshold represents the fluctuation threshold of the bus voltage. The bus voltage is the voltage on the power supply bus. When the power supply supplies power to the vehicle refrigerator through the power supply bus, the voltage of the power supply bus is collected in real time to obtain several sampled voltages. Then, the several sampled voltages are compared with the first voltage threshold to determine whether there are any sampled voltages with a first preset value that are all less than the first voltage threshold. If so, the fluctuation of the several sampled voltages is determined based on the several sampled voltages and the second voltage threshold to determine whether the fluctuation of the several sampled voltages is abnormal. If so, the power supply is turned off.

[0028] Therefore, this power supply protection method samples the bus voltage in real time and determines whether a large number of sampled voltage amplitudes drop below the lower limit threshold of the bus voltage, and whether the fluctuation of the sampled voltage is abnormal. When both conditions are met, it is determined that the power supply is abnormal and the power supply is shut off in time to protect the power supply in a timely manner and improve safety.

[0029] Please refer to the following: Figure 2 , Figure 2 This is a schematic diagram of the hardware structure of a controller 10 provided in an embodiment of this application. The controller 10 includes at least one processor 101 that is communicatively connected via a system bus or other means. Figure 2 (Taking a processor as an example) and memory 102. The controller 10 can exist in the form of a chip.

[0030] The memory 102 stores instructions that can be executed by the at least one processor 101. The instructions are executed by the at least one processor 101, which provides computing and control capabilities to execute relevant commands, such as controlling the controller 10 to execute any of the power protection methods provided in the following embodiments of this application.

[0031] The memory 102, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the power protection method provided in the following embodiments of this application. The processor 101 can implement the power protection method in any of the following method embodiments by running the non-transitory software programs, instructions, and modules stored in the memory 102. Specifically, the memory 102 may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 102 may also include memories remotely located relative to the processor 101, and these remote memories can be connected to the processor 101 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0032] In some embodiments, controller 10 may be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), microcontroller, ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. Additionally, controller 10 may also be any conventional processor, controller, microcontroller, or state machine. Controller 10 may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP, and / or any other such configuration.

[0033] This application provides a power protection method. Please refer to [link / reference]. Figure 3 , Figure 3 This is a flowchart illustrating a power protection method provided in an embodiment of this application. Method S100 includes, but is not limited to, the following steps: S11: Determine a first voltage threshold and a second voltage threshold, wherein the first voltage threshold represents the lower limit threshold of the bus voltage, the second voltage threshold represents the fluctuation threshold of the bus voltage, and the bus voltage is the voltage on the power bus; The bus voltage is the voltage on the power supply bus. When the compressor is not running or not operating, it is in a static state, and the output voltage of the adapter or the voltage on the power supply bus at this time is called the reference voltage. If the ambient temperature rises, the adapter's efficiency decreases. When the compressor's operating power exceeds the adapter's maximum power capacity, the adapter's output voltage will fluctuate due to power instability. Generally, the adapter's output voltage is lower than the reference voltage.

[0034] When the bus voltage fluctuates, it usually means that the voltage drops. The first voltage threshold represents the lower limit of the bus voltage, which is also the maximum extent of the bus voltage drop. It is the minimum voltage that the bus voltage can drop to. If the drop exceeds the first voltage threshold, it indicates that the drop is too large and the power supply is unstable.

[0035] When the bus voltage becomes unstable, it will fluctuate up and down. The second voltage threshold represents the fluctuation threshold of the bus voltage, which is also the maximum range of bus voltage fluctuation. If the fluctuation exceeds the second voltage threshold, it indicates that the fluctuation is too large and abnormal. The power supply is abnormal and protection measures need to be implemented in time.

[0036] S12: When the power supply supplies power to the vehicle refrigerator through the power bus, the voltage of the power bus is collected in real time to obtain several sampling voltages. When the power supply supplies power to the vehicle refrigerator through the power bus, the compressor starts to operate. The voltage of the power bus may change as the compressor operates. Real-time monitoring of the power bus voltage is necessary to determine if any abnormalities such as power supply instability occur.

[0037] The controller samples the voltage of the power bus to obtain several sampled voltages, or the acquisition module samples the voltage of the power bus to obtain several sampled voltages and transmits these sampled voltages to the controller for reception and processing.

[0038] The sampling frequency can be set as needed. In this embodiment, when the compressor is running, sampling can be performed once every 1ms. The sampling module samples the voltage of the power bus once every 1ms to obtain the sampled voltage, and performs AD conversion to convert the analog sampled voltage signal into a corresponding digital signal, which is then processed and received by the controller.

[0039] The controller processes and analyzes several sampled voltages. The number of sampled voltages is set according to needs. If a timely response to changes in the power bus voltage is required, the number of sampled voltages can be set to fewer. If more reliable detection of changes in the power bus voltage is required to prevent false triggering of the protection mechanism, the number of sampled voltages can be set to more. In this embodiment, the number of sampled voltages is 100.

[0040] In some embodiments, in order to remove abnormal data, the collected data can be filtered and removed to obtain several sampled voltages. Specifically, the voltage of the power bus is first collected in real time to obtain several real-time voltages. The several real-time voltages are then filtered to obtain several filtered real-time voltages. Finally, the maximum and minimum values ​​among the filtered real-time voltages are removed to obtain several sampled voltages.

[0041] Using the above method can eliminate some abnormal data in real-time voltages, making the sampled voltage data more accurate, thereby improving the accuracy of subsequent calculations and processing.

[0042] S13: Compare the plurality of sampled voltages with the first voltage threshold to determine whether there are sampled voltages of a first preset value that are all less than the first voltage threshold. By analyzing the degree of voltage drop across several sampled voltages, if too many sampled voltages drop below a first voltage threshold, it indicates that the power supply is unstable. Therefore, the number of sampled voltages that drop below the first voltage threshold can be used to determine whether the power supply is experiencing instability.

[0043] Specifically, such as Figure 4 As shown, step S13 includes: S131: Determine the target sampling voltage that is less than the first voltage threshold among the plurality of sampling voltages, and the number of the target sampling voltages; The sampled voltages are compared one by one with a first voltage threshold. If a sampled voltage is less than the first voltage threshold, it is marked as a target sampled voltage. After several sampled voltages have been compared with the first voltage threshold, the controller counts the number of target sampled voltages. Each time a sampled voltage less than the first voltage threshold is identified, it is marked as a target sampled voltage, and the count of target sampled voltages is incremented by one.

[0044] S132: If the number of target sampled voltages is greater than the first preset value, then it is determined that there are sampled voltages of the first preset value that are all less than the first voltage threshold.

[0045] If the number of target sampled voltages is M, then M is compared with a first preset value. If the number of target sampled voltages is greater than the first preset value, it indicates that a large number of sampled voltages have dropped below the first voltage threshold.

[0046] The number of the first preset values ​​can be set as needed. For example, in this embodiment, the number of sampled voltages is 100 and the first preset value is 20. If the target number of sampled voltages is 30, it means that 30 of the 100 sampled voltages are less than the first voltage threshold, and 30 is greater than 20. This means that a large number of sampled voltages have dropped below the lower limit threshold of the bus voltage, that is, there are sampled voltages of the first preset value that are all less than the first voltage threshold, and the power supply is unstable. If the target number of sampled voltages is 10, it means that 10 of the 100 sampled voltages are less than the first voltage threshold, and 10 is less than 20. This means that there are not a large number of sampled voltages that have dropped below the lower limit threshold of the bus voltage, that is, there are not sampled voltages of the first preset value that are all less than the first voltage threshold.

[0047] In some embodiments, smaller sampled voltages can be compared with a first voltage threshold to determine whether there are sampled voltages of a first preset value that are all less than the first voltage threshold, thereby determining whether the power supply is unstable.

[0048] Specifically, such as Figure 5 As shown, step S13 further includes: S133: Sort the plurality of sampled voltages in ascending order to generate a first voltage data sequence; S134: The first sampled voltage to the ith sampled voltage in the first voltage data sequence are determined as the target sampled voltage, where i is a first preset value, N is the number of sampled voltages, i is an integer, and 1≤i≤N; In this embodiment of the application, the target sampling voltage is the sampling voltage with a smaller value in the first voltage data sequence, and the first preset value is set as needed.

[0049] If the number of sampled voltages is N, and the first preset value is i, then the N sampled voltages are sorted from smallest to largest to generate the first voltage data sequence S1=[V1,V2,...,V...]. N ], where V i ≤V i+1 If i = 1, 2, ..., N−1, then the target sampling voltage is V1, V2, ..., V i .

[0050] For example: if N is 100 and i is 20, then the 100 sampled voltages are sorted in ascending order to generate the first voltage data sequence [V1, V2, ..., V 100 Then, the first 20 sampled voltages are extracted from the first voltage data sequence to obtain the target sampled voltages V1, V2, ..., V. 20 The number of target sampled voltages is 20, and the value of each target sampled voltage is less than the value of the remaining 80 sampled voltages in the first voltage data sequence.

[0051] S135: If all the target sampling voltages are less than the first voltage threshold, then it is determined that there are sampling voltages with a first preset value that are all less than the first voltage threshold.

[0052] Each target sampling voltage is compared with a first voltage threshold. If each target sampling voltage is less than the first voltage threshold, it is determined that there are sampling voltages with a first preset value that are all less than the first voltage threshold, indicating that the sampling voltage drops significantly and the power supply is unstable. If there is a target sampling voltage greater than the first voltage threshold, it is determined that there are no sampling voltages with a first preset value that are all less than the first voltage threshold, indicating that the sampling voltage drops slightly.

[0053] In this embodiment, only the target sampling voltage of the first preset value needs to be compared with the first voltage threshold. Compared with the above embodiment, which requires comparing each sampling voltage with the first voltage threshold to obtain the target sampling voltage and the number of target sampling voltages, this embodiment requires fewer comparisons and saves computing resources.

[0054] Therefore, by using the above two methods, it is possible to determine whether the power supply is unstable based on the degree of drop in the sampling voltage. If it is determined that the power supply is unstable, it is then necessary to determine whether the fluctuation range of the sampling voltage exceeds the fluctuation threshold of the bus voltage, or whether the fluctuation of the sampling voltage is abnormal, in order to further determine whether the power supply is abnormal.

[0055] S14: If so, then determine whether the fluctuation of the plurality of sampled voltages is abnormal based on the plurality of sampled voltages and the second voltage threshold. If some of the sampled voltages drop below the first voltage threshold, it indicates that the power supply is unstable. Then, based on the sampled voltages and the second voltage threshold, it is determined whether the fluctuation of the sampled voltage is abnormal.

[0056] Specifically, such as Figure 6 As shown, step S14 includes: S141: Sort the sampled voltages from largest to smallest to generate a second voltage data sequence; Several sampled voltages are sorted from largest to smallest to generate a second voltage data sequence.

[0057] For example, if the number of target sampled voltages is N, the second voltage data sequence is S2=[V1,V2,...,V N ], where V i+1 ≤V i , i=1,2,...,N−1.

[0058] S142: Extract the first sampled voltage to the j-th sampled voltage from the second voltage data sequence to generate the first sub-sequence; S143: Extract the N-j+1th sampled voltage to the Nth sampled voltage from the second voltage data sequence to generate a second subsequence, where N is the number of sampled voltages, j is an integer, and 1≤j≤N; The first j-th sampled voltage in the second voltage data sequence represents the first j-th sampled voltage, which are the larger voltages in the sequence. The (N-j+1)-th sampled voltage in the second voltage data sequence represents the last j-th sampled voltage, which are the smaller voltages in the sequence. Here, 1 ≤ j ≤ N. For example, the second voltage data sequence is S2 = [V1, V2, ..., V...]. N ], where V i+1 ≤V i If i = 1, 2, ..., N−1, then the sequence consisting of the first j sampled voltages is determined as the first subsequence, and the first subsequence S 21 =[V1,V2,...,V j The sequence consisting of the last j sampled voltages is determined as the second subsequence, and the second subsequence S 22 =[V N-j+1 V N-j+2 ,...,V N ].

[0059] For example: if N is 100 and j is 10, then the first subsequence S 21 =[V1,V2,...,V 10 ], and the second subsequence S 22 =[V 91 V 92 ,...,V 100 ], and the first subsequence S 21 The values ​​of each sampled voltage in the sequence decrease sequentially, and the second subsequence S 22 The values ​​of each sampled voltage in the sequence decrease sequentially, and the first subsequence S 21 Any sampled voltage in the sequence is greater than that of the second subsequence S. 22 Any one of the sampled voltages.

[0060] S144: Subtract each sampled voltage in the first subsequence from the sampled voltage in the corresponding order in the second subsequence to obtain j difference values; If the first subsequence S 21 =[V1,V2,...,V j ], and the second subsequence S 22 =[V N-j+1 V N-j+2 ,...,V N ], then calculate V1 and VN-j+1 Calculate the difference ΔV1 between V2 and V2. N-j+2 The difference ΔV2 between them is used to calculate V. j With V N The difference ΔV between j We obtain j differences.

[0061] S145: Determine whether the fluctuation of the sampled voltage is abnormal based on the j differences and the second voltage threshold.

[0062] The magnitude of each difference represents the magnitude or degree of fluctuation of the sampled voltage. Each difference is compared with the second voltage threshold. Based on the comparison result, it is determined whether the fluctuation of the sampled voltage is abnormal, that is, whether the fluctuation of the sampled voltage exceeds the bus voltage fluctuation range. If it exceeds the bus voltage fluctuation range, it indicates that the fluctuation is abnormal.

[0063] In some embodiments, if more than half of the j differences are greater than the second voltage threshold, it is determined that the fluctuation of the sampled voltage is abnormal, indicating that the voltage fluctuation of the power bus is large, the power supply is unstable, and the fluctuation is large.

[0064] In some embodiments, it is determined whether all j differences are greater than the second voltage threshold. If so, it is determined that the fluctuation of the sampled voltage is abnormal.

[0065] S15: If so, then turn off the power supply.

[0066] If a sampled voltage of a certain preset value drops below the lower limit threshold of the bus voltage and the fluctuation of the sampled voltage is abnormal, it indicates that the power supply is unstable and fluctuates greatly. In this case, protective measures are taken for the power supply, such as shutting off the power supply, shutting off the driving MOSFET, or simultaneously shutting off the power supply and triggering an audible and visual alarm, so as to protect the power supply and the compressor in a timely manner.

[0067] Therefore, this power supply protection method can protect the power supply in a timely manner when the power supply is unstable and fluctuates greatly, thereby improving safety.

[0068] In the above embodiments, the first voltage threshold and the second voltage threshold are fixed values, which can be obtained based on experience. Different compressors require different voltages, and their corresponding power supply voltages also differ. Furthermore, different power supplies have different lower limits and fluctuation ranges when power supply instability occurs. For example, if the power supply voltage is 12V, it is expected to drop to 10V when unstable, with a fluctuation range of 2V. If the power supply voltage is 24V, it is expected to drop to 20V when unstable, with a fluctuation range of 4V. If the first voltage threshold is set to a fixed value, such as 11V, it is impossible to identify whether the voltage drop in the second case falls below the lower threshold. If the second voltage threshold is set to a fixed value, such as 2V, it is impossible to identify whether the voltage fluctuation in the second case exceeds the fluctuation threshold.

[0069] Based on the above problems, this embodiment determines the first voltage threshold and the second voltage threshold based on a reference voltage, so that the first voltage threshold and the second voltage threshold change with the change of the reference voltage, thereby improving the detection accuracy of unstable power supply conditions.

[0070] Specifically, such as Figure 7 As shown, step S11 includes: S111: Obtain a reference voltage, wherein the reference voltage is the voltage on the power bus when the vehicle refrigerator is not working; When the car refrigerator is not working, i.e., the compressor is not working or has not started, the voltage output from the power supply to the power bus is the reference voltage. For example, when the car refrigerator is not working, the reference voltage is 24V or 12V.

[0071] In some embodiments, to improve the accuracy of the reference voltage, the reference voltage can be acquired multiple times, and the average value of each reference voltage can be used as the final reference voltage. For example, after the compressor stops and stabilizes, data is collected every 1 ms for a total of 100 data acquisitions. After removing the two largest and smallest data points, the average value of the middle 98 data points is taken as the final reference voltage.

[0072] S112: Determine the first voltage threshold and the second voltage threshold based on the reference voltage.

[0073] The first voltage threshold and the second voltage threshold are proportional to the reference voltage, and their proportionality coefficients may be different. Specifically, a first preset coefficient and a second preset coefficient are obtained. Then, based on the reference voltage and the first preset coefficient, the first voltage threshold is determined, and based on the product of the reference voltage and the second preset coefficient, the second voltage threshold is determined.

[0074] The first and second preset coefficients can be set as needed. If the first preset coefficient represents the ratio of the first voltage threshold to the reference voltage, and the second preset coefficient represents the ratio of the second voltage threshold to the reference voltage, then the product of the reference voltage and the first preset coefficient is determined as the first voltage threshold, and the product of the reference voltage and the second preset coefficient is determined as the second voltage threshold. For example, if the reference voltage is 14.5V, the first preset coefficient is 69%, and the second preset coefficient is 21%, then the first voltage threshold is 14.5V * 69% ≈ 10V, and the second voltage threshold is 14.5V * 21% ≈ 3V. If the reference voltage is 24V, then the first voltage threshold is 24V * 69% ≈ 16V, and the second voltage threshold is 24V * 21% ≈ 5V.

[0075] If the first preset coefficient represents the ratio of the difference between the first voltage threshold and the reference voltage to the reference voltage, and the second preset coefficient represents the ratio of the second voltage threshold to the reference voltage, then the first voltage threshold is obtained by subtracting the product of the reference voltage and the first preset coefficient from the reference voltage, and the second voltage threshold is determined by the product of the reference voltage and the second preset coefficient. For example, if the reference voltage is 14.5V, the first preset coefficient is 27%, and the second preset coefficient is 21%, then the first voltage threshold is 14.5V - 14.5V * 27% ≈ 10V, and the second voltage threshold is 14.5V * 21% ≈ 3V. If the reference voltage is 24V, then the first voltage threshold is 24V - 24V * 27% ≈ 17V, and the second voltage threshold is 24V * 21% ≈ 5V.

[0076] Therefore, different power supplies correspond to different reference voltages, and different reference voltages correspond to different first and second voltage thresholds. The first and second voltage thresholds change with the change of the reference voltage, adapting to different power supplies. This allows for accurate identification of power supply instability and fluctuations when the power supply changes, thereby triggering protection measures in a timely manner and improving safety.

[0077] The following example illustrates the operation of this power protection method. If the reference voltage Vavg = 14.5V, the first preset coefficient is 27%, and the second preset coefficient is 21%, then the first voltage threshold is 14.5V - 14.5V * 27% ≈ 10V, and the second voltage threshold is 14.5V * 21% ≈ 3V. The first preset value is 20, and the second preset value is 10.

[0078] First, the bus voltage is collected in real time to obtain 100 sampled voltages. The 100 sampled voltages are compared with the first voltage threshold one by one to obtain the target sampled voltage and the number of target sampled voltages. The target sampled voltages are all less than 10V. If the number of target sampled voltages exceeds 20, it indicates that the power supply is unstable and a large number of sampled voltages have dropped below the lower limit threshold of the bus voltage.

[0079] Alternatively, the 100 sampled voltages can be sorted from smallest to largest to obtain the first voltage data sequence. The first 20 sampled voltages can be taken as the target sampled voltages. It can be determined whether the values ​​of the 20 target sampled voltages are all less than 10V. If they are all less than 10V, it indicates that the power supply is unstable and a large number of sampled voltages have dropped below the lower limit threshold of the bus voltage.

[0080] Then, the 100 sampled voltages are sorted from largest to smallest to obtain the second voltage data sequence. For example, if the second voltage data sequence S2 = [14.5, 14.2, 13.9, 13.6, 13.3, 13.0, 12.7, 12.6, 12.4, 12.2, 11.0, 10.7, 10.4, 10.3, 10.2, 10.0, 9.8, 9.5, 9.0, 8.5], then the first 10 sampled voltages are taken as the first subsequence S. 21 The last 10 sampled voltages are used as the second subsequence S. 22 , the first subsequence S 21 =[14.5,14.2,13.9,13.6,13.3,13.0,12.7,12.6,12.4,12.2], the second subsequence S 22 =[11.0,10.7,10.4,10.3,10.2,10.0,9.8,9.5,9.0,8.5].

[0081] The first subsequence S 21 The numerical values ​​in the second subsequence S 22 Subtracting the values ​​in the table one by one yields 10 differences: ΔV1 = 14.5 - 11.0 = 3.5, ΔV2 = 14.2 - 10.7 = 3.5, ΔV3 = 13.9 - 10.4 = 3.5, and so on. 10 =12.2-8.5=3.7.

[0082] The units of the above differences are all V. Compare each of the above differences with 3V to determine whether the above differences are all greater than 3V. If so, it is determined that the fluctuation of the sampling voltage is abnormal, and protection measures are triggered, such as cutting off the power supply, or turning off the driving MOSFET, or simultaneously turning off the power supply and performing audible and visual alarms.

[0083] In summary, this power supply protection method samples the bus voltage in real time and determines whether there are any samples with a first preset value whose voltage drops below a first voltage threshold, and whether there are any abnormal fluctuations in the fluctuations of several sampled voltages. When both conditions are met, it is determined that the power supply is abnormal, and the power supply is shut off in time to improve safety.

[0084] It should be noted that in the above embodiments, there is no necessarily a certain order between the above steps. Those skilled in the art can understand from the description of the embodiments of this application that the above steps may have different execution orders in different embodiments, that is, they may be executed in parallel or in interchange, etc.

[0085] As another aspect of the embodiments of this application, this application provides a power protection device. The power protection device can be a software module, which includes several instructions stored in the memory of the ESC. The processor can access the memory, invoke the instructions, and execute them to complete the power protection methods described in the above embodiments.

[0086] In some embodiments, the power protection device can also be constructed from hardware components. For example, the power protection device can be constructed from one or more chips, which can work in coordination to complete the power protection methods described in the above embodiments. As another example, the power protection device can also be constructed from various logic devices, such as general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), microcontrollers, ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0087] Please see Figure 8 , Figure 8 This application provides a power protection device 800, which includes a first determining module 801, a data acquisition module 802, a second determining module 803, a third determining module 804, and a shutdown module 805.

[0088] The system comprises the following modules: a first determining module 801, which determines a first voltage threshold and a second voltage threshold, wherein the first voltage threshold represents the lower limit of the bus voltage, and the second voltage threshold represents the fluctuation threshold of the bus voltage, wherein the bus voltage is the voltage on the power supply bus. A acquiring module 802, which acquires the voltage of the power supply bus in real time when the power supply supplies power to the vehicle refrigerator through the power supply bus, obtains several sampled voltages. A second determining module 803, which compares the several sampled voltages with the first voltage threshold to determine whether there are any sampled voltages with a first preset value that are all less than the first voltage threshold. A third determining module 804, which determines whether the fluctuation of the several sampled voltages is abnormal based on the comparison between the several sampled voltages and the second voltage threshold. A shut-off module 805, which shuts off the power supply.

[0089] Therefore, the power protection device samples the bus voltage in real time and determines whether the sampled voltage of the first preset value has dropped below the first voltage threshold, and whether the fluctuation of several sampled voltages has become abnormal. When both conditions are met, it determines that the power supply is abnormal and shuts off the power supply in time to improve safety.

[0090] It should be noted that since the power protection device 800 and the power protection method in the above embodiments are based on the same application concept, the corresponding contents in the above method embodiments are also applicable to the device embodiments, and will not be described in detail here.

[0091] This application also provides a non-transitory computer-readable storage medium storing computer-executable instructions that are executed by one or more processors, for example... Figure 2 One of the processors 101 can enable the one or more processors to perform the power protection method in any of the above method embodiments.

[0092] This application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions that, when executed by a controller 10, cause the controller 10 to perform any of the power protection methods described above.

[0093] In summary, this power supply protection method samples the bus voltage in real time and determines whether there are any samples with a first preset value whose voltage drops below a first voltage threshold, and whether there are any abnormal fluctuations in the fluctuations of several sampled voltages. When both conditions are met, it is determined that the power supply is abnormal, and the power supply is shut off in time to improve safety.

[0094] The device or equipment embodiments described above are merely illustrative. The unit modules described as separate components may or may not be physically separate. The components shown as module units may or may not be physical units; that is, they may be located in one place or distributed across multiple network module units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the power protection method described in various embodiments or some parts of embodiments.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of this application as described above, which are not provided in detail for the sake of brevity; although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A power supply protection method, characterized in that, The power supply provides power to the vehicle-mounted refrigerator via a power bus, and the method includes: A first voltage threshold and a second voltage threshold are determined, wherein the first voltage threshold represents the lower limit threshold of the bus voltage, and the second voltage threshold represents the fluctuation threshold of the bus voltage, and the bus voltage is the voltage on the power bus. When the power supply supplies power to the vehicle refrigerator through the power bus, the voltage of the power bus is collected in real time to obtain several sampled voltages. The plurality of sampled voltages are compared with the first voltage threshold to determine whether there are sampled voltages of a first preset value that are all less than the first voltage threshold. If so, then based on the plurality of sampled voltages and the second voltage threshold, it is determined whether the fluctuation of the plurality of sampled voltages is abnormal; If so, then the power supply will be turned off.

2. The method according to claim 1, characterized in that, The step of comparing the plurality of sampled voltages with the first voltage threshold to determine whether there are sampled voltages of a first preset value that are all less than the first voltage threshold includes: Determine the target sampling voltage that is less than the first voltage threshold among the plurality of sampling voltages, and the number of the target sampling voltages; If the number of target sampled voltages is greater than the first preset value, then it is determined that there are sampled voltages of the first preset value that are all less than the first voltage threshold.

3. The method according to claim 1, characterized in that, The step of comparing the plurality of sampled voltages with the first voltage threshold to determine whether there are sampled voltages of a first preset value that are all less than the first voltage threshold further includes: The sampled voltages are sorted from smallest to largest to generate a first voltage data sequence; The first sampled voltage to the ith sampled voltage in the first voltage data sequence are determined as the target sampled voltage, where i is a first preset value, N is the number of sampled voltages, i is an integer, and 1≤i≤N; If all the target sampling voltages are less than the first voltage threshold, then it is determined that there are sampling voltages with a first preset value that are all less than the first voltage threshold.

4. The method according to claim 2 or 3, characterized in that, The step of determining whether the fluctuation of the sampled voltage is abnormal based on the plurality of sampled voltages and the second voltage threshold includes: The sampled voltages are sorted from largest to smallest to generate a second voltage data sequence; Extract the first sampled voltage to the j-th sampled voltage from the second voltage data sequence to generate the first subsequence; Extract the N-j+1th sampled voltage to the Nth sampled voltage from the second voltage data sequence to generate the second subsequence, where N is the number of sampled voltages, j is an integer, and 1≤j≤N; Subtract each sampled voltage in the first subsequence from the sampled voltages in the corresponding order in the second subsequence to obtain j differences; Based on the j differences and the second voltage threshold, it is determined whether the fluctuation of the sampled voltage is abnormal.

5. The method according to claim 4, characterized in that, The step of determining whether the fluctuation of the sampled voltage is abnormal based on the j differences and the second voltage threshold includes: Determine whether all j differences are greater than the second voltage threshold; If so, then it is determined that the fluctuation of the sampled voltage is abnormal.

6. The method according to claim 1, characterized in that, The real-time acquisition of the power bus voltage yields several sampled voltages, including: The voltage of the power bus is acquired in real time to obtain several real-time voltages. The several real-time voltages are then filtered to obtain the filtered several real-time voltages. The maximum and minimum values ​​among the filtered real-time voltages are removed to obtain the sampled voltages.

7. The method according to claim 1, characterized in that, Determining the first voltage threshold and the second voltage threshold includes: Obtain a reference voltage, wherein the reference voltage is the voltage on the power bus when the vehicle refrigerator is not working; The first voltage threshold and the second voltage threshold are determined based on the reference voltage.

8. The method according to claim 7, characterized in that, Determining the first voltage threshold and the second voltage threshold based on the reference voltage includes: Obtain the first preset coefficient and the second preset coefficient; The first voltage threshold is determined based on the reference voltage and the first preset coefficient; The second voltage threshold is determined based on the reference voltage and the second preset coefficient.

9. A controller, characterized in that, The controller includes: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the power protection method as described in any one of claims 1-8.

10. A vehicle-mounted refrigerator, characterized in that, The system includes an adapter, a power supply circuit, a compressor, and a controller as described in claim 9, wherein the adapter is connected to a power supply, and the adapter is connected to the power supply circuit via a power bus, the power supply circuit is also connected to the compressor, and the controller is connected to both the power supply circuit and the power bus. The adapter is used to convert the voltage of the power supply and output the converted voltage to the power supply circuit via the power bus; The controller is used to collect the voltage on the power bus and control the operating state of the power supply circuit so as to output the voltage of the power bus to the compressor.

Citation Information

Patent Citations

  • Car refrigerator control method, system and equipment and car refrigerator

    CN109442863A

  • Digital power supply output voltage undervoltage detection method

    CN110736933A

  • Voltage abnormity protection circuit, control method and air conditioner

    CN112821350A

  • Control device and method of power supply system and air conditioning unit

    CN112865070A

  • Control method and device for preventing misinformation of bus voltage fault

    CN115902342A