Power supply voltage adjusting method and device, electronic equipment and readable storage medium

Through real-time monitoring and adjustment of power supply voltage by digital controllers, the wiring complexity and interference problems brought about by traditional sensing line systems are solved, and efficient, reliable and precise control of power output is achieved.

CN119088159APending Publication Date: 2024-12-06INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411045949.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Traditional sensing line systems cause wiring complexity, interference, increased cost and difficulty in troubleshooting in power supply, and have limited effects in long-distance or high-current applications.

Method used

The digital controller is used to monitor the power supply voltage data in real time, and adjust the power supply output through voltage error calculation and PID control algorithm to achieve accurate voltage control and reduce dependence on additional sensing lines and complex circuits.

Benefits of technology

It simplifies system wiring, reduces cost and fault location difficulty, improves the intelligence level of the system and the stability and accuracy of power output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088159A_ABST
    Figure CN119088159A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a power supply voltage adjusting method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring corresponding voltage data of a power supply at a previous moment; obtaining corresponding voltage error data of the power supply at the previous moment according to the corresponding voltage data of the power supply at the previous moment and the voltage reference data; the voltage error data is used for representing the difference between the voltage data and the voltage reference data; according to the corresponding voltage error data of the power supply at the previous moment, calculating to obtain corresponding voltage adjustment data of the power supply at the previous moment; and adjusting corresponding voltage data of the power supply at the current moment according to the corresponding voltage adjustment data of the power supply at the previous moment, so that the corresponding voltage data of the power supply at the current moment is close to the voltage reference data. According to the embodiment of the invention, the problems of wiring complexity and interference caused by a traditional sensing line system line are solved, the hardware design in the system is simplified, the cost is reduced, and the intelligent level of the system is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of power supply technology, and in particular to a method for adjusting power supply voltage, a device for adjusting power supply voltage, an electronic device, and a computer-readable storage medium. Background Art

[0002] The main background of Remote Sense technology is to solve the voltage drop problem in the power supply system. When the power supply supplies power to the load through the cable, the resistance in the cable will cause a voltage drop, resulting in a lower voltage at the load end than the voltage at the power supply output end. This problem is particularly evident in long-distance transmission or high-current applications. In order to compensate for this voltage drop, Remote Sense technology adds two sensing lines at the output end of the power supply, which are directly connected to the load end to monitor the voltage at the load end in real time. These sensing lines feed back the actual voltage at the load end to the control circuit inside the power supply. The control circuit adjusts the output voltage based on the feedback information to compensate for the voltage drop in the cable and ensure that the voltage at the load end is stable at the set value. Remote Sense technology is based on the principle of feedback control system, using the real-time voltage information provided by the sensing line for dynamic adjustment to achieve precise control of voltage.

[0003] Although Remote Sense technology has significant advantages in improving voltage control accuracy and load-end voltage stability, traditional sensing lines will affect the system line layout. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for adjusting power supply voltage to solve the problems of wiring complexity and interference caused by traditional sensing line system circuits.

[0005] An embodiment of the present invention discloses a method for adjusting a power supply voltage, the method comprising:

[0006] Obtaining voltage data corresponding to the power supply at the previous moment;

[0007] Obtaining voltage error data corresponding to the power supply at the last moment according to voltage data corresponding to the power supply at the last moment and voltage reference data; the voltage error data is used to characterize the difference between the voltage data and the voltage reference data;

[0008] Calculating the voltage adjustment data corresponding to the power supply at the last moment according to the voltage error data corresponding to the power supply at the last moment;

[0009] The voltage data corresponding to the power supply at the current moment is adjusted according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data.

[0010] Optionally, obtaining voltage error data corresponding to the power supply at a previous moment according to voltage data corresponding to the power supply at a previous moment and voltage reference data includes:

[0011] Converting the voltage data corresponding to the power supply at the last moment into a signal form to obtain voltage processing data corresponding to the power supply at the last moment; the signal form corresponding to the voltage data is an analog signal, and the signal form corresponding to the voltage processing data is a digital signal;

[0012] The voltage processing data corresponding to the power supply at the last moment is compared with the voltage reference data to obtain the voltage error data corresponding to the power supply at the last moment; the signal form corresponding to the voltage reference data is a digital signal.

[0013] Optionally, the calculating, based on the voltage error data corresponding to the power supply at the previous moment, voltage adjustment data corresponding to the power supply at the previous moment includes:

[0014] The voltage adjustment data corresponding to the power supply at the previous moment is calculated according to the control parameters and the voltage error data corresponding to the power supply at the previous moment; the control parameters are proportional parameters, integral parameters and differential parameters.

[0015] Optionally, adjusting the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data, includes:

[0016] Adjusting the reference voltage of the power supply based on the voltage adjustment data corresponding to the power supply at the previous moment to obtain a target reference voltage, and adjusting the voltage data corresponding to the power supply at the current moment according to the target reference voltage;

[0017] or,

[0018] The duty cycle of the pulse width modulation signal of the power supply is adjusted based on the voltage adjustment data corresponding to the power supply at the previous moment to obtain the target duty cycle of the pulse width modulation signal, and the voltage data corresponding to the power supply at the current moment is adjusted according to the target duty cycle of the pulse width modulation signal.

[0019] Optionally, the calculating, according to the control parameter and the voltage error data corresponding to the power supply at the previous moment, to obtain the voltage adjustment data corresponding to the power supply at the previous moment includes:

[0020] Integrating the voltage error data corresponding to the power supply at the previous moment to obtain the voltage error integral data corresponding to the power supply at the previous moment;

[0021] Performing differential calculation on the voltage error data corresponding to the power supply at the previous moment to obtain the voltage error differential data corresponding to the power supply at the previous moment;

[0022] Multiplying the proportional parameter by the voltage error data corresponding to the power supply at the previous moment to obtain the first adjustment data corresponding to the power supply at the previous moment;

[0023] The integral parameter and the voltage error integral data corresponding to the power supply at the previous moment are used to obtain the second adjustment data corresponding to the power supply at the previous moment;

[0024] The differential parameter and the voltage error differential data corresponding to the power supply at the last moment are used to obtain the third adjustment data corresponding to the power supply at the last moment;

[0025] The first adjustment data corresponding to the power supply at the last moment, the second adjustment data corresponding to the power supply at the last moment, and the third adjustment data corresponding to the power supply at the last moment are added together to obtain the voltage adjustment data corresponding to the power supply at the last moment.

[0026] Optionally, after adjusting the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data, the method further includes:

[0027] The voltage reference data and the control parameter are adjusted according to the load change corresponding to the load at the current moment to obtain the adjusted voltage reference data and the adjusted control parameter; the power supply provides electric energy to the load;

[0028] The voltage data corresponding to the power supply at the next moment is adjusted according to the voltage data corresponding to the power supply at the current moment, the adjusted voltage reference data and the adjusted control parameter.

[0029] Optionally, the adjusting the voltage reference data and the control parameter according to a load change corresponding to the load at a current moment includes:

[0030] When the load change corresponding to the load at the current moment does not meet the load characteristics and voltage requirements of the load, the voltage reference data and the control parameter are adjusted so that the voltage data corresponding to the power supply at the next moment is close to the adjusted voltage reference data;

[0031] When the load change corresponding to the load at the current moment meets the load characteristics and voltage requirements of the load, there is no need to adjust the voltage reference data and the control parameters.

[0032] The embodiment of the present invention further discloses a device for adjusting power supply voltage, the device comprising:

[0033] An acquisition module, used to acquire voltage data corresponding to the power supply at the previous moment;

[0034] A voltage error data module, used to obtain voltage error data corresponding to the power supply at the previous moment according to voltage data corresponding to the power supply at the previous moment and voltage reference data; the voltage error data is used to characterize the difference between the voltage data and the voltage reference data;

[0035] A voltage adjustment data module, used to calculate the voltage adjustment data corresponding to the power supply at the previous moment according to the voltage error data corresponding to the power supply at the previous moment;

[0036] The adjustment module is used to adjust the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data.

[0037] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0038] The memory is used to store computer programs;

[0039] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0040] The embodiment of the present invention further discloses a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the embodiment of the present invention.

[0041] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

[0042] The embodiments of the present invention include the following advantages:

[0043] The embodiment of the present invention obtains the voltage data corresponding to the power supply at the last moment; obtains the voltage error data corresponding to the power supply at the last moment according to the voltage data corresponding to the power supply at the last moment and the voltage reference data; the voltage error data is used to characterize the difference between the voltage data and the voltage reference data; calculates the voltage adjustment data corresponding to the power supply at the last moment according to the voltage error data corresponding to the power supply at the last moment; and adjusts the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the last moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data. In the embodiment of the present invention, by real-time monitoring the voltage data corresponding to the power supply at the last moment, and adjusting the voltage data corresponding to the power supply at the current moment in combination with the voltage reference data, the wiring complexity and interference problems caused by the traditional sensing line system are solved, the hardware design inside the system is simplified, the dependence on additional sensing lines and complex circuits is reduced, the cost is reduced, and the intelligence level of the system is enhanced, so that the power supply system is more efficient, reliable and easy to manage in various application fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a schematic diagram of an application environment provided in an embodiment of the present invention;

[0045] Figure 2 is a flow chart of steps of a method for adjusting power supply voltage provided in an embodiment of the present invention;

[0046] Figure 3 is a schematic diagram of a power supply and a load provided in an embodiment of the present invention;

[0047] Figure 4 is a schematic diagram of a system application provided in an embodiment of the present invention;

[0048] Figure 5 is a schematic diagram of adjusting voltage reference data provided in an embodiment of the present invention;

[0049] Figure 6 is a structural block diagram of a power supply voltage adjustment device provided in an embodiment of the present invention;

[0050] Figure 7 is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention;

[0051] Figure 8 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0053] The following is a detailed description of the operating principle of the traditional power supply remote sensing compensation (Remote Sense Compensation):

[0054] 1. Remote voltage sensing: The power supply output is not only connected to the load, but also has a pair of dedicated sensing lines directly connected to the load. These sensing lines are used to accurately measure the voltage actually applied to the load, rather than measuring through the main power line. The current of the sensing line is very small, and the voltage drop across it is negligible, so it can accurately reflect the voltage at the load end.

[0055] 2. Signal feedback: The actual voltage at the load end is fed back to the control circuit of the power supply through the sensing line. This feedback mechanism enables the power supply to obtain the voltage information at the load end in real time, rather than relying on the voltage at the output end.

[0056] 3. Comparison and compensation: The control circuit compares the actual load voltage sensed with the preset reference voltage. If the actual load voltage is lower than the reference voltage, this indicates that there is a voltage drop in the line and the power supply needs to be compensated. The control circuit generates an error signal through a comparator or error amplifier, indicating the difference between the actual voltage and the expected voltage.

[0057] 4. Adjust the output: Based on the error signal, the control circuit of the power supply adjusts the output voltage of the power supply. This adjustment is usually achieved by changing the duty cycle of the switching power supply (for switching power supplies) or adjusting the output of the linear regulator (for linear power supplies). The adjusted output voltage is increased to compensate for the voltage drop in the line to ensure that the voltage at the load end reaches the set reference value.

[0058] 5. Dynamic response: The remote sensing compensation system can respond to load changes in real time and continuously adjust the output voltage. This dynamic regulation ensures that the voltage at the load end is stable and adapts to changes in load and fluctuations in line conditions.

[0059] The traditional power remote sensing compensation system has a certain impact on the system line layout during application, and also has the following disadvantages:

[0060] 1. Increased wiring complexity: Remote sensing requires additional sensing lines that must be connected directly from the power output to the load, increasing the wiring complexity of the overall system. These sensing lines need to be carefully laid out to avoid interference and signal attenuation, and additional shielding or path planning may be required.

[0061] 2. Increased space requirements: Due to the addition of sensing lines, the wiring space requirements increase, especially inside dense circuit boards or devices, which may lead to a more compact layout or require a redesign of the circuit board.

[0062] 3. Reliability and maintenance: Due to the increased complexity of wiring, the reliability of the system may be affected. Wiring errors or broken sensing lines can cause voltage compensation failure. Maintenance and troubleshooting become more complicated, requiring inspection and repair of additional sensing lines.

[0063] 4. Increased costs: Adding sensing lines and corresponding connectors will lead to increased material and manufacturing costs. Increased design and wiring complexity may increase design time and labor costs.

[0064] 5. Electromagnetic Interference (EMI): The sensing line may be subject to electromagnetic interference, especially in a high-noise environment. Interference may cause inaccurate sensing signals, thus affecting the effect of voltage compensation. Additional shielding or filtering measures are required to mitigate the interference, which further increases cost and complexity.

[0065] 6. Limited line loss compensation range: Although remote sensing compensation can effectively compensate for line voltage drop, for extremely long distances or high currents, line loss may exceed the compensation range, resulting in limited effectiveness. In this case, thicker power cables or higher-specification power supply equipment need to be considered.

[0066] 7. Increased difficulty in fault diagnosis: Due to the addition of sensing lines and related circuits in the system, the difficulty of fault diagnosis and troubleshooting increases, requiring more time and professional skills to identify and repair the problem.

[0067] 8. Delay and response time: The dynamic response time of the remote sensing system depends on the design of the control circuit and the signal propagation delay. In some high dynamic load environments, the response time may not be sufficient to fully compensate for the instantaneous voltage changes.

[0068] Therefore, the method of using digital control to realize the Remote Sense function without the need for a sensing line in the embodiment of the present invention can effectively solve the wiring complexity and interference problems caused by traditional sensing lines. The digital controller can integrate multiple functions, such as voltage monitoring, current protection, temperature protection, etc., to improve the intelligence level of the system. Through the communication interface (such as I2C, SPI, CAN, etc.), remote monitoring and control can be achieved, which is convenient for centralized management and maintenance.

[0069] Reference Figure 1, showing a schematic diagram of an application environment provided in an embodiment of the present invention, a method for adjusting the power supply voltage is implemented through a digital controller. Specifically, the digital controller obtains voltage data corresponding to the power supply at the previous moment, and then obtains voltage error data based on the voltage data and voltage reference data. The digital controller calculates voltage adjustment data based on the voltage error data to adjust the voltage data corresponding to the power supply at the next moment. The adjusted voltage data (the voltage data corresponding to the power supply at the next moment) is output to a load connected to the power supply.

[0070] Reference Figure 2 , shows a flow chart of a method for adjusting a power supply voltage provided in an embodiment of the present invention, which may specifically include the following steps:

[0071] Step 201, obtaining voltage data corresponding to the power supply at the previous moment;

[0072] In the embodiment of the present invention, the digital controller uses a built-in analog-to-digital converter ADC (Analog-to-Digital Converter) to monitor the voltage at the output end of the power supply in real time to obtain the voltage data corresponding to the power supply at the previous moment. Real-time collection of system data, intelligent analysis and optimization, improve the reliability and efficiency of the system, and the collected data can be used for subsequent predictive maintenance, fault diagnosis and performance evaluation.

[0073] The digital controller can configure the sampling parameters of the ADC to achieve timed sampling of the voltage data of the power supply. Specifically, the timer module inside the digital controller can be used to generate a regular sampling trigger signal. The frequency of the timer should be set to the required sampling frequency. For example, if sampling is required every 10 milliseconds, the frequency of the timer should be set to 100Hz. The sampling rate and resolution of the ADC can be configured through software, which provides great flexibility. The digital controller can adjust the parameters of the ADC according to different application requirements to achieve the best monitoring effect.

[0074] ADC can be directly connected to the power supply output and read the voltage value in real time without additional conversion or processing. ADC usually has high accuracy and resolution and can provide accurate voltage measurement results. ADC converts analog voltage signals into digital signals, which makes it possible to convert the voltage data in the form of analog signals into voltage processing data of digital signals for direct processing in digital controllers. Digital signal processing provides higher stability and anti-interference ability, and is also convenient for complex mathematical operations and control algorithms.

[0075] In the embodiment of the present invention, since the digital controller has a built-in ADC, real-time monitoring of voltage data is performed through the ADC, and there is no need to perform real-time monitoring of voltage data through traditional remote sensing lines. By eliminating the remote sensing lines, the system wiring is simplified and the complexity of circuit board design is reduced. The simplified wiring not only reduces the manufacturing cost, but also reduces the difficulty of installation and maintenance. In addition, since remote sensing lines and related connectors are no longer required, the material cost is reduced, and the assembly steps in the manufacturing process are also reduced, thereby reducing the production cost.

[0076] Furthermore, the elimination of remote sensing lines can reduce potential failure points in the system, such as wiring errors or breakage of sensing lines, complex maintenance and troubleshooting, electromagnetic interference, etc. As the number of failure points is reduced, fault location and repair become faster and easier, improving the overall reliability of the system. After the system structure is simplified, the electrical connection is more secure and the failure rate is reduced.

[0077] Reference Figure 3 , shows a schematic diagram of a power supply and a load provided in an embodiment of the present invention, the power supply outputs voltage to the load, and the digital controller collects voltage data through SDA (Serial Data Line) / SCL (Serial Clock Line).

[0078] Step 202: obtaining voltage error data corresponding to the power supply at the previous moment according to the voltage data corresponding to the power supply at the previous moment and the voltage reference data; the voltage error data is used to characterize the difference between the voltage data and the voltage reference data;

[0079] Digital controllers need to implement control algorithms based on digital signals. Therefore, analog signals must be converted into digital signals through ADC so that the control algorithms can recognize and process them.

[0080] In the embodiment of the present invention, after the ADC obtains the voltage data (analog signal) corresponding to the power supply at the previous moment, the voltage data needs to be converted into a signal form to obtain the voltage processing data (digital signal) corresponding to the power supply at the previous moment.

[0081] In one embodiment of the present invention, the digital controller can also monitor the voltage processing data corresponding to the power supply at the previous moment in real time, and determine whether the power supply voltage has a temporary sag (sudden voltage drop) or a temporary swell (sudden voltage rise). When any of these situations occurs, the corresponding control strategy is activated to achieve precise voltage control, improve system performance, and ensure the stability and accuracy of the load-end voltage.

[0082] In the embodiment of the present invention, the voltage reference data is preset by firmware, stored in a non-volatile memory (such as EEPROM or Flash) of the digital controller, and loaded when the system is started.

[0083] In order to achieve precise control and stability of power supply output, it is necessary to quantify the difference between the actual voltage data and the preset voltage reference data. At this time, it is necessary to calculate the voltage error data through the voltage data and the voltage reference data. By monitoring and calculating the voltage error data, the control system can understand the status of the power supply output in real time and adjust the power supply output according to the size and direction of the voltage error data to reduce the error and make the actual voltage data close to the voltage reference data.

[0084] In an embodiment of the present invention, the voltage error data is calculated by the voltage reference data, and the voltage reference data is determined in order to achieve precise control and stability of the power supply output. The voltage error data is key information for the control system to perform real-time adjustment and optimization to ensure that the power supply output can remain stable under various working conditions.

[0085] Step 203, calculating the voltage adjustment data corresponding to the power supply at the last moment according to the voltage error data corresponding to the power supply at the last moment;

[0086] In an embodiment of the present invention, the voltage error data is the basis for adjusting the control algorithm. Therefore, the digital controller will run the control algorithm according to the voltage error data. Common control algorithms include PID (proportional-integral-differential) control, PI (proportional-integral) control, PD (proportional-differential) control, P (proportional) control, etc.

[0087] According to the calculated adjustment amount, the control algorithm will generate a corresponding control signal, that is, voltage adjustment data in the embodiment of the present invention, and the voltage adjustment data will be sent to the power supply to adjust the output of the power supply system.

[0088] Step 204: adjusting the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data.

[0089] Therefore, it is necessary to convert it into an analog signal through a digital-to-analog converter DAC (Digital-to-Analog Converter), or directly control the duty cycle of the switching power supply (PWM signal).

[0090] Because most power supplies and actuators are analog devices, they all require analog signals to control their outputs. In the embodiments of the present invention, the signal form of the voltage adjustment data is a digital signal, so the voltage adjustment data needs to be converted into an analog signal or a PWM (Pulse Width Modulation) signal. By converting the analog signal into an analog signal through a digital-to-analog converter DAC (Digital-to-Analog Converter) or directly controlling the PWM signal, it can be ensured that the digital control signal can accurately control the output of the power supply, thereby achieving accurate regulation and stable control of the power supply output.

[0091] In an embodiment of the present invention, by real-time monitoring of the voltage data corresponding to the power supply at the previous moment, and adjusting the voltage data corresponding to the power supply at the current moment in combination with the voltage reference data, the problems of wiring complexity and interference caused by the traditional sensing line system are solved, the hardware design inside the system is simplified, the dependence on additional sensing lines and complex circuits is reduced, the cost is reduced, and the intelligence level of the system is enhanced, making the power supply system more efficient, reliable and easy to manage in various application fields.

[0092] In an embodiment of the present invention, the step 202 of obtaining the voltage error data corresponding to the power supply at the previous moment according to the voltage data corresponding to the power supply at the previous moment and the voltage reference data includes:

[0093] Converting the voltage data corresponding to the power supply at the last moment into a signal form to obtain voltage processing data corresponding to the power supply at the last moment; the signal form corresponding to the voltage data is an analog signal, and the signal form corresponding to the voltage processing data is a digital signal;

[0094] The voltage processing data corresponding to the power supply at the last moment is compared with the voltage reference data to obtain the voltage error data corresponding to the power supply at the last moment; the signal form corresponding to the voltage reference data is a digital signal.

[0095] In an embodiment of the present invention, the voltage data corresponding to the power supply at the previous moment obtained by the analog-to-digital converter ADC built into the digital controller is in the form of an analog signal. The analog signal is a continuously changing signal. Therefore, the analog signal needs to be converted into a digital signal. The signal form conversion can be completed through the analog-to-digital converter ADC. The ADC converts continuous analog voltage values ​​into discrete digital values ​​for subsequent digital system processing and analysis.

[0096] After the ADC converts the continuous analog voltage value into a discrete digital value, the voltage processing data corresponding to the power supply at the previous moment in the embodiment of the present invention is obtained, and this data exists in the form of a digital signal. Specifically, the voltage processing data (digital signal) corresponding to the power supply at the previous moment and the voltage reference data (digital signal) are compared to find the difference between the actual voltage value and the ideal voltage value. The voltage reference data is a preset ideal or target voltage value, which can be set according to application requirements and is not limited in the embodiment of the present invention.

[0097] Through digital signal processing, the power supply voltage can be monitored more accurately because digital signals are not affected by noise and interference that may exist in analog signals. Digital signal processing allows the system to calculate voltage errors in real time, so that it can quickly respond to voltage changes and adjust the power supply output in time to ensure that the voltage is stable within the ideal range. Based on the feedback of voltage error data, the system can automatically adjust the power supply output, reduce manual intervention, and improve the automation level and reliability of the system.

[0098] In an embodiment of the present invention, the step 203 of calculating the voltage adjustment data corresponding to the power supply at the previous moment according to the voltage error data corresponding to the power supply at the previous moment includes:

[0099] The voltage adjustment data corresponding to the power supply at the previous moment is calculated according to the control parameters and the voltage error data corresponding to the power supply at the previous moment; the control parameters are proportional parameters, integral parameters and differential parameters.

[0100] In the embodiment of the present invention, the control parameters are preset by firmware, stored in the non-volatile memory of the digital controller (such as EEPROM or Flash), and loaded when the system starts. The embodiment of the present invention needs to use the control parameters and voltage error data to calculate the power supply voltage adjustment data, which is usually achieved through the control algorithm of a PID (proportional-integral-differential) controller.

[0101] The PID controller is a widely used feedback controller that calculates voltage error data by comparing the desired reference value (set point) and the actual measured value (feedback), and adjusts the control output voltage according to the size, cumulative value and change rate of the voltage error data to reduce the error between the voltage data and the voltage reference data.

[0102] Proportional parameter (P): Proportional to the current voltage error data, directly reflects the voltage error data. The larger the proportional parameter, the stronger the control action, but too large a proportional parameter may cause system oscillation.

[0103] Integral parameter (I): Proportional to the accumulated value of the voltage error data, used to eliminate static errors. The integral parameter can gradually reduce long-term errors, but an excessively large integral parameter may cause the system to respond too slowly or overshoot.

[0104] Derivative parameter (D): Proportional to the rate of change of the voltage error data, reflecting the changing trend of the voltage error data. The derivative parameter helps predict future changes in the error, so that adjustments can be made in advance to reduce overshoot, but an excessively large derivative parameter may be sensitive to noise and cause system instability.

[0105] Through this PID control method, the system can dynamically adjust the power output according to the voltage error to achieve fast, accurate and stable voltage control. The control parameters of the PID controller are the key, and the control parameters can be optimized according to the specific application scenarios and system characteristics.

[0106] Digital controllers and control algorithms (such as PID control) can achieve high-precision voltage regulation. Accurate voltage control can improve system performance and ensure the stability and accuracy of the load-end voltage.

[0107] Reference Figure 4 , shows a schematic diagram of a system application provided in an embodiment of the present invention, specifically implementing Digital feedback (control algorithm) through the I2C bus via the BMC or CPLD, and the power supply is connected to the ground (GND) and the power loop (Powerloop+).

[0108] In an embodiment of the present invention, it is characterized in that the step 204, adjusting the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data, includes:

[0109] Adjusting the reference voltage of the power supply based on the voltage adjustment data corresponding to the power supply at the previous moment to obtain a target reference voltage, and adjusting the voltage data corresponding to the power supply at the current moment according to the target reference voltage;

[0110] or,

[0111] The duty cycle of the pulse width modulation signal of the power supply is adjusted based on the voltage adjustment data corresponding to the power supply at the previous moment to obtain the target duty cycle of the pulse width modulation signal, and the voltage data corresponding to the power supply at the current moment is adjusted according to the target duty cycle of the pulse width modulation signal.

[0112] In the embodiment of the present invention, two methods of adjusting the power supply voltage are used to make the power supply voltage at the current moment close to the preset voltage reference data.

[0113] 1. Adjust the reference voltage of the power supply:

[0114] The voltage adjustment data corresponding to the power supply at the previous moment is converted into voltage adjustment data in the form of an analog signal through the digital-to-analog converter DAC, and the reference voltage of the power supply is adjusted based on the voltage adjustment data. After the target reference voltage is obtained, the voltage data corresponding to the power supply at the current moment is adjusted according to the target reference voltage.

[0115] This method is to adjust the actual voltage of the power supply output to make it close to the preset voltage reference data by changing the reference voltage inside the power supply.

[0116] Specifically, the reference voltage is the reference point of the power supply output voltage, and adjusting the reference voltage can directly affect the output voltage of the power supply. In the power supply control system, the reference voltage is adjusted according to the voltage adjustment data to reach a target value (target reference voltage), so that the actual output voltage of the power supply is close to or reaches the preset voltage reference data. This method is suitable for power supplies that can adjust the output voltage by changing the internal reference voltage, such as linear regulators or certain types of switching power supplies.

[0117] 2. Adjust the duty cycle of the pulse width modulation signal of the power supply:

[0118] The duty cycle of the pulse width modulation (PWM) signal of the power supply is adjusted based on the voltage adjustment data corresponding to the power supply at the previous moment. After obtaining the target duty cycle of the pulse width modulation signal, the voltage data corresponding to the power supply at the current moment is adjusted according to the target duty cycle of the pulse width modulation signal.

[0119] This method is to adjust the average voltage of the power supply output by changing the duty cycle of the PWM signal so that it is close to the preset voltage reference data.

[0120] Specifically, PWM signal is a technology that controls the output voltage of a power supply by changing the duty cycle of the signal (i.e., the ratio of the high level time to the cycle time). In the power control system, the duty cycle of the PWM signal is adjusted according to the voltage adjustment data to reach a target value (target duty cycle), thereby adjusting the output voltage of the power supply to approach or reach the preset voltage reference data. This method is suitable for power supplies that control the output voltage through PWM signals, such as switching power supplies, inverters, and DC-DC converters.

[0121] In an embodiment of the present invention, the above two methods both achieve voltage control by adjusting the output characteristics of the power supply. The system can dynamically adjust the power supply output according to the voltage adjustment data to ensure that the voltage data of the power supply at the current moment is close to the preset voltage reference data, thereby achieving precise voltage control.

[0122] In an embodiment of the present invention, the step of calculating the voltage adjustment data corresponding to the power supply at the previous moment according to the control parameter and the voltage error data corresponding to the power supply at the previous moment includes:

[0123] Integrating the voltage error data corresponding to the power supply at the previous moment to obtain the voltage error integral data corresponding to the power supply at the previous moment;

[0124] Performing differential calculation on the voltage error data corresponding to the power supply at the previous moment to obtain the voltage error differential data corresponding to the power supply at the previous moment;

[0125] Multiplying the proportional parameter by the voltage error data corresponding to the power supply at the previous moment to obtain the first adjustment data corresponding to the power supply at the previous moment;

[0126] The integral parameter and the voltage error integral data corresponding to the power supply at the previous moment are used to obtain the second adjustment data corresponding to the power supply at the previous moment;

[0127] The differential parameter and the voltage error differential data corresponding to the power supply at the last moment are used to obtain the third adjustment data corresponding to the power supply at the last moment;

[0128] The first adjustment data corresponding to the power supply at the last moment, the second adjustment data corresponding to the power supply at the last moment, and the third adjustment data corresponding to the power supply at the last moment are added together to obtain the voltage adjustment data corresponding to the power supply at the last moment.

[0129] In the embodiment of the present invention, it is necessary to run a control algorithm based on the voltage error data to calculate the required voltage adjustment data, which is usually achieved through a control algorithm of a PID (proportional-integral-differential) controller. p , integration parameter K i and the differential parameter K d And the voltage error data are calculated to obtain the voltage adjustment data.

[0130] Specifically, the first adjustment data P is obtained by the following formula (1), the second adjustment data I is obtained by the following formula (2), and the third adjustment data D is obtained by the following formula (3):

[0131] P = Kp × e(t)(1)

[0132] I=Ki×e(t)dt(2)

[0133]

[0134] Among them, e(t) is the voltage error data corresponding to the power supply at the previous moment, ∫e(t)dt is the voltage error integral data corresponding to the power supply at the previous moment, is the voltage error differential data corresponding to the power supply at the previous moment, and t is the previous moment.

[0135] Then, the first adjustment data P, the second adjustment data I and the third adjustment data D are added together to obtain the voltage adjustment data corresponding to the power supply at the previous moment.

[0136] In the embodiment of the present invention, in addition to the PID control algorithm, there are other common control algorithms, such as PI control, PD control and P control.

[0137] PI control: only includes proportional and integral parts, suitable for systems that need to eliminate steady-state errors.

[0138] PD control: only includes proportional and differential parts, suitable for systems that need to improve response speed.

[0139] P control: contains only the proportional part, suitable for simple systems or as the basis for other control algorithms.

[0140] In the embodiment of the present invention, the first adjustment data P enables the digital controller to respond quickly to the change of the error, thereby quickly adjusting the power supply output voltage and reducing the response time. The second adjustment data I takes into account the cumulative effect of the error, which helps to eliminate the long-standing static error and keep the power supply output voltage more stably near the set point. The third adjustment data D predicts the change trend of the voltage error data and makes adjustments in advance, which helps to reduce the overshoot phenomenon of the system and improve the stability of control.

[0141] Furthermore, by comprehensively considering the size, cumulative value and rate of change of the error, the PID controller can improve the stability of the system, reduce oscillation and fluctuation, and can also adjust parameters according to different system characteristics and control requirements, with strong adaptability and flexibility. The embodiment of the present invention can reduce energy waste and improve the energy efficiency of the system by accurately controlling the output voltage of the power supply, and the stable voltage output helps to protect the electronic equipment, prolong its service life, and improve the reliability of the system.

[0142] In an embodiment of the present invention, after the step 204, in which the voltage data corresponding to the power supply at the current moment is adjusted according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data, the method further includes:

[0143] The voltage reference data and the control parameter are adjusted according to the load change corresponding to the load at the current moment to obtain the adjusted voltage reference data and the adjusted control parameter; the power supply provides electrical energy to the load;

[0144] The voltage data corresponding to the power supply at the next moment is adjusted according to the voltage data corresponding to the power supply at the current moment, the adjusted voltage reference data and the adjusted control parameter.

[0145] In the embodiment of the present invention, during the power supply voltage adjustment process, the voltage reference data and the control parameters can be dynamically adjusted according to the load change.

[0146] The voltage reference data and control parameters are adjusted and optimized according to the load change corresponding to the load at the current moment, and the adjusted voltage reference data and the adjusted control parameters are obtained. The load change may include an increase or decrease in the load current, a change in the load type, etc. Subsequently, the voltage data corresponding to the power supply at the next moment can be adjusted according to the voltage data corresponding to the power supply at the current moment, the adjusted voltage reference data, and the adjusted control parameters to adapt to the load change and system operation.

[0147] Reference Figure 5 , shows a schematic diagram of adjusting voltage reference data provided in an embodiment of the present invention, in which the voltage reference data is adjusted accordingly within a corresponding range when different loads change.

[0148] Specifically, adjustment and optimization of voltage reference data and control parameters can be achieved through firmware upgrades to adapt to different load characteristics and voltage requirements, improve system performance and stability, and perform firmware upgrades through external interfaces (such as USB, UART, SPI, etc.).

[0149] Due to the programmability and updability of the firmware, the system can flexibly adjust and optimize the voltage reference data and control parameters according to the actual application requirements. Through firmware upgrades, new functions and performance improvements can be achieved without hardware changes.

[0150] The embodiments of the present invention achieve precise control of power supply voltage and improvement of system performance by dynamically adjusting voltage reference data and control parameters, and optimizing parameters through firmware upgrades, so that the power supply control system can flexibly adapt to different load changes and application requirements, ensure that the power supply output voltage is stable near the preset voltage reference data, and improve the reliability and energy efficiency of the system.

[0151] In an embodiment of the present invention, the adjusting the voltage reference data and the control parameter according to the load change corresponding to the load at the current moment includes:

[0152] When the load change corresponding to the load at the current moment does not meet the load characteristics and voltage requirements of the load, the voltage reference data and the control parameter are adjusted so that the voltage data corresponding to the power supply at the next moment is close to the adjusted voltage reference data;

[0153] When the load change corresponding to the load at the current moment meets the load characteristics and voltage requirements of the load, there is no need to adjust the voltage reference data and the control parameters.

[0154] In the embodiment of the present invention, it is necessary to dynamically adjust the voltage reference data and control parameters according to the load change, and the digital controller can monitor and quickly respond to the load change in real time to maintain the stability of the output voltage, and its ability to respond quickly enables the system to perform well under dynamic load conditions. There are two situations in which the load changes, and the specific parameter adjustment measures are as follows:

[0155] 1. When the load change at the current moment does not meet the load characteristics and voltage requirements, the system will adjust the voltage reference data and control parameters. The voltage reference data is the target value of the power supply output voltage, and the control parameters (such as the proportional parameter P, the integral parameter I and the differential parameter D) determine the response characteristics of the control algorithm (such as the PID controller), so that the voltage data of the power supply at the next moment is close to the adjusted voltage reference data, thereby adapting to the load change and ensuring that the power supply output voltage is stable near the new required value.

[0156] 2. When the load change at the current moment meets the load characteristics and voltage requirements, it means that the current voltage reference data and control parameters can already meet the load requirements, and the power supply output voltage is stable near the required value, so the system does not need to adjust the voltage reference data and control parameters.

[0157] Through the above-mentioned parameter adjustment measures corresponding to different situations, the power control system can flexibly adapt to changes in the load and ensure that stable voltage output can be provided under different load conditions. By real-time monitoring of load changes and adjusting control parameters accordingly, energy efficiency can be improved, energy waste can be reduced, and connected electronic devices can be protected from voltage fluctuations.

[0158] In an embodiment of the present invention, by real-time monitoring of the voltage data corresponding to the power supply at the previous moment, and adjusting the voltage data corresponding to the power supply at the current moment in combination with the voltage reference data, the problems of wiring complexity and interference caused by the traditional sensing line system are solved, the hardware design inside the system is simplified, the dependence on additional sensing lines and complex circuits is reduced, the cost is reduced, and the intelligence level of the system is enhanced, making the power supply system more efficient, reliable and easy to manage in various application fields.

[0159] A power supply voltage adjustment method provided in an embodiment of the present invention is suitable for power supply application scenarios that require high-precision and flexible control, such as communication equipment, computer power supplies, laboratory power supplies, etc., and performs well under various complex and dynamic load conditions and can meet the needs of different applications.

[0160] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0161] Reference Figure 6 , shows a structural block diagram of a power supply voltage adjustment device provided in an embodiment of the present invention, which may specifically include the following modules:

[0162] An acquisition module 601 is used to acquire voltage data corresponding to the power supply at the last moment;

[0163] A voltage error data module 602 is used to obtain voltage error data corresponding to the power supply at the previous moment according to the voltage data corresponding to the power supply at the previous moment and the voltage reference data; the voltage error data is used to characterize the difference between the voltage data and the voltage reference data;

[0164] The voltage adjustment data module 603 is used to calculate the voltage adjustment data corresponding to the power supply at the previous moment according to the voltage error data corresponding to the power supply at the previous moment;

[0165] The adjustment module 604 is used to adjust the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data.

[0166] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0167] In addition, an embodiment of the present invention further provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to implement the various processes of the above-mentioned power supply voltage adjustment method embodiment when executing the program stored in the memory, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0168] The embodiment of the present invention further provides a computer-readable storage medium, on which instructions are stored, and when executed by one or more processors, each process of the above-mentioned power supply voltage adjustment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0169] An embodiment of the present invention also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned power supply voltage adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0170] Figure 7 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0171] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and a power supply 711. Those skilled in the art will appreciate that Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0172] It should be understood that in the embodiment of the present invention, the radio frequency unit 701 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 710 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 701 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.

[0173] The electronic device provides users with wireless broadband Internet access through the network module 702, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0174] The audio output unit 703 can convert the audio data received by the RF unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output it as sound. Moreover, the audio output unit 703 can also provide audio output related to a specific function performed by the electronic device 700 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, etc.

[0175] The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processor (GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 706. The image frame processed by the graphics processor 7041 can be stored in the memory 709 (or other storage medium) or sent via the radio frequency unit 701 or the network module 702. The microphone 7042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 701 in the case of a telephone call mode.

[0176] The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 7061 and / or the backlight when the electronic device 700 is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 705 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0177] The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0178] The user input unit 707 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 7071 or near the touch panel 7071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 7071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 710, receives the command sent by the processor 710 and executes it. In addition, the touch panel 7071 can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 7071, the user input unit 707 may also include other input devices 7072. Specifically, other input devices 7072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.

[0179] Furthermore, the touch panel 7071 may be overlaid on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it transmits the information to the processor 710 to determine the type of the touch event. Then, the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Figure 7 In the figure, the touch panel 7071 and the display panel 7061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0180] The interface unit 708 is an interface for connecting an external device to the electronic device 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 700 or may be used to transmit data between the electronic device 700 and an external device.

[0181] The memory 709 can be used to store software programs and various data. The memory 709 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 709 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0182] The processor 710 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 709, and calling data stored in the memory 709, so as to monitor the electronic device as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.

[0183] The electronic device 700 may also include a power supply 711 (such as a battery) for supplying power to each component. Preferably, the power supply 711 may be logically connected to the processor 710 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0184] In addition, the electronic device 700 includes some functional modules not shown, which will not be described in detail here.

[0185] like Figure 8 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 801 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the power supply voltage adjustment method described in the above embodiment.

[0186] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0187] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0188] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0189] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0190] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0191] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0192] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0193] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0194] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0195] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for adjusting power supply voltage, characterized in that: The method comprises: Obtaining voltage data corresponding to the power supply at the previous moment; Obtaining voltage error data corresponding to the power supply at the previous moment according to voltage data corresponding to the power supply at the previous moment and voltage reference data; the voltage error data is used to characterize the difference between the voltage data and the voltage reference data; Calculating the voltage adjustment data corresponding to the power supply at the last moment according to the voltage error data corresponding to the power supply at the last moment; The voltage data corresponding to the power supply at the current moment is adjusted according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data.

2. The method according to claim 1, characterized in that The obtaining the voltage error data corresponding to the power supply at the last moment according to the voltage data corresponding to the power supply at the last moment and the voltage reference data includes: Converting the voltage data corresponding to the power supply at the last moment into a signal form to obtain voltage processing data corresponding to the power supply at the last moment; the signal form corresponding to the voltage data is an analog signal, and the signal form corresponding to the voltage processing data is a digital signal; The voltage processing data corresponding to the power supply at the last moment is compared with the voltage reference data to obtain the voltage error data corresponding to the power supply at the last moment; the signal form corresponding to the voltage reference data is a digital signal.

3. The method according to claim 1, characterized in that The step of calculating the voltage adjustment data corresponding to the power supply at the last moment according to the voltage error data corresponding to the power supply at the last moment comprises: The voltage adjustment data corresponding to the power supply at the previous moment is calculated according to the control parameters and the voltage error data corresponding to the power supply at the previous moment; the control parameters are proportional parameters, integral parameters and differential parameters.

4. The method according to claim 1, characterized in that: The step of adjusting the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data, includes: Adjusting the reference voltage of the power supply based on the voltage adjustment data corresponding to the power supply at the previous moment to obtain a target reference voltage, and adjusting the voltage data corresponding to the power supply at the current moment according to the target reference voltage; or, The duty cycle of the pulse width modulation signal of the power supply is adjusted based on the voltage adjustment data corresponding to the power supply at the previous moment to obtain the target duty cycle of the pulse width modulation signal, and the voltage data corresponding to the power supply at the current moment is adjusted according to the target duty cycle of the pulse width modulation signal.

5. The method according to claim 3, characterized in that: The step of calculating the voltage adjustment data corresponding to the power supply at the last moment according to the control parameter and the voltage error data corresponding to the power supply at the last moment comprises: Integrating the voltage error data corresponding to the power supply at the previous moment to obtain the voltage error integral data corresponding to the power supply at the previous moment; Performing differential calculation on the voltage error data corresponding to the power supply at the previous moment to obtain the voltage error differential data corresponding to the power supply at the previous moment; Multiplying the proportional parameter by the voltage error data corresponding to the power supply at the previous moment to obtain the first adjustment data corresponding to the power supply at the previous moment; The integral parameter and the voltage error integral data corresponding to the power supply at the previous moment are used to obtain the second adjustment data corresponding to the power supply at the previous moment; The differential parameter and the voltage error differential data corresponding to the power supply at the last moment are used to obtain the third adjustment data corresponding to the power supply at the last moment; The first adjustment data corresponding to the power supply at the last moment, the second adjustment data corresponding to the power supply at the last moment, and the third adjustment data corresponding to the power supply at the last moment are added together to obtain the voltage adjustment data corresponding to the power supply at the last moment.

6. The method according to claim 3, characterized in that After adjusting the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data, the method further includes: The voltage reference data and the control parameter are adjusted according to the load change corresponding to the load at the current moment to obtain the adjusted voltage reference data and the adjusted control parameter; the power supply provides electrical energy to the load; The voltage data corresponding to the power supply at the next moment is adjusted according to the voltage data corresponding to the power supply at the current moment, the adjusted voltage reference data and the adjusted control parameter.

7. The method according to claim 6, characterized in that The adjusting the voltage reference data and the control parameter according to the load change corresponding to the load at the current moment includes: When the load change corresponding to the load at the current moment does not meet the load characteristics and voltage requirements of the load, the voltage reference data and the control parameter are adjusted so that the voltage data corresponding to the power supply at the next moment is close to the adjusted voltage reference data; When the load change corresponding to the load at the current moment meets the load characteristics and voltage requirements of the load, there is no need to adjust the voltage reference data and the control parameters.

8. A power supply voltage adjustment device, characterized in that: The device comprises: An acquisition module, used to acquire voltage data corresponding to the power supply at the previous moment; A voltage error data module, used to obtain voltage error data corresponding to the power supply at the previous moment according to voltage data corresponding to the power supply at the previous moment and voltage reference data; the voltage error data is used to characterize the difference between the voltage data and the voltage reference data; A voltage adjustment data module, used to calculate the voltage adjustment data corresponding to the power supply at the previous moment according to the voltage error data corresponding to the power supply at the previous moment; The adjustment module is used to adjust the voltage data corresponding to the power supply at the current moment according to the voltage adjustment data corresponding to the power supply at the previous moment, so that the voltage data corresponding to the power supply at the current moment is close to the voltage reference data.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 7 when executing the program stored in the memory.

10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 7.