Power supply control method, device, equipment and readable storage medium
By detecting the external power supply mode of the UPS device and using battery power to slow the busbar when the generator is powered, the problem of UPS device not working properly during the generator is solved, and the reliability and user experience of the device are improved.
Patent Information
- Application Number
- CN202110651234.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-10
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-06-10
AI Technical Summary
UPS equipment is difficult to work properly when powered by a generator, especially when the generator power is small, the equipment cannot be turned on normally, and it is easy to switch to the battery state when charging the light load + battery, resulting in the inability to use external power supply.
By obtaining the external power supply, detecting its power supply mode. If the generator power supply mode is used, the busbar is slowed to be started by battery power, and switch to external power supply after the slow start is completed; if the power supply mode is used for power supply, the busbar is slowed to be started and operated directly using the external power supply.
Ensure that the UPS device can work normally when the generator is detected to be powered, avoid the problem of the device being unable to turn on and switch to the battery state, and improve the reliability and user experience of the device.
Smart Images

Figure CN113394873B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power supply technology, and in particular to a power supply control method, device, equipment and readable storage medium. Background Art
[0002] Currently, UPS (Uninterruptible Power System) devices are often used in conjunction with generators, so that the generators can be used to externally power the UPS devices when the power grid fails.
[0003] In the prior art, when a generator is used to externally power a UPS device, the UPS device may not work properly. For example, when the power of the generator is low, the UPS device may not be able to start up normally, and when the UPS device is working with a light load + battery charging, it may exit the external power supply boosting operation and switch to battery operation. Therefore, how to enable the UPS device to detect the external power supply of the generator so that the UPS device can work normally with the generator power supply and improve the user experience is an urgent problem to be solved today. Summary of the invention
[0004] The purpose of the present invention is to provide a power supply control method, device, equipment and readable storage medium, so that a UPS device can detect the external power supply status of a generator, so that the UPS device can use the generator power supply to perform normal work and improve the user experience.
[0005] In order to solve the above technical problems, the present invention provides a power supply control method, comprising:
[0006] Obtaining electrical energy from an external power supply;
[0007] According to the electric energy, detecting a power supply mode of the external power supply; wherein the power supply mode includes a generator power supply mode or a grid power supply mode;
[0008] If the power supply mode is the grid power supply mode, the external power supply is used to perform bus slow start, and after the bus slow start is completed, the external power supply is used to work;
[0009] If the power supply mode is the generator power supply mode, the busbar slow start is performed by using the battery power supply, and after the busbar slow start is completed, the external power supply is used for operation.
[0010] Optionally, detecting the power supply mode of the external power supply according to the electric energy includes:
[0011] The power supply mode is determined according to the phase-locked frequency corresponding to the electric energy.
[0012] Optionally, determining the power supply mode according to the phase-locked frequency corresponding to the electric energy includes:
[0013] The power supply mode is determined according to the number of target frequency changes corresponding to the phase-locked frequency within the first preset time; wherein the number of target frequency changes is the number of times the difference between the maximum phase-locked frequency and the minimum phase-locked frequency within the second preset time is greater than the frequency threshold; the first preset time includes n second preset times, and n is a positive integer greater than or equal to 1.
[0014] Optionally, determining the power supply mode according to the number of changes of the target frequency corresponding to the phase-locked frequency within the first preset time period includes:
[0015] Obtaining the number of target frequency changes within a first preset time;
[0016] Determine whether the target frequency change times is greater than or equal to a first count threshold;
[0017] If it is greater than or equal to the first number threshold, determining that the power supply mode is the generator power supply mode;
[0018] If it is less than the first number threshold, determining whether the target frequency change times are less than a second number threshold; wherein the second number threshold is less than the first number threshold;
[0019] If the number of times is less than the second threshold, determining that the power supply mode is the grid power supply mode;
[0020] If it is greater than or equal to the second number threshold, the timing is restarted and the step of obtaining the number of target frequency changes within the first preset time is performed.
[0021] Optionally, when the power supply mode is the generator power supply mode, the working by using the external power supply includes:
[0022] The PFC component is controlled to perform power factor correction using the phase detected by the generator power supply phase detection frequency in an out-of-synchronization state; wherein the generator power supply phase detection frequency is any frequency within a first frequency range, the grid power supply phase detection frequency is any frequency within a second frequency range, the first frequency range includes the second frequency range and the first frequency range is greater than the second frequency range.
[0023] Optionally, when the power supply mode is the generator power supply mode, the working by using the external power supply includes:
[0024] The PFC loop coefficients of the PFC components are adjusted to their respective corresponding generator power supply values; wherein the PFC loop coefficients include a voltage loop coefficient and / or a current loop coefficient, the generator power supply value includes a generator power supply voltage loop value corresponding to the voltage loop coefficient and / or a generator power supply current loop value corresponding to the current loop coefficient, the generator power supply voltage loop value is smaller than a grid power supply voltage loop value, and the generator power supply current loop value is smaller than a grid power supply current loop value.
[0025] Optionally, when the power supply mode is the generator power supply mode, the working by using the external power supply includes:
[0026] In the process of supplying power to the battery and the load, the battery is supplied with power according to a target charging power; wherein the target charging power is less than the power supply power of the battery supplied by the power grid.
[0027] The present invention also provides a power supply control device, comprising:
[0028] An acquisition module, used for acquiring electric energy from an external power supply;
[0029] A detection module, used to detect a power supply mode of the external power supply according to the electric energy; wherein the power supply mode includes a generator power supply mode or a grid power supply mode;
[0030] A normal slow start module, used for performing a bus slow start by using the external power supply if the power supply mode is the grid power supply mode, and performing work by using the external power supply after the bus slow start is completed;
[0031] The battery slow-start module is used to use the battery power supply to perform bus slow-start if the power supply mode is the generator power supply mode, and after the bus slow-start is completed, use the external power supply to work.
[0032] The present invention also provides a power supply control device, comprising:
[0033] Memory for storing computer programs;
[0034] A processor is used to implement the steps of the power supply control method as described above when executing the computer program.
[0035] In addition, the present invention further provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the power supply control method as described above are implemented.
[0036] A power supply control method provided by the present invention comprises: obtaining electric energy of an external power supply; detecting the power supply mode of the external power supply according to the electric energy; wherein the power supply mode comprises a generator power supply mode or a grid power supply mode; if the power supply mode is a grid power supply mode, using the external power supply to perform a bus slow start, and after the bus slow start is completed, using the external power supply to perform work; if the power supply mode is a generator power supply mode, using the battery power supply to perform a bus slow start, and after the bus slow start is completed, using the external power supply to perform work;
[0037] It can be seen that the present invention uses the electric energy of the external power supply to detect the external power supply status of the generator power supply, so that the power supply control device of the UPS device can use the battery power supply to complete the buffering of the busbar when the generator power supply is detected, and use the external power supply to enter the mains power state, so that the UPS device can use the generator power supply to work normally, ensuring the reliability of the UPS device and improving the user experience. In addition, the present invention also provides a power supply control device, equipment and readable storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0039] Figure 1 A flow chart of a power supply control method provided by an embodiment of the present invention;
[0040] Figure 2 A flow chart of another power supply control method provided by an embodiment of the present invention;
[0041] Figure 3 A structural block diagram of a power supply control device provided by an embodiment of the present invention;
[0042] Figure 4 A schematic diagram of the structure of a power supply control device provided by an embodiment of the present invention;
[0043] Figure 5 A schematic diagram of the specific structure of a power supply control device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] At present, it is difficult for the power supply control device of a UPS device to detect the power supply mode of the external power supply, that is, the power supply control device cannot identify whether the electric energy of the external power supply comes from the power grid or the generator. As a result, when the generator is used to externally power the power supply control device, the power supply control device cannot work normally because it cannot adaptively control and adjust the power supply of the generator. For example, when the power of the generator is small, the UPS device cannot start up and work normally, and when the UPS device is in operation and is lightly loaded + battery charging, it will exit the external power supply boosting operation and switch to battery mode.
[0046] Through experiments, it was found that the problem of generator power supply causing UPS equipment to not work properly is as follows: when the generator is powering, the input voltage and frequency of the UPS equipment are normal, but the input frequency is always in a changing state, and the frequency change rate is high (such as higher than 2Hz / s). When the probabilistic phase lock is completed, the SCR (Silicon Controlled Rectifier) of the UPS equipment does not have time to buffer the bus and jumps out of the phase lock completion condition. This phenomenon is repeated, resulting in the inability to buffer the bus and the inability to enter the mains state, that is, the inability to work with external power supply. In view of this, the present invention detects the power supply mode of the external power supply, and uses battery power to buffer the bus when the generator power supply is detected, thereby reducing the occurrence of UPS equipment not being able to work properly, ensuring the reliability of the UPS equipment and improving the user experience.
[0047] The following is an introduction to a power supply control method provided by an embodiment of the present invention. Figure 1 , Figure 1 A flow chart of a power supply control method provided by an embodiment of the present invention. The method may include:
[0048] Step 101: Obtaining electric energy from an external power supply.
[0049] The externally powered electric energy in this step may be electric energy used to supply power to a power supply control device (such as a UPS device) from the outside, such as electric energy supplied by a power grid or electric energy supplied by a generator.
[0050] Specifically, the specific method for the power supply control device in this embodiment to obtain external power supply can be implemented in the same or similar manner as the external power supply method of the power supply control device in the prior art. For example, a UPS device can receive electrical energy output by a power grid or a generator through an external power supply interface. This embodiment does not impose any restrictions on this.
[0051] Step 102: Detecting a power supply mode of an external power supply according to the electric energy; wherein the power supply mode includes a generator power supply mode or a grid power supply mode.
[0052] Specifically, the power supply mode in this step can be an external power supply mode adopted by the power supply control device; the power supply mode can be a grid power supply mode that uses a grid to externally power the power supply control device, or a generator power supply mode that uses a generator to externally power the power supply control device.
[0053] It can be understood that in this step, the power supply control device can determine the power supply mode of the external power supply by detecting the electric energy of the external power supply. The specific way in which the power supply control device detects the power supply mode of the external power supply according to the electric energy in this step can be set by the designer according to the practical scenario and user needs, such as the power supply control device can use the phase-locked frequency corresponding to the electric energy of the external power supply to determine the power supply mode of the external power supply. The power supply control device can also use the phase-locked situation corresponding to the electric energy of the external power supply to determine the power supply mode of the external power supply; wherein the phase-locked situation may include a phase-locked completion state or an incomplete phase-locked state; for example, in this step, the power supply control device can determine whether the phase-locked situation changes to a phase-locked completion state within a preset phase-locked time, that is, detect whether the phase-locked state of the PFC (Power Factor Correction, power factor correction) component is completed within the preset phase-locked time; if not, it is determined that the power supply mode of the electric energy is a generator power supply mode; if so, it is determined that the power supply mode of the electric energy is a grid power supply mode. The power supply control device can also determine the power supply mode of the external power supply using only the phase-locked frequency corresponding to the electric energy of the external power supply. The power supply control device can also use the phase-locking condition and phase-locking frequency corresponding to the electric energy of the external power supply to determine the power supply mode of the external power supply; for example, in this step, the power supply control device can determine whether the phase-locking condition changes to the phase-locking completion state within the preset phase-locking time; if not, the power supply mode of the electric energy is determined to be the generator power supply mode; if so, the power supply mode of the external power supply is determined according to the phase-locking frequency corresponding to the electric energy of the external power supply; or in this step, the power supply control device can also determine the power supply mode of the external power supply according to the phase-locking frequency corresponding to the electric energy while determining whether the phase-locking condition changes to the phase-locking completion state within the preset phase-locking time; when it does not change to the phase-locking completion state within the preset phase-locking time, the power supply mode of the electric energy is determined to be the generator power supply mode; when it changes to the phase-locking completion state within the preset phase-locking time or does not reach the preset phase-locking time, the power supply mode of the electric energy is directly determined by using the phase-locking frequency. As long as the power supply control device can determine the power supply mode of the external power supply by detecting the electric energy of the external power supply, this embodiment does not impose any restrictions on this.
[0054] Correspondingly, in this step, the power supply control device can determine the power supply mode of the external power supply by using the phase-locked frequency and / or phase-locked condition corresponding to the external power supply when the voltage and frequency of the external power supply are normal; when the voltage or frequency of the external power supply is abnormal, it can directly determine that the power supply mode of the power is a generator power supply mode, or determine that the external power supply is unavailable.
[0055] Step 103: If the power supply mode is the grid power supply mode, use external power supply to perform bus slow start, and after the bus slow start is completed, use external power supply to work.
[0056] It can be understood that the power supply control device in this embodiment can execute the power supply control operation corresponding to the detected power supply mode after detecting the power supply mode of the external power supply, thereby avoiding the situation in which the power supply control device in the prior art only adopts the power supply control operation suitable for power grid power supply, which causes the device to fail to work normally when powered by a generator, and ensures that the power supply control device can use external power supply with different power supply modes to perform normal work.
[0057] Specifically, since the frequency of the electric energy of the external power supply is relatively stable when the power grid is supplying power, the power supply control device can complete the bus voltage boost by using the power grid. The bus voltage boost can include two processes: bus buffering and slow start; that is, in this step, when the power supply mode of the external power supply is detected to be the power grid power supply mode, the power supply control device can directly use the electric energy of the external power supply (i.e., the power grid) to perform bus buffering and bus slow start to complete the bus voltage boost, and after the bus slow start is completed (i.e., the bus voltage boost is completed), the external power supply is used for work.
[0058] Correspondingly, for the power supply control device in this step, when the power supply mode is the grid power supply mode, the specific process of using external power supply to perform bus slow start, and using external power supply to work after the bus slow start is completed, can be set by the designer according to practical scenarios and user needs. For example, the UPS device can adopt the same or similar method as the existing external power supply method, use the electric energy of the external power supply (i.e., grid power supply) to perform bus buffering and bus slow start, and power the battery and / or load after the bus slow start is completed.
[0059] Step 104: If the power supply mode is the generator power supply mode, the busbar slow start is performed using the battery power supply, and after the busbar slow start is completed, the external power supply is used for operation.
[0060] Among them, because the frequency of the electric energy of the external power supply is always in a changing state when the generator is supplying power, and the frequency change rate is high (such as higher than 2Hz / s), it is difficult for the power supply control device to use the power supply of the power grid to buffer and slow-start the bus. For example, the SCR of the UPS device may not have time to buffer the bus and jump out of the phase-locked completion condition. This phenomenon is repeated, resulting in the inability to buffer the bus and the inability to enter the mains power state. Therefore, in this step, the power supply control device can use the battery power to start from the battery state when it detects that the power supply mode of the external power supply is the generator power supply mode, buffer and slow-start the bus, and switch to the external power supply after the bus slow start is completed (that is, the bus boost is completed). After the bus slow start is completed, the mains power boost is switched to make the bus boost complete, so that after the bus slow start is completed, the power supply control device can use the external power supply to work. Accordingly, the PFC component can operate in an out-of-sync state; wherein, when the PFC component operates in a synchronized state, the phase of the PWM wave used to control the boost by the PFC component should be consistent with the voltage sine wave of the external power supply, which can ensure that the input PF (power factor) value of the power supply control device (such as a UPS device) is high, and the current phase and voltage phase of the external power supply are consistent; when the PFC component operates in an out-of-sync state, the phase of the PWM wave used to control the boost by the PFC component may be inconsistent with the voltage sine wave of the external power supply, at which time the current of the external power supply may not be a sine wave, and the current phase of the external power supply may be inconsistent with the voltage phase; that is, when the PFC component operates in an out-of-sync state, the voltage phase controlled by the PFC component to output may not be consistent with the voltage phase of the external power supply.
[0061] Correspondingly, the specific working mode of the power supply control device using external power supply (i.e., generator power supply) to work after the busbar slow start is completed can be set by the designer according to practical scenarios and user needs. For example, the power supply control device can use a wider phase detection frequency for phase detection when using external power supply to work (such as controlling the PFC component to work in an out-of-synchronization state). For example, the phase detection frequency in the generator power supply mode (i.e., the generator power supply phase detection frequency) can be greater than the phase detection frequency in the grid power supply mode (i.e., the grid power supply phase detection frequency), so as to use a higher phase detection frequency to improve the dynamic response rate of the PFC component; the power supply control device can also reduce the PFC loop coefficient (such as the voltage loop coefficient and / or the current loop coefficient) to reduce the impact on the generator; the power supply control device can also reduce the charging power of the battery to prioritize the output power of the power supply control device to the load; the power supply control device can also reduce the sensitivity of the voltage detection, frequency detection and / or phase-locked frequency detection of the electric energy of the external power supply to ensure that the power supply control device can safely and stably use the generator power to work, and avoid the power supply control device switching to the battery state due to the abnormal power caused by the sudden change of the generator frequency.
[0062] In this embodiment, the embodiment of the present invention utilizes the electric energy of the external power supply to detect the external power supply status of the generator power supply, so that the power supply control device of the UPS device can use the battery power supply to complete the bus buffering when the generator power supply is detected, and use the external power supply to enter the city power state, so that the UPS device can use the generator power supply to work normally, thereby ensuring the reliability of the UPS device and improving the user experience.
[0063] Please refer to Figure 2 , Figure 2 This is a flow chart of another power supply control method provided by an embodiment of the present invention. The method may include:
[0064] Step 201: Obtaining electric energy from an external power supply.
[0065] This step is similar to step 101 and will not be described again here.
[0066] Step 202: Determine a power supply mode of the external power supply according to the phase-locked frequency corresponding to the electric energy; wherein the power supply mode includes a generator power supply mode or a grid power supply mode.
[0067] The phase-locked frequency in this step may be a frequency obtained by phase-locking calculation of the electric energy of the external power supply, or may be a frequency obtained by processing (such as filtering) the frequency obtained by phase-locking calculation. In this step, the power supply control device (such as a UPS device) may use the frequency obtained by phase-locking calculation (i.e., the phase-locked frequency) to detect the power supply mode of the electric energy of the external power supply to ensure the accuracy of the power supply mode detection.
[0068] It should be noted that the specific method for determining the power supply mode of the external power supply according to the phase-locked frequency corresponding to the electric energy in this step can be set by the designer. For example, the power supply control device can determine the power supply mode of the external power supply according to the change of the phase-locked frequency within a certain period of time; for example, the power supply control device determines the power supply mode according to the number of target frequency changes corresponding to the phase-locked frequency detected within the first preset time; wherein the number of target frequency changes can be the number of times the difference between the maximum phase-locked frequency and the minimum phase-locked frequency within the second preset time is greater than the frequency threshold; the first preset time includes n second preset times, n is a positive integer greater than or equal to 1, that is, the power supply control device can calculate the difference between the maximum phase-locked frequency (i.e., the maximum phase-locked frequency) and the minimum phase-locked frequency (i.e., the minimum phase-locked frequency) detected within each second preset time, and when the difference is greater than the frequency threshold (e.g., 1Hz), it is determined that a target frequency change occurs (i.e., the number of target frequency changes + 1), thereby using the number of target frequency changes that occur within the first preset time (i.e., the number of target frequency changes) to determine the power supply mode of the external power supply.
[0069] Correspondingly, the power supply control device can also determine the power supply mode of the external power supply according to the number of detection frequency changes corresponding to the phase-locked frequency within the third preset time (such as 10s); wherein the number of detection frequency changes can be the number of phase-locked frequency changes that reach the frequency detection threshold (such as 0.1Hz), such as the number of detection frequency changes can be the number of times the absolute value of the difference between two adjacent phase-locked frequencies (i.e., the phase-locked frequency change) detected at intervals of the fourth preset time (such as 50ms) is greater than or equal to the frequency detection threshold; that is, the power supply control device can determine that the power supply mode is the generator power supply mode when the number of detection frequency changes corresponding to the phase-locked frequency within the third preset time is greater than the detection number threshold (such as 100 times). The power supply control device can also directly use the maximum phase-locked frequency change or the average phase-locked frequency change within a certain period of time to determine the power supply mode of the external power supply; the power supply control device can also simultaneously use the above two or more methods to use the phase-locked frequency corresponding to the electric energy to determine the power supply mode of the external power supply. This embodiment does not impose any restrictions on this.
[0070] Specifically, this embodiment does not limit the specific method of determining the power supply mode according to the number of target frequency changes corresponding to the phase-locked frequency detected within the first preset time. For example, the power supply control device can obtain the number of target frequency changes within the first preset time (such as 10s); determine whether the number of target frequency changes is greater than or equal to the first number threshold (such as 8 times); if it is greater than or equal to the first number threshold, determine that the power supply mode is the generator power supply mode; wherein the target frequency change number can be the number of times the difference between the maximum phase-locked frequency and the minimum phase-locked frequency within the second preset time (such as 1s) is greater than the frequency threshold (such as 1Hz).
[0071] Correspondingly, when the target frequency change times are less than the first count threshold, the power supply control device can directly determine that the power supply mode is the grid power supply mode; it can also continue to determine whether the target frequency change times are less than the second count threshold (such as 3 times), so that when the target frequency change times are less than the second count threshold within the first preset time, the power supply mode is determined to be the grid power supply mode; when the target frequency change times are less than the first count threshold and greater than or equal to the second count threshold within the second preset time, the timing is restarted to detect the target frequency change times within the new first preset time period. For example, when the power supply control device is a UPS device, the UPS device can start the timer of the first preset time and the second preset time 3s after power-on, and when the timer of the second preset time reaches 1s, calculate whether the difference between the maximum phase-locked frequency and the minimum phase-locked frequency detected within 1s is greater than or equal to 1Hz (i.e., the frequency threshold); when it is greater than or equal to 1Hz, the count of the target frequency change times is increased by 1, and when the timer of the first preset time does not reach 10s, the timer of the second preset time is controlled to restart; when it is less than 1Hz, the count of the target frequency change times remains unchanged, and when the timer of the first preset time does not reach 10s, the timer of the second preset time is controlled to restart; When it reaches 10s, control the timer of the second preset time to restart; when the timer of the first preset time reaches 10s, determine whether the count of the number of target frequency changes is greater than or equal to 8 times; if it is greater than or equal to 8 times, determine that the power supply mode is the generator power supply mode; if it is less than 8 times, determine whether the count of the number of target frequency changes is less than 3 times; if it is less than 3 times, determine that the power supply mode is the grid power supply mode; if it is greater than or equal to 3 times and less than 8 times, restart the timer of the first preset time and the second preset time and the count of the number of target frequency changes, and detect the count of the number of target frequency changes within the next 10s.
[0072] Step 203: If the power supply mode is the grid power supply mode, the busbar is slowly started by using external power supply, and after the busbar is slowly started, the external power supply is used to work.
[0073] This step is similar to step 103 and will not be described again here.
[0074] Step 204: If the power supply mode is the generator power supply mode, the busbar slow start is performed using the battery power supply, and after the busbar slow start is completed, the external power supply is used for operation.
[0075] It can be understood that in this step, the power supply control device can start from the battery state when it is determined that the power supply mode of the external power supply is the generator power supply mode, and then switch to the external power supply for AC power boosting after the bus slow start is completed, so that after the bus slow start is completed, as long as one phase lock is completed, it can switch to AC power boosting, and the PFC component can operate in an out-of-synchronization state to ensure that the power supply control device can enter the AC power state to work.
[0076] Specifically, the specific method of using battery power to perform bus slow start when the power supply control device determines that the power supply mode is the generator power supply mode in this step can be set by the designer. For example, when the power supply control device determines that the power supply mode is the grid power supply mode, it can directly switch to battery power, and after the bus slow start is completed, switch to external power supply and use the generator power supply to work; for example, the UPS device can detect the power supply mode of the external power supply at each startup, and when it is detected that the power supply mode is the grid power supply mode, use the battery power to perform bus slow start, and after the bus slow start is completed (such as battery power supply for a certain period of time), switch to external power supply, use the generator power supply to boost the AC power voltage, and continue with subsequent work. When the power supply mode determined by the power supply control device is the grid power supply mode, the power supply control device can also detect the slow start status of the bus; if the slow start status is an incomplete slow start status, the battery in the power supply control device is used for starting, and after the slow start status is a completed slow start status, the external power supply is used for operation; if the slow start status is a completed slow start status, the external power supply is used for operation; that is, the power supply control device (such as a UPS device) can start from the battery state when it detects that the generator power supply mode is in effect and the bus has not completed the slow start, and switch to the external power supply for AC power boost after the bus slow start is completed, so that after the bus slow start is completed, the power supply control device can use the external power supply to work.
[0077] Correspondingly, when the determined power supply mode is the generator power supply mode, during the working process of the power supply control device after the busbar slow start is completed, the PFC component of the power supply control device can work in an out-of-synchronization state; further, the power supply control device can control the PFC component to perform power factor correction using the phase detected by the generator power supply phase detection frequency in the out-of-synchronization state; wherein the generator power supply phase detection frequency is any frequency within the first frequency range, and the grid power supply phase detection frequency is any frequency within the second frequency range; the first frequency range includes the second frequency range and the first frequency range is greater than the second frequency range, that is, the maximum value of the first frequency range can be greater than the maximum value of the second frequency range and / or the minimum value of the first frequency range can be less than the minimum value of the second frequency range. In other words, compared with the value range of the grid power supply phase detection frequency (i.e., the second frequency range), the value range of the generator power supply phase detection frequency (i.e., the first frequency range) is wider; the generator power supply phase detection frequency can be the phase detection frequency in the generator power supply mode, and the grid power supply phase detection frequency can be the phase detection frequency in the grid power supply mode. For example, after the power supply mode is determined to be the generator power supply mode, the power supply control device can increase the phase detection frequency of the PFC component to improve the dynamic response rate of the PFC component; after the power supply mode is determined to be the generator power supply mode, the power supply control device can also reduce the phase detection frequency of the PFC component to reduce the sensitivity of the phase-locked frequency detection.
[0078] Further, when the determined power supply mode is the generator power supply mode, the power supply control device adjusts the PFC loop coefficient of the PFC component to the corresponding generator power supply value during the working process after the busbar slow start is completed; wherein the PFC loop coefficient includes a voltage loop coefficient and / or a current loop coefficient, the generator power supply value includes a generator power supply voltage loop value corresponding to the voltage loop coefficient and / or a generator power supply current loop value corresponding to the current loop coefficient, the generator power supply voltage loop value is less than the grid power supply voltage loop value, and the generator power supply current loop value is less than the grid power supply current loop value. Specifically, the generator power supply voltage loop value and the generator power supply current loop value can be the values of the voltage loop coefficient and the current loop coefficient in the generator power supply mode, respectively, the grid power supply voltage loop value and the grid power supply current loop value can be the values of the voltage loop coefficient and the current loop coefficient in the grid power supply mode, respectively, and the power supply control device can reduce the PFC loop coefficient (such as the voltage loop coefficient and / or the current loop coefficient) of the PFC component when the determined power supply mode is the generator power supply mode to reduce the impact on the generator.
[0079] Furthermore, when the determined power supply mode is the generator power supply mode, the power supply control device can use the target charging power to power the battery of the power supply control device during the working process after the busbar slow start is completed when powering the battery and the load, so as to give priority to ensuring the output power of the power supply control device to the load; wherein, the target charging power can be less than the battery charging power corresponding to the grid power supply mode (i.e., the grid power supply battery charging power); that is, compared with the charging power used for the battery when the power supply control device uses the grid power supply to power the battery and the load (i.e., the grid power supply battery charging power), the power supply control device can use a smaller charging power (i.e., the target charging power) for the battery when the generator power supply is used to power the battery and the load, so as to give priority to ensuring the output power of the power supply control device to the load. For example, when the UPS device determines that the power supply mode is the generator power supply mode, if it needs to power the battery and the load, it can power the battery according to the minimum charging power (i.e., the target charging power) to maximize the output power to the load.
[0080] Furthermore, when the power supply mode is determined to be the generator power supply mode, the power supply control device can reduce the sensitivity of the voltage detection, frequency detection and / or phase-locked frequency detection of the external power supply during the working process after the busbar slow start is completed, so as to ensure that the power supply control device can safely and stably use the power supply of the generator to work. For example, when the power supply mode of the UPS device is determined to be the generator power supply mode, it can detect whether the voltage of the external power supply is within the target voltage range; if so, it switches to use the battery power supply in the power supply control device to work; wherein the target voltage range may include the voltage range corresponding to the grid power supply mode, the maximum voltage value of the target voltage range is greater than the maximum voltage value of the voltage range corresponding to the grid power supply mode and / or the minimum voltage value of the target voltage range is less than the minimum voltage value of the voltage range corresponding to the grid power supply mode. Correspondingly, when the power supply mode determined by the UPS device is the generator power supply mode, it can also detect whether the frequency of the externally powered electric energy is within the target frequency range, and detect whether the phase-locked frequency of the externally powered electric energy is within the target phase-locked frequency range; wherein the target frequency range may include the frequency range corresponding to the grid power supply mode, the maximum frequency value of the target frequency range is greater than the maximum frequency value of the frequency range corresponding to the grid power supply mode and / or the minimum frequency value of the target frequency range is less than the minimum frequency value of the frequency range corresponding to the grid power supply mode; the target phase-locked frequency range may include the phase-locked frequency range corresponding to the grid power supply mode, the maximum phase-locked frequency value of the target phase-locked frequency range is greater than the maximum phase-locked frequency value of the phase-locked frequency range corresponding to the grid power supply mode and / or the minimum phase-locked frequency value of the target phase-locked frequency range is less than the minimum phase-locked frequency value of the phase-locked frequency range corresponding to the grid power supply mode.
[0081] In this embodiment, the embodiment of the present invention determines the power supply mode of the external power supply according to the phase-locked frequency corresponding to the electric energy, and can use the frequency calculated by the phase-locked calculation to improve the detection accuracy of the external power supply situation of the generator power supply; and if the power supply mode is the generator power supply mode, the bus is slowly started by using the battery power supply, and the bus can be slowly started by using the battery power supply when the generator power supply is detected, thereby avoiding the situation where the UPS device cannot work normally, ensuring the reliability of the UPS device, and improving the user experience.
[0082] Corresponding to the above method embodiment, the embodiment of the present invention further provides a power supply control device. The power supply control device described below and the power supply control method described above can refer to each other.
[0083] Please refer to Figure 3 , Figure 3 This is a structural block diagram of a power supply control device provided by an embodiment of the present invention. The device may include:
[0084] An acquisition module 10 is used to acquire electric energy from an external power supply;
[0085] The detection module 20 is used to detect the power supply mode of the external power supply according to the electric energy; wherein the power supply mode includes a generator power supply mode or a grid power supply mode;
[0086] The normal slow start module 30 is used to use external power supply to perform bus slow start if the power supply mode is the grid power supply mode, and to use external power supply to work after the bus slow start is completed;
[0087] The battery slow start module 40 is used to use the battery power supply to perform bus slow start if the power supply mode is the generator power supply mode, and after the bus slow start is completed, use the external power supply to work.
[0088] Optionally, the detection module 20 may include:
[0089] The frequency detection submodule is used to determine the power supply mode according to the phase-locked frequency corresponding to the electric energy.
[0090] Optionally, the frequency detection submodule can be specifically used to determine the power supply mode based on the number of target frequency changes corresponding to the phase-locked frequency within the first preset time; wherein the number of target frequency changes is the number of times the difference between the maximum phase-locked frequency and the minimum phase-locked frequency within the second preset time is greater than the frequency threshold; the first preset time includes n second preset times, and n is a positive integer greater than or equal to 1.
[0091] Optionally, the frequency detection submodule may include:
[0092] A frequency acquisition unit, used to acquire the number of target frequency changes within a first preset time;
[0093] A first number determination unit, used to determine whether the target frequency change times is greater than or equal to a first number threshold;
[0094] A first determining unit, configured to determine that the power supply mode is a generator power supply mode if the value is greater than or equal to a first number threshold;
[0095] A second frequency determination unit is used to determine whether the target frequency change frequency is less than a second frequency threshold if the target frequency change frequency is less than the first frequency threshold; wherein the second frequency threshold is less than the first frequency threshold;
[0096] A second determining unit, configured to determine that the power supply mode is a grid power supply mode if the value is less than a second numerical threshold;
[0097] The restart timing unit is used to restart the timing if the time is greater than or equal to the second number threshold, and send a start signal to the number acquisition unit.
[0098] Optionally, when the power supply mode is a generator power supply mode, the battery slow start module 40 may include:
[0099] The phase detection submodule is used to control the PFC component to perform power factor correction using the phase detected by the generator power supply phase detection frequency in an out-of-synchronization state during operation using external power supply; wherein the generator power supply phase detection frequency is any frequency within a first frequency range, the grid power supply phase detection frequency is any frequency within a second frequency range, the first frequency range includes the second frequency range and the first frequency range is greater than the second frequency range.
[0100] Optionally, when the power supply mode is a generator power supply mode, the battery slow start module 40 may include:
[0101] The coefficient adjustment submodule is used to adjust the PFC loop coefficient of the PFC component to the corresponding generator power supply value when working with external power supply; wherein the PFC loop coefficient includes a voltage loop coefficient and / or a current loop coefficient, the generator power supply value includes a generator power supply voltage loop value corresponding to the voltage loop coefficient and / or a generator power supply current loop value corresponding to the current loop coefficient, the generator power supply voltage loop value is smaller than the grid power supply voltage loop value, and the generator power supply current loop value is smaller than the grid power supply current loop value.
[0102] Optionally, when the power supply mode is a generator power supply mode, the battery slow start module 40 may include:
[0103] The battery charging submodule is used to supply power to the battery according to the target charging power during the process of supplying power to the battery and the load; wherein the target charging power is less than the power supply power of the battery supplied by the power grid.
[0104] In this embodiment, the embodiment of the present invention uses the electric energy of the external power supply through the detection module 20 to detect the external power supply status of the generator power supply, so that when the power supply control device of the UPS device detects the generator power supply, it can use the battery power supply through the battery slow start module 40 to complete the bus buffering, and use the external power supply to enter the city power state, so that the UPS device can use the generator power supply to work normally, thereby ensuring the reliability of the UPS device and improving the user experience.
[0105] Corresponding to the above method embodiment, the embodiment of the present invention further provides a power supply control device. The power supply control device described below and the power supply control method described above can refer to each other.
[0106] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of a power supply control device provided in an embodiment of the present invention. The power supply control device may include:
[0107] A memory D1, for storing computer programs;
[0108] The processor D2 is used to implement the steps of the power supply control method provided in the above method embodiment when executing a computer program.
[0109] For details, please refer to Figure 5 , Figure 5 A specific structural diagram of a power supply control device provided in an embodiment of the present invention, the power supply control device may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and one or more storage media 330 (for example, one or more mass storage devices) storing application programs 342 or data 344. Among them, the memory 332 and the storage medium 330 can be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the device. Furthermore, the central processing unit 322 can be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the power supply control device 301.
[0110] The power supply control device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input and output interfaces 358, and / or one or more operating systems 341. For example, Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0111] The power supply control device 301 may specifically be a UPS device.
[0112] The steps in the power supply control method described above can be implemented by the structure of the power supply control device.
[0113] Corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium. The readable storage medium described below and the power supply control method described above can refer to each other.
[0114] A readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power supply control method of the above method embodiment are implemented.
[0115] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.
[0116] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, apparatuses, equipment and readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0117] The above is a detailed introduction to a power supply control method, device, equipment and readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A power supply control method, characterized in that: include: Acquire electric energy supplied by an external power supply; wherein the electric energy is electric energy supplied by a power grid or electric energy supplied by a generator; Determine a power supply mode according to the phase-locked frequency corresponding to the electric energy; wherein the power supply mode includes a generator power supply mode or a grid power supply mode; If the power supply mode is the grid power supply mode, the external power supply is used to perform bus slow start, and after the bus slow start is completed, the external power supply is used to work; If the power supply mode is the generator power supply mode, the busbar slow start is performed by using the battery power supply, and after the busbar slow start is completed, the external power supply is used for operation; The determining of the power supply mode according to the phase-locked frequency corresponding to the electric energy includes: Obtain the number of target frequency changes within a first preset time; Determine whether the target frequency change times is greater than or equal to a first count threshold; If it is greater than or equal to the first number threshold, determining that the power supply mode is the generator power supply mode; If it is less than the first number threshold, determining whether the target frequency change times are less than a second number threshold; wherein the second number threshold is less than the first number threshold; If the number of times is less than the second threshold, determining that the power supply mode is the grid power supply mode; If it is greater than or equal to the second frequency threshold, the timing is restarted and the step of obtaining the number of target frequency changes within the first preset time is performed; Among them, the number of target frequency changes is the number of times the difference between the maximum phase-locked frequency and the minimum phase-locked frequency within the second preset time is greater than the frequency threshold; the first preset time includes n second preset times, and n is a positive integer greater than or equal to 1.
2. The power supply control method according to claim 1, characterized in that: When the power supply mode is the generator power supply mode, the operation using the external power supply includes: The PFC component is controlled to perform power factor correction using the phase detected by the generator power supply phase detection frequency in an out-of-synchronization state; wherein the generator power supply phase detection frequency is any frequency within a first frequency range, the grid power supply phase detection frequency is any frequency within a second frequency range, the first frequency range includes the second frequency range and the first frequency range is greater than the second frequency range.
3. The power supply control method according to any one of claims 1 to 2, characterized in that: When the power supply mode is the generator power supply mode, the operation using the external power supply includes: The PFC loop coefficients of the PFC components are adjusted to their respective corresponding generator power supply values; wherein the PFC loop coefficients include a voltage loop coefficient and / or a current loop coefficient, the generator power supply value includes a generator power supply voltage loop value corresponding to the voltage loop coefficient and / or a generator power supply current loop value corresponding to the current loop coefficient, the generator power supply voltage loop value is smaller than a grid power supply voltage loop value, and the generator power supply current loop value is smaller than a grid power supply current loop value.
4. The power supply control method according to any one of claims 1 to 2, characterized in that: When the power supply mode is the generator power supply mode, the operation using the external power supply includes: In the process of supplying power to the battery and the load, the battery is supplied with power according to a target charging power; wherein the target charging power is less than the charging power of the battery supplied by the power grid.
5. A power supply control device, characterized in that: include: An acquisition module, used for acquiring electric energy supplied by an external power supply, wherein the electric energy is electric energy supplied by a power grid or electric energy supplied by a generator; A detection module, used to determine the power supply mode according to the phase-locked frequency corresponding to the electric energy; wherein the power supply mode includes a generator power supply mode or a grid power supply mode; a normal slow start module, used to use the external power supply to perform bus slow start if the power supply mode is the grid power supply mode, and after the bus slow start is completed, use the external power supply to work; A battery slow-start module, used for, if the power supply mode is the generator power supply mode, using the battery power supply to perform a bus slow-start, and after the bus slow-start is completed, using the external power supply to work; Determining the power supply mode according to the phase-locked frequency corresponding to the electric energy includes: obtaining the number of target frequency changes within a first preset time; Determine whether the target frequency change times is greater than or equal to a first count threshold; If it is greater than or equal to the first number threshold, determining that the power supply mode is the generator power supply mode; If it is less than the first number threshold, determining whether the target frequency change times are less than a second number threshold; wherein the second number threshold is less than the first number threshold; If the number of times is less than the second threshold, determining that the power supply mode is the grid power supply mode; If it is greater than or equal to the second frequency threshold, the timing is restarted and the step of obtaining the number of target frequency changes within the first preset time is performed; Among them, the number of target frequency changes is the number of times the difference between the maximum phase-locked frequency and the minimum phase-locked frequency within the second preset time is greater than the frequency threshold; the first preset time includes n second preset times, and n is a positive integer greater than or equal to 1.
6. A power supply control device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the power supply control method according to any one of claims 1 to 4 when executing the computer program.
7. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power supply control method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Input anomaly detection method and system for uninterruptible power supply and terminal equipment
CN110829576A
Zero-crossing judgment method and zero-crossing judgment device
CN110850151A
Emergency power supply and control method
CN112821547A