Lamp control method, lamp and control device

By monitoring electrical parameters, the code time of the lamp is automatically adjusted, and the problem of electromagnetic radiation exceeding the standard caused by the mismatch between the code time and the number of control units is solved, and the electromagnetic radiation frequency and power are achieved, which improves the quality and user experience of the lamp.

CN120129111APending Publication Date: 2025-06-10SHENZHEN MANGO SCI & TECH INNOVATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510339578.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-20
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

When the existing lamps have a fixed symbol duration and do not match the number of control units, electromagnetic radiation is prone to exceed the standard.

Method used

By monitoring electrical parameters, the symbol duration is automatically adjusted to match the number of control units and channels, thereby optimizing the data stream transmission frequency and electromagnetic radiation.

Benefits of technology

Without detracting from the display effect, automatic adjustment of the codec duration is achieved, the electromagnetic radiation frequency and power are reduced, and the quality and user experience of the lamp are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120129111A_ABST
    Figure CN120129111A_ABST
Patent Text Reader

Abstract

The invention provides a lamp control method, a lamp and a control device, the lamp comprises a monitoring unit and at least one LED module, the LED module comprises at least one control unit, the control units are in circuit connection, a controller is connected with the lamp module and the monitoring unit, and the monitoring unit is used for monitoring electrical parameters on a connection loop of the control units. The method comprises the steps of obtaining electrical parameters, and obtaining the number of control units in the lamp according to the electrical parameters; calculating code element digits of the lamp according to the number of the control units and the number of channels of the control units; the code element duration of the control units is obtained according to the code element digits and the number of the control units, and the lamp is controlled to work according to the code element duration. According to the method, the code element duration of the lamp is adjusted, so that automatic adjustment of the code element duration is realized on the premise of not reducing the display effect of the lamp, and the frequency and electromagnetic radiation of data stream transmission are reduced and optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lamps, and particularly to a control method for a lamp, a lamp, and a control device. Background Art

[0002] Currently, lamps or lighting devices and light-emitting devices are composed of a power supply, a controller, and several lamp modules connected in cascade. The power supply is responsible for providing energy to the controller and each control unit, and the controller sends brightness gray level data to each lamp string for processing and display. In theory, the controller can continuously send the gray level data of all lamp modules to the lamp modules according to the standard communication protocol of the chip specification. However, in practice, there are lamp modules of different series types, different lengths, and different functional characteristics, and the lamp effects cannot be compatible. Moreover, during production, each type of lamp needs to manually change the symbol duration according to the number of control units in the lamp module, and the symbol duration is fixed. At the same time, when the symbol duration does not match the number of control units, electromagnetic radiation will be generated by the lamp. Each type of lamp needs to release different firmware for management according to the number of control units. At the same time, with the changes in the length and electrical connection of different series of display devices, using a unified fixed symbol duration will cause the electromagnetic radiation of the lamp to exceed the standard. Summary of the Invention

[0003] In view of the above, the present application provides a control method for a lamp, a lamp, and a control device, which are used to solve the problem that when the symbol duration is fixed and does not match the number of control units, electromagnetic radiation will be generated by the lamp.

[0004] The first aspect of the present application provides a control method for a lamp. The lamp includes a monitoring unit and at least one LED module. The LED module includes at least one control unit, and each control unit is electrically connected. The monitoring unit is used to monitor the electrical parameters on the connection loop of the control units. The control method for the lamp includes: Obtaining the electrical parameters, and obtaining the number of the control units according to the electrical parameters; Obtaining the number of symbol bits of the lamp according to the number of control units and the number of channels of the control units; Obtaining the symbol duration of the control unit according to the number of symbol bits and the number of control units, so as to control the operation of the lamp according to the symbol duration.

[0005] By adjusting the symbol duration of the lamp, the present application realizes the automatic adjustment of the symbol duration without reducing the display effect of the lamp, and reduces and optimizes the frequency of data stream transmission and electromagnetic radiation.

[0006] As an optional implementation manner, obtaining the symbol duration of the control unit according to the number of symbol bits and the number of control units, so as to control the operation of the lamp according to the symbol duration, includes: Obtaining the control instruction of the lamp, and obtaining the frame rate of the functional unit according to the control instruction; Determine the duration of a single frame based on the frame rate; The duration of a single symbol corresponding to the duration of the single frame is obtained according to the duration of the single frame, the number of control units and the number of symbol bits; In response to a single symbol duration being less than a first preset symbol duration, the lamp is controlled to operate according to the frame rate and the single symbol duration.

[0007] The control method of the lamp of the present application can be adapted according to the frame rate of the function. In the case of unknown symbol duration, the optimal symbol duration combination can be used to meet functional requirements and optimize and reduce radiation frequency and radiation power, thereby improving the use quality of the lamp and the user experience.

[0008] As an optional implementation, the code element duration of the control unit is obtained according to the code element bit number and the number of control units, so as to control the operation of the lamp according to the code element duration, including: Obtain a second preset symbol duration, and determine a refresh rate within a preset time according to the number of symbol bits and the second preset symbol duration; When the refresh rate is greater than or equal to the preset refresh rate, a control instruction of the lamp is obtained, and a required refresh rate of the functional unit is obtained according to the control instruction; The single frame duration in the functional unit is obtained according to the required refresh rate; The duration of a single symbol corresponding to the duration of the single frame is obtained according to the duration of the single frame, the number of control units and the number of symbol bits; In response to the single symbol duration being less than a first preset symbol duration, the lamp is controlled to operate according to the refresh rate and the single symbol duration.

[0009] The lamp control method of the present application can optimize and reduce the radiation frequency and radiation power by changing the code element duration through a program according to the second code element duration preset in the specification or chip data.

[0010] As an optional implementation, the lamp further includes an alarm unit, the alarm unit is connected to the controller, and the control method of the lamp further includes: When the refresh rate is less than the preset refresh rate, the alarm unit is triggered to alarm. Based on such a design, the user can be reminded when the refresh rate does not meet the requirements of the lamp.

[0011] As an optional implementation, the control method further includes: The electrical parameters of the LED module are acquired by controlling the state of the LED in the LED module, and the number of control units is obtained according to the electrical parameters.

[0012] As an alternative implementation, the control unit includes a driving chip and an LED. The LED is connected to the driving chip. By controlling the state of the LED in the LED module, the electrical parameters of the LED module are obtained, and the number of control units is calculated based on the electrical parameters, including: presetting a detection number n, controlling the LED in the LED module according to a preset rule, and monitoring the electrical parameter values on the LED module to calculate the number of control units in the LED module based on the electrical parameter values; determining that the sum of the numbers of control units in each LED module is the number of control units in the lamp. It can be understood that based on the correspondence between the number of control units and the number of chips, the present application can multiply the obtained number of control units by the number of chips in each control unit to accurately calculate the number of chips. Based on such a design, the present application can detect the number of driving chips through a preset detection number, that is, through a limited number of tests, without detecting the driving chips in a preset order, thereby saving detection time and more quickly detecting the number of driving chips, improving the user experience.

[0013] As an alternative implementation, the control unit includes a driving chip and an LED. The LED is connected to the driving chip. By controlling the state of the LED in the LED module, the electrical parameters of the LED module are obtained, and the number of control units is calculated based on the electrical parameters, including: sequentially controlling the first LED to the nth LED in the LED module to be in a first state and monitoring the electrical parameters on the LED module; wherein, when the (n - 1)th LED is controlled to be in the first state, the electrical parameter value on the LED module is a first electrical parameter value, and when the nth LED is in the first state and the electrical parameter value on the LED module is the first electrical parameter value, it is determined that the number of control units in the LED module is n - 1; determining that the sum of the numbers of the control units in each of the LED modules is the number of control units in the lamp. Based on such a design, the present application can detect the number of driving chips in order, which is easier to implement in software and easier to write the control program, giving a better sense to the user and improving the user experience.

[0014] As an alternative implementation, the control unit includes a driving chip and an LED. The LED is connected to the driving chip. By controlling the state of the LED in the LED module, the electrical parameters of the LED module are obtained, and the number of control units is determined according to the electrical parameters, including: controlling one of the first LED to the nth LED in the LED module to be in the first state, and controlling the remaining LEDs to be in the second state. If the nth LED module is controlled to be in the first state and the electrical parameter on the LED module is less than a preset threshold, it is determined that the number of control units in the LED module is n - 1; the sum of the number of control units in each LED module is obtained as the number of control units in the lamp. Based on such a design, when detecting the driving chip in the LED module in this application, since only one LED needs to be lit each time, the current on the LED module remains unchanged, and the current fluctuation is small, so the impact on components is smaller, and it is possible to avoid component failure and parameter variation in the lamp caused by current impact. Moreover, since only one LED needs to be lit each time, there will be no dazzling or blinding effect caused by multiple LEDs participating in chip detection and lighting or extinguishing together, improving the user experience. In addition, the number of driving chips can be directly obtained without counting calculations, reducing the calculation amount and improving the detection efficiency.

[0015] As an alternative implementation, the control unit includes a driving chip and an LED. The LED is connected to the driving chip. By controlling the state of the LED in the LED module, the electrical parameters of the LED module are obtained, and the number of control units is determined according to the electrical parameters, including: presetting the maximum value n of the number of control units, controlling the first LED to the nth LED in the LED module to be in the first state, and then controlling the first LED to the nth LED in the LED module to be in the second state in the first order; wherein, when the (n - 1)th LED is controlled to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value. When the nth LED is in the second state and the electrical parameter value on the LED module is less than the preset threshold or the electrical parameter value does not change, it is determined that the number of control units in the LED module is n; the sum of the number of control units in each of the LED modules is obtained as the number of control units in the lamp. Based on such a design, by presetting a maximum value and controlling the LEDs to turn off in the first order in this application, not only can the number of chips be automatically judged or detected to better adapt the function mode, but also the working state of the overall lamp can be more intuitively judged.

[0016] As an alternative implementation, the control unit includes a driving chip and an LED. The LED is connected to the driving chip. By controlling the states of the LEDs in the LED module, the electrical parameters of the LED module are obtained, and the number of control units is determined based on the electrical parameters, including: presetting the maximum value n of the number of control units, controlling the first LED to the nth LED in the LED module to be in the first state, and then sequentially controlling the nth LED to the first LED in the LED module to be in the second state according to the second order; wherein, when controlling the nth LED to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value, when controlling the (n - 1)th LED to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value, when the (n - 2)th LED is in the second state and the electrical parameter value on the LED module is the second electrical parameter value, it is determined that the number of control units in the LED module is n - 2; the second electrical parameter value is less than the first electrical parameter value; the sum of the numbers of control units in each LED module is obtained as the number of control units in the lamp. Based on such a design, the present application can not only automatically judge or detect the number of chips, but also more intuitively judge the working state of the overall lamp. In addition, the present application can also improve the detection speed and can quickly perform chip detection.

[0017] The second aspect of the present application further provides a lamp, which includes: a controller, a monitoring unit, and at least one LED module; the LED module includes at least one control unit, and the control units are circuit-connected. The controller is connected to the LED module and the monitoring unit, and the monitoring unit is used to monitor the electrical parameters on the control unit connection loop; the controller is used to load and execute the control method of the lamp described above.

[0018] The third aspect of the present application further provides a control device, which includes: a processor and a memory. The memory is used to store a computer program, and when the computer program is executed by the processor, it implements the control method of the lamp described above.

[0019] It should be understood that the lamp described in the second aspect and the control device provided in the third aspect are both corresponding to the control method of the lamp in the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding control method of the lamp provided above, and will not be elaborated here. Description of the Drawings

[0020] Figure 1 It is a schematic diagram of the hardware structure of a lamp provided by an embodiment of the present application.

[0021] Figure 2 It is a flowchart of a control method of a lamp provided by an embodiment of the present application.

[0022] Figure 3 It is Figure 2 a flowchart of an implementation manner of step S201 in

[0023] Figure 4 It is Figure 2 a flowchart of another implementation manner of step S201 in

[0024] Figure 5 It is Figure 2 a flowchart of another implementation manner of step S201 in

[0025] Figure 6 It is Figure 2 a flowchart of another implementation manner of step S201 in

[0026] Figure 7 It is Figure 2 a flowchart of another implementation manner of step S201 in

[0027] Figure 8 It is another flowchart of a control method for a lighting fixture provided by an embodiment of the present application.

[0028] Figure 9 It is another flowchart of a control method for a lighting fixture provided by an embodiment of the present application.

[0029] Figure 10 It is another schematic diagram of the hardware structure of a lighting fixture provided by an embodiment of the present application.

[0030] Figure 11 It is a schematic diagram of the structure of a control device provided by an embodiment of the present application. Detailed implementation manners

[0031] In order to more clearly understand the above objects, features and advantages of the present application, the present application will be described in detail below with reference to the accompanying drawings and specific implementation manners. It should be noted that, without conflict, the implementation manners and features in the implementation manners of the present application can be combined with each other.

[0032] Many specific details are set forth in the following description in order to fully understand the present application. The described implementation manners are only a part of the implementation manners of the present application, rather than all of the implementation manners. All other implementation manners obtained by those of ordinary skill in the art based on the implementation manners in the present application without creative efforts fall within the scope of protection of the present application.

[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used in the description of this application herein are for the purpose of describing specific embodiments only and are not intended to limit this application.

[0034] Please refer to Figure 1 , which is a schematic diagram of a lighting fixture 100 provided for an embodiment of this application. It can be understood that the technical solution of the embodiment of this application can be applied to any scenario related to lighting fixture technology. As Figure 1 shown, the lighting fixture 100 may include: a controller 11, a monitoring unit 12, a power supply 13, and at least one light emitting diode (LED) module. It can be understood that Figure 1 taking three LED modules 14 as an example for illustration, it can be more than three or less than three.

[0035] Among them, the LED module 14 may include at least one control unit ( Figure 1 taking four control units S1, S2, S3, S4 as an example for illustration, it can be more than four or less than four). In one example, each of the control units S1, S2, S3, S4 may be electrically connected. It can be understood that the electrical connection includes cascade connection or parallel connection. In actual applications, the electrically connected control units are not specifically limited and can be determined according to specific application situations. The controller 11 is connected to one end of each LED module 14 and the power supply 13, and the power supply 13 supplies power to each LED module 14 through the controller 11. The monitoring end of the monitoring unit 12 is used to monitor the electrical parameters on the control unit connection loop and transmit the monitored electrical parameters to the controller 11, so that the controller 11 can control the operation of each control unit according to the electrical parameters.

[0036] In some application scenarios, the lighting fixture 100 may be, but is not limited to, devices such as a light strip, a string of lights, a curtain light, an ambient light, etc. In the LED module 14, each of the control units 142a, 142b, 142c, 142d may be connected in series or in parallel to form the lighting fixture 100. It can be understood that Figure 1 only the series connection of each control unit is shown as an example herein, and it is not limited to this in actual applications. It can be determined according to its specific application environment and is within the protection scope of this application.

[0037] Optionally, the control unit may include a driving chip and an LED, and one driving chip may be connected to one LED. That is, one driving chip may be only used to control the brightness of a single LED. Alternatively, in another optional implementation, the control unit may also include a driving chip and multiple LEDs, and one driving chip may be connected to multiple LEDs. In other words, one driving chip may be used to control the brightness of multiple LEDs. In one example, the lighting fixture 100 may be a light strip. If the lighting fixture 100 includes 100 driving chips, and one driving chip in the lighting fixture 100 is connected to and controls one LED, the lighting fixture 100 includes 100 LEDs, and each LED is connected to the corresponding driving chip so that the driving chip can control the corresponding LED to be turned on or off. In another example, if the lighting fixture 100 includes 100 driving chips, and one driving chip is connected to and controls three LEDs, the lighting fixture 100 includes 300 lamp beads, and each LED is connected to the corresponding driving chip so that the driving chip can control the corresponding LED to be turned on or off.

[0038] In another optional implementation, the control unit may also include multiple driving chips and multiple LEDs, and one driving chip may be connected to multiple LEDs, and multiple driving chips may also be connected to the same LED. In other words, one driving chip may be used to control the brightness of multiple LEDs. In one example, the lighting fixture 100 may be a light strip. If the lighting fixture 100 includes 100 driving chips, and one driving chip in the lighting fixture 100 is connected to and controls three LEDs, the lighting fixture 100 includes 300 LEDs, and each LED is connected to the corresponding driving chip so that one driving chip can control multiple corresponding LEDs to be turned on or off. In another example, if the lighting fixture 100 includes 100 driving chips and 50 LEDs, and two driving chips are connected to and control the same LED, the lighting fixture 100 includes 50 lamp beads, and each LED is connected to the corresponding driving chip so that any driving chip can control the same LED to be turned on or off.

[0039] In an optional implementation, the monitoring unit 12 may be integrated into the controller 11 so that the controller 11 can monitor the electrical parameters on the connection loop of the control unit and control the operation of each control unit according to the electrical parameters. Optionally, please refer to Figure 1 , the lighting fixture 100 may also include an independently provided controller 11 and a monitoring unit 12, and the monitoring unit 12 may be disposed on the side where the controller 11 is connected to the LED module 14, or may be disposed on the side where the controller 11 is connected to the power supply 13. There is no specific limitation here, and it can be determined according to its specific application environment, and all are within the protection scope of this application.

[0040] In practical applications, the controller 11 can continuously send corresponding control signals to each LED module 14 according to the standard communication protocol of the chip specification to control the operation of each control unit in the LED module 14.

[0041] It can be understood that Figure 1 The structure of the illustrated lamp 100 does not constitute a limitation on the lamp 100. The lamp 100 may include more or fewer components than those shown in the figure, and some components are not essential components of the lamp 100. They can be completely omitted or combined according to needs within the scope of not changing the essence of the invention.

[0042] Please refer to Figure 2 , which is a flowchart of the control method for a lamp provided in an embodiment of the present application.

[0043] It can be understood that in one application scenario, the control method for the lamp of the present application can be applied to the controller 11 in the lamp 100. Or, in another application scenario, the control method for the lamp of the present application can also be applied to the processor of a control device (such as an electronic device such as a mobile phone or a tablet computer). It can be understood that data interaction can be performed between the control device and the controller 11 through a wired communication method or a wireless communication method. After the control device generates a control instruction based on the control method for the lamp of the present application, the control instruction can be sent to the controller 11 of the lamp 100 through a communication link. Therefore, after receiving the control instruction from the control device, the controller 11 can only act as a medium for signal transmission, forward the control instruction to the corresponding LED module 14, and the driving chip in the LED module performs specific operations such as dimming and color adjustment. Based on such a design, the controller 11 in the lamp 100 can only act as a signal forwarding node, without integrating complex control logic units, reducing the hardware configuration requirements of the controller itself and lowering the cost of the controller. In addition, the control logic is concentrated at the control device end, and the controller only needs to implement basic communication functions, making the wiring simpler and shortening the overall development cycle.

[0044] In the following embodiments, the control method for the lamp will be described by taking the application of the control method for the lamp to the controller of the lamp as an example. The control method for the lamp may include the following steps: Step S201, obtain electrical parameters, and obtain the number of control units in the lamp according to the electrical parameters.

[0045] Taking Figure 1 the illustrated lamp 100 as an example for description, optionally, the controller 11 can control the power supply 13 to supply power to the control units in each LED module 14, so as to monitor the electrical parameters on each LED module 14 through the monitoring unit 12, and then obtain the number of control units in the lamp 100 according to the electrical parameters.

[0046] It can be understood that the electrical parameter can be the electrical parameter on the connection loop of the control unit. Specifically, the electrical parameter can be the electrical parameter on the series or parallel loop of the control unit, and no specific limitation is made here. When the electrical parameter is the electrical parameter on the parallel loop of the control unit, a chip with an address code can be used.

[0047] In practical applications, the electrical parameter can be the current value, voltage value or power value on the connection loop of the control unit. Specifically, when the voltage value on the connection loop of the control unit is constant, the power value on the connection loop of the control unit will increase as the current value increases, or decrease as the current value decreases. Therefore, in practical applications, when the voltage value on the connection loop of the control unit is constant, the number of control units in the lamp 100 can also be obtained according to the power value on the connection loop of the control unit.

[0048] It can be understood that in the embodiments of the present application, the electrical parameters of the LED module 14 can be obtained by controlling the state of the LEDs in the LED module 14, and the number of control units can be obtained according to the electrical parameters. The specific implementation manner can refer to the relevant descriptions of the embodiments Figures 3 to 7 shown below.

[0049] Step S202: Obtain the number of code elements of the lamp display device according to the number of control units and the number of channels of the control unit.

[0050] In practical applications, the number of channels of the control unit is pre-stored in the controller 11. After obtaining the number of control units in the lamp 100, the controller 11 can obtain the number of code elements of the lamp 100 according to the number of control units and the number of channels of the control unit. Optionally, the controller 11 can calculate the number of code elements of the lamp 100 according to the number of control units and the number of channels of the control unit. In practical applications, a derivation rule or a corresponding table can also be pre-set in the controller 11, so that the controller 11 can automatically generate the number of code elements of the lamp 100 according to the number of control units, the number of channels of the control unit, and the derivation rule or the corresponding table pre-set in the controller 11. In practical applications, it is not limited to this, and it can be determined according to its specific application environment, and all are within the protection scope of the present application.

[0051] In practical applications, the channels of the control unit can include multiple brightness levels, and the controller 11 can obtain the number of code elements of each channel according to the brightness level of the channel. For example, when a channel includes 255 levels of brightness, it can be obtained by binary calculation that 255 is an 8-bit binary number, that is, one channel is 8 code elements. In practical applications, the code elements of each channel can be known from this.

[0052] In one implementation, taking the example that the controller 11 calculates the number of symbol bits of the lamp 100 based on the number of control units and the number of channels of the control units, the controller 11 can obtain the number of symbol bits of the lamp 100 by calculating the number of control units and the number of channels of the control units. It can be understood that in an alternative implementation, the number of symbol bits of the lamp 100 can satisfy the following calculation formula (1): y = a×b + c (1) Where y is the number of symbol bits of the lamp 100, a is the number of control units (i.e., the number of driving chips), b is the number of channels, and c is the reset code. It can be understood that before the controller 11 sends each frame of data, the reset code needs to be sent 1 time in advance each time to notify the driving chips in the control units to prepare to receive new data.

[0053] Step S203, obtain the symbol duration of the control unit according to the number of symbol bits and the number of control units, so as to control the operation of the lamp according to the symbol duration.

[0054] In the control method of the lamp provided by the embodiments of the present application, the number of control units in the lamp can be obtained according to electrical parameters, so as to calculate the number of symbol bits of the lamp 100 according to the number of control units and the number of channels of the control units, or automatically generate the number of symbol bits of the lamp 100 according to the number of control units, the number of channels of the control units, and the preset derivation rules or corresponding tables in the controller 11. Furthermore, the symbol duration of the control unit is obtained according to the number of symbol bits and the number of control units, and the LED modules 14 in each control unit in the lamp 100 are controlled according to the symbol duration. On the premise of not reducing the display effect of the lamp 100, automatic adjustment of the symbol duration is realized, the frequency of data stream transmission and the electromagnetic radiation of the lamp 100 are reduced, and the product quality of the lamp 100 and the user experience are improved.

[0055] Please refer to Figure 3 , which is an implementation of the controller 11 of the present application for detecting the number of control units in the lamp, that is, step S201. Obtaining electrical parameters and obtaining the number of control units in the lamp according to the electrical parameters may include the following steps: Step S301, preset the detection quantity n, control the LEDs in the LED module according to the preset rules, and monitor the electrical parameters on the LED module, so as to obtain the number of control units in the LED module according to the electrical parameters.

[0056] The following will take the electrical parameter as current for example. In other examples, the electrical parameter can also be the power of the LED module 14. During the process of the control unit being lit, the voltage output by the power supply 13 remains constant. The resistance value on the LED module 14 will decrease as the control unit is lit, and the current value monitored by the monitoring unit 12 will increase as the resistance value decreases. When the current value on the LED module 14 no longer changes or no longer increases, it indicates that the number of control units no longer increases. According to Ohm's law I = U / R, the current value on the LED module 14 is the sum of the current values of each control unit, that is, I 总 =I 1 +I 2 +I 3+ ……+I n , where I is the current value on the LED module 14, U is the power supply 13, R is the resistance on the LED module 14, I 总 is the sum of the current values on the LED module 14, I 1 is the current value of the control unit S1, I 2 is the current value of the control unit S2, I 3 is the current value of the control unit S3, I n is the current value of the control unit Sn. Therefore, when the current value I 总 on the LED module 14 no longer changes or no longer increases, it indicates that the number of control units no longer increases. From this, the number of control units in each LED module 14 can be known. For example, when a driving chip is correspondingly connected to and controls one LED, the controller 11 can control the LED to be lit through the driving chip. In practical applications, every time the controller 11 controls a driving chip to light the corresponding LED, I 总 will increase by the corresponding current value I n .

[0057] Among them, the preset rule can be a setting rule that can achieve the effect of saving the number of detections and detection time through disorder detection. Specifically, the controller 11 controls the LEDs in the LED module 14 according to the preset rule, which can mean that the controller 11 sends a lighting signal to the n / 2th control unit. If the LED of the n / 2th control unit does not light up, the controller 11 can determine that there is no control unit from the n / 2th control unit to the nth control unit. The controller 11 continues to send the lighting signal of the (n / 2)-mth control unit. If the LED of the (n / 2)-mth control unit is lit, the controller 11 can determine that the (n / 2)-mth control unit exists. The controller 11 continues to send the lighting signal of the (n / 2)-m + 1th control unit. If the LED of the (n / 2)-m + 1th control unit does not light up, the controller 11 can determine that the number of control units in the LED module 14 is (n / 2)-m. Where m is a positive integer greater than or equal to 1. For example, the controller 11 can preset the detection quantity n. Taking the preset detection quantity n as 20 and I n = 1A as an example, as Figure 1 shown, the controller 11 first controls all control units in the LED module 14 to be in the extinguished state. Then the controller 11 can send a lighting signal to the control unit S10. At this time, if it is monitored that I n = 0A, the controller 11 can determine that there is no control unit S11 - S20 in the LED module 14. Then when the controller 11 controls the corresponding LED to light up by sending a lighting signal to the control unit S3, if I n = 1A at this time, the controller 11 can determine that there is a control unit S3 in the LED module 14. The controller 11 determines that there are at least 3 control units in the LED module 14. Then when the controller 11 sends a lighting signal to the control unit S4 to control the corresponding LED to light up, if I n = 2A at this time, the controller 11 can determine that there is a control unit S4 in the LED module 14. The controller 11 determines that there are at least 4 control units in the LED module 14. The controller 11 sends a lighting signal to the control unit S5. If I n is still 2A at this time, that is, the current value I 总 on the LED module 14 does not change. At this time, the controller 11 can determine that there is no control unit S5 in the LED module 14. The controller can detect that there are 4 control units in the LED module 14, that is, the controller 11 detects that the number of driver chips in the LED module 14 is 4.

[0058] In another implementation, the controller 11 can preset the detection quantity n. Taking the preset detection quantity n as 11 and I nTaking 1A as an example for illustration, the controller 11 first controls all the control units in the LED module 14 to be in the off state, and then the controller 11 sends a lighting signal to the control unit S11. At this time, if I n = 1A, the controller 11 can determine that there is a control unit S11 in the LED module 14. The controller continues to send a lighting signal to the control unit S15. At this time, if I n is still 1A, that is, the current value I 总 on the LED module 14 n has not changed. At this time, the controller 11 can determine that there is no control unit S15 in the LED module 14. The controller 11 continues to send a lighting signal to the control unit S14. At this time, if I 总 is still 1A, that is, the current value I n on the LED module 14 has not changed. At this time, the controller 11 can determine that there is no control unit S14 in the LED module 14. The controller 11 continues to send a lighting signal to the control unit S13. At this time, if I

[0059] Step S302, determine that the sum of the number of control units in each LED module is the number of control units in the lamp.

[0060] For example, please refer to Figure 1 , when the number of control units in each LED module 14 is 4, and the lamp 100 includes 3 LED modules 14, the controller 11 determines that the sum of the number of control units in each LED module 14 is the number of control units in the lamp 100, that is, the number of control units in the lamp 100 is 12, that is, the controller 11 can determine that there are 12 driving chips in the lamp 100.

[0061] Based on the above Figure 3 embodiment, the present application can detect the number of driving chips through a preset detection quantity, that is, through a limited number of test times, it is possible to detect the number of driving chips without detecting the driving chips in a preset order, thereby saving the detection time and being able to detect the number of driving chips more quickly, improving the user experience.

[0062] Please refer to Figure 4 , which is another implementation manner for the controller 11 of the present application to detect the number of control units in the lamp, that is, step S201, obtain electrical parameters. According to the electrical parameters, obtaining the number of control units in the lamp may include the following steps: Step S401: Control the first LED to the nth LED in the LED module to be in the first state in sequence, and monitor the electrical parameters on the LED module. Determine the number of control units based on the electrical parameters. Taking the electrical parameter as the current value as an example, it can be understood that when the (n - 1)th LED is in the first state, the current value on the LED module is the first current value. When the nth LED is in the first state and the current value on the LED module is the first current value, it is determined that the number of control units in the LED module is n - 1. It can be understood that the first state can be the lit state.

[0063] The following will take the electrical parameter as the current for example. In other examples, the electrical parameter can also be the power or voltage of the LED module 14. During the sequential lighting process of the control units, the voltage output by the power supply 13 remains constant. The resistance value on the LED module 14 will decrease as the control units are lit, and the current value monitored by the monitoring unit 12 will increase as the resistance value decreases. When the current value on the LED module 14 no longer changes or no longer increases, it indicates that the number of control units no longer increases.

[0064] In practical applications, according to Ohm's law I = U / R, the current value on the LED module 14 is the sum of the current values of each control unit, that is, I 总 =I 1 +I 2 +I 3+ ……+I n , where I is the current value on the LED module 14, U is the power supply 13, R is the resistance on the LED module 14, I 总 is the sum of the current values on the LED module 14, I 1 is the current value of the control unit S1, I 2 is the current value of the control unit S2, I 3 is the current value of the control unit S3, I n is the current value of the control unit Sn. Therefore, when the current value I 总 on the LED module 14 no longer changes or no longer increases, it indicates that the number of control units no longer increases, and thus the number of control units in each LED module 14 can be known. For example, when a driving chip is correspondingly connected to and controls one LED, the controller 11 can control the LED to light through the driving chip. In practical applications, every time the controller 11 controls a driving chip to light the corresponding LED, I 总 will increase by the corresponding current value I n .

[0065] For example, taking I n = 1A as an example for display, the controller 11 controls each control unit in the LED module 14 to light up one by one in a preset order, such as Figure 1As shown, the controller 11 controls the corresponding LED to light up through the control unit S1. At this time, I n = 1A. The controller 11 determines that there is at least 1 control unit in the LED module 14. Then, the controller 11 controls the corresponding LED to light up through the control unit S2. At this time, I n = 2A. The controller 11 determines that there are at least 2 control units in the LED module 14. The controller 11 controls the corresponding LED to light up through the control unit S3. At this time, I n = 3A. The controller 11 determines that there are at least 3 control units in the LED module 14. The controller 11 controls the corresponding LED to light up through the control unit S4. At this time, I n = 4A. The controller 11 determines that there are at least 4 control units in the LED module 14. When the controller 11 controls the corresponding LED to light up through the control unit S5, I n is still 4A. At this time, the current value I on the LED module 14 总 does not change. At this time, the controller 11 determines that there are only 4 control units in the LED module 14.

[0066] Step S402: Determine that the sum of the number of control units in each LED module is the number of control units in the lamp.

[0067] For example, please refer to Figure 1 . When the number of control units in each LED module 14 is 4, and the lamp 100 includes 3 LED modules 14, the controller 11 determines that the sum of the number of control units in each LED module 14 is the number of control units in the lamp 100, that is, the number of control units in the lamp 100 is 12, that is, the controller 11 can determine that there are 12 driving chips in the lamp 100.

[0068] Based on the above Figure 4 embodiment, the controller 11 of the present application can detect the number of driving chips in sequence, which is easier to implement in software, and the control program logic is simpler and easier to write. The overall visual experience presented to the user is better, improving the user experience.

[0069] Please refer to Figure 5 . For another implementation manner of the controller 11 of the present application to detect the number of control units in the lamp, that is, step S201: Obtain electrical parameters. Obtaining the number of control units in the lamp according to the electrical parameters may include the following steps: Step S501: Control one LED among the first LED to the nth LED in the LED module to be in the first state, and control the remaining LEDs to be in the second state. If the nth LED is controlled to be in the first state and the electrical parameter value on the LED module is less than the preset threshold, determine that the number of control units in the LED module is n - 1. Here, the first state is the lit state, and the second state is the extinguished state.

[0070] It can be understood that in some alternative implementation manners, the preset threshold in step S501 can be 0, or it can also be a value approaching 0.

[0071] The following will take the electrical parameter as current as an example for illustration. In other examples, the electrical parameter can also be the power or voltage of the LED module 14. During the process of controlling one LED in the LED module 14 to be lit and the remaining LEDs to be extinguished, the resistance value on the LED module 14 remains unchanged, and the voltage and current values are kept constant. When all the control units on the LED module 14 are extinguished and the resistance value on the LED module 14 is zero, it can be known from I = U / R that the current value on the LED module 14 is zero. At this time, the number of control units no longer increases, and thus the number of control units on the LED module 14 can be known. Here, I is the current value on the LED module 14, U is the power supply 13, and R is the resistance on the LED module 14.

[0072] For example, taking I = 1A as an example for display, please refer to Figure 1, the controller 11 first controls the control unit S1 in the LED module 14 to light up and controls the control units S2, S3, and S4 to turn off. At this time, the current value on the LED module 14 is 1 A. The controller 11 determines that there is 1 control unit in the LED module 14. Then, the controller 11 controls the control units S1, S3, and S4 to turn off and simultaneously controls the control unit S2 to light up. At this time, the current value on the LED module 14 is 1 A. The controller 11 determines that there are 2 control units in the LED module 14. After the control unit S2 lights up, it controls the control units S1, S2, and S4 to turn off and simultaneously controls the control unit S3 to light up. At this time, the current value on the LED module 14 is 1 A. The controller 11 determines that there are 3 control units in the LED module 14. Then, it controls the control units S1, S2, and S3 to turn off and simultaneously controls the control unit S4 to light up. At this time, the current value on the LED module 14 is 1 A. The controller 11 determines that there are 4 control units in the LED module 14. Finally, it controls the control units S1, S2, S3, and S4 to turn off and controls the next control unit to light up. Since there is no next control unit on the LED module 14 at this time, the resistance R on the LED module 14 reaches the maximum, and the current value I is less than a current threshold. Since there is still a certain resistance during the standby process of the control unit, after all the control units are turned off, there is still a certain standby current on the control unit connection loop, that is, the current of the LED module 14 can approach 0 at this time. Therefore, the controller 11 determines that there are only 4 control units on the LED module 14.

[0073] It can be understood that in step S501, the electrical parameter is exemplified by the current value. In other possible implementation manners, the electrical parameter can also be a power value or a voltage value.

[0074] Step S502, determine that the sum of the number of control units in each LED module is the number of control units in the lamp.

[0075] For example, please refer to Figure 1 , when the number of control units in each LED module 14 is 4, and the lamp 100 includes 3 LED modules 14, the controller 11 determines that the sum of the number of control units in each LED module 14 is the number of control units in the lamp 100, that is, the number of control units in the lamp 100 is 12.

[0076] Based on the above Figure 5In an embodiment, when detecting the driving chip in the LED module 14, since only one LED needs to be lit each time, the current on the LED module 14 remains unchanged, and the current fluctuation is small. In this way, the impact on components is smaller, and component failure and parameter variation in the lamp caused by current impact can be avoided. Moreover, since only one LED needs to be lit each time, there will be no situation where multiple LEDs participate in chip detection simultaneously and cause dazzling or glaring effects when lighting and extinguishing together, improving the user experience. In addition, the number of driving chips can be directly obtained without counting calculations, reducing the calculation amount and improving the detection efficiency.

[0077] Please refer to Figure 6 , which is another implementation manner for the controller 11 of the present application to detect the number of control units in the lamp, that is, step S201, obtaining electrical parameters. Obtaining the number of control units in the lamp according to the electrical parameters may include the following steps: Step S601, preset the maximum value n of the number of control units, control the first LED to the nth LED in the LED module to be in the first state, and then control the first LED to the nth LED in the LED module to be in the second state in the first order; wherein, when controlling the (n - 1)th LED to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value. When the nth LED is in the second state and the electrical parameter value on the LED module is less than the preset threshold or the current value does not change, it is determined that the number of control units in the LED module is n.

[0078] It can be understood that in some optional implementation manners, the preset threshold in step S601 can be 0, or it can also be a value approaching 0.

[0079] Among them, the first state is the lit state, and the second state is the extinguished state.

[0080] It can be understood that the first state can be the lit state, and the second state can be the extinguished state. In other words, before controlling the lamp 100, the controller 11 can preset the maximum value (i.e., the maximum value n for detecting the number of driving chips), and control all control units in the LED module 14 to be in the lit state, and then output extinguishing signals to each control unit in the LED module 14 in the first order to control the control units in the LED module 14 to extinguish.

[0081] The following will take the electrical parameter as current for illustration. In other examples, the electrical parameter can also be the power of the LED module 14. For example, the controller 11 can preset a maximum value n, that is, the controller 11 can preset the maximum number of control units in the LED module 14 to be n. In this embodiment, the preset maximum value n is taken as 6 for illustration. The controller 11 controls all the control units in the LED module 14 to light up, and then sequentially sends out extinguishing signals to the control units in the LED module 14 in a first order to control each control unit to extinguish in sequence. It can be understood that the first order can be the sorting of the serial numbers of the control units in the LED module 14 from small to large in sequence. For example, the above-mentioned first order can refer to the sorting formed by the control unit S1, the control unit S2, the control unit S3, the control unit S4, the control unit S5, and the control unit S6 in sequence. In the first order, the control unit S1 is ranked first, and the control unit S6 is ranked last (when the preset maximum value n is equal to 6). When the controller 11 controls the control unit S1, the control unit S2, and the control unit S3 to extinguish, the current value in the LED module 14 decreases as the control units in the LED module 14 extinguish, that is, the current value of the LED module 14 changes. When the controller 11 outputs an extinguishing signal to the control unit S4, the current value on the LED module 14 is less than the preset threshold (that is, at this time, the current of the LED module 14 approaches 0 and can be regarded as zero current) or the current value of the LED module 14 does not change. At this time, the controller 11 can determine that the number of control units in the LED module 14 is 4.

[0082] It can be understood that in step S601, the electrical parameter is illustrated by the current value. In other possible implementation manners, the electrical parameter can also be the power value.

[0083] Step S602, determine that the sum of the number of control units in each LED module is the number of control units in the lamp.

[0084] For example, please refer to Figure 1 , when the number of control units in each LED module 14 is 4, and the lamp 100 includes 3 LED modules 14, the controller 11 determines that the sum of the number of control units in each LED module 14 is the number of control units in the lamp 100, that is, the number of control units in the lamp 100 is 12.

[0085] Based on the above Figure 6In an embodiment of the present application, the controller 11 of the present application presets a maximum value and controls all control units in the LED module 14 to be in the lit state, and then sequentially controls all control units in the LED module 14 to be in the extinguished state in the first order. By monitoring the current value on the LED module 14, the number of control units in each LED module 14 is obtained. Based on such a design, the present application can not only automatically judge or detect the number of chips for better function mode adaptation, but also more intuitively judge the working state of the overall lamp.

[0086] Please refer to Figure 7 , which is another implementation manner for the controller 11 of the present application to detect the number of control units in the lamp, that is, step S201, obtaining electrical parameters, and obtaining the number of control units in the lamp according to the electrical parameters may include the following steps: Step S701, preset the maximum value n of the number of control units, control the first LED to the nth LED in the LED module to be in the first state, and then sequentially control the nth LED to the first LED in the LED module to be in the second state in the second order; wherein, when controlling the nth LED to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value, when controlling the (n - 1)th LED to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value, and when the (n - 2)th LED is in the second state and the electrical parameter value on the LED module is the second electrical parameter value, it is determined that the number of control units in the LED module is n - 2.

[0087] It can be understood that the first state may be the lit state, and the second state may be the extinguished state.

[0088] The following will take the electrical parameter as current for illustration. In other examples, the electrical parameter can also be the power of the LED module 14. For example, the controller 11 can preset a maximum value n, that is, the controller 11 can preset the maximum number of control units in the LED module 14 to be n. In this embodiment, an example is given with the preset maximum value n being 6. The controller 11 controls all the control units in the LED module 14 to light up, and then sequentially sends extinguishing signals to the control units in the LED module 14 in a second order to control each control unit to extinguish in sequence. It can be understood that the second order can be the sorting of the serial numbers of the control units in the LED module 14 from largest to smallest. For example, the above-mentioned second order can refer to the sorting formed by the control unit S6, the control unit S5, the control unit S4, the control unit S3, the control unit S2, and the control unit S1 in sequence. In the second order, the control unit S6 is ranked first (when the preset maximum value n is equal to 6), and the control unit S1 is ranked last. When the controller 11 controls the LED corresponding to the control unit S6 to extinguish, the current on the LED module 14 is the first current value. When the controller 11 controls the LED corresponding to the control unit S5 to extinguish, the current on the LED module 14 is also the first current value. Since there is no control unit S6 and control unit S5 in the loop, the resistance value and current value in the loop connected to the LED module 14 do not change at this time. When the controller 11 outputs an extinguishing signal to the control unit S4, the current value on the LED module 14 becomes the second current value, where the second current value is less than the first current value. At this time, the current on the LED module 14 changes, and the controller 11 can determine that there is a control unit S4 in the LED module 14, and the controller 11 can determine that the number of control units in the LED module 14 is 4.

[0089] It can be understood that in step S701, the electrical parameter is illustrated with a current value. In other possible implementation manners, the electrical parameter can also be a power value.

[0090] S702, determine that the sum of the number of control units in each LED module is the number of control units in the lamp.

[0091] For example, please refer to Figure 1 , when the number of control units in each LED module 14 is 4, and the lamp 100 includes 3 LED modules 14, the controller 11 determines that the sum of the number of control units in each LED module 14 is the number of control units in the lamp 100, that is, the number of control units in the lamp 100 is 12.

[0092] Based on the above Figure 7 embodiment, the present application can not only automatically judge or detect the number of chips, but also more intuitively judge the working state of the overall lamp. In addition, compared with Figure 6In an embodiment, this embodiment can also improve the detection speed and perform detection quickly.

[0093] In one embodiment, please refer to Figure 8 As shown, in step S203, obtaining the symbol duration of the control unit according to the number of symbol bits and the number of control units, and controlling the operation of the lamp according to the symbol duration includes the following steps: Step S801, obtaining a control instruction of the lamp, and obtaining the frame rate of the functional unit according to the control instruction.

[0094] It can be understood that the control instruction can be built into this device or sent to the lamp 100 by the cloud. Exemplarily, the control instruction can be encoded information sent by an electronic device (such as a mobile phone) to the lamp 100 through Wi-Fi or Bluetooth.

[0095] In practical applications, the functional unit corresponding to the control instruction is pre-stored in the controller 11. Among them, the functional unit can refer to a combination of functional characteristics, that is, a combination of the brightness, time, and color change of the LED lamp, etc. For example, within a time period from 1 s to 10 s, the brightness of the LED will change and the color will also change. Specifically, after the controller 11 obtains the control instruction, it can obtain the frame rate in the corresponding functional unit according to the control instruction.

[0096] Step S802, obtaining the duration of a single frame according to the frame rate.

[0097] It can be understood that the duration of a single frame can satisfy the following calculation formula (2): t1 = 1 / v1 (2) Wherein, t1 is the duration of a single frame, and v1 is the frame rate.

[0098] As can be seen from the above formula (2), when the frame rate v1 is a known number, the specific value of the duration of a single frame can be obtained by combining formula (2). In practical applications, the duration of a single frame is the display duration required for each frame in the lamp 100. The unit of the frame rate can be frames per second, that is, FPS, and the unit of the duration of a single frame can be milliseconds, that is, ms.

[0099] For example, when the frame rate is 30 FPS, as can be seen from the above formula (2), the duration of a single frame = 1 s / 30 FPS ≈ 0.0333 s = 33.33 ms. In practical applications, it is not limited to this, and it can be determined according to its specific application environment, and all are within the protection scope of this application.

[0100] Step S803, obtaining the duration of a single symbol corresponding to the duration of a single frame according to the duration of a single frame, the number of control units, and the number of symbol bits.

[0101] Optionally, the duration of a single frame, the number of control units, and the number of symbol bits can be known from the above steps.

[0102] It can be understood that the duration of a single symbol can satisfy the following calculation formula (3): t2 = t1 / (n1×d1) (3) Wherein, t2 is the duration of a single symbol, t1 is the duration of a single frame, n1 is the number of control units, and d1 is the number of symbol bits. The duration of a single symbol of the lamp 100 can be obtained from the above formula (3). Among them, the number of control units is the number of driving chips in the lamp 100, and the number of symbol bits is the number of bits required by each chip. In practical applications, the symbol of each driving chip can be 24 bits. If one driving chip controls 3 LEDs, then the number of symbol bits of each LED is 8 bits.

[0103] For example, when the duration of a single frame is 0.0333 s, the lamp 100 includes 100 driving chips, and the number of symbol bits of each driving chip is 24 bits. From the single symbol duration = 0.0333 / (100×24) = 0.0333 / 2400≈0.000013875 s = 13.875 μs, it can be known that the duration of a single symbol is 13.875 μs. In practical applications, it is not limited to this, and it can be determined according to its specific application environment, and all are within the protection scope of this application.

[0104] Step S804, determine whether the duration of a single symbol is less than the first preset symbol duration.

[0105] The controller 11 determines whether the duration of a single symbol is less than the first preset symbol duration. When the duration of a single symbol is less than the first preset symbol duration, the duration of a single symbol meets the stability requirements of the control unit and the chip specifications. At this time, step S805 is executed. When the duration of a single symbol is not less than the first preset symbol duration, the duration of a single symbol does not meet the stability requirements of the control unit and the chip specifications. At this time, step S806 is executed.

[0106] Optionally, the first preset symbol duration is pre-stored in the controller 11. The first preset symbol duration can be the data packet reset duration or the set duration preset by the user according to the control unit chip specification requirements and stored in the controller 11. The data packet reset duration is the minimum symbol duration requirement in the control unit chip specification requirements. No specific limitation is made here, and it can be determined according to its actual application environment.

[0107] Step S805, control the operation of the control unit according to the frame rate and the duration of a single symbol.

[0108] When the duration of a single symbol is less than the first preset symbol duration, the duration of a single symbol meets the stability requirements of the control unit and the chip specifications. At this time, the controller 11 retrieves information such as the brightness and grayscale values of the control unit stored in advance inside it, generates a data packet protocol according to the duration of a single symbol, and then outputs the data packet to the control unit according to the frame rate to meet the display requirements of the lamp 100, controls the control unit to work, and at the same time minimizes the electromagnetic radiation and energy consumption of the lamp 100. It can be understood that the data packet protocol can refer to that the generated data packet realizes a specific function according to a preset definition.

[0109] Step S806, increase the frame rate of the functional unit.

[0110] When the duration of a single symbol is not less than the first preset symbol duration, the duration of a single symbol does not meet the stability requirements of the control unit and the chip specifications. At this time, the controller 11 increases the frame rate of the functional unit, and then returns to execute step S802.

[0111] Optionally, when the duration of a single symbol is not less than the first preset symbol duration, the controller 11 can control the frame rate to increase by a preset value, and then return to execute step S802. The value of the preset value is not specifically limited here and can be determined according to its actual application environment, and all are within the protection scope of this application.

[0112] Based on the above Figure 8 illustrated embodiments, the controller of the present application can be adapted according to the frame rate of the functional unit, and in the case of unknown symbol duration, meet the functional requirements with the optimal symbol duration combination, that is, optimize and reduce the radiation frequency and radiation power, comply with and meet the relevant national electromagnetic compatibility regulations, and improve the use quality of the lamp and the user experience.

[0113] In one embodiment, please refer to Figure 9 shown, step S203, obtaining the symbol duration of the control unit according to the number of symbol bits and the number of control units, and controlling the lamp to work according to the symbol duration may include the following steps: Step S901, obtain the second preset symbol duration, and obtain the refresh rate within 1 s according to the number of symbol bits and the second preset symbol duration.

[0114] The refresh rate can satisfy the following calculation formula (4): v2 = 1 / (d1 × t3) (4) where v2 is the refresh rate, d1 is the number of symbol bits, and t3 is the second preset symbol duration.

[0115] The refresh rate of the lamp 100 can be obtained from the above formula (4). Among them, the refresh rate v2 is the number of times the control unit updates the data related to the number of symbol bits per second. The number of symbol bits d1 is the number of binary bits that the control unit needs to transmit. The second preset symbol duration t3 is the minimum symbol duration required for the control unit to transmit the number of symbol bits. The symbol duration can be obtained through actual tests and is pre-stored in the controller 11. No specific limitation is made here, and it can be determined according to its actual application environment, all within the protection scope of this application. Among them, the second preset symbol duration can be specified in the driver chip specification book or can be built into the driver chip.

[0116] For example, when the number of symbol bits is 8 bits and the second preset symbol duration is 0.1 ms, it can be known from the above formula (4) that the refresh rate is 1250, that is, the control unit needs to update the data related to the number of symbol bits 1250 times per second.

[0117] Step S902, determine whether the refresh rate is less than the preset refresh rate.

[0118] Specifically, when the refresh rate is less than the preset refresh rate, there will be a phenomenon of stuttering or inconsistent lighting of the control unit during the display process of the lamp 100. At this time, the refresh rate does not meet the requirements, so step S903 is executed; when the refresh rate is greater than or equal to the preset refresh rate, step S904 is executed.

[0119] Optionally, the controller 11 stores the preset refresh rates of each functional unit internally. The preset refresh rate is the functional requirement refresh rate or the set refresh rate of the corresponding functional unit, which can be set according to the specific application scenario in the actual application environment. No specific limitation is made here, and it can be determined according to its actual application environment, all within the protection scope of this application.

[0120] Step S903, trigger the alarm unit to alarm.

[0121] In an alternative implementation, please refer to Figure 10 , the lamp 100 further includes an alarm unit 15. The alarm unit 15 is connected to the controller 11. When the refresh rate is less than the preset refresh rate, there will be a phenomenon of stuttering or inconsistent lighting of the control unit during the display process of the lamp 100. At this time, the refresh rate does not meet the requirements. Therefore, the controller 11 can trigger the alarm unit 15 to alarm to remind the user that the refresh rate does not meet the display requirements of the lamp 100, so that the user can adjust the second preset symbol duration. In actual applications, the alarm device can be a display or an external terminal.

[0122] In one implementation, if the alarm device is a display, when the refresh rate is less than the preset refresh rate, the controller 11 controls the control unit in the display to display a specific color or a blinking state to remind the user that the refresh rate does not meet the display requirements of the lamp 100, so that the user can adjust the second preset symbol duration.

[0123] In one implementation, if the alarm device is an external terminal and the external terminal is a mobile phone, when the refresh rate is less than the preset refresh rate, the controller 11 sends an alarm signal to the mobile phone to control the program in the mobile phone to remind the user that the refresh rate does not meet the display requirements of the lamp 100, so that the user can adjust the second preset symbol duration.

[0124] Step S904, obtain the control instruction of the lamp, and obtain the required refresh rate of the functional unit according to the control instruction.

[0125] In practical applications, the functional units corresponding to the control instructions are pre-stored in the controller 11, and the functional units include information such as the frame rate of the lamp 100, the required refresh rate, the display time and color of the control unit, etc.

[0126] The required refresh rate may be a preset fixed refresh rate, and the control instruction may be sent from the cloud to the control device, or sent from the mobile terminal to the execution device. In practical applications, it is not limited to this, and it can be determined according to its specific application environment.

[0127] In practical applications, the required refresh rate affects the display stability and smoothness of the lighting fixture 100. The preset required refresh rate for different functional units can be determined according to the requirements of the corresponding functional units. In practical applications, when the lighting fixture 100 displays dynamic content or the display device is applied to scenarios with high visual effect requirements, such as in stage lighting effect displays or high-definition video projections, etc., the display stability and smoothness of the lighting fixture 100 can be improved by increasing the required refresh rate to reduce the flashing speed of the lighting fixture 100, thereby reducing the user's visual fatigue. For example, when the required refresh rate of the lighting fixture 100 is 60 Hz, it means that the lighting fixture 100 can display 60 complete pictures per second. Optionally, when the lighting fixture 100 is a decorative lighting fixture in a children's room, the preset fixed refresh rate can be set between 30 Hz and 60 Hz, and the preset fixed refresh rate can be used as the required refresh rate, so that the display device can display simple patterns and achieve smooth animation display, meeting the requirements of the interesting display effect of the decorative lighting fixture in the children's room. Optionally, when it is necessary for the lighting fixture 100 to flash quickly or change colors to create a tense and enthusiastic atmosphere, the preset fixed refresh rate of the lighting fixture 100 can be increased to make the lighting change of the lighting fixture 100 more rapid and accurate. Then, during a stage performance, after the user sends a corresponding control instruction to the lighting fixture 100, the lighting fixture 100 can determine the preset fixed refresh rate in the "stage mode" functional unit or the "performance mode" functional unit as the required refresh rate of the lighting fixture 100, so that the light effect of the lighting fixture 100 can cooperate with the stage performance.

[0128] Specifically, when the refresh rate is greater than or equal to the preset refresh rate, the controller 11 obtains a control instruction to obtain the required refresh rate in the corresponding functional unit according to the control instruction.

[0129] Step S905: Obtain the single-frame duration in the functional unit according to the required refresh rate.

[0130] The single-frame duration in the functional unit can satisfy the following calculation formula (5): t1 = 1 / v3 (5) Where, t1 is the single-frame duration in the functional unit, and v3 is the required refresh rate.

[0131] It can be understood that when the required refresh rate v3 is known, the specific value of the single-frame duration in the functional unit can be obtained from the above formula (5). In practical applications, it is not limited to this, and it can be determined according to its specific application environment, and all are within the protection scope of this application.

[0132] For example, when the required refresh rate is 60 Hz, according to the above formula (5), the duration of a single frame is approximately 0.0167 s, that is, the time for the lamp 100 to display each frame of the picture is about 0.0167 s. After the lamp 100 finishes displaying the current picture, it randomly switches to the next frame of the picture, and so on, thus forming a continuous visual effect.

[0133] Step S906: Obtain the duration of a single symbol corresponding to the duration of a single frame according to the duration of a single frame, the number of control units, and the number of symbol bits.

[0134] Optionally, the duration of a single symbol corresponding to the duration of a single frame in the functional unit can be obtained from the above calculation formula (3).

[0135] Step S907: Obtain the working duration of the control unit according to the duration of a single symbol and the first preset symbol duration.

[0136] When the duration of a single symbol is less than the first preset symbol duration, the duration of a single symbol meets the requirements of the stability of the control unit and the chip specifications. At this time, the duration of a single symbol is obtained as the working duration of the control unit. When the duration of a single symbol is greater than or equal to the first preset symbol duration, the duration of a single symbol does not meet the requirements of the stability of the control unit and the chip specifications. At this time, the first preset symbol duration is obtained as the working duration of the control unit.

[0137] Optionally, the first preset symbol duration is pre-stored in the controller 11. The first preset symbol duration can be the data packet reset duration or the set duration preset by the user according to the control unit chip specification requirements and stored in the controller 11. The data packet reset duration is the minimum symbol duration requirement in the control unit chip specification requirements, and no specific limitation is made here, and it can be determined according to its specific application environment.

[0138] Step S908: Control the operation of the control unit according to the required refresh rate and the duration of a single symbol.

[0139] When the duration of a single symbol is less than the first preset symbol duration, the controller 11 retrieves information such as the brightness and gray value of the control unit pre-stored in it to control the operation of the control unit according to the duration of a single symbol and the required refresh rate. When the duration of a single symbol is greater than or equal to the first preset symbol duration, the controller 11 retrieves information such as the brightness and gray value of the control unit pre-stored in it to control the operation of the control unit according to the first preset symbol duration and the required refresh rate.

[0140] In this embodiment, the refresh rate within 1 s is obtained based on the number of symbol bits and the second preset symbol duration. When the refresh rate is less than the preset refresh rate, the alarm unit 15 is triggered to alarm, prompting the user that the current refresh rate may cause stuttering during the display of the lamp 100 or the lighting of the control unit is not coherent, so that the user can adjust the second preset symbol duration. When the refresh rate is greater than or equal to the preset refresh rate, the controller 11 obtains a control instruction, obtains the required refresh rate in the corresponding functional unit according to the control instruction, and obtains the single-frame duration in the functional unit according to the required refresh rate. Furthermore, the single symbol duration corresponding to the single-frame duration is obtained based on the single-frame duration, the number of control units, and the number of symbol bits. When the single symbol duration is less than the first preset symbol duration, the single symbol duration is obtained as the working duration of the control unit, or when the single symbol duration is greater than or equal to the first preset symbol duration, the first preset symbol duration is obtained as the working duration of the control unit, and then the control unit is controlled to work according to the working duration.

[0141] It can be understood that in one application scenario, the control method of the lamp of the present application can be applied to the controller of the lamp. In some other application scenarios, the control method of the lamp of the present application can also be applied to a control device.

[0142] Please refer to Figure 11 , as Figure 11 shown, the present application also provides a control device 200, which can be used to control the lamp 100. It can be understood that the control device 200 of the present application can be an electronic device such as a mobile phone or a tablet computer. As an example, the user can control the lamp 100 through a relevant application program (APP) installed in the control device 200.

[0143] The control device 200 may include: at least one processor 20; and a memory 30 communicatively connected to the at least one processor 20; wherein, the memory 30 stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor 20 so that the at least one processor 20 can execute the above Figures 1 to 10 control method of the lamp shown in the embodiment to control the lamp 100.

[0144] Among them, the memory 30 and the processor 20 are connected in a bus manner. The bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 20 and the memory 30 together. The bus may also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, etc., which are well known in the art, and thus will not be further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on the transmission medium. The data processed by the processor 20 is transmitted on the wireless medium through the antenna. Further, the antenna also receives data and transmits the data to the memory 30. The processor 20 is responsible for managing the bus and general processing, and may also provide various functions, including timing, peripheral interface, voltage regulation, power management 13, and other control functions. The memory 30 may be used to store the data used by the processor 20 when performing operations.

[0145] This application also provides a computer-readable storage medium storing a computer program 40. When the computer program 40 is stored in the memory 30 and can be executed by the processor 20, it implements the control method of the above-mentioned lamp 100. The computer program 40 may be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, electrical signal, and software distribution medium, etc.

[0146] For those skilled in the art, it is obvious that this application is not limited to the details of the above-mentioned exemplary embodiments, and without departing from the spirit or basic characteristics of this application, this application can be implemented in other specific forms. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of this application is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be encompassed in this application. Any reference signs in the claims should not be regarded as limiting the claims involved. In addition, obviously, the word "including" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or systems stated in the system claims may also be implemented by the same unit or system through software or hardware. First, second, etc. are used to denote names and do not represent any specific order.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A method for controlling a lamp, characterized in that: The lamp comprises a monitoring unit and at least one LED module, the LED module comprises at least one control unit, each of the control units is connected in circuit, and the monitoring unit is used to monitor the electrical parameters on the control unit connection circuit; the control method of the lamp comprises: Acquiring the electrical parameters, and deriving the number of control units according to the electrical parameters; Determining the number of code element bits of the lamp according to the number of control units and the number of channels of the control unit; The symbol duration of the control unit is obtained according to the number of symbol bits and the number of control units, so as to control the operation of the lamp according to the symbol duration.

2. The lamp control method according to claim 1, characterized in that: The step of obtaining the symbol duration of the control unit according to the number of symbol bits and the number of control units, so as to control the operation of the lamp according to the symbol duration, comprises: Obtaining a control instruction of the lamp, and obtaining a frame rate of the functional unit according to the control instruction; Determine the duration of a single frame according to the frame rate; Determine a single symbol duration corresponding to the single frame duration according to the single frame duration, the number of control units and the number of symbol bits; In response to the single symbol duration being less than a first preset symbol duration, the lamp is controlled to operate according to the frame rate and the single symbol duration.

3. The lamp control method according to claim 1, characterized in that: The step of obtaining the symbol duration of the control unit according to the number of symbol bits and the number of control units, so as to control the operation of the lamp according to the symbol duration, comprises: Obtaining a second preset symbol duration, and deriving a refresh rate within a preset time according to the number of symbol bits and the second preset symbol duration; When the refresh rate is greater than or equal to the preset refresh rate, obtaining a control instruction of the lamp, and deriving a required refresh rate of the functional unit according to the control instruction; Determine the single frame duration in the functional unit according to the required refresh rate; Determine a single symbol duration corresponding to the single frame duration according to the single frame duration, the number of control units and the number of symbol bits; In response to the single symbol duration being less than a first preset symbol duration, the lamp is controlled to operate according to the refresh rate and the single symbol duration.

4. The lamp control method according to claim 3, characterized in that: The lamp further includes an alarm unit, which is connected to a controller. The control method of the lamp further includes: When the refresh rate is lower than the preset refresh rate, the alarm unit is triggered to sound an alarm.

5. The lamp control method according to any one of claims 1 to 4, characterized in that: Also includes: The electrical parameters of the LED module are acquired by controlling the state of the LED in the LED module, and the number of control units is obtained according to the electrical parameters.

6. The lamp control method according to claim 5, characterized in that: The control unit includes a driving chip and an LED, the LED is connected to the driving chip, the state of the LED in the LED module is controlled to obtain the electrical parameters of the LED module, and the number of the control units is obtained according to the electrical parameters, including: Preset the detection quantity n, control the LEDs in the LED module according to the preset rules, and monitor the electrical parameter values ​​on the LED module to obtain the number of control units in the LED module according to the electrical parameter values; The sum of the numbers of the control units in each of the LED modules is determined to be the number of control units in the lamp.

7. The lamp control method according to claim 5, characterized in that: The control unit includes a driving chip and an LED, the LED is connected to the driving chip, the state of the LED in the LED module is controlled to obtain the electrical parameters of the LED module, and the number of the control units is obtained according to the electrical parameters, including: sequentially controlling the first LED to the nth LED in the LED module to be in a first state, and monitoring the electrical parameters on the LED module; wherein, when the n-1th LED is controlled to be in the first state, the current value on the LED module is the first electrical parameter value, and when the nth LED is in the first state and the current value on the LED module is the first electrical parameter value, determining that the number of control units in the LED module is n-1; The sum of the numbers of the control units in each of the LED modules is determined to be the number of control units in the lamp.

8. The lamp control method according to claim 5, characterized in that: The control unit includes a driving chip and an LED, the LED is connected to the driving chip, the state of the LED in the LED module is controlled to obtain the electrical parameters of the LED module, and the number of the control units is obtained according to the electrical parameters, including: Controlling one of the first LED to the nth LED in the LED module to be in a first state, and controlling the remaining LEDs to be in a second state, and if the nth LED is controlled to be in the first state and the electrical parameter on the LED module is less than a preset threshold, determining that the number of control units in the LED module is n-1; It is obtained that the sum of the numbers of the control units in each of the LED modules is the number of control units in the lamp.

9. The lamp control method according to claim 5, characterized in that: The control unit includes a driving chip and an LED, the LED is connected to the driving chip, the state of the LED in the LED module is controlled to obtain the electrical parameters of the LED module, and the number of the control units is obtained according to the electrical parameters, including: A maximum value n of the number of control units is preset, and the first LED to the nth LED in the LED module are controlled to be in a first state, and then the first LED to the nth LED in the LED module are controlled to be in a second state in sequence according to a first order; When the n-1th LED is controlled to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value, and when the nth LED is in the second state and the electrical parameter value on the LED module is less than a preset threshold or the electrical parameter value does not change, it is determined that the number of control units in the LED module is n; It is obtained that the sum of the numbers of the control units in each of the LED modules is the number of control units in the lamp.

10. The lamp control method according to claim 5, characterized in that: The control unit includes a driving chip and an LED, the LED is connected to the driving chip, the state of the LED in the LED module is controlled to obtain the electrical parameters of the LED module, and the number of the control units is obtained according to the electrical parameters, including: A maximum value n of the number of control units is preset, and the first LED to the nth LED in the LED module are controlled to be in a first state, and then the nth LED to the first LED in the LED module are controlled to be in a second state in sequence according to a second order; Wherein, when the nth LED is controlled to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value, when the n-1th LED is controlled to be in the second state, the electrical parameter value on the LED module is the first electrical parameter value, when the n-2th LED is in the second state and the electrical parameter value on the LED module is the second electrical parameter value, it is determined that the number of control units in the LED module is n-2; the second electrical parameter value is less than the first electrical parameter value; It is obtained that the sum of the numbers of the control units in each of the LED modules is the number of control units in the lamp.

11. A lamp, characterized in that: The lamp comprises: a controller, a monitoring unit and at least one LED module; The LED module includes at least one control unit, each of the control units is connected in circuit, the controller is connected to the LED module and the monitoring unit, and the monitoring unit is used to monitor the electrical parameters on the control unit connection circuit; The controller is used to load and execute the lamp control method according to any one of claims 1 to 10.

12. A control device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the control method of the lamp according to any one of claims 1 to 10 is implemented.