Method, apparatus, terminal device and storage medium for switching current loop to voltage loop

By controlling the rate of decrease of the current value in the current loop and the initial voltage generation in the voltage loop during the current switching process, the flickering problem of the LED when switching from the current loop to the voltage loop is solved, thus improving the user experience.

CN122294331APending Publication Date: 2026-06-26APUTURE IMAGING IND CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
APUTURE IMAGING IND CO LTD
Filing Date
2024-12-24
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

When driving the LED, the LED flickers due to the inertia of the integration process during the switching from the current loop to the voltage loop, resulting in a poor user experience.

Method used

By acquiring the brightness information of the target device, the rate of decrease of the current value is controlled, and the current loop voltage is collected when the current value reaches the target to generate the initial voltage of the voltage loop. A first-order low-pass filter is used to control the rate of decrease of the current value, and the integral of the current loop integrator is cleared after switching.

Benefits of technology

This achieves smooth switching of the voltage loop, reduces LED flicker, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122294331A_ABST
    Figure CN122294331A_ABST
Patent Text Reader

Abstract

This application relates to the field of power circuit technology and provides a method, apparatus, terminal device, and storage medium for switching a current loop to a voltage loop. The method includes: acquiring current brightness information and target brightness information of a target device; generating a current current value based on the current brightness information when the current brightness information is greater than or equal to a voltage loop brightness threshold and the target brightness information is less than the voltage loop brightness threshold; reducing the current current value; acquiring the current voltage of the current loop when the current current value reaches the target current value; generating a target voltage value based on the current voltage and a preset calibration voltage, and using the target voltage value as the initial voltage of the voltage loop. Therefore, by acquiring the current voltage when reducing the current current and generating the target voltage value based on the current voltage and the calibration voltage, the flickering problem caused by loop switching when brightness information decreases is solved, improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of power supply circuit technology, and in particular relates to a method, apparatus, terminal equipment and computer-readable storage medium for switching a current loop to a voltage loop. Background Technology

[0002] Driving LEDs includes constant current and hybrid dimming technologies. When using hybrid dimming with high dimming depth, some control quantities may overshoot. For example, when reducing the brightness of the LED, the driving circuit switches from the current loop to the voltage loop and needs to switch between the current loop and the voltage loop. At this time, the constant current mode is opened and the constant voltage mode is entered.

[0003] In related technologies, proportional-integral-derivative (PI-DI) control is generally used. However, since PI-DI involves integral processing, it has a certain inertia, which can lead to loss of control during mode switching. This results in LED flickering and poor user experience when switching between the current loop and the voltage loop. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, terminal device, and computer-readable storage medium for switching the voltage loop from the current loop, which can solve the problem in the related art where, when reducing the brightness of the light-emitting diode, the driving circuit switches from the current loop to the voltage loop, and due to the inertia of the integral processing, the light-emitting diode flickers and the user experience is poor.

[0005] In a first aspect, embodiments of this application provide a method for switching a current loop to a voltage loop, comprising: acquiring current brightness information and target brightness information of a target device; generating a current current value based on the current brightness information when the current brightness information is greater than or equal to a voltage loop brightness threshold and the target brightness information is less than a voltage loop brightness threshold; reducing the current current value; acquiring the current voltage of the current loop when the current current value reaches the target current value; generating a target voltage value based on the current voltage and a preset calibration voltage, and using the target voltage value as the initial voltage of the voltage loop.

[0006] In one possible implementation of the first aspect, the reduction of the current value includes:

[0007] The current value is reduced, and the rate of decrease of the current value is controlled by a first-order low-pass filter.

[0008] Optionally, in another possible implementation of the first aspect, controlling the rate of decrease of the current value via a first-order low-pass filter includes:

[0009] When the current value is greater than the preset current intermediate value, the rate of decrease of the current value is controlled by a first-order low-pass filter with a first bandwidth value. The preset current intermediate value is determined according to the target current value.

[0010] When the current value is less than or equal to the preset current intermediate value, the rate of decrease of the current value is controlled by a first-order low-pass filter with a second bandwidth value, wherein the first bandwidth value is greater than the second bandwidth value.

[0011] Optionally, in another possible implementation of the first aspect, generating the target voltage value based on the current voltage and a preset calibration voltage includes:

[0012] Generate a voltage difference based on the current voltage and the preset calibration voltage;

[0013] The target voltage value is generated based on the voltage difference and the preset voltage difference threshold.

[0014] Optionally, in another possible implementation of the first aspect, generating the target voltage value based on the voltage difference and a preset voltage difference threshold includes:

[0015] When the voltage difference is less than the preset voltage difference threshold, the current voltage is used as the target voltage value;

[0016] When the voltage difference is greater than or equal to the preset voltage difference threshold, the preset calibration voltage is used as the target voltage value.

[0017] Optionally, in another possible implementation of the first aspect, generating the current current value based on the current brightness information includes:

[0018] Generate a current conversion value based on the target current value and the voltage loop brightness threshold;

[0019] The current current value is generated based on the current brightness information and the current conversion value.

[0020] Optionally, in another possible implementation of the first aspect, after generating the target voltage value based on the current voltage and the preset calibration voltage, and using the target voltage value as the initial voltage of the voltage loop, the method further includes:

[0021] Clear the integral value in the current loop integrator to zero.

[0022] Secondly, this application also provides a device for switching a current loop to a voltage loop, comprising: an acquisition module for acquiring current brightness information and target brightness information of a target device, wherein the current brightness information is greater than or equal to a voltage loop brightness threshold, and the target brightness information is less than the voltage loop brightness threshold; a first generation module for generating a current current value based on the current brightness information when the current brightness information is greater than or equal to the voltage loop brightness threshold and the target brightness information is less than the voltage loop brightness threshold; a current reduction module for reducing the current current value; an acquisition module for acquiring the current voltage of the current loop when the current current value reaches the target current value; and a second generation module for generating a target voltage value based on the current voltage and a preset calibration voltage, and using the target voltage value as the initial voltage of the voltage loop.

[0023] In one possible implementation of the second aspect, the aforementioned current reduction module includes:

[0024] A rate control unit is used to reduce the current value and controls the rate of decrease of the current value through a first-order low-pass filter.

[0025] Optionally, in another possible implementation of the second aspect, the aforementioned rate control unit is specifically used for:

[0026] When the current value is greater than the preset current intermediate value, the rate of decrease of the current value is controlled by a first-order low-pass filter with a first bandwidth value. The preset current intermediate value is determined according to the target current value.

[0027] When the current value is less than or equal to the preset current intermediate value, the rate of decrease of the current value is controlled by a first-order low-pass filter with a second bandwidth value, wherein the first bandwidth value is greater than the second bandwidth value.

[0028] Optionally, in another possible implementation of the second aspect, the aforementioned second generation module includes:

[0029] The first generation unit is used to generate a voltage difference based on the current voltage and the preset calibration voltage;

[0030] The second generation unit is used to generate a target voltage value based on the voltage difference and a preset voltage difference threshold.

[0031] Optionally, in another possible implementation of the second aspect, the aforementioned second generating unit is specifically used for:

[0032] When the voltage difference is less than the preset voltage difference threshold, the current voltage is used as the target voltage value;

[0033] When the voltage difference is greater than or equal to the preset voltage difference threshold, the preset calibration voltage is used as the target voltage value.

[0034] Optionally, in another possible implementation of the two aspects, the aforementioned first generation module value includes:

[0035] The third generation unit is used to generate current conversion values ​​based on the target current value and the voltage loop brightness threshold.

[0036] The fourth generation unit is used to generate the current current value based on the current brightness information and the current conversion value.

[0037] Optionally, in another possible implementation of the second aspect, the aforementioned current loop switching voltage loop device further includes:

[0038] The zeroing module is used to clear the integral value in the current loop integrator of the current loop to zero.

[0039] Thirdly, this application also provides a terminal device. The terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the computer program to implement any of the implementation methods described in the first aspect.

[0040] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method of any of the implementations of the first aspect described above.

[0041] Fifthly, this application also provides a computer program product that, when run on an electronic device, causes the electronic device to execute any of the implementation methods of the first aspect described above.

[0042] The beneficial effects of this application embodiment compared with the prior art are: by acquiring the current loop voltage when the current drops to the target current, and generating the initial voltage of the voltage loop based on the current voltage and the calibration voltage, the voltage loop can be switched smoothly, reducing the possibility of LED flickering and improving the user experience. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a schematic diagram of the structure of a current loop and voltage loop control system provided in an embodiment of this application;

[0045] Figure 2This is a schematic flowchart of a method for switching the voltage loop from the current loop according to an embodiment of this application;

[0046] Figure 3 This is a flowchart illustrating a method for switching the voltage loop from the current loop according to another embodiment of this application;

[0047] Figure 4 This is a schematic diagram of the structure of a current loop switching voltage loop device provided in an embodiment of this application;

[0048] Figure 5 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. Detailed Implementation

[0049] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0050] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0051] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0052] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0053] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0054] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0055] Current loop and voltage loop control systems, such as Figure 1 As shown, the system may include a brightness information comparator, a current loop adder, a current loop proportional-integral-derivative (PI-DI) regulator, a current loop integrator, a current loop first-order filter, a current loop pulse width modulator, a voltage loop adder, a voltage loop PI-DI regulator, a voltage loop integrator, a voltage loop first-order filter, and a voltage loop pulse width modulator. The brightness information is control information sent by the control board. Different brightness information is executed through different loops. The system can determine whether to enter the current loop or the voltage loop based on the brightness information and the voltage loop brightness threshold. For example, assuming the voltage loop brightness threshold is 50000, when the brightness information is greater than or equal to 50000, the control system operates in the current loop and performs PI-DI regulation based on the sampled Iadc value, ultimately outputting PWM_I to stabilize the output current. When the brightness information is less than 50000, the control system operates in the voltage loop and performs PI-DI regulation based on the sampled Vadc value, ultimately outputting PWM_V to stabilize the output voltage.

[0056] Driving LEDs includes technologies such as constant current and hybrid dimming. In high-depth hybrid dimming, some control variables may overshoot. For example, when the brightness of the LED drops from above the voltage loop brightness threshold to below the voltage loop brightness threshold, the driving circuit will switch from the current loop to the voltage loop. It needs to switch between the current loop and the voltage loop. At this time, the constant current mode opens and enters the constant voltage mode.

[0057] In related technologies, proportional-integral-derivative (PI-DI) control is generally used. However, since PI-DI involves integral processing, it has a certain inertia, which can lead to loss of control during mode switching. This results in LED flickering and poor user experience when switching between the current loop and the voltage loop.

[0058] Based on this, this application provides a method, apparatus, terminal device, storage medium, and computer program for switching current loops to voltage loops, which will be described in detail below with reference to the accompanying drawings.

[0059] Figure 2 A flowchart illustrating a method for switching a current loop to a voltage loop according to an embodiment of this application is shown.

[0060] Step 201: Obtain the current brightness information and target brightness information of the target device.

[0061] It should be noted that the current loop switching voltage loop method of this application embodiment can be executed by the current loop switching voltage loop device of this application embodiment. The current loop switching voltage loop device of this application embodiment can be configured in any terminal device to execute the current loop switching voltage loop method of this application embodiment.

[0062] In one possible implementation, the target device can be a light-emitting diode, the current brightness information can be the brightness information before the user adjusts it, and the target brightness information can be the brightness information after the user adjusts it. The current brightness information and the target brightness information can be obtained from the control board.

[0063] Step 202: If the current brightness information is greater than or equal to the voltage loop brightness threshold and the target brightness information is less than the voltage loop brightness threshold, generate the current current value based on the current brightness information.

[0064] In one possible implementation of this application, the voltage loop brightness threshold can be preset. When the brightness information is greater than or equal to the voltage loop brightness threshold, the control system operates in the current loop; when the brightness information is less than the voltage loop brightness threshold, the control system operates in the voltage loop. When the current brightness information is greater than or equal to the voltage loop brightness threshold and the target brightness information is less than the voltage loop brightness threshold, the operating circuit can switch from the current loop to the voltage loop. When the current brightness information is less than the voltage loop brightness threshold and the target brightness information is greater than or equal to the voltage loop brightness threshold, the operating circuit can switch from the voltage loop to the current loop. When both the current brightness information and the target brightness information are greater than or equal to the voltage loop brightness threshold, no circuit switching is required, and the system continues to operate in the current loop. When both the current brightness information and the target brightness information are less than the voltage loop brightness threshold, no circuit switching is required, and the system continues to operate in the voltage loop.

[0065] As one possible implementation of this application, when the current brightness information is greater than or equal to the voltage loop brightness threshold and the target brightness information is less than the voltage loop brightness threshold, the current current value can be generated based on the current brightness information.

[0066] Furthermore, the current current value can be generated based on the current brightness information and the preset target current value. That is, in one possible implementation of this application embodiment, step 201 above may include:

[0067] Generate a current conversion value based on the target current value and the voltage loop brightness threshold;

[0068] The current current value is generated based on the current brightness information and the current conversion value.

[0069] In one possible implementation, the target current value can be preset. When the current current value reaches the target current value, the voltage loop can be switched based on the current voltage loop value. The difference between the voltage loop brightness threshold and the target current value can be used to generate a current conversion value. Then, the current current value is generated based on the difference between the current brightness information and the current conversion value.

[0070] For example, assuming the target current value is 600 and the voltage loop brightness threshold is 50000, the current conversion value can be 50000-600=49400. Assuming the current brightness information is 50800, the current current value can be expressed as 50800-49400=1400.

[0071] Step 203: Reduce the current value.

[0072] In one possible implementation, the current value can be reduced so that the current value can reach the target current value.

[0073] Furthermore, the rate of decrease of the current value can be controlled to make the current value more accurately approach the target current value, thereby further reducing flickering during switching and further improving the user experience. That is, in one possible implementation of this application embodiment, step 203 above may include:

[0074] The current value is reduced, and the rate of decrease of the current value is controlled by a first-order low-pass filter.

[0075] In one possible implementation, a first-order low-pass filter can be added to control the rate at which the current value decreases as it decreases. Different first-order low-pass filters with different bandwidths can be used according to actual needs, so that the current value decreases at different rates.

[0076] Furthermore, when the current value is close to the target current value, a small-bandwidth first-order low-pass filter can be used to control the rate of decrease of the current value, thereby causing the current value to decrease slowly to obtain a more accurate current value. Otherwise, a large-bandwidth first-order low-pass filter can be used to control the rate of decrease of the current value, thereby causing the current value to decrease rapidly. This can improve switching efficiency and further reduce flickering during switching, thus enhancing the user experience. In one possible implementation of this application embodiment, the above-mentioned control of the rate of decrease of the current value using a first-order low-pass filter may include:

[0077] When the current value is greater than the preset current intermediate value, the rate of decrease of the current value is controlled by a first-order low-pass filter with a first bandwidth value. The preset current intermediate value is determined according to the target current value.

[0078] When the current value is less than or equal to the preset current intermediate value, the rate of decrease of the current value is controlled by a first-order low-pass filter with a second bandwidth value, wherein the first bandwidth value is greater than the second bandwidth value.

[0079] In one possible implementation, a preset current intermediate value can be determined based on the target current value, and the preset current intermediate value is greater than the target current value. During the process of reducing the current value, if the current value is greater than the preset current intermediate value, the rate of decrease of the current value can be controlled by a first-order low-pass filter with a first bandwidth value; if the current value is less than or equal to the preset current intermediate value, the rate of decrease can be controlled by a first-order low-pass filter with a second bandwidth value. The specific values ​​of the first and second bandwidth values ​​can be set according to actual needs. A first bandwidth value greater than the second bandwidth value allows for a faster rate of decrease when the difference between the current value and the target current value is large, and a slower rate of decrease when the current value is close to the target current value. This allows for a more precise approach to bringing the current value closer to the target current value.

[0080] For example, assuming the target current value is 600, the preset intermediate current value can be determined to be a number close to and greater than 600, such as 700. The first bandwidth value can be set to 5k, and the second bandwidth value can be set to 0.08k. If the current current value is greater than 700, the rate of decrease of the current current value can be controlled by a 5kHz first-order low-pass filter. If the current current value is less than or equal to 700, the rate of decrease can be controlled by a 0.08kHz first-order low-pass filter.

[0081] Step 204: When the current current value reaches the target current value, collect the current loop voltage.

[0082] In one possible implementation, as the current current value decreases, when the current current value reaches the target current value or is within the range of the target current value, the current loop voltage can be acquired.

[0083] For example, assuming the target current value is 600, the current loop voltage can be collected when the current value is in the range of 597 to 603.

[0084] Step 205: Generate a target voltage value based on the current voltage and the preset calibration voltage, and use the target voltage value as the initial voltage of the voltage loop.

[0085] In one possible implementation, the difference between the current voltage and the preset calibration voltage can be determined based on the current voltage and the preset calibration voltage. A target voltage value is then generated based on the current voltage, the preset calibration voltage, and the difference. This target voltage value is used as the initial voltage of the voltage loop. Figure 1 The Vset value in the file.

[0086] Furthermore, a target voltage value can be generated based on the difference between the current voltage (i.e., the preset calibration voltage) and a preset voltage difference threshold, thereby making the target voltage value more accurate, reducing the frequency of flickering during switching, and improving the user experience. That is, in one possible implementation of this application embodiment, step 205 above may include:

[0087] Generate a voltage difference based on the current voltage and the preset calibration voltage;

[0088] The target voltage value is generated based on the voltage difference and the preset voltage difference threshold.

[0089] In one possible implementation, the absolute value of the difference between the current voltage and the preset calibration voltage can be determined as the voltage difference value, and the target voltage value can be generated based on the relationship between the voltage difference value and the preset voltage difference threshold.

[0090] As an example, the preset voltage difference threshold can be 10mV.

[0091] Furthermore, a target voltage value can be generated based on the relationship between the voltage difference and a preset voltage difference threshold, thereby further reducing the frequency of flickering during switching and further improving the user experience. That is, in one possible implementation of this application embodiment, generating a target voltage value based on the voltage difference and a preset voltage difference threshold may include:

[0092] When the voltage difference is less than the preset voltage difference threshold, the current voltage is used as the target voltage value;

[0093] When the voltage difference is greater than or equal to the preset voltage difference threshold, the preset calibration voltage is used as the target voltage value.

[0094] In one possible implementation, when the voltage difference is less than a preset voltage difference threshold, the current voltage can be used as the target voltage value and as the initial voltage of the voltage loop. Otherwise, when the voltage difference is greater than the voltage difference threshold, it indicates that the current voltage may have a large error, and the preset calibration voltage is used as the target voltage value.

[0095] For example, assuming the current voltage is 1000mV, the preset calibration voltage is 10008mV, and the preset voltage difference threshold is 10mV, then the voltage difference is 8mV, which is less than the voltage difference threshold, so the target voltage value is 1000mV.

[0096] Furthermore, after the circuit switching, the current loop can be processed to prevent flickering when entering the current loop again, further improving the user experience. That is, after step 205, it can also include:

[0097] Clear the integral value in the current loop integrator to zero.

[0098] As one possible implementation of this application, after generating the target voltage value and using it as the initial voltage of the voltage loop, the integral value in the current loop integrator of the current loop can be cleared to zero.

[0099] In one possible implementation of this application, the current loop switching voltage loop method provided in this application can be... Figure 3 The process is as follows: First, current brightness information and target brightness information are acquired. It is determined whether the current brightness information is greater than or equal to the voltage loop brightness threshold and whether the target brightness information is less than the voltage loop brightness threshold. If so, a current current value is generated based on the current brightness information, and the current current value is reduced. When the current current value is greater than a preset current midpoint, the rate of decrease of the current current value is controlled by a first-order low-pass filter with a first bandwidth value. When the current current value is less than or equal to the preset current midpoint, the rate of decrease of the current current value is controlled by a first-order low-pass filter with a second bandwidth value, where the first bandwidth value is greater than the second bandwidth value. This continues until the current current value reaches the target current value. The current loop voltage is then acquired, and a current voltage is generated. Based on the current voltage and a preset calibration voltage, a voltage difference is generated. It is determined whether the voltage difference is less than a preset voltage difference threshold. If so, the current voltage is output as the target voltage value; otherwise, the preset calibration voltage is output as the target voltage value.

[0100] It should be noted that in actual use, the voltage loop brightness threshold, target current value, preset calibration voltage, preset current intermediate value, and preset voltage difference threshold can be determined according to actual usage requirements and application scenarios. Among them, the setting of the preset calibration voltage can ensure the basic consistency of the initial voltage of the voltage loop each time the control system switches from the current loop to the voltage loop, thereby ensuring the uniformity and consistency of the light emission of the light-emitting diode after the switch. This application embodiment does not limit this.

[0101] The current loop switching voltage loop method provided in this application acquires the current loop voltage when the current drops to the target current, and generates the initial voltage of the voltage loop based on the current voltage and the calibration voltage. This allows the voltage loop to switch smoothly, reducing the possibility of LED flicker and improving the user experience. Furthermore, by controlling the rate of decrease of the current value through first-order low-pass filters with different bandwidth values, a more accurate current voltage is obtained while improving the switching rate, further reducing the possibility of flickering during switching. After switching, the integral value in the current loop integrator is cleared to zero, reducing the possibility of flickering during the next operation of the current loop, further enhancing the user experience.

[0102] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0103] Corresponding to the current loop switching voltage loop method in the above embodiment, Figure 4 A structural block diagram of a current loop switching voltage loop device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.

[0104] Reference Figure 4 The device 40 includes:

[0105] The acquisition module 41 is used to acquire the current brightness information and target brightness information of the target device, wherein the current brightness information is greater than or equal to the voltage loop brightness threshold, and the target brightness information is less than the voltage loop brightness threshold.

[0106] The first generation module 42 generates the current current value based on the current brightness information when the current brightness information is greater than or equal to the voltage loop brightness threshold and the target brightness information is less than the voltage loop brightness threshold.

[0107] Current reduction module 43 is used to reduce the current value;

[0108] Acquisition module 44 is used to acquire the current loop voltage when the current current value reaches the target current value;

[0109] The second generation module 45 is used to generate a target voltage value based on the current voltage and the preset calibration voltage, and to use the target voltage value as the initial voltage of the voltage loop.

[0110] In practical use, the current loop switching voltage loop device provided in this application embodiment can be configured in any terminal device to execute the aforementioned current loop switching voltage loop method.

[0111] The current loop switching voltage loop device provided in this application acquires the current loop voltage when the current drops to the target current, and generates the initial voltage of the voltage loop based on the current voltage and the calibration voltage, thereby enabling the voltage loop to switch smoothly, reducing the possibility of LED flickering and improving the user experience.

[0112] In one possible implementation of this application, the current reduction module 43 includes:

[0113] A rate control unit is used to reduce the current value and controls the rate of decrease of the current value through a first-order low-pass filter.

[0114] Furthermore, in another possible implementation of this application, the aforementioned rate control unit is specifically used for:

[0115] When the current value is greater than the preset current intermediate value, the rate of decrease of the current value is controlled by a first-order low-pass filter with a first bandwidth value. The preset current intermediate value is determined according to the target current value.

[0116] When the current value is less than or equal to the preset current intermediate value, the rate of decrease of the current value is controlled by a first-order low-pass filter with a second bandwidth value, wherein the first bandwidth value is greater than the second bandwidth value.

[0117] Furthermore, in another possible implementation of this application, the second generation module 45 includes:

[0118] The first generation unit is used to generate a voltage difference based on the current voltage and the preset calibration voltage;

[0119] The second generation unit is used to generate a target voltage value based on the voltage difference and a preset voltage difference threshold.

[0120] Furthermore, in yet another possible implementation of this application, the aforementioned second generating unit is specifically used for:

[0121] When the voltage difference is less than the preset voltage difference threshold, the current voltage is used as the target voltage value;

[0122] When the voltage difference is greater than or equal to the preset voltage difference threshold, the preset calibration voltage is used as the target voltage value.

[0123] Furthermore, in another possible implementation of this application, the aforementioned first generation module value 42 includes:

[0124] The third generation unit is used to generate current conversion values ​​based on the target current value and the voltage loop brightness threshold.

[0125] The fourth generation unit is used to generate the current current value based on the current brightness information and the current conversion value.

[0126] Furthermore, in another possible implementation of this application, the aforementioned current loop switching voltage loop device 50 further includes:

[0127] The zeroing module is used to clear the integral value in the current loop integrator of the current loop to zero.

[0128] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0129] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0130] To implement the above embodiments, this application also proposes a terminal device.

[0131] Figure 5 This is a schematic diagram of the structure of a terminal device according to an embodiment of this application.

[0132] like Figure 5 As shown, the terminal device 200 includes:

[0133] The system includes a memory 210 and at least one processor 220, and a bus 230 connecting different components (including the memory 210 and the processor 220). The memory 210 stores a computer program that, when executed by the processor 220, implements the current loop switching voltage loop method described in the embodiments of this application.

[0134] Bus 230 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0135] Terminal device 200 typically includes various electronically readable media. These media can be any available media that can be accessed by terminal device 200, including volatile and non-volatile media, removable and non-removable media.

[0136] Memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and / or cache memory 250. Terminal device 200 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 260 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 5 Not shown; usually referred to as a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 230 via one or more data media interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this application.

[0137] A program / utility 280 having a set (at least one) of program modules 270 may be stored in, for example, memory 210. Such program modules 270 include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 270 typically perform the functions and / or methods described in the embodiments of this application.

[0138] Terminal device 200 can also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), and with one or more devices that enable a user to interact with terminal device 200, and / or with any device that enables terminal device 200 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 292. Furthermore, terminal device 200 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 293. As shown, network adapter 293 communicates with other modules of terminal device 200 via bus 230. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with terminal device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0139] The processor 220 performs various functional applications and data processing by running programs stored in the memory 210.

[0140] It should be noted that the implementation process and technical principles of the terminal device in this embodiment are explained in the foregoing description of the current loop switching voltage loop method in the embodiments of this application, and will not be repeated here.

[0141] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.

[0142] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the various method embodiments above.

[0143] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0144] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0145] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0146] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

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

[0148] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for switching a current loop to a voltage loop, characterized in that, include: Obtain the current brightness information of the target device and the target brightness information; When the current brightness information is greater than or equal to the voltage loop brightness threshold and the target brightness information is less than the voltage loop brightness threshold, a current current value is generated based on the current brightness information. Reduce the current value; When the current current value reaches the target current value, the current loop voltage is collected; Based on the current voltage and the preset calibration voltage, a target voltage value is generated, and the target voltage value is used as the initial voltage of the voltage loop.

2. The method as described in claim 1, characterized in that, The reduction of the current value includes: The current current value is reduced, and the rate of decrease of the current current value is controlled by a first-order low-pass filter.

3. The method as described in claim 2, characterized in that, The step of controlling the rate of decrease of the current value through a first-order low-pass filter includes: When the current current value is greater than the preset current intermediate value, the rate of decrease of the current current value is controlled by the first-order low-pass filter with the first bandwidth value, wherein the preset current intermediate value is determined according to the target current value. When the current current value is less than or equal to a preset current intermediate value, the rate of decrease of the current current value is controlled by the first-order low-pass filter with the second bandwidth value, wherein the first bandwidth value is greater than the second bandwidth value.

4. The method as described in claim 1, characterized in that, The step of generating a target voltage value based on the current voltage and a preset calibration voltage includes: A voltage difference is generated based on the current voltage and the preset calibration voltage; A target voltage value is generated based on the voltage difference and the preset voltage difference threshold.

5. The method as described in claim 4, characterized in that, The step of generating a target voltage value based on the voltage difference and the preset voltage difference threshold includes: When the voltage difference is less than the preset voltage difference threshold, the current voltage is taken as the target voltage value; When the voltage difference is greater than or equal to the preset voltage difference threshold, the preset calibration voltage is used as the target voltage value.

6. The method as described in claim 1, characterized in that, The step of generating the current current value based on the current brightness information includes: A current conversion value is generated based on the target current value and the voltage loop brightness threshold. The current current value is generated based on the current brightness information and the current conversion value.

7. The method according to any one of claims 1-6, characterized in that, After generating a target voltage value based on the current voltage and a preset calibration voltage, and using the target voltage value as the initial voltage of the voltage loop, the method further includes: Clear the integral value in the current loop integrator to zero.

8. A device for switching a current loop to a voltage loop, characterized in that, include: The acquisition module is used to acquire the current brightness information and target brightness information of the target device, wherein the current brightness information is greater than or equal to the voltage loop brightness threshold, and the target brightness information is less than the voltage loop brightness threshold; The first generation module generates a current value based on the current brightness information when the current brightness information is greater than or equal to the voltage loop brightness threshold and the target brightness information is less than the voltage loop brightness threshold. A current reduction module is used to reduce the current value; The acquisition module is used to acquire the current loop voltage when the current current value reaches the target current value; The second generation module is used to generate a target voltage value based on the current voltage and the preset calibration voltage, and to use the target voltage value as the initial voltage of the voltage loop.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it causes the terminal device to implement the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by an electronic device, it implements the method as described in any one of claims 1 to 7.