Power supply power control method and device, and storage medium

By obtaining the load model and preset mapping relationship, calculating the equivalent resistance and pulse width modulation parameters, and generating equivalent impedance, the problem of low efficiency of traditional power supply power control is solved, and precise adjustment and stable control of the power output power is achieved.

CN120262866AActive Publication Date: 2025-07-04SHENZHEN STEP ELECTRONIC & LIGHTING CO LTD

Patent Information

Application Number
CN202510734795.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-04
Publication Date
2025-07-04
Estimated Expiration
2045-06-04

Smart Images

  • Figure CN120262866A_ABST
    Figure CN120262866A_ABST
Patent Text Reader

Abstract

The invention discloses a power supply power control method and device and a storage medium, and relates to the technical field of voltage power conversion, and the method comprises the steps: obtaining a load model selected by a user, determining the target output power corresponding to the load model based on a preset mapping relation, and determining the equivalent resistance required by a feedback circuit according to the target output power, the method comprises the steps that an equivalent resistor is generated, a pulse width modulation parameter matched with the equivalent resistor is determined, then a pulse width modulation signal matched with the pulse width modulation parameter is generated, the pulse width modulation signal is converted into equivalent impedance corresponding to the equivalent resistor in the feedback circuit, and finally the actual output power of the power supply is detected in the feedback circuit. And adjusting the pulse width modulation parameter according to a deviation value between the actual output power and the target output power until a preset convergence condition is met. According to the method, the pulse width modulation signal is effectively converted into the equivalent impedance, so that the output power of the power supply is correspondingly adjusted, and the power control efficiency of the power supply is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of voltage - power conversion, and particularly to a method, device, and storage medium for controlling power supply power. Background Art

[0002] Precise control of power supply power plays a crucial role in the power supply system of modern electronic devices, directly affecting device adaptability and energy - efficiency performance. Currently, traditional power supply power control schemes usually adopt an adjustment method of a fixed - output - power mode, and achieve power switching for different loads by manually replacing resistor elements in the feedback circuit. This type of method requires preparing corresponding hardware parameters for different types of load devices in advance and relying on manual intervention to complete the switching of resistor elements during actual application.

[0003] In actual applications, when facing load devices from different manufacturers and different models, due to the differences in the operating power parameters of load devices, staff must replace the power supply module and adjust the hardware circuit to meet the power - matching requirements of different models of load devices. This results in a low efficiency of power supply power control for traditional schemes.

[0004] The above content is only used to assist in understanding the technical solution of this application, and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] This application provides a method, device, and storage medium for controlling power supply power, aiming to solve the problem of low efficiency of power supply power control in traditional schemes.

[0006] To achieve the above objective, a method for controlling power supply power provided by this application includes the following steps: Obtain the load model selected by the user, and determine the target output power corresponding to the load model based on a preset mapping relationship; Determine the equivalent resistance required for the feedback circuit according to the target output power, and determine the pulse - width modulation parameters matching the equivalent resistance; Generate a pulse - width modulation signal matching the pulse - width modulation parameters, and convert the pulse - width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit; Detect the actual output power of the power supply in the feedback circuit, and adjust the pulse - width modulation parameters according to the deviation value between the actual output power and the target output power until a preset convergence condition is met.

[0007] In one embodiment, the step of detecting the actual output power of the power supply in the feedback circuit and adjusting the pulse - width modulation parameters according to the deviation value between the actual output power and the target output power includes: Collect the actual output power in the feedback circuit at a preset period; Calculate the deviation value of the current period according to the actual output power and the target output power; When the deviation value exceeds the first threshold, increase or decrease the modulation parameter by a preset step; When the deviation value is less than the second threshold, stop the adjustment and lock the current pulse width modulation parameter.

[0008] In one embodiment, the preset convergence condition includes at least one of the following: The relative error between the actual output power and the target output power is continuously less than a preset percentage for a preset time; The fluctuation amplitude of the actual output power does not exceed the fluctuation threshold of the target output power within the first period; During the adjustment of the pulse width modulation parameter, the adjustment amount of the pulse width modulation parameter is continuously less than the target adjustment step for a preset number of times.

[0009] In one embodiment, the step of converting the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit includes: Output the pulse width modulation signal to the control end of the switching transistor through a preset interface of the Bluetooth single-chip microcomputer module; Determine the target output current corresponding to the pulse width modulation signal; Generate an equivalent impedance corresponding to the target output current according to the on-off action of the switching transistor and the equivalent resistance relationship between the parallel resistor and the reference resistor.

[0010] In one embodiment, after the step of obtaining the load model selected by the user and determining the target output power corresponding to the load model based on the preset mapping relationship, it further includes: Receive a load configuration instruction sent by the terminal through the Bluetooth communication interface, and the load configuration instruction includes a target full-load current value; Convert the full-load current value into a corresponding output power, and update the preset mapping relationship according to the output power; When adjusting the pulse width modulation parameter according to the deviation value between the actual output power and the target output power, limit the adjustment range of the pulse width modulation parameter with the target full-load current value as a constraint condition.

[0011] In one embodiment, after the step of converting the full-load current value into a corresponding output power and updating the preset mapping relationship according to the output power, it further includes: Construct a power curve graph according to the detected actual output power and the corresponding acquisition period; Determine the target actual output power in the acquisition period where the actual output power meets the preset conditions according to the power curve graph; Record the target relationship between the current modulation parameter corresponding to the target actual output power and the load model; Update the preset mapping relationship between the load model and the target output power through the newly recorded target relationship.

[0012] In one embodiment, after the step of obtaining the load model selected by the user and determining the target output power corresponding to the load model based on the preset mapping relationship, the method further includes: Receive a batch configuration instruction sent by the wireless communication module, and parse the device group identifier and the corresponding set of load models in the batch configuration instruction; Divide the physical space into multiple communication time slots according to a preset configuration strategy, where each communication time slot corresponds to a control channel of a feedback circuit; Within the allocated communication time slot, write the pulse width modulation parameters corresponding to each load model into the register of the target feedback circuit; Detect the parameter writing completion status of the pulse width modulation parameter. When a timeout and no response is detected, jump to the redundant time slot to re-initiate the writing operation until the parameter writing completion status is successful writing, and then terminate the parameter writing operation of the pulse width modulation parameter.

[0013] In one embodiment, after the step of detecting the actual output power of the power supply in the feedback circuit and adjusting the pulse width modulation parameter according to the deviation value between the actual output power and the target output power until the preset convergence condition is met, the method further includes: When the pulse width modulation parameter is detected to be abnormal, trigger a dual-core switching mechanism to transfer the control right from the main processor to the secondary processor; Start a high-speed impedance scan, complete the full-band impedance phase detection of the feedback circuit within a preset duration, and determine the impedance phase characteristics of the feedback circuit; Reconstruct an equivalent circuit model based on the impedance phase characteristics and determine the target duty cycle corresponding to the feedback circuit; When the reconstructed target duty cycle is stable for the second consecutive cycle, switch back to the main processor and record the abnormal event log.

[0014] In addition, to achieve the above object, the present application further provides a control device for power supply power. The control device for power supply power includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is configured to implement the steps of the power supply power control method as described above.

[0015] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the power control method as described above are implemented.

[0016] The present application provides a power control method, a power control device and a storage medium. By obtaining the load model selected by the user, determining the target output power corresponding to the load model based on a preset mapping relationship, then determining the equivalent resistance required for the feedback circuit according to the target output power, and determining the pulse width modulation parameters matching the equivalent resistance, then generating a pulse width modulation signal matching the pulse width modulation parameters, converting the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit, and finally detecting the actual output power of the power supply in the feedback circuit, and adjusting the pulse width modulation parameters according to the deviation value between the actual output power and the target output power until a preset convergence condition is met. The present application effectively converts the pulse width modulation signal into an equivalent impedance, thereby correspondingly adjusting the output power of the power supply to improve the efficiency of power control. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 It is a schematic flowchart of the first embodiment of the power control method of the present application; Figure 2 It is a schematic flowchart of the second embodiment of the power control method of the present application; Figure 3 It is a schematic flowchart of the third embodiment of the power control method of the present application; Figure 4 It is a schematic flowchart of the fourth embodiment of the power control method of the present application; Figure 5 It is a schematic architecture diagram of the hardware operating environment of the power control device related to the embodiment of the present application.

[0020] The realization, functional features and advantages of the object of the present application will be further described with reference to the embodiments and the drawings. Detailed implementation manners

[0021] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0022] In order to better understand the above technical solutions, the exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0023] In order to better understand the above technical solutions, the above technical solutions will be described in detail below in combination with the accompanying drawings of the specification and specific implementation manners.

[0024] The main solution of the present application is: obtain the load model selected by the user, and determine the target output power corresponding to the load model based on a preset mapping relationship; Determine the equivalent resistance required by the feedback circuit according to the target output power, and determine the pulse width modulation parameter matching the equivalent resistance; Generate a pulse width modulation signal matching the pulse width modulation parameter, and convert the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit; Detect the actual output power of the power supply in the feedback circuit, and adjust the pulse width modulation parameter according to the deviation value between the actual output power and the target output power until a preset convergence condition is met.

[0025] Currently, traditional power supply power control schemes usually adopt an adjustment method of a fixed output power mode, and realize power switching for different loads by manually replacing the resistance elements in the feedback circuit. This type of method requires preparing corresponding hardware parameters in advance for different types of load devices, and relying on manual intervention to complete the switching of resistance elements during actual application. In actual application, when facing load devices of different manufacturers and different models, due to the differences in the working power parameters of the load devices, the staff must replace the power supply module and adjust the hardware circuit to meet the power matching requirements of different types of load devices, which results in low efficiency of the traditional scheme for power supply power control.

[0026] By obtaining the load model selected by the user, determining the target output power corresponding to the load model based on a preset mapping relationship, then determining the equivalent resistance required for the feedback circuit according to the target output power, and determining the pulse width modulation parameters matching the equivalent resistance, then generating a pulse width modulation signal matching the pulse width modulation parameters, converting the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit, and finally detecting the actual output power of the power supply in the feedback circuit, and adjusting the pulse width modulation parameters according to the deviation value between the actual output power and the target output power until a preset convergence condition is met. Through the precise calculation and setting of the equivalent resistance and pulse width modulation parameters of the feedback circuit, and the effective conversion from the pulse width modulation signal to the equivalent impedance, the present application adjusts the output power of the power supply to improve the efficiency of power supply power control.

[0027] Embodiment 1 Based on this, an embodiment of the present application provides a method for controlling the power of a power supply. Referring to Figure 1 , Figure 1 is a schematic flowchart of the first embodiment of the method for controlling the power of the power supply of the present application. The method for controlling the power of the power supply includes steps S10 to S40: Step S10: Obtain the load model selected by the user, and determine the target output power corresponding to the load model based on a preset mapping relationship.

[0028] In this embodiment, the power control system performs processing actions. The load model refers to the category identifier divided according to the design parameters and uses of different electrical equipment. Among them, the load refers to an electronic component with a certain potential difference at both ends connected in a circuit, which is a device for converting electrical energy into other forms of energy; in electrical engineering, it refers to a device that receives electrical energy in a circuit and is the general term for various electrical appliances. The preset mapping relationship is a data association rule that is preset and corresponds different load models to the corresponding target output powers, and is stored in the storage unit of the power control system in the form of a table, function, etc.

[0029] Specifically, the input interface of the power control system receives the load model selected by the user through an operation interface (such as a touch screen, buttons, etc.). Then, the processor calls the preset mapping relationship data stored in the memory, uses the received load model as a query keyword, and retrieves and matches it in the mapping relationship table. When a matching load model is found, the corresponding preset value of the target output power can be called out.

[0030] Step S20: Determine the equivalent resistance required for the feedback circuit according to the target output power, and determine the pulse width modulation parameters matching the equivalent resistance.

[0031] In this embodiment, the feedback circuit is a circuit structure for real-time detection of the output state of the feedback power supply. It is usually composed of various electronic components including resistors, capacitors, operational amplifiers, etc. Its function is to convert the actual output information of the power supply into an electrical signal that is convenient for processing. The equivalent resistance refers to the single resistance value in the feedback circuit that can make the circuit exhibit the same or similar electrical characteristics as the actual complex circuit. It can be obtained through specific circuit theories and calculation methods (such as Thevenin's theorem, Norton's theorem, etc.). The pulse width modulation parameters mainly include the duty cycle, frequency, etc. of the pulse width modulation. The duty cycle determines the ratio of the high-level duration of the pulse signal to the entire cycle time, and the frequency determines the speed at which the pulse signal repeats.

[0032] When determining the equivalent resistance required for the feedback circuit, first calculate according to the target output power and the electrical characteristics of the feedback circuit. Specifically, circuit analysis methods can be used to substitute the structure of the feedback circuit and the requirements of the target output power into the corresponding formulas to solve for the equivalent resistance value that meets the requirements. After determining the equivalent resistance, according to the principle of pulse width modulation technology, use the formula, that is, the correspondence formula between the duty cycle and the equivalent resistance, to calculate the pulse width modulation parameters that match this equivalent resistance. For example, assume that the feedback circuit adopts a simple resistor voltage division type feedback structure, and the voltage value corresponding to the target output power is known. Through circuit analysis, the calculation formula for the equivalent resistance is R = V_feedback × (1 - V_feedback / V_power) / (I_load × K), where V_feedback is the feedback voltage, V_power is the power supply voltage, I_load is the load current, and K is the proportionality coefficient. After calculating the equivalent resistance, then according to the characteristics of the pulse width modulator, such as the relationship formula between the duty cycle and the output voltage: duty cycle = R_equivalent / (R_reference + R_equivalent), where R_reference is a known reference resistance value, so as to determine the corresponding pulse width modulation duty cycle and other parameters.

[0033] Step S30: Generate a pulse width modulation signal that matches the pulse width modulation parameters, and convert the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit.

[0034] In this embodiment, the pulse width modulation signal is a periodic square wave signal with adjustable high and low level duration ratios. The signal form is changed by setting pulse width modulation parameters such as the duty cycle and frequency. The equivalent impedance refers to the impedance value equivalent to a single resistor, inductor, or capacitor presented by a complex network (such as the combination of various components in the feedback circuit) under the action of an AC circuit or a pulse signal. Generating a pulse width modulation signal that matches the pulse width modulation parameters usually uses a pulse width modulation chip to configure its internal registers and control logic according to the determined pulse width modulation parameters, so as to output a pulse width modulation signal with corresponding characteristics.

[0035] In the process of converting a pulse-width modulation signal into an equivalent impedance corresponding to an equivalent resistance in a feedback circuit, when the pulse-width modulation signal is input into the feedback circuit, energy storage components such as capacitors and inductors in the circuit will charge and discharge the pulse signal. According to the duty cycle and frequency of the pulse-width modulation signal and the parameters of the circuit components, by using the impedance calculation method of an AC circuit or the average value calculation method of a pulse signal, etc., finally the entire feedback circuit presents an equivalent impedance corresponding to the equivalent resistance. For example, in a feedback circuit composed of a resistor and a capacitor, when a pulse-width modulation signal with a duty cycle of D is input, the voltage across the capacitor will charge and discharge with the change of the high and low levels of the pulse signal. According to the charge and discharge formula of the capacitor and the calculation method of the average voltage, the average impedance Z of the feedback circuit can be obtained as Z = V power supply × (R equivalent × C × f × (1 - D) + 1) / (R equivalent × C × f × D), where f is the frequency of the pulse-width modulation signal and C is the capacitance value, thus realizing the conversion of the pulse-width modulation signal to the equivalent impedance.

[0036] Optionally, in this embodiment, the step of converting the pulse-width modulation signal into the equivalent impedance corresponding to the equivalent resistance in the feedback circuit includes: Output the pulse-width modulation signal to the control end of the switching transistor through a preset interface of the Bluetooth single-chip microcomputer module; determine the target output current corresponding to the pulse-width modulation signal; generate an equivalent impedance corresponding to the target output current according to the on-off action of the switching transistor and in combination with the equivalent resistance relationship between the parallel resistor and the reference resistor.

[0037] Specifically, the Bluetooth single-chip microcomputer module is a single-chip microcomputer integrated with Bluetooth communication function, which has data processing and wireless communication capabilities. Its preset interface is a pre-defined I / O port for signal transmission with other devices. The switching transistor is a semiconductor device with switching characteristics, a semiconductor device that can quickly switch the on-off state of the circuit. Its on-off action refers to the conversion of the transistor between the on and off states under the action of a control signal. The control end is used to receive the control signal to realize the switching between the on and off states. The target output current is the current value expected to be output in the current working state. There is a certain relationship between the pulse-width modulation signal and the output current in power control. By adjusting the parameters (such as the duty cycle) of the pulse-width modulation signal, the magnitude of the output current can be changed. The parallel resistor refers to a resistor connected in parallel with another resistor element in the circuit. The reference resistor is a resistor element with an accurate resistance value, usually used as a reference resistance value in the circuit. The equivalent resistance relationship refers to the relationship between the equivalent resistance presented by the combined action of multiple resistor elements and the resistance values of each resistor element under specific circuit structures and working conditions, which can be determined by circuit principles such as Kirchhoff's laws and Ohm's law.

[0038] In this embodiment, the Bluetooth single-chip microcomputer module generates corresponding pulse-width modulation signals according to the preset control logic. Then, through its preset output interface, the generated pulse-width modulation signals are sent out. These signals are transmitted through electrical connections to the control terminal of the switching transistor, thereby realizing the control of the switching transistor. According to the rated power of the power supply system and the current working conditions (such as input voltage, load type, etc.), the theoretically required target output current is calculated. Then, through the power control system, the parameters of the pulse-width modulation signal are associated and mapped with the target output current, so as to determine the target output current corresponding to the pulse-width modulation signal. When the switching transistor performs on-off actions under the action of the pulse-width modulation signal, its on and off states will change the current path and impedance distribution in the circuit. At this time, combining the equivalent resistance value relationship between the parallel resistor and the reference resistor, an equivalent impedance corresponding to the target output current can be generated.

[0039] Specifically, in the circuit, when the switching transistor is turned on, the parallel resistor and the reference resistor will form a specific equivalent resistance value; when the switching transistor is turned off, the impedance of the circuit will present another state. By precisely controlling the duty cycle of the pulse-width modulation signal, the on-off time ratio of the switching transistor is matched with the target output current, and the corresponding equivalent impedance value is calculated according to the equivalent resistance value relationship. Among them, the calculation of the equivalent impedance satisfies the preset relational expression, and the equivalent impedance is adjusted by adjusting the duty cycle of the pulse-width modulation signal to match the full-load current requirements of different lamp models.

[0040] Precisely outputting the pulse-width modulation signal through the preset interface of the Bluetooth single-chip microcomputer module ensures the accuracy and stability of the control signal. Secondly, determining the target output current corresponding to the pulse-width modulation signal enables the output of the power supply to better meet the actual needs of the load. Finally, according to the on-off actions of the switching transistor and the equivalent resistance value relationship between the parallel resistor and the reference resistor, the flexible adjustment and precise generation of the equivalent impedance are realized, thereby improving the accuracy and dynamic response ability of the power supply power control.

[0041] Step S40: Detect the actual output power of the power supply in the feedback circuit, and adjust the pulse-width modulation parameters according to the deviation value between the actual output power and the target output power until the preset convergence condition is met.

[0042] In this embodiment, the actual output power is achieved through a power detection circuit. The power detection circuit usually uses sensors such as voltage transformers and current transformers to obtain the voltage and current signals output by the power supply in real time, and then calculates the actual output power through a power calculation formula (such as P = V×I×cosφ, where φ is the power factor angle). The deviation value refers to the difference between the actual output power and the target output power. The preset convergence condition refers to a criterion set in advance to determine whether the power output control process of the power supply reaches a stable and accurate state. Usually, it can be that the deviation value is less than a certain set threshold (such as 1W), the change of the deviation value detected continuously for multiple times is within a certain range, etc.

[0043] First, the detection circuit collects the feedback voltage and current signals in real time. After being processed by the signal conditioning circuit, these signals are sent to the power calculation module. The power calculation module calculates the actual output power of the current power supply according to the collected voltage, current signals and power factor and other information according to the power calculation formula. Then, the calculated actual output power is compared with the previously determined target output power to obtain the deviation value. According to the magnitude and sign of the deviation value, the PID control algorithm is used to adjust the pulse width modulation parameter.

[0044] Exemplarily, if the deviation value is positive and large, it means that the actual output power is lower than the target output power, then the duty cycle of the pulse width modulation signal is appropriately increased, and vice versa. This adjustment process is repeated continuously until the deviation value meets the preset convergence condition, that is, the actual output power of the power supply is stable near the target output power and the control process reaches a stable state. For example, when using the PID control algorithm, according to the deviation value e(k) and the previous deviation values (such as e(k - 1), e(k - 2), etc.), according to the PID control formula: , where Kp, Ki, and Kd are PID control parameters, calculate the adjustment amount ΔD(k) of the pulse width modulation parameter, so as to realize the dynamic adjustment of the pulse width modulation signal, so that the power output of the power supply gradually approaches the target output power and meets the convergence condition.

[0045] Optionally, in this embodiment, the steps of detecting the actual output power of the power supply in the feedback circuit and adjusting the pulse width modulation parameter according to the deviation value between the actual output power and the target output power include: Collecting the actual output power in the feedback circuit at a preset period; calculating the deviation value of the current period according to the actual output power and the target output power; when the deviation value exceeds the first threshold, increasing or decreasing the modulation parameter according to a preset step; when the deviation value is less than the second threshold, stopping the adjustment and locking the current pulse width modulation parameter.

[0046] Specifically, the preset period refers to the pre-set time interval for collecting actual power data in the feedback circuit. The target output power is the desired output power value determined according to the selected load model and the preset mapping relationship. The first threshold is a pre-set value used to determine whether the deviation value exceeds the allowable error range. When the deviation value exceeds the first threshold, it indicates that the difference between the power output of the power supply and the target output power is large and needs to be adjusted. The second threshold is another pre-set value, usually smaller than the first threshold, used to determine whether the deviation value is small enough. When the deviation value is less than the second threshold, it indicates that the power output of the power supply is already close to the target output power. At this time, the adjustment is stopped and the current pulse width modulation parameter is locked to maintain the stability of the output power. The preset step size refers to the magnitude of each adjustment when adjusting the pulse width modulation parameter.

[0047] A power detection module can be set in the power control system to detect the voltage and current signals in the feedback circuit in real time. Then, according to the pre-set acquisition period, the data acquisition action is triggered. In each acquisition period, the power detection module samples the detected voltage and current signals and converts them into digital signals. After each acquisition period ends, the processor of the power control system reads the currently acquired actual power data from the buffer memory. Then, the previously determined target output power is obtained, and further the deviation value between the actual output power and the target output power is calculated.

[0048] After calculating the deviation value, the processor of the power control system compares it with the pre-set first threshold. If the absolute value of the deviation value is greater than the first threshold, it indicates that the pulse width modulation parameter needs to be adjusted to reduce the deviation. According to the positive or negative of the deviation value, it is judged whether to increase or decrease the pulse width modulation parameter. For example, if the deviation value is positive, it means that the actual output power is lower than the target output power, and the duty cycle of the pulse width modulation signal needs to be increased; if the deviation value is negative, the duty cycle needs to be decreased. The adjustment step size is usually a fixed value (preset step size), such as adjusting the duty cycle by 0.01 (1%) each time. According to the preset step size, the current pulse width modulation parameter is increased or decreased, and the new pulse width modulation parameter value is sent to the pulse width modulation signal generation module.

[0049] After each adjustment of the pulse width modulation parameter and output of a new pulse width modulation signal, the power control system continues to detect the actual output power and calculate the deviation value in subsequent acquisition cycles. When the processor detects that the absolute value of the deviation value is less than the second threshold, it is considered that the power output of the power supply has reached a satisfactory accuracy. At this time, the further adjustment of the pulse width modulation parameter is stopped. At the same time, the current pulse width modulation parameter value is locked, that is, the parameter is kept unchanged until the next condition for readjustment occurs (such as a load change causing the deviation value to exceed the threshold again). The locking mechanism can be implemented by storing the pulse width modulation parameter in a non-volatile memory or fixing its value through a software algorithm. For example, in a power supply system using digital control, when the deviation value is less than the second threshold, the controller clears the update flag bit of the pulse width modulation parameter, so that the subsequent control logic no longer modifies the pulse width modulation parameter, thereby locking the current parameter.

[0050] Optionally, in this embodiment, the preset convergence condition includes at least one of the following: The relative error between the actual output power and the target output power is continuously less than a preset percentage for a preset time; the fluctuation amplitude of the actual output power does not exceed the fluctuation threshold of the target output power within the first period; during the adjustment process of the pulse width modulation parameter, the adjustment amount of the pulse width modulation parameter is continuously less than the target adjustment step for a preset number of times.

[0051] Specifically, the relative error refers to the ratio of the difference between the actual output power and the target output power to the target output power, which is a relative index for measuring the power output accuracy of the power supply. The preset time is a pre-set time length for determining the continuous stability of the relative error. The preset percentage is a pre-set maximum allowable range of the relative error. When the relative error is continuously less than this percentage, it is considered that the power output of the power supply has reached a stable state. The fluctuation amplitude refers to the difference between the maximum value and the minimum value of the actual output power within one period, which is used to measure the stability of the power output of the power supply. The fluctuation threshold is a pre-set maximum allowable range of the actual output power. When the fluctuation amplitude does not exceed the fluctuation threshold, it is considered that the power output of the power supply is stable. The adjustment amount of the pulse width modulation parameter refers to the change amplitude when adjusting the pulse width modulation parameter twice adjacent times, such as the change amount of the duty cycle. The preset number of times is a pre-set counting standard for determining whether the adjustment of the pulse width modulation parameter tends to be stable. The target adjustment step is a pre-set lower limit value of the adjustment amplitude of the pulse width modulation parameter that is expected to be achieved. When the adjustment amount is continuously less than this step, it is considered that the pulse width modulation parameter has approached a stable state.

[0052] In the technical solution provided in this embodiment, by obtaining the load model selected by the user, determining the target output power corresponding to the load model based on a preset mapping relationship, then determining the equivalent resistance required for the feedback circuit according to the target output power, and determining the pulse width modulation parameters matching the equivalent resistance, then generating a pulse width modulation signal matching the pulse width modulation parameters, converting the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit, and finally detecting the actual output power of the power supply in the feedback circuit, adjusting the pulse width modulation parameters according to the deviation value between the actual output power and the target output power until a preset convergence condition is met. The solution of this embodiment adjusts the output power of the power supply by accurately calculating and setting the equivalent resistance and pulse width modulation parameters of the feedback circuit, and the effective conversion of the pulse width modulation signal into an equivalent impedance, so as to improve the efficiency of power supply power control.

[0053] In addition, the target output power is quickly and accurately determined according to the load model selected by the user to ensure that the power supply output matches the load demand. Then, by accurately calculating and setting the equivalent resistance and pulse width modulation parameters of the feedback circuit, and the effective conversion of the pulse width modulation signal into an equivalent impedance, a basis is provided for the accurate adjustment of the power supply output power. Finally, by real-time detecting the actual output power and dynamically adjusting the pulse width modulation parameters according to the deviation value until a preset convergence condition is met, the stable and accurate control of the power supply output power is realized.

[0054] Embodiment Two Based on the same inventive concept, the present application also provides a second embodiment. Refer to Figure 2 , Figure 2 which is a schematic flowchart of the second embodiment of the power supply power control method of the present application. After the step S10, the steps S50 to S70 are further included: Step S50: Receive a load configuration instruction sent by the terminal through a Bluetooth communication interface, where the load configuration instruction includes a target full-load current value.

[0055] Step S60: Convert the full-load current value into a corresponding output power, and update the preset mapping relationship according to the output power.

[0056] Step S70: When adjusting the pulse width modulation parameters according to the deviation value between the actual output power and the target output power, limit the adjustment range of the pulse width modulation parameters with the target full-load current value as a constraint condition.

[0057] In this embodiment, the load configuration instruction is an instruction sent by the user through the terminal to configure the parameters related to the load. The full-load current value included therein refers to the current value required for the load to operate at full load. The terminal can be a device such as a mobile phone or a tablet computer. Converting the full-load current value into the corresponding output power requires using the power calculation formula (such as P = V×I, where V is the power supply voltage and I is the full-load current value). The target full-load current value is the full-load current value obtained and converted from the load configuration instruction, which is used as a constraint condition to limit the adjustment range of the pulse width modulation parameters. The adjustment range of the pulse width modulation parameters refers to the range of allowable change amplitudes when adjusting the pulse width modulation parameters (such as the duty cycle). By limiting the adjustment range, it can be avoided that the output current exceeds the full-load current value of the load due to excessive adjustment of the pulse width modulation parameters, thereby protecting the load and the power supply system.

[0058] Specifically, the power control system first initializes the Bluetooth communication interface to make it in a detection state and waits for the load configuration instruction sent by the terminal. When the terminal establishes a Bluetooth connection and sends an instruction containing the target full-load current value, the Bluetooth communication interface receives the instruction and parses it to extract the target full-load current value. After the Bluetooth communication interface receives the data, it notifies the processor through methods such as serial port interruption. The processor reads the data and parses out the target full-load current value.

[0059] After the processor obtains the parsed target full-load current value, it reads the current output voltage value (the voltage value that can be detected and stored in real time by the voltage sensor). Calculate the output power using the power calculation formula, and the formula is output power = power supply voltage × full-load current value. Then, establish a new mapping relationship between the calculated output power and the corresponding load model, and update the preset mapping relationship table stored in the system memory. During the process of adjusting the pulse width modulation parameters, the processor calculates the adjustment amount of the pulse width modulation parameters required according to the deviation value in real time. At the same time, according to the target full-load current value and the current actual output current value (which can be detected in real time by the current sensor), calculate the maximum allowable adjustment amount of the pulse width modulation parameters. Specifically, use the formula: allowable duty cycle adjustment amount = (target full-load current value / actual output current value - 1) × current duty cycle (assuming that the power supply voltage is stable and the output power is proportional to the current). If the adjustment amount calculated according to the deviation value exceeds the allowable adjustment amount, then limit the adjustment amount of the pulse width modulation parameters within the allowable range.

[0060] Exemplarily, the current duty cycle is 0.5, the actual output current is 2A, and the target full-load current value is 3A. The allowable duty cycle adjustment amount = (3A / 2A - 1) × 0.5 = 0.25. If the duty cycle adjustment amount calculated according to the deviation value is 0.3 (exceeding the allowable 0.25), then limit the duty cycle adjustment amount to 0.25, that is, adjust the duty cycle to 0.5 + 0.25 = 0.75, thereby limiting the output current not to exceed the target full-load current value.

[0061] Further, in this embodiment, after the step S60, the following steps are further included: Construct a power curve graph based on the detected actual output power and the corresponding acquisition period; determine, according to the power curve graph, the target actual output power in the acquisition period that satisfies the preset condition for the actual output power; record the target relationship between the current modulation parameter corresponding to the target actual output power and the load model; update the preset mapping relationship between the load model and the target output power with the newly recorded target relationship.

[0062] Specifically, obtain the actual output power data and the corresponding acquisition timestamps for each acquisition period, and store these data points in chronological order. Then, use a graph drawing library or a custom drawing algorithm to draw a power curve graph based on the stored data points. Next, analyze the constructed power curve graph and traverse each data point on the power curve graph. For each data point, check whether it satisfies the preset condition. If it does, determine the actual output power of this data point as the target actual output power, and record the corresponding acquisition period. Among them, the preset condition may be that the actual output power remains stable within a certain period of time, or is within a preset range. When the target actual output power and its corresponding acquisition period are determined, obtain the current modulation parameter used in this acquisition period and the corresponding load model. Combine this information into a new record and store it in the database of the system. Finally, insert this information into the "modulation parameter - load relationship" table in the database as a new record. Finally, under specific trigger conditions, such as after recording a certain number of new target relationships, perform statistical analysis on the newly recorded target relationships and update the preset mapping relationship according to the analysis results.

[0063] In the technical solution provided in this embodiment, by receiving the load configuration instruction through the Bluetooth communication interface to update the preset mapping relationship, and using the target full-load current value as a constraint condition when adjusting the pulse width modulation parameter, the flexibility of the power control of the power supply is further enhanced. Receiving the load configuration instruction sent by the terminal through the Bluetooth communication interface enables the user to conveniently configure the load parameters remotely, improving the operability of the power control system. Secondly, converting the full-load current value into the corresponding output power and updating the preset mapping relationship realizes the dynamic adjustment of the preset mapping relationship, which can better adapt to the changes of different loads and working conditions, and enhances the adaptability of the power control system. Finally, using the target full-load current value as a constraint condition to limit the adjustment range when adjusting the pulse width modulation parameter effectively avoids the problem of output current overload caused by excessive adjustment of the pulse width modulation parameter, protects the load and the power supply system, and improves the reliability and safety of the power control system.

[0064] Embodiment III Based on the same inventive concept, the present application also provides Embodiment 3. Please refer to Figure 3 , Figure 3 which is a schematic flowchart of the third embodiment of the power supply power control method of the present application. After the step S10, the steps S80 to S110 are further included: Step S80: Receive the batch configuration instruction sent by the wireless communication module, and parse the device group identifier and the corresponding load model set in the batch configuration instruction.

[0065] Step S90: Divide the physical space into multiple communication time slots according to a preset configuration strategy, where each communication time slot corresponds to a control channel of a feedback circuit.

[0066] Step S100: Write the pulse width modulation parameters corresponding to each load model into the register of the target feedback circuit within the allocated communication time slot.

[0067] Step S110: Detect the parameter writing completion status of the pulse width modulation parameters. When it is detected that there is no response after timeout, jump to the redundant time slot to re-initiate the writing operation until the parameter writing completion status is successfully written, and then terminate the parameter writing operation of the pulse width modulation parameters.

[0068] In this embodiment, the batch configuration instruction is an instruction containing multiple device configuration information, which is used to configure multiple devices simultaneously. The device group identifier is a unique identifier used to distinguish different device groups, and the load model set refers to the model combination of each load belonging to the same device group. The preset configuration strategy refers to the rule formulated in advance for dividing the physical space into communication time slots. The communication time slot refers to a dedicated communication time period divided in the time dimension, which is used to allocate independent communication resources for different feedback circuit control channels. The parameter writing completion status refers to the status information fed back by the feedback circuit to the main controller indicating whether the parameter writing is successful after receiving the pulse width modulation parameters. No response after timeout refers to the device that does not send a response signal to the main controller within the specified time. The redundant time slot refers to the reserved spare communication time slot, which is used to handle communication failures or retry operations.

[0069] When the wireless communication module detects a signal, it receives the instruction data and decodes the instruction through a protocol parsing program. During the parsing process, the device group identifier and the corresponding load model set information in the instruction are extracted. The main controller in the power control system divides the physical space (such as communication frequency band or time axis) according to the preset configuration strategy. Specifically, the time division multiple access strategy can be used to divide the time axis into multiple time slots, and each time slot is assigned to the control channel of a feedback circuit. In addition, the controller uses a timer and a scheduling algorithm to ensure that each control channel communicates within the assigned time slot. For example, in a power supply system adopting the time division multiple access strategy, the preset configuration strategy divides 1 second into 10 time slots, each time slot being 100 milliseconds.

[0070] Then, the main controller distributes the control channels of the feedback circuits corresponding to each load to different time slots according to the number of devices in the load model set. When each time slot arrives, the corresponding communication operation is triggered. Within the allocated communication time slot, the pulse width modulation parameters corresponding to each load model are sent to the register of the target feedback circuit through the data bus or interface. After the register of the feedback circuit receives the data, it updates its internal state and generates signals and controls power according to the new pulse width modulation parameters.

[0071] Then, after sending the pulse width modulation parameters, the main controller starts the timer and waits for the feedback circuit to return the parameter writing completion status. If a successful response from the feedback circuit is received within the preset timeout period, the subsequent operations are continued. If no response is received after the timeout, the main controller determines that the device is a device that has timed out without response, and immediately transfers its communication task to a preset redundant time slot. In the redundant time slot, the write operation is initiated again until it is successful or the preset retry count limit is reached. When the parameter writing completion status is successful writing, the parameter writing operation of the pulse width modulation parameters is terminated. At the same time, the main controller records this timeout event for subsequent fault diagnosis and maintenance.

[0072] In the technical solution provided in this embodiment, by steps such as receiving batch configuration instructions, dividing communication time slots, writing pulse width modulation parameters, and processing devices that have timed out without response, the efficiency of power supply power in a multi-device configuration scenario is improved. By receiving the batch configuration instructions sent by the wireless communication module and parsing the device group identifier and the load model set, the power control system can process the configuration requirements of multiple devices simultaneously, improving the configuration efficiency and being applicable to large-scale distributed power supply systems. Dividing the physical space into multiple communication time slots according to the preset configuration strategy and allocating independent communication resources to the control channels of each feedback circuit effectively avoids communication conflicts and ensures the stability of data transmission.

[0073] In addition, by detecting the writing completion status of the detection parameters and processing devices with timeout and no response, the fault tolerance and reliability of the power control system are enhanced through the setting of redundant time slots to ensure that all devices can complete the configuration in a timely and accurate manner.

[0074] Embodiment 4 Based on the same inventive concept, the present application also provides Embodiment 4. Please refer to Figure 4 , Figure 4 which is a schematic flowchart of the fourth embodiment of the power control method of the present application. After step S40, steps S120 to S150 are further included: Step S120: When it is detected that the pulse width modulation parameter is abnormal, trigger the dual-core switching mechanism to migrate the control right from the main processor to the secondary processor.

[0075] Step S130: Start high-speed impedance scanning, complete the full-band impedance phase detection of the feedback circuit within a preset time period, and determine the impedance phase characteristics of the feedback circuit.

[0076] Step S140: Reconstruct the equivalent circuit model based on the impedance phase characteristics and determine the target duty cycle corresponding to the feedback circuit.

[0077] Step S150: When the reconstructed target duty cycle is stable for the second consecutive cycle, switch back to the main processor and record the abnormal event log.

[0078] In this embodiment, when the pulse width modulation parameter exceeds the normal working range or there are abnormal situations such as mutations, it is determined that the pulse width modulation parameter is abnormal. The dual-core switching mechanism means that two processing cores, namely the main processor and the secondary processor, are set in the power control system. When the main processor has an abnormality, the control right is switched to the secondary processor. High-speed impedance scanning can quickly detect the impedance and phase characteristics of the feedback circuit at different frequencies. The impedance phase characteristics refer to the law of the impedance magnitude and phase angle of the feedback circuit changing with frequency. The equivalent circuit model refers to a model that uses a combination of simple circuit elements to simulate the electrical characteristics of the feedback circuit. The target duty cycle refers to the duty cycle of the pulse width modulation signal that can make the feedback circuit reach the expected output power calculated according to the equivalent circuit model. The abnormal event log is a document record used to record the abnormal events that occur in the power system and their processing processes.

[0079] Specifically, the power control system detects the status of the pulse width modulation parameters in real time through the detection module. When abnormal pulse width modulation parameters are detected, such as sudden jumps in the duty cycle or exceeding the preset upper and lower limits, the dual-core switching mechanism is triggered. Through the cooperation of hardware circuits such as watchdog timers and interrupt controllers and the state machine switching logic, the control right is smoothly transferred from the main processor to the secondary processor. The secondary processor is in a standby state before this, synchronizing the key data and status information of the main processor in real time. Once it receives the control right, it immediately takes over the control tasks of the system to ensure the uninterrupted operation of the power supply system. The secondary processor uses the previously synchronized data such as load information and target output power to continue to execute the power control tasks.

[0080] After the secondary processor takes over the control right, it starts the high-speed impedance scanning function. Through the impedance detection circuit, a series of test signals with different frequencies are applied to the feedback circuit within a preset time period. At the same time, the impedance and phase response of the feedback circuit at each frequency are detected, and the corresponding data is collected. Then, using the fast Fourier transform signal processing algorithm, the collected data is analyzed to obtain the impedance phase characteristic curve of the feedback circuit. The secondary processor reconstructs the equivalent circuit model of the feedback circuit using the circuit modeling algorithm based on the obtained impedance phase characteristics. By comparing and fitting the impedance phase data with the standard circuit model, the parameters of each component in the equivalent circuit are determined. Based on the reconstructed equivalent circuit model, the target duty cycle of the target output power of the feedback circuit is calculated.

[0081] After the secondary processor sets the new target duty cycle, it continuously detects the actual output power and pulse width modulation parameters of the feedback circuit. In each detection cycle, the current target duty cycle is compared with the target duty cycle of the previous cycle. If the target duty cycle remains stable for two consecutive detection cycles, it indicates that the feedback circuit has been operating stably. At this time, the secondary processor switches the control right back to the main processor through the dual-core switching mechanism. After the main processor resumes control, it records the relevant information of this abnormal event, including the abnormal occurrence time, the abnormal value of the pulse width modulation parameters, the dual-core switching time, the impedance phase characteristics, the target duty cycle, etc., in the abnormal event log.

[0082] In the technical solution provided in this embodiment, by adding the abnormal detection and processing process of the pulse width modulation parameters, the stability of the power supply power control is enhanced. Triggering the dual-core switching mechanism when abnormal pulse width modulation parameters are detected and transferring the control right from the main processor to the secondary processor can avoid system downtime caused by the abnormality of the main processor and improve the fault tolerance of the power system.

[0083] In addition, by reconstructing the equivalent circuit model based on the impedance phase characteristics and determining the target duty cycle, precise control of the feedback circuit is achieved, ensuring the accuracy of the power output of the power supply. When the reconstructed target duty cycle is continuously stable, switch back to the main processor and record the abnormal event log, which not only restores the normal control logic of the power system but also provides a detailed record for subsequent fault analysis and maintenance, facilitating quick problem location and solution.

[0084] This application provides a control device for power supply power. The control device for power supply power includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the power supply power control method in Embodiment 1 above.

[0085] Next, refer to Figure 5 , which shows a schematic structural diagram of a control device for power supply power suitable for implementing the embodiments of the present application. The control device for power supply power in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The control device for power supply power shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.

[0086] As Figure 5As shown in the figure, the power control device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to the programs stored in the read-only memory (ROM) 1002 or the programs loaded from the storage device 1003 into the random access memory (RAM) 1004. In the random access memory 1004, various programs and data required for the operation of the power control device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the power control device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a power control device having various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or had alternatively.

[0087] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are executed.

[0088] The power control device provided by the present application adopts the power control method in the above embodiments, and can solve the technical problem of low efficiency of power control in the traditional solution. Compared with the prior art, the beneficial effects of the power control device provided by the present application are the same as those of the power control method provided by the above embodiments, and other technical features in the power control device are the same as those disclosed in the method of the previous embodiment, and will not be elaborated here.

[0089] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0090] As described above, the above are only specific embodiments of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all of them should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

[0091] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the power control method in the above embodiments.

[0092] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or combined with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination of the above.

[0093] The above computer-readable storage medium can be included in the power control device; it can also exist separately without being assembled into the power control device.

[0094] The above computer-readable storage medium carries one or more programs, which, when executed by a power control device, cause the power control device to: obtain a load model selected by a user, and determine a target output power corresponding to the load model based on a preset mapping relationship; determine an equivalent resistance required for a feedback circuit according to the target output power, and determine a pulse width modulation parameter matching the equivalent resistance; generate a pulse width modulation signal matching the pulse width modulation parameter, and convert the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit; detect an actual output power of a power supply in the feedback circuit, and adjust the pulse width modulation parameter according to a deviation value between the actual output power and the target output power until a preset convergence condition is met.

[0095] Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, execute as a stand-alone software package, execute partially on the user's computer and partially on a remote computer, or execute entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0097] The modules involved in the embodiments of the present application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the unit itself in some cases.

[0098] The readable storage medium provided by the present application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned power control method, which can solve the technical problem of low efficiency of power control in the traditional solution. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the power control method provided by the above embodiments, and will not be elaborated here.

[0099] An embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the power control method as described above are implemented.

[0100] The computer program product provided by the present application can solve the technical problem of low efficiency of power control in the traditional solution. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiments of the present application are the same as those of the power control method provided by the above embodiments, and will not be elaborated here.

[0101] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be included in the patent scope of the present application by the same token.

Claims

1. A method for controlling the power of a power supply, characterized in that, The method for controlling the power of the power supply includes the following steps: Obtain the load model selected by the user, and determine the target output power corresponding to the load model based on a preset mapping relationship; Determine the equivalent resistance required by the feedback circuit according to the target output power, and determine the pulse width modulation parameters matching the equivalent resistance; Generate a pulse width modulation signal matching the pulse width modulation parameters, and convert the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit; Detect the actual output power of the power supply in the feedback circuit, and adjust the pulse width modulation parameters according to the deviation value between the actual output power and the target output power until a preset convergence condition is met.

2. The method according to claim 1, wherein The step of detecting the actual output power of the power supply in the feedback circuit and adjusting the pulse width modulation parameters according to the deviation value between the actual output power and the target output power includes: Collect the actual output power in the feedback circuit at a preset period; Calculate the deviation value of the current period according to the actual output power and the target output power; When the deviation value exceeds the first threshold, increase or decrease the modulation parameter by a preset step size; When the deviation value is less than the second threshold, stop adjusting and lock the current pulse width modulation parameters.

3. The method according to any one of claims 1 or 2, characterized in that, The preset convergence condition includes at least one of the following: The relative error between the actual output power and the target output power is continuously less than a preset percentage for a preset time; The fluctuation amplitude of the actual output power does not exceed the fluctuation threshold of the target output power within the first period; During the adjustment process of the pulse width modulation parameters, the adjustment amount of the pulse width modulation parameters is continuously less than the target adjustment step size for a preset number of times.

4. The method according to claim 1, wherein The step of converting the pulse width modulation signal into an equivalent impedance corresponding to the equivalent resistance in the feedback circuit includes: Output the pulse width modulation signal to the control end of the switching transistor through a preset interface of the Bluetooth single-chip microcomputer module; Determine the target output current corresponding to the pulse width modulation signal; According to the on-off action of the switching transistor, combine the equivalent resistance relationship between the parallel resistance and the reference resistance to generate an equivalent impedance corresponding to the target output current.

5. The method according to claim 1, characterized in that, After the step of obtaining the load model selected by the user and determining the target output power corresponding to the load model based on a preset mapping relationship, it further includes: Receive a load configuration instruction sent by the terminal through a Bluetooth communication interface, and the load configuration instruction includes a target full-load current value; Convert the full-load current value into a corresponding output power, and update the preset mapping relationship according to the output power; When adjusting the pulse width modulation parameters according to the deviation value between the actual output power and the target output power, limit the adjustment range of the pulse width modulation parameters with the target full-load current value as a constraint condition.

6. The method according to claim 5, characterized in that After the step of converting the full-load current value into a corresponding output power and updating the preset mapping relationship according to the output power, it further includes: Construct a power curve graph according to the detected actual output power and the corresponding acquisition period; Determine the target actual output power that satisfies the preset conditions for the actual output power during the acquisition period according to the power curve graph; Record the target relationship between the current modulation parameter corresponding to the target actual output power and the load model; Update the preset mapping relationship between the load model and the target output power through the newly recorded target relationship.

7. The method according to claim 1, wherein After the step of obtaining the load model selected by the user and determining the target output power corresponding to the load model based on the preset mapping relationship, the method further includes: Receive a batch configuration instruction sent by the wireless communication module, and parse the device group identifier and the corresponding load model set in the batch configuration instruction; Divide the physical space into multiple communication time slots according to a preset configuration strategy, where each communication time slot corresponds to a control channel of a feedback circuit; Within the allocated communication time slot, write the pulse width modulation parameters corresponding to each load model into the register of the target feedback circuit; Detect the parameter writing completion status of the pulse width modulation parameter. When a timeout and no response is detected, jump to the redundant time slot to re-initiate the writing operation until the parameter writing completion status is successful writing, and then terminate the parameter writing operation of the pulse width modulation parameter.

8. The method according to claim 1, wherein After the step of detecting the actual output power of the power supply in the feedback circuit and adjusting the pulse width modulation parameter according to the deviation value between the actual output power and the target output power until the preset convergence condition is met, the method further includes: When the pulse width modulation parameter is detected to be abnormal, trigger a dual-core switching mechanism to transfer the control right from the main processor to the secondary processor; Start a high-speed impedance scan, complete the full-band impedance phase detection of the feedback circuit within a preset time period, and determine the impedance phase characteristics of the feedback circuit; Reconstruct an equivalent circuit model based on the impedance phase characteristics and determine the target duty cycle corresponding to the feedback circuit; When the reconstructed target duty cycle is stable for the second consecutive cycle, switch back to the main processor and record an abnormal event log.

9. A control device for the power of a power supply, characterized in that, The control device for the power supply power includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is configured to implement the steps of the method for controlling the power supply power according to any one of claims 1 to 8.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, the steps of the method for controlling the power supply power according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Impedance adjusting method, radio frequency circuit, communication equipment and computer equipment

    CN113922830A

  • Radio frequency pulse signal control method and circuit, radio frequency equipment and storage medium

    CN118634433A

  • Load self-adaption control method and system during closed-loop starting of variable frequency controller

    CN119210271A

  • Power supply feedback control circuit, switching power supply and electronic equipment

    CN119382507A

  • Reactance system and method of operating the same

    CN119742807A

Cited By

  • Voltage stabilizer, power supply circuit, power supply method based on processor, equipment and medium

    CN120428840A