Search

CN-121985445-A - Device control method, device, electronic device and storage medium

CN121985445ACN 121985445 ACN121985445 ACN 121985445ACN-121985445-A

Abstract

The embodiment of the application discloses a device control method, a device, electronic equipment and a storage medium, wherein the control instruction comprises a target brightness value which is required to be achieved by a target light emitting device through receiving the control instruction aiming at the target light emitting device, the initial maximum duty ratio corresponding to the target light emitting device under the target brightness value is determined based on the device type of the target light emitting device, the initial maximum duty ratio is the maximum duty ratio of a pulse signal required for driving the target light emitting device to achieve the target brightness value under a reference working state parameter, at least one duty ratio compensation coefficient corresponding to the target light emitting device is determined according to the working state parameter of the target light emitting device, the initial maximum duty ratio is corrected based on the duty ratio compensation coefficient to obtain the target maximum duty ratio, and the target light emitting device is driven based on the target maximum duty ratio and the target brightness value. Therefore, the light emitting device can be precisely driven based on the dynamically determined duty ratio limit value, and the equipment control efficiency is improved.

Inventors

  • Bai Zhuangyuan

Assignees

  • 深圳爱图仕创新科技股份有限公司

Dates

Publication Date
20260505
Application Date
20260407

Claims (11)

  1. 1. A device control method, characterized by comprising: Receiving a control instruction aiming at a target light-emitting device, wherein the control instruction comprises a target brightness value which needs to be reached by the target light-emitting device; Determining an initial maximum duty ratio corresponding to the target light emitting device under the target brightness value based on the device type of the target light emitting device, wherein the initial maximum duty ratio is the maximum duty ratio of a pulse signal required for driving the target light emitting device to reach the target brightness value under a reference working state parameter; determining at least one duty cycle compensation coefficient corresponding to the target light-emitting device according to the working state parameters of the target light-emitting device; based on the duty cycle compensation coefficient, correcting the initial maximum duty cycle to obtain a target maximum duty cycle; the target light emitting device is driven based on the target maximum duty cycle and the target luminance value.
  2. 2. The apparatus control method according to claim 1, wherein the driving the target light emitting device based on the target maximum duty ratio and the target luminance value includes: calculating a duty cycle control increment corresponding to the target light emitting device based on the target brightness value; calculating a second duty cycle of the target light emitting device in a current control period based on the duty cycle control increment and the first duty cycle of the target light emitting device in the previous control period; driving the target light emitting device in a current control period based on the second duty ratio in a case where the second duty ratio is not greater than the target maximum duty ratio; And driving the target light emitting device in a current control period based on the target maximum duty ratio in a case where the second duty ratio is greater than the target maximum duty ratio.
  3. 3. The apparatus control method according to claim 1, wherein the determining an initial maximum duty cycle corresponding to the target light emitting device at the target luminance value based on a device type of the target light emitting device includes: Determining a target mapping relation corresponding to the target light emitting device based on the device type of the target light emitting device, wherein the target mapping relation is used for indicating the target light emitting device to reach a maximum duty ratio corresponding to a plurality of preset brightness values under a reference working state parameter, and the brightness values comprise the target brightness value; And identifying the initial maximum duty ratio corresponding to the target light emitting device under the target brightness value based on the target mapping relation.
  4. 4. A device control method according to any one of claims 1 to 3, wherein at least one of the types of the operation state parameters is provided, and the duty compensation coefficient includes a duty compensation coefficient corresponding to each of the operation state parameters.
  5. 5. The apparatus control method according to claim 4, wherein the operation state parameter includes a lamp bead temperature, the duty cycle compensation coefficient includes a first compensation coefficient, and the determining at least one duty cycle compensation coefficient corresponding to the target light emitting device according to the operation state parameter of the target light emitting device includes: determining a first functional relationship based on the device type of the target light emitting device, wherein the first functional relationship is used for indicating a first compensation coefficient of the target light emitting device at different lamp bead temperatures; and calculating a first compensation coefficient corresponding to the target light-emitting device based on the first functional relation and the lamp bead temperature of the target light-emitting device.
  6. 6. The device control method of claim 4, wherein the operating state parameter comprises an ambient temperature, the duty cycle compensation coefficient comprises a second compensation coefficient, and the determining at least one duty cycle compensation coefficient corresponding to the target light emitting device according to the operating state parameter of the target light emitting device comprises: Determining a second functional relationship based on the device type of the target light emitting device, the second functional relationship being used to indicate a second compensation coefficient of the target light emitting device at different ambient temperatures; And calculating a second compensation coefficient corresponding to the target light emitting device based on the second functional relation and the ambient temperature of the target light emitting device.
  7. 7. The apparatus control method of claim 4, wherein the operating state parameter comprises an input voltage, the reference operating state parameter comprises a reference input voltage, the duty cycle compensation coefficient comprises a third compensation coefficient, and the determining at least one duty cycle compensation coefficient corresponding to the target light emitting device according to the operating state parameter of the target light emitting device comprises: calculating a voltage difference between an input voltage of the target light emitting device and the reference input voltage; and calculating a third compensation coefficient corresponding to the target light emitting device based on the voltage difference value, the reference input voltage and the initial maximum duty cycle.
  8. 8. The apparatus control method according to claim 4, wherein the operating state parameters include a lamp bead temperature, an ambient temperature, and an input voltage, the duty cycle compensation coefficients include a first compensation coefficient, a second compensation coefficient, and a third compensation coefficient that are obtained based on the lamp bead temperature, the ambient temperature, and the input voltage, respectively, and the correcting the initial maximum duty cycle based on the duty cycle compensation coefficients includes: Calculating the sum of the initial maximum duty cycle and the first compensation coefficient to obtain a first maximum duty cycle; And calculating the product of the first maximum duty ratio, the second compensation coefficient and the third compensation coefficient to obtain a target maximum duty ratio.
  9. 9. An apparatus control device, comprising: a receiving unit configured to receive a control instruction for a target light emitting device, where the control instruction includes a target luminance value that the target light emitting device needs to reach; A first determining unit, configured to determine, based on a device type of the target light emitting device, an initial maximum duty cycle corresponding to the target light emitting device at the target brightness value, where the initial maximum duty cycle is a maximum duty cycle of a pulse signal required to drive the target light emitting device to reach the target brightness value under a reference operating state parameter; a second determining unit, configured to determine at least one duty cycle compensation coefficient corresponding to the target light emitting device according to the working state parameter of the target light emitting device; The correcting unit is used for correcting the initial maximum duty ratio based on the duty ratio compensation coefficient to obtain a target maximum duty ratio; And a driving unit for driving the target light emitting device based on the target maximum duty ratio and the target luminance value.
  10. 10. An electronic device comprising a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the device control method of any one of claims 1 to 8.
  11. 11. A storage medium comprising a computer program for causing an electronic device to carry out the steps of the device control method as claimed in any one of claims 1 to 8 when said computer program is run on the electronic device.

Description

Device control method, device, electronic device and storage medium Technical Field The present application relates to the field of computer technologies, and in particular, to a device control method, an apparatus, an electronic device, and a storage medium. Background In a driving control system for light emitting devices such as a light emitting Diode (LIGHT EMITTING Diode, abbreviated as an LED), in order to achieve a fast response performance, the proportion (P) and integral (I) parameters of a PID controller are often set to be more aggressive, so that when the brightness is changed in a step-like manner, the controller calculates a huge control increment in a single period, so that the duty ratio of a pulse width modulation (Pulse width modulation, abbreviated as a PWM) signal output to a power switch tube is rapidly increased, and even reaches a maximum value allowed by hardware. The abrupt jump of the duty ratio can lead the power device to bear huge current and voltage stress (namely electric stress), which not only can cause electromagnetic interference problem, but also can obviously increase the risk of overheat and even breakdown damage of the power switch tube. In the existing output limiting protection method, a fixed upper limit value is usually set for the PWM duty ratio, however, in order to ensure the safety under the worst condition, the upper limit value is usually set to be relatively conservative, which limits the performance of the control system under the normal working condition, so that the control efficiency of the device is poor. Disclosure of Invention The embodiment of the application provides a device control method, a device, electronic equipment and a storage medium, which can realize accurate driving of a target light emitting device based on a dynamically determined target maximum duty ratio, avoid limiting the performance exertion of a control system for driving the light emitting device under normal working conditions by adopting a fixed duty ratio limit value, and effectively improve the device control efficiency. The embodiment of the application provides a device control method, which comprises the following steps: Receiving a control instruction aiming at a target light-emitting device, wherein the control instruction comprises a target brightness value which needs to be reached by the target light-emitting device; Determining an initial maximum duty ratio corresponding to the target light emitting device under the target brightness value based on the device type of the target light emitting device, wherein the initial maximum duty ratio is the maximum duty ratio of a pulse signal required for driving the target light emitting device to reach the target brightness value under a reference working state parameter; determining at least one duty cycle compensation coefficient corresponding to the target light-emitting device according to the working state parameters of the target light-emitting device; based on the duty cycle compensation coefficient, correcting the initial maximum duty cycle to obtain a target maximum duty cycle; the target light emitting device is driven based on the target maximum duty cycle and the target luminance value. Correspondingly, the embodiment of the application also provides a device control device, which comprises: a receiving unit configured to receive a control instruction for a target light emitting device, where the control instruction includes a target luminance value that the target light emitting device needs to reach; A first determining unit, configured to determine, based on a device type of the target light emitting device, an initial maximum duty cycle corresponding to the target light emitting device at the target brightness value, where the initial maximum duty cycle is a maximum duty cycle of a pulse signal required to drive the target light emitting device to reach the target brightness value under a reference operating state parameter; a second determining unit, configured to determine at least one duty cycle compensation coefficient corresponding to the target light emitting device according to the working state parameter of the target light emitting device; The correcting unit is used for correcting the initial maximum duty ratio based on the duty ratio compensation coefficient to obtain a target maximum duty ratio; And a driving unit for driving the target light emitting device based on the target maximum duty ratio and the target luminance value. In an embodiment, the driving unit is configured to: calculating a duty cycle control increment corresponding to the target light emitting device based on the target brightness value; calculating a second duty cycle of the target light emitting device in a current control period based on the duty cycle control increment and the first duty cycle of the target light emitting device in the previous control period; driving the target light emitting device in a current control p