CN116761317A - Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium - Google Patents

Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium Download PDF

Info

Publication number
CN116761317A
CN116761317A CN202311011033.1A CN202311011033A CN116761317A CN 116761317 A CN116761317 A CN 116761317A CN 202311011033 A CN202311011033 A CN 202311011033A CN 116761317 A CN116761317 A CN 116761317A
Authority
CN
China
Prior art keywords
light efficiency
control parameter
efficiency control
target
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311011033.1A
Other languages
Chinese (zh)
Other versions
CN116761317B (en
Inventor
谭小林
黄学司
何建国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Aitushi Innovation Technology Co ltd
Original Assignee
Shenzhen Aitushi Innovation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Aitushi Innovation Technology Co ltd filed Critical Shenzhen Aitushi Innovation Technology Co ltd
Priority to CN202311011033.1A priority Critical patent/CN116761317B/en
Publication of CN116761317A publication Critical patent/CN116761317A/en
Application granted granted Critical
Publication of CN116761317B publication Critical patent/CN116761317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application provides a light effect control method, a light effect control device, a lighting device and a computer readable storage medium, wherein the method comprises the following steps: acquiring DMX protocol data transmitted by a DMX console; comparing the target light efficiency control parameter in the acquired current DMX protocol data with a preset reference light efficiency control parameter; if the target light efficiency control parameter is different from the reference light efficiency control parameter, acquiring a data frame number corresponding to the target light efficiency control parameter; and adjusting the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter according to the light efficiency slowly-varying time corresponding to the data frame number. The light efficiency control method provided by the embodiment of the application can be used for adaptively generating a reasonable slow-change time by the lighting equipment to control based on the characteristics of the received DMX protocol data when the DMX protocol data with different data types are received, so that the problems of light efficiency flickering and the like of the lighting equipment are effectively avoided, and the light efficiency control effect of the lighting equipment is improved.

Description

Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium
Technical Field
The application relates to the technical field of light control, in particular to a light effect control method, a light effect control device, lighting equipment and a computer readable storage medium.
Background
The professional lighting lamp in the market at present is mainly controlled by a DMX512 console, and the DMX512 console is based on a DMX512 control protocol to realize a communication mode. The data issued by the DMX512 console can be divided into two categories, one category is regular light pattern data, the other category is continuous light effect data, the regular light pattern data is to change the light effect parameters of a certain lamp, such as color, color temperature, brightness, etc., and the continuous light effect data refers to that the console has formed a dynamic light effect change effect by setting the light effect parameters of each lamp.
However, in the scene of a professional lighting lamp, a gradual change control process is usually required for the light efficiency parameter of the lamp, for example, if the brightness of the lamp needs to be adjusted from 20% to 50%, the brightness of the lamp cannot be directly changed, but the brightness needs to be slowly increased from 20% to 50% in a certain gradual change time, otherwise, the poor experience of flickering of the light efficiency is brought to the user. However, because the data issued by the DMX512 console is different, the lamp generally cannot be effectively compatible with the two data modes, for example, under continuous light effect data, the lamp directly controls the light effect parameter according to the received data because the issued data is the continuously-changed light effect parameter obtained through differential processing, and under conventional light mode data, the lamp needs to be subjected to differential processing by itself because the received data is not the continuously-changed light effect parameter, so that gradual control of light effect is realized, and abnormal light effect flicker is avoided.
Therefore, the existing light efficiency control method also has the technical problem that the light efficiency control effect of the lamp is affected due to different data types issued by the DMX512 console.
Disclosure of Invention
Based on this, it is necessary to provide a light efficiency control method, device, computer equipment and storage medium for solving the problem that the light efficiency control effect of the lamp is affected due to different data types issued by the DMX512 console in the existing light efficiency control process.
In a first aspect, the present application provides a light efficiency control method, applied to a target lighting device, the light efficiency control method including:
acquiring DMX protocol data transmitted by a DMX console; the DMX protocol data carries light efficiency control parameters;
comparing the target light efficiency control parameter in the acquired current DMX protocol data with a preset reference light efficiency control parameter;
if the target light efficiency control parameter is different from the reference light efficiency control parameter, acquiring a data frame number corresponding to the target light efficiency control parameter, and taking the target light efficiency control parameter as an updated reference light efficiency control parameter; the data frame number refers to the number of associated DMX protocol data with the same light efficiency control parameter as the reference light efficiency control parameter in the acquired DMX protocol data;
And adjusting the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter according to the light efficiency slowly-varying time corresponding to the data frame number.
As a possible embodiment of the present application, after comparing the obtained target light efficiency control parameter in the current DMX protocol data with the preset reference light efficiency control parameter, the method further includes:
if the target light efficiency control parameter is the same as the reference light efficiency control parameter, updating the data frame number corresponding to the target light efficiency control parameter to obtain the updated data frame number.
As a possible embodiment of the present application, adjusting a light efficiency parameter of a target lighting device to a target light efficiency control parameter according to a light efficiency ramp time corresponding to a data frame number includes:
if the data frame number is smaller than a preset first frame number threshold value, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to a preset first light efficiency slow-changing time; and/or
If the data frame number is greater than a preset second frame number threshold value, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to a preset second light efficiency ramp time; the second light effect ramp time is greater than the first light effect ramp time.
As a possible embodiment of the present application, adjusting a light efficiency parameter of a target lighting device to a target light efficiency control parameter according to a light efficiency ramp time corresponding to a data frame number includes:
acquiring a light efficiency control parameter difference value between a target light efficiency control parameter and a reference light efficiency control parameter;
determining the light efficiency control parameters of the target lighting equipment at all moments according to the light efficiency slow change time corresponding to the data frame number and the light efficiency control parameter difference value;
and controlling the target lighting equipment according to the light efficiency control parameters of the target lighting equipment at the corresponding moments so as to adjust the light efficiency parameters of the target lighting equipment into the target light efficiency control parameters.
As a possible embodiment of the present application, before the step of determining the light efficiency control parameter corresponding to each moment of the target lighting device according to the light efficiency ramp time corresponding to the data frame number and the light efficiency control parameter difference value, the method further includes:
if the ratio of the light effect control parameter difference value to the light effect slow-changing time is smaller than a preset ratio threshold value, executing the light effect slow-changing time corresponding to the data frame number and determining the light effect control parameters of the target lighting equipment at all times according to the light effect control parameter difference value;
And if the ratio of the light efficiency control parameter difference value to the light efficiency slowly-changing time is larger than a preset ratio threshold value, controlling the target lighting equipment according to the preset maximum allowable parameter difference value so as to adjust the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter.
As a possible embodiment of the present application, after acquiring DMX protocol data transmitted by the DMX console, the method further includes:
if the DMX protocol data does not carry the slow-change time parameter, executing the step of comparing the acquired target light efficiency control parameter in the current DMX protocol data with the preset reference light efficiency control parameter;
and if the DMX protocol data also carries the gradual change time parameter, adjusting the light efficiency parameter of the target lighting equipment into the target light efficiency control parameter carried by the DMX protocol data according to the gradual change time parameter.
As a possible embodiment of the application, the light effect control parameter comprises at least one of a light color control parameter, a light brightness control parameter and a light color temperature control parameter.
In a second aspect, the present application provides a light efficiency control apparatus provided in a target lighting device, the light efficiency control apparatus including:
the acquisition module is used for acquiring the DMX protocol data transmitted by the DMX console; the DMX protocol data carries light efficiency control parameters;
The comparison module is used for comparing the acquired target light efficiency control parameters in the current DMX protocol data with preset reference light efficiency control parameters;
the updating module is used for acquiring the data frame number corresponding to the target light efficiency control parameter if the target light efficiency control parameter is different from the reference light efficiency control parameter, and taking the target light efficiency control parameter as the updated reference light efficiency control parameter; the data frame number refers to the number of associated DMX protocol data with the same light efficiency control parameter as the reference light efficiency control parameter in the acquired DMX protocol data;
and the control module is used for adjusting the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter according to the light efficiency ramp time corresponding to the data frame number.
In a third aspect, the present application also provides a lighting device, comprising:
a light emitting device;
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in memory and configured to be executed by a processor to implement the steps in the light effect control method of any of the above.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program for loading by a processor to perform the steps of the light effect control method provided by any one of the above.
In a fifth aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the light effect control method provided by any one of the above.
According to the light efficiency control method provided by the embodiment of the application, after the lighting equipment acquires the DMX protocol data which is transmitted by the DMX console and carries the light efficiency control parameter, the target light efficiency control parameter in the acquired current DMX protocol data is compared with the preset reference light efficiency control parameter in real time, if the target light efficiency control parameter and the preset reference light efficiency control parameter are different, the corresponding light efficiency gradual change time is set according to the quantity of the associated DMX protocol data with the same light efficiency control parameter in the previously acquired DMX protocol data, so that the light efficiency parameter adjustment of the target lighting equipment is completed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a data format under a DMX512 protocol according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of steps of a light efficiency control method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a step of adjusting a light efficiency parameter based on a light efficiency ramp time corresponding to a data frame number according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a step of adjusting a light efficiency parameter of a target lighting device to a target light efficiency control parameter at a light efficiency ramp time according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a step of adjusting a light efficiency parameter of a lighting device based on a light efficiency control parameter difference and a light efficiency ramp time according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating steps of another light efficiency control method according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of a light efficiency control device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the description of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more features. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the description of the present application, the word "for example" is used to mean "serving as an example, instance, or illustration. Any embodiment described as "for example" in this disclosure is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes have not been described in detail so as not to obscure the description of the application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
In order to facilitate understanding of the complete implementation scheme of the light efficiency control method provided by the embodiment of the application, related implementation scenes of the light efficiency control method are first described in detail as follows.
In the field of light control, such as more common stage lights, photography lights, landscape lights, etc., the lighting efficiency of a lighting device is typically achieved due to the DMX512 console being based on the DMX512 control protocol. In the DMX512 control protocol, a packet of data can carry 512 bytes at maximum, and as long as communication is normal, the console will send data immediately, and the time interval for sending data is about 12ms, which means that the console can send a large amount of data to the lighting device in a short time. Specifically, as shown in fig. 1, a schematic diagram of a data format under a DMX512 protocol according to an embodiment of the present application is shown.
Further, the data types issued by the DMX512 console generally include two types, one type is regular light mode data, and the other type is continuous light effect data, in order to facilitate understanding of the difference between the data types issued by the DMX512 console, for example, the brightness of the lamp is adjusted from 20% to 50%, if the data types issued by the DMX512 console are regular light mode data, the brightness control parameters are 50% in a plurality of continuous frames of DMX512 protocol data received by the lighting device, and if the data types issued by the DMX512 console are continuous light effect data, the brightness control parameters are 20%, 22% and 24% in sequence in a plurality of continuous frames of DMX512 protocol data received by the lighting device, until the final 50%.
On the basis of the above, considering that in the professional lighting lamp scene, the lighting effect parameter of the lamp needs to have a gradual change control process, therefore, for the received conventional light mode data, a differentiating process needs to be executed by the lighting equipment, and the brightness is adjusted from 20% to 50% according to a certain buffering time, otherwise, for the received continuous light effect data, as the continuous light effect parameter is issued by the DMX512 console, the lighting equipment directly adjusts according to the light effect parameter at the moment without additional gradual change processing, otherwise, higher delay is generated. It can be seen that, for different types of data issued by the DMX512 console, different processing needs to be performed by the lighting device, that is, the lighting device does not need additional ramp processing in the continuous light effect data mode, whereas the conventional light mode data needs the lighting device to perform ramp processing, so that in a normal case, the lighting device cannot effectively be compatible with different types of data issued by the DMX512 console, and the light effect control of the lighting device is affected.
In order to solve the above-mentioned problem, the prior art proposes a method of using one byte of data in the DMX512 control protocol to represent the data type issued by the console, for example, using the 512 th byte in the DMX512 protocol data for type judgment, 1 represents the conventional light mode data, 2 represents the continuous light effect data, and the lighting device determines whether to execute the buffer processing after determining the received data type, but this occupies one byte of the DMX512 protocol, resulting in less data carried by the protocol and wasting some resources. Therefore, the embodiment of the application provides a light effect control method applied to target lighting equipment, which does not occupy additional data packets of a DMX512 communication protocol, does not need to additionally increase parameters to distinguish two modes, and effectively solves the problem that the lighting equipment is incompatible with two types of data on the premise of effectively saving communication protocol resources, thereby improving the light effect control effect of the lighting equipment. Specifically, the light efficiency control method provided by the embodiment of the application is that the light efficiency control method is installed in a light efficiency control device in a form of a computer program, the light efficiency control device is deployed in a lighting device in a form of a processor, and the light efficiency control device in the lighting device executes the light efficiency control method provided by the embodiment of the application by running the computer program corresponding to the light efficiency control method.
Specifically, as shown in fig. 2, fig. 2 is a schematic step flow diagram of a light efficiency control method according to an embodiment of the present application, and specifically includes steps S210 to S240:
s210, acquiring DMX protocol data transmitted by a DMX console.
In the embodiment of the present application, in combination with the implementation scenario of the light efficiency control method provided in the foregoing, it is known that the target lighting device generally performs data communication with the DMX console (typically, the DMX512 console) according to the agreed DMX protocol (typically, the DMX512 protocol), that is, the DMX console continuously sends the DMX protocol data carrying the light efficiency control parameters to the target lighting device. Of course, it should be noted that, according to the DMX512 protocol, the DMX protocol data transmitted by the DMX console generally further includes data content, but considering that the light efficiency control method provided by the embodiment of the present application only needs to use the light efficiency control parameter carried in the DMX protocol data, the embodiment of the present application does not specifically describe other data content carried in the DMX protocol data.
In the embodiment of the application, considering that the light efficiency control of the lighting equipment is mainly controlled based on angles of color, brightness, color temperature and the like, the light efficiency control parameters carried in the DMX protocol data generally comprise at least one of light color control parameters, light brightness control parameters and light color temperature control parameters. Of course, in general, the light efficiency control parameters include the above three control parameters at the same time, for example, in general DMX protocol data, the light efficiency control parameters generally include values R, G, B, WW of 5 channels and CW to describe the color, brightness, and color temperature of the lighting device, where R, G, B channel values form control of the color of the lighting device, WW channel values form control of the brightness of the lighting device, and CW channel values form control of the color temperature of the lighting device.
In addition, it should be noted that, the DMX protocol data transmitted by the DMX console is generally composed of consecutive data frames, that is, the target lighting device actually acquires different DMX protocol data continuously, and in the process of actually completing the light efficiency control, the lighting device needs to process each acquired DMX protocol data, so, for convenience of description, the following steps will be given by taking the current DMX protocol data acquired in real time as an example, and in the following embodiments, a complete control process for controlling the light efficiency of the lighting device is given.
S220, comparing the obtained target light efficiency control parameter in the current DMX protocol data with a preset reference light efficiency control parameter, and judging whether the target light efficiency control parameter is identical with the reference light efficiency control parameter. If not, step S230 is performed, and if not, the other steps are performed.
In the embodiment of the application, after the lighting device acquires new DMX protocol data, that is, current latest DMX protocol data, the following flow is executed: and comparing the target light efficiency control parameter carried in the DMX protocol data with a preset reference light efficiency control parameter to judge whether the target light efficiency control parameter and the preset reference light efficiency control parameter are identical. The reference light efficiency control parameter herein generally refers to a light efficiency control parameter in the DMX protocol data received last time. Specifically, in order to facilitate understanding, tn-1, tn, tn+1 are respectively used to represent the DMX protocol data received at the previous time, the DMX protocol data received at the current time, and the DMX protocol data received at the next time, at this time, the light efficiency control device in the lighting device compares the light efficiency control parameter of Tn in the current received DMX protocol data with the reference light efficiency control parameter, that is, the light efficiency control parameter in the DMX protocol data Tn-1 received at the previous time, so as to determine whether the two are the same, and further uses the light efficiency control parameter of Tn in the DMX protocol data as a new reference light efficiency control parameter, so that when the DMX protocol data tn+1 of the next time is received, the light efficiency control parameter in the DMX protocol data tn+1 of the next time is compared with the light efficiency control parameter of Tn in the DMX protocol data currently received, that is, the new reference light efficiency control parameter is compared.
In the embodiment of the present application, it is known from the foregoing description that, if the DMX console transmits DMX protocol data in a conventional light mode, the lighting device generally receives a series of DMX protocol data carrying the same light efficiency control parameter, whereas if the DMX console transmits DMX protocol data in a continuous light efficiency data mode, the lighting device generally receives a series of DMX protocol data carrying different light efficiency control parameters or only has a plurality of packets of the same DMX protocol data, so that, based on the variation characteristics of the light efficiency control parameter in the received DMX protocol data, the light efficiency control device in the lighting device can primarily identify the mode of the currently received DMX protocol data.
S230, obtaining the data frame number corresponding to the target light efficiency control parameter, and taking the target light efficiency control parameter as the updated reference light efficiency control parameter.
In the embodiment of the present application, if the target light efficiency control parameter in the current DMX protocol data is different from the reference light efficiency control parameter, it indicates that the light efficiency parameter of the target lighting device needs to be adjusted, but in the adjustment process, the light efficiency control device in the lighting device also counts the data frame number corresponding to the target light efficiency control parameter, and determines whether to perform light efficiency gradual change processing on the lighting device based on the data frame number. Specifically, the data frame number refers to the number of associated DMX protocol data in which the light efficiency control parameter is the same as the reference light efficiency control parameter in the acquired DMX protocol data, that is, when the light brightness control parameters for brightness control in the continuous 10 DMX protocol data received by the lighting device are all 20%, and when the light brightness control parameters for brightness control in the 11 th received DMX protocol data are adjusted to be 50%, the data frame number corresponding to the light efficiency control parameter is 10 at this time, that is, it is indicated that the light brightness control parameters in 10 packets of DMX protocol data in the DMX protocol data acquired in the past are all 20%.
Specifically, to facilitate recording the number of frames of data, the following may be used: a buff variable is predefined in a light efficiency controller of a target lighting device, when the lighting device receives DMX protocol data which is different from a light efficiency control parameter in the previous DMX protocol data each time, the buff variable is cleared and counted from 1, and when the lighting device receives DMX protocol data which is the same as the light efficiency control parameter in the previous DMX protocol data each time, the buff variable is increased by 1, namely, when the target light efficiency control parameter is the same as a reference light efficiency control parameter, the buff variable, namely, a data frame number corresponding to the target light efficiency control parameter, is updated. In this way, the number of data frames corresponding to the target light efficiency control parameter is recorded by the value of the buff variable.
Of course, in order to completely implement the light efficiency control algorithm logic provided by the embodiment of the present application, the target light efficiency control parameter in the currently acquired DMX protocol data is different from the preset reference light efficiency control parameter, and the target light efficiency control parameter is further used as the updated reference light efficiency control parameter for comparison of the next light efficiency control parameter, which is not described herein in detail.
S240, adjusting the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter according to the light efficiency ramp time corresponding to the data frame number.
In the embodiment of the present application, in combination with the foregoing provided scheme, when the DMX console sends DMX protocol data in a continuous light effect data mode, at this time, the lighting device receives a series of DMX protocol data carrying different light effect control parameters, or only a plurality of packets of the same DMX protocol data, at this time, the number of data frames corresponding to the obtained target light effect control parameter is usually a smaller value, because each time the DMX protocol data carrying new different light effect control parameters is received, the number of data frames is cleared and counted from 1 again, so based on the number of data frames with a relatively smaller value, a relatively smaller light effect ramp time can be set, or no light effect ramp time (that is, the light effect ramp time is set to 0) is set, so as to adjust the light effect parameter of the target lighting device to the target light effect control parameter. Otherwise, if the DMX console transmits DMX protocol data in a conventional light mode, the lighting device generally receives a series of DMX protocol data carrying the same light efficiency control parameter, and at this time, the number of data frames corresponding to the obtained target light efficiency control parameter is generally accumulated to a higher value, so that a larger light efficiency ramp time can be set based on the number of data frames with a relatively higher value, so that the lighting device adjusts the light efficiency parameter to the target light efficiency control parameter in a light efficiency ramp manner. It can be seen that the data frame number and the light effect buffer time are generally in positive correlation, that is, the higher the data frame number is, the higher the corresponding light effect buffer time should be, so that when the lighting device receives the DMX protocol data in the conventional light mode, the adjustment of the light effect parameter can be completed according to the light effect buffer mode.
Based on the above description, as a possible embodiment of the present application, the association relationship between the number of data frames and the light effect buffer time may refer to fig. 3 and the explanation thereof. Specifically, as shown in fig. 3, fig. 3 is a schematic flow chart of a step of adjusting a light effect parameter based on a light effect ramp time corresponding to a data frame number according to an embodiment of the present application, and specifically includes steps S310 to S320:
and S310, if the number of data frames is smaller than a preset first frame number threshold, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to the preset first light efficiency ramp time.
In the embodiment of the present application, if the number of frames of data is smaller than the first frame number threshold, it indicates that the target lighting device is more likely to receive continuous light efficiency data, for example, the frame number threshold may be set to 3, and at this time, the light efficiency control device may adjust the light efficiency parameter of the target lighting device to the target light efficiency control parameter according to a relatively smaller first light efficiency ramp time. For example, as a possible implementation, the first light effect ramp time may be 0, that is, the light effect parameter of the target lighting device is directly adjusted to the target light effect control parameter without performing the ramp process.
And S320, if the number of data frames is greater than a preset second frame number threshold, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to the preset second light efficiency ramp time.
In the embodiment of the present application, if the number of data frames is greater than the second frame number threshold, it indicates that the target lighting device is more likely to receive DMX protocol data sent in the conventional light mode, for example, the frame number threshold may be set to 12, and at this time, the light efficiency control device may adjust the light efficiency parameter of the target lighting device to the target light efficiency control parameter according to a relatively greater second light efficiency ramp time, for example, as a possible implementation, the second light efficiency ramp time may be 350ms, that is, within the ramp time of 350ms, to gradually adjust the light efficiency parameter of the target lighting device to the target light efficiency control parameter.
Of course, if the number of data frames is between the first frame number threshold and the second frame number threshold, the light effect ramp time may be proportional to the number of data frames, specifically, the scaling factor may be set to 20, for example, when the number of data frames is 4, the corresponding light effect ramp time may be set to 80ms, and when the number of data frames is 8, the corresponding light effect ramp time may be set to 160ms. Specifically, in order to facilitate understanding of the above embodiment, a specific implementation scheme for adjusting the light efficiency parameter of the target lighting device to the target light efficiency control parameter according to the light efficiency ramp time corresponding to the data frame number is as follows:
If the number of data frames is less than 3, that is, if the buff variable is less than 3, the light efficiency control device directly adjusts the light efficiency parameter of the target lighting equipment to be the target light efficiency control parameter under the condition that the slow-change processing is not executed;
if the data frame number is greater than 12, that is, if the buff variable is greater than 12, the light efficiency control device gradually adjusts the light efficiency parameter of the target lighting equipment into the target light efficiency control parameter in the buffer time of 350 ms;
if the number of data frames is greater than or equal to 3 and less than or equal to 12, the light efficiency control device gradually adjusts the light efficiency parameters of the target lighting device into target light efficiency control parameters within the buffer time of 20 times of the number of data frames.
In the above implementation scheme, the thresholds 3 and 12 used for comparing the data frame numbers and the set light effect ramp time, for example, 0ms and 350ms, may be set by themselves based on actual requirements and the performance of the lighting device, and the setting of the parameters is not limited in this embodiment of the present application.
Further, in order to facilitate understanding of the implementation scheme provided by the embodiment of the present application for adjusting the light efficiency parameter of the target lighting device to the target light efficiency control parameter at the light efficiency ramp time, as shown in fig. 4, fig. 4 is a schematic flowchart of a step for adjusting the light efficiency parameter of the target lighting device to the target light efficiency control parameter at the light efficiency ramp time, which is provided by the embodiment of the present application, and specifically includes steps S410 to S430:
S410, acquiring a light efficiency control parameter difference value between the target light efficiency control parameter and the reference light efficiency control parameter.
In the embodiment of the application, when the light efficiency control parameter includes control parameters with multiple dimensions, such as color, brightness, color temperature and the like, the light efficiency control parameter differences, such as color difference, brightness difference and color temperature difference, of the target light efficiency control parameter and the reference light efficiency control parameter in different dimensions can be obtained by making differences between the target light efficiency control parameter and the control parameter of the corresponding channel in the reference light efficiency control parameter, and similar control processing is executed on the light efficiency parameter differences of the target lighting equipment for each dimension. Specifically, for ease of understanding, the embodiments of the present application are described only by taking control in the brightness dimension as an example, and when the brightness of the lighting device needs to be adjusted from 20% to 50%, the difference between the light efficiency control parameters is 30%.
S420, determining the light efficiency control parameters of the target lighting equipment at all moments according to the light efficiency buffer time corresponding to the data frame number and the light efficiency control parameter difference value.
In the embodiment of the application, after the light effect slowly-changing time of the lighting equipment for completing the light effect control is determined, the light effect control parameters of the target lighting equipment corresponding to all moments can be determined based on the light effect control parameter difference value. For example, taking the above-determined light efficiency ramp time as 300ms as an example, consider that in a normal case, the light efficiency update frequency of the lighting device is 10ms, that is, the target lighting device needs to adjust the light efficiency control parameter of the target lighting device from 20% to 50% after 30 light efficiency updates, that is, the variable adjusted by each light efficiency update is 1%, that is, the brightness of the target lighting device needs to be increased by 1% every 10ms in a subsequent time. Of course, the above-mentioned data are described by taking the light efficiency update frequency of the lighting device as 10ms as an example, and in fact, the light efficiency update frequency of the lighting device may be determined by the performance of the lighting device, and the embodiment of the present application is not limited herein.
And S430, controlling the target lighting equipment according to the light efficiency control parameters of the target lighting equipment at each moment so as to adjust the light efficiency parameters of the target lighting equipment into target light efficiency control parameters.
In the embodiment of the application, after the light efficiency control parameters of the target lighting equipment corresponding to each moment are obtained, the target lighting equipment is controlled in sequence according to the light efficiency control parameters of the target lighting equipment corresponding to each moment, so that the light efficiency parameters of the target lighting equipment can be adjusted to the target light efficiency control parameters within a given light efficiency slowly-changing time.
In addition, when the light effect ramp time is short and the light effect control parameter difference is large, the variable adjusted by the lighting device during each time of light effect update is large, so that the lighting device is easy to flicker, in order to solve the problem, after the light effect control parameter difference and the light effect ramp time are obtained, the ratio of the light effect control parameter difference to the light effect ramp time is used to determine whether the lighting device flickers, specifically, as shown in fig. 5, fig. 5 is a schematic flow chart of steps for adjusting the light effect parameter of the lighting device based on the light effect control parameter difference and the light effect ramp time, which specifically includes steps S510 to S530:
S510, calculating the ratio of the light effect control parameter difference value to the light effect ramp time, and judging whether the ratio is smaller than a preset ratio threshold value. If yes, step S520 is executed, and if no, step S530 is executed:
in the embodiment of the application, the ratio of the light effect control parameter difference value to the light effect slow-change time describes the change amplitude of the lighting equipment required to be changed when the light effect is changed each time, and whether the change amplitude can bring the flicker abnormal experience to the user can be determined by judging the ratio and the preset ratio threshold value. In particular, the ratio threshold may be set based on the lighting performance of the lighting device, for example, in a normal case, the ratio threshold may be set to 5%, i.e. the brightness may not change by more than 5% every update of the lighting device, i.e. every 10 ms.
S520, determining the light efficiency control parameters of the target lighting equipment at all moments according to the light efficiency buffer time corresponding to the data frame number and the light efficiency control parameter difference value.
In the embodiment of the present application, when the obtained ratio is smaller than the preset ratio threshold, that is, when the change amplitude of the lighting device required to change when the light efficiency changes each time does not bring the flicker abnormal experience to the user, the light efficiency control device determines the light efficiency control parameters of the target lighting device corresponding to each time according to the light efficiency slow change time and the light efficiency control parameter difference, and then completes the control of the lighting device according to the light efficiency control parameters of the target lighting device corresponding to each time, that is, executes the steps S420 and S430.
And S530, controlling the target lighting equipment according to the preset maximum allowable parameter difference value so as to adjust the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter.
In the embodiment of the application, when the obtained ratio is greater than the preset ratio threshold, that is, the change amplitude of the lighting equipment required to be changed is greater when the light efficiency is changed each time, the lighting equipment can bring the flickering abnormal experience to the user, and the light efficiency control device can control the target lighting equipment according to the preset maximum allowable parameter difference. For example, when the foregoing calculation determines that the brightness of the required change at each update of the lighting device is 8%, i.e., greater than 5% of the maximum allowable change range of the change at each update, the lighting device adjusts the lighting efficiency parameter of the target lighting device according to the maximum allowable parameter difference, i.e., according to the 5% brightness change range every 10ms, until the final target lighting efficiency control parameter is obtained.
According to the light efficiency control method provided by the embodiment of the application, after the lighting equipment acquires the DMX protocol data which is transmitted by the DMX console and carries the light efficiency control parameter, the target light efficiency control parameter in the acquired current DMX protocol data is compared with the preset reference light efficiency control parameter in real time, if the target light efficiency control parameter and the preset reference light efficiency control parameter are different, the corresponding light efficiency gradual change time is set according to the quantity of the associated DMX protocol data with the same light efficiency control parameter in the previously acquired DMX protocol data, so that the light efficiency parameter adjustment of the target lighting equipment is completed.
Of course, besides setting the light effect ramp time by the light effect control method provided by the embodiment of the application to complete the adjustment of the light effect parameter of the target lighting device, in fact, the DMX protocol data transmitted by the DMX console may also include a ramp time parameter, at this time, if the DMX protocol data transmitted by the DMX console includes the ramp time parameter, the adjustment of the light effect parameter of the target lighting device is completed according to the ramp time parameter carried in the DMX protocol data, otherwise, if the DMX protocol data transmitted by the DMX console does not carry the ramp time parameter, the adjustment of the light effect parameter of the target lighting device is completed according to the light effect control method provided by the embodiment of the application. Specifically, as shown in fig. 6, fig. 6 is a schematic step flow diagram of another light efficiency control method provided by the embodiment of the present application, and specifically, compared with the light efficiency control method shown in fig. 2, the method further includes steps S610 to S630:
s610, acquiring the DMX protocol data transmitted by the DMX console, and judging whether the DMX protocol data carries a slow-change time parameter. If yes, step S620 is executed, and if no, step S630 is executed.
The light effect control method provided by the embodiment of the application is implemented under the condition that the DMX protocol data only provides the light effect control parameters to save communication resources, and in fact, the control method does not conflict with the conventional protocol control method. That is, in fact, the ramp time parameter may also be provided according to a protocol convention in the DMX protocol data, and of course, the ramp time parameter provided in the DMX protocol data needs to occupy a certain communication resource, so before executing the light effect control method provided in the embodiment of the present application, the light effect control device determines whether the protocol data carries the ramp time parameter after acquiring the DMX protocol data transmitted by the DMX console, thereby determining whether to control the lighting device according to the light effect control method provided in the embodiment of the present application or complete the control of the lighting device based on the data in the protocol.
S620, adjusting the light efficiency parameter of the target lighting equipment into the target light efficiency control parameter carried by the DMX protocol data according to the slowly-varying time parameter.
In the embodiment of the application, when the DMX protocol data carries the time-varying time parameter, at this time, the light efficiency control device directly adjusts the light efficiency parameter of the target lighting equipment to the target light efficiency control parameter carried by the DMX protocol data according to the time-varying time parameter carried by the DMX protocol data, so as to omit the light efficiency control method provided by the embodiment of the application, thereby providing a more accurate light efficiency control effect.
S630, comparing the obtained target light efficiency control parameter in the current DMX protocol data with a preset reference light efficiency control parameter.
In the embodiment of the application, when the DMX protocol data does not carry the time delay parameter, the light effect control device executes the light effect control method provided by the embodiment of the application, and compares the target light effect control parameter in the DMX protocol data with the preset reference light effect control parameter to determine the data type of the currently received DMX protocol data, thereby facilitating the follow-up completion of the light effect parameter adjustment of the target lighting equipment according to the light effect time delay corresponding to the data frame number. Specifically, the explanation of step S630 may refer to the aforementioned step S220, and the embodiments of the present application are not repeated here.
In order to more clearly understand the complete implementation flow of the light efficiency control method provided by the embodiment of the present application, the following provides the complete implementation steps of the light efficiency control method applied to the lighting device in combination with the content provided in fig. 1 to 6, and specifically includes the following steps:
1) A light effect control device in the lighting equipment continuously acquires DMX protocol data transmitted by a DMX console;
2) Detecting whether the DMX protocol data carries a slow change time parameter or not;
3) If the DMX protocol data carries the slow-change time parameter, the light efficiency parameter adjustment of the lighting equipment is completed directly based on the slow-change time parameter, so that the light efficiency parameter of the lighting equipment is adjusted to be the light efficiency control parameter carried in the DMX protocol data;
4) If the DMX protocol data does not carry the slow-change time parameter, comparing the obtained target light efficiency control parameter in the current DMX protocol data with a preset reference light efficiency control parameter;
5) If the target light efficiency control parameter is the same as the reference light efficiency control parameter, updating the data frame number corresponding to the target light efficiency control parameter to obtain an updated data frame number;
6) Extracting the data frame number corresponding to the current target light efficiency control parameter until the target light efficiency control parameter in the current acquired DMX protocol data is different from the reference light efficiency control parameter, and taking the target light efficiency control parameter as the updated reference light efficiency control parameter;
7) Selecting a proper light effect buffer time based on the size relation between the data frame number and a preset frame number threshold, for example, selecting a light effect buffer time of 0ms (i.e. without performing light effect buffer processing) when the data frame number is smaller than 3, and selecting a light effect buffer time of 350ms when the data frame number is larger than 12;
8) Acquiring a light efficiency control parameter difference value between a target light efficiency control parameter and a reference light efficiency control parameter;
9) Calculating the ratio of the light effect control parameter difference value to the light effect slowly-changing time to obtain the light effect control parameters of the target lighting equipment at all moments;
10 If the ratio is smaller than the preset ratio threshold, controlling the target lighting equipment according to the light efficiency control parameters of the target lighting equipment at corresponding moments so as to adjust the light efficiency parameters of the target lighting equipment into target light efficiency control parameters;
11 If the ratio is greater than the preset ratio threshold, controlling the target lighting equipment according to the preset maximum allowable parameter difference value so as to adjust the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter;
12 After acquiring the new DMX protocol data, continuing to execute the foregoing steps 2) to 11) with respect to the newly acquired DMX protocol data.
In order to better implement the light efficiency control method provided by the embodiment of the present application, on the basis of the embodiment of the present application and the provided light efficiency control method, the embodiment of the present application further provides a light efficiency control device, as shown in fig. 7, where the light efficiency control device 700 includes:
an acquisition module 710, configured to acquire DMX protocol data transmitted by a DMX console; the DMX protocol data carries light efficiency control parameters;
a comparison module 720, configured to compare the obtained target light efficiency control parameter in the current DMX protocol data with a preset reference light efficiency control parameter;
the updating module 730 is configured to obtain a data frame number corresponding to the target light efficiency control parameter if the target light efficiency control parameter is different from the reference light efficiency control parameter, and take the target light efficiency control parameter as the updated reference light efficiency control parameter; the data frame number refers to the number of associated DMX protocol data with the same light efficiency control parameter as the reference light efficiency control parameter in the acquired DMX protocol data;
the control module 740 is configured to adjust the light efficiency parameter of the target lighting device to a target light efficiency control parameter according to the light efficiency ramp time corresponding to the data frame number.
In some embodiments of the present application, the updating module 730 is further configured to update the data frame number corresponding to the target light efficiency control parameter if the target light efficiency control parameter is the same as the reference light efficiency control parameter after comparing the target light efficiency control parameter in the obtained current DMX protocol data with the preset reference light efficiency control parameter, so as to obtain the updated data frame number.
In some embodiments of the present application, the control module 740 is further configured to adjust the light efficiency parameter of the target lighting device to the target light efficiency control parameter according to the preset first light efficiency ramp time if the data frame number is less than the preset first frame number threshold; and/or if the data frame number is greater than a preset second frame number threshold, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to the preset second light efficiency ramp time; the second light effect ramp time is greater than the first light effect ramp time.
In some embodiments of the present application, the control module 740 is further configured to obtain a light efficiency control parameter difference between the target light efficiency control parameter and the reference light efficiency control parameter; determining the light efficiency control parameters of the target lighting equipment at all moments according to the light efficiency slow change time corresponding to the data frame number and the light efficiency control parameter difference value; and controlling the target lighting equipment according to the light efficiency control parameters of the target lighting equipment at the corresponding moments so as to adjust the light efficiency parameters of the target lighting equipment into the target light efficiency control parameters.
In some embodiments of the present application, the control module 740 is further configured to determine, if the ratio of the light efficiency control parameter difference to the light efficiency ramp time is smaller than a preset ratio threshold, a light efficiency control parameter of the target lighting device at each moment according to the light efficiency ramp time corresponding to the data frame number and the light efficiency control parameter difference; if the ratio of the light efficiency control parameter difference value to the light efficiency slowly-changing time is larger than a preset ratio threshold value, controlling the target lighting equipment according to a preset maximum allowable parameter difference value so as to adjust the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter;
In some embodiments of the present application, the comparison module 720 is further configured to compare the obtained target light efficiency control parameter in the current DMX protocol data with a preset reference light efficiency control parameter if the DMX protocol data does not carry the slow-change time parameter; and if the DMX protocol data also carries the gradual change time parameter, adjusting the light efficiency parameter of the target lighting equipment into the target light efficiency control parameter carried by the DMX protocol data according to the gradual change time parameter.
For specific limitations of the light efficiency control device, reference may be made to the above limitations of the light efficiency control method, and no further description is given here. The modules in the light effect control device can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments of the present application, the light effect control apparatus 700 may be implemented as a processor and installed in a lighting device, where the lighting device mainly includes a light emitting device, and a computer device including one or more processors and a memory, and the description of the light emitting device is omitted herein. For the computer device, a computer program corresponding to the light efficiency control method can be run on the computer device as shown in fig. 8. The memory of the computer device may store various program modules constituting the light effect control apparatus 700, such as the acquisition module 710, the comparison module 720, the update module 730, and the control module 740 shown in fig. 7. The computer program constituted by the respective program modules causes the processor to execute the steps in the light effect control method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 8 may perform step S210 through the acquisition module 710 in the light effect control apparatus 700 shown in fig. 7. The computer device may perform step S220 through the comparison module 720. The computer device may perform step S230 through the update module 730. The computer device may perform step S240 through the control module 740. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external computer device through a network connection. The computer program is executed by a processor to implement a light effect control method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In some embodiments of the application, a computer device is provided that includes one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to perform the steps of:
acquiring DMX protocol data transmitted by a DMX console; the DMX protocol data carries light efficiency control parameters;
comparing the target light efficiency control parameter in the acquired current DMX protocol data with a preset reference light efficiency control parameter;
if the target light efficiency control parameter is different from the reference light efficiency control parameter, acquiring a data frame number corresponding to the target light efficiency control parameter, and taking the target light efficiency control parameter as an updated reference light efficiency control parameter; the data frame number refers to the number of associated DMX protocol data with the same light efficiency control parameter as the reference light efficiency control parameter in the acquired DMX protocol data;
and adjusting the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter according to the light efficiency slowly-varying time corresponding to the data frame number.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: if the target light efficiency control parameter is the same as the reference light efficiency control parameter, updating the data frame number corresponding to the target light efficiency control parameter to obtain the updated data frame number.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: if the data frame number is smaller than a preset first frame number threshold value, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to a preset first light efficiency slow-changing time; and/or if the data frame number is greater than a preset second frame number threshold, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to the preset second light efficiency ramp time; the second light effect ramp time is greater than the first light effect ramp time.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: acquiring a light efficiency control parameter difference value between a target light efficiency control parameter and a reference light efficiency control parameter; determining the light efficiency control parameters of the target lighting equipment at all moments according to the light efficiency slow change time corresponding to the data frame number and the light efficiency control parameter difference value; and controlling the target lighting equipment according to the light efficiency control parameters of the target lighting equipment at the corresponding moments so as to adjust the light efficiency parameters of the target lighting equipment into the target light efficiency control parameters.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: if the ratio of the light effect control parameter difference value to the light effect slow-changing time is smaller than a preset ratio threshold value, executing the step of determining the light effect control parameters of the target lighting equipment at all times according to the light effect slow-changing time corresponding to the data frame number and the light effect control parameter difference value; and if the ratio of the light efficiency control parameter difference value to the light efficiency slowly-changing time is larger than a preset ratio threshold value, controlling the target lighting equipment according to the preset maximum allowable parameter difference value so as to adjust the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: if the DMX protocol data does not carry the slow-change time parameter, executing the step of comparing the acquired target light efficiency control parameter in the current DMX protocol data with the preset reference light efficiency control parameter; and if the DMX protocol data also carries the gradual change time parameter, adjusting the light efficiency parameter of the target lighting equipment into the target light efficiency control parameter carried by the DMX protocol data according to the gradual change time parameter.
In some embodiments of the present application, a computer-readable storage medium is provided, storing a computer program, the computer program being loaded by a processor, causing the processor to perform the steps of:
acquiring DMX protocol data transmitted by a DMX console; the DMX protocol data carries light efficiency control parameters;
comparing the target light efficiency control parameter in the acquired current DMX protocol data with a preset reference light efficiency control parameter;
if the target light efficiency control parameter is different from the reference light efficiency control parameter, acquiring a data frame number corresponding to the target light efficiency control parameter, and taking the target light efficiency control parameter as an updated reference light efficiency control parameter; the data frame number refers to the number of associated DMX protocol data with the same light efficiency control parameter as the reference light efficiency control parameter in the acquired DMX protocol data;
And adjusting the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter according to the light efficiency slowly-varying time corresponding to the data frame number.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: if the target light efficiency control parameter is the same as the reference light efficiency control parameter, updating the data frame number corresponding to the target light efficiency control parameter to obtain the updated data frame number.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: if the data frame number is smaller than a preset first frame number threshold value, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to a preset first light efficiency slow-changing time; and/or if the data frame number is greater than a preset second frame number threshold, adjusting the light efficiency parameter of the target lighting equipment to be a target light efficiency control parameter according to the preset second light efficiency ramp time; the second light effect ramp time is greater than the first light effect ramp time.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: acquiring a light efficiency control parameter difference value between a target light efficiency control parameter and a reference light efficiency control parameter; determining the light efficiency control parameters of the target lighting equipment at all moments according to the light efficiency slow change time corresponding to the data frame number and the light efficiency control parameter difference value; and controlling the target lighting equipment according to the light efficiency control parameters of the target lighting equipment at the corresponding moments so as to adjust the light efficiency parameters of the target lighting equipment into the target light efficiency control parameters.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: if the ratio of the light effect control parameter difference value to the light effect slow-changing time is smaller than a preset ratio threshold value, executing the step of determining the light effect control parameters of the target lighting equipment at all times according to the light effect slow-changing time corresponding to the data frame number and the light effect control parameter difference value; and if the ratio of the light efficiency control parameter difference value to the light efficiency slowly-changing time is larger than a preset ratio threshold value, controlling the target lighting equipment according to the preset maximum allowable parameter difference value so as to adjust the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter.
In some embodiments of the present application, the processor when executing the computer program further performs the steps of: if the DMX protocol data does not carry the slow-change time parameter, executing the step of comparing the acquired target light efficiency control parameter in the current DMX protocol data with the preset reference light efficiency control parameter; and if the DMX protocol data also carries the gradual change time parameter, adjusting the light efficiency parameter of the target lighting equipment into the target light efficiency control parameter carried by the DMX protocol data according to the gradual change time parameter.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program that instructs associated hardware to perform the method, and that the computer program may be stored on a non-volatile computer readable storage medium, which when executed, may comprise the embodiment flows of the above-described methods. Any reference to memory, storage, database, or other medium used in embodiments provided herein can include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can take many forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing describes in detail a light efficiency control method, apparatus, computer device and storage medium provided by the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.

Claims (10)

1. A light efficiency control method, characterized by being applied to a target lighting device, comprising:
acquiring DMX protocol data transmitted by a DMX console; the DMX protocol data carries light efficiency control parameters;
comparing the obtained target light efficiency control parameter in the current DMX protocol data with a preset reference light efficiency control parameter;
if the target light efficiency control parameter is different from the reference light efficiency control parameter, acquiring a data frame number corresponding to the target light efficiency control parameter, and taking the target light efficiency control parameter as an updated reference light efficiency control parameter; the data frame number refers to the number of associated DMX protocol data with the same light efficiency control parameter as the reference light efficiency control parameter in the acquired DMX protocol data;
And adjusting the light efficiency parameter of the target lighting equipment to the target light efficiency control parameter according to the light efficiency slow-changing time corresponding to the data frame number.
2. The light efficiency control method according to claim 1, wherein after comparing the obtained target light efficiency control parameter in the current DMX protocol data with a preset reference light efficiency control parameter, the method further comprises:
and if the target light efficiency control parameter is the same as the reference light efficiency control parameter, updating the data frame number corresponding to the target light efficiency control parameter to obtain the updated data frame number.
3. The light efficiency control method according to claim 1, wherein the adjusting the light efficiency parameter of the target lighting device to the target light efficiency control parameter according to the light efficiency ramp time corresponding to the data frame number comprises:
if the data frame number is smaller than a preset first frame number threshold value, adjusting the light efficiency parameter of the target lighting equipment to be the target light efficiency control parameter according to a preset first light efficiency slow-changing time; and/or
If the data frame number is greater than a preset second frame number threshold, adjusting the light efficiency parameter of the target lighting equipment to be the target light efficiency control parameter according to a preset second light efficiency ramp time; the second light effect ramp time is greater than the first light effect ramp time.
4. The light efficiency control method according to claim 1, wherein the adjusting the light efficiency parameter of the target lighting device to the target light efficiency control parameter according to the light efficiency ramp time corresponding to the data frame number comprises:
acquiring a light efficiency control parameter difference value between the target light efficiency control parameter and the reference light efficiency control parameter;
determining light efficiency control parameters of the target lighting equipment at all moments according to the light efficiency slow-changing time corresponding to the data frame number and the light efficiency control parameter difference value;
and controlling the target lighting equipment according to the light efficiency control parameters of the target lighting equipment at corresponding moments so as to adjust the light efficiency parameters of the target lighting equipment into the target light efficiency control parameters.
5. The method according to claim 4, wherein before the step of determining the light efficiency control parameter corresponding to each time of the target lighting device according to the light efficiency ramp time corresponding to the data frame number and the light efficiency control parameter difference value, the method further comprises:
if the ratio of the light effect control parameter difference value to the light effect ramp time is smaller than a preset ratio threshold value, executing the steps of determining the light effect control parameters of the target lighting equipment at all times according to the light effect ramp time corresponding to the data frame number and the light effect control parameter difference value;
And if the ratio of the light effect control parameter difference value to the light effect slowly-varying time is larger than a preset ratio threshold value, controlling the target lighting equipment according to a preset maximum allowable parameter difference value so as to adjust the light effect parameter of the target lighting equipment to be the target light effect control parameter.
6. A light effect control method according to claim 1, wherein after said obtaining DMX protocol data transmitted by a DMX console, said method further comprises:
if the DMX protocol data does not carry the slow-change time parameter, executing the step of comparing the acquired target light efficiency control parameter in the current DMX protocol data with a preset reference light efficiency control parameter;
and if the DMX protocol data also carries a slow-change time parameter, adjusting the light efficiency parameter of the target lighting equipment into a target light efficiency control parameter carried by the DMX protocol data according to the slow-change time parameter.
7. A light efficiency control method according to any one of claims 1 to 6, wherein the light efficiency control parameter includes at least one of a light color control parameter, a light brightness control parameter, and a light color temperature control parameter.
8. A light efficiency control apparatus provided in a target lighting device, the light efficiency control apparatus comprising:
the acquisition module is used for acquiring the DMX protocol data transmitted by the DMX console; the DMX protocol data carries light efficiency control parameters;
the comparison module is used for comparing the acquired target light efficiency control parameters in the current DMX protocol data with preset reference light efficiency control parameters;
the updating module is used for acquiring the data frame number corresponding to the target light efficiency control parameter if the target light efficiency control parameter is different from the reference light efficiency control parameter, and taking the target light efficiency control parameter as the updated reference light efficiency control parameter; the data frame number refers to the number of associated DMX protocol data with the same light efficiency control parameter as the reference light efficiency control parameter in the acquired DMX protocol data;
and the control module is used for adjusting the light efficiency parameter of the target lighting equipment into the target light efficiency control parameter according to the light efficiency ramp time corresponding to the data frame number.
9. A lighting device, the lighting device comprising:
a light emitting device;
one or more processors;
A memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps in the light effect control method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps in the light effect control method of any of claims 1 to 7.
CN202311011033.1A 2023-08-11 2023-08-11 Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium Active CN116761317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311011033.1A CN116761317B (en) 2023-08-11 2023-08-11 Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311011033.1A CN116761317B (en) 2023-08-11 2023-08-11 Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN116761317A true CN116761317A (en) 2023-09-15
CN116761317B CN116761317B (en) 2023-10-20

Family

ID=87951687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311011033.1A Active CN116761317B (en) 2023-08-11 2023-08-11 Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116761317B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060082331A1 (en) * 2004-09-29 2006-04-20 Tir Systems Ltd. System and method for controlling luminaires
CN101699923A (en) * 2009-11-11 2010-04-28 广州中大中鸣科技有限公司 Lighting control system based on DMX512 protocol and method thereof
JP5789727B1 (en) * 2014-04-09 2015-10-07 スターデココリア カンパニー リミテッド Illuminance control device for LED stage lighting system using hybrid control system
CN204707304U (en) * 2015-01-29 2015-10-14 广州景晴光电科技有限公司 Can many pixels RGB controller of custom lamp optical mode arbitrarily

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060082331A1 (en) * 2004-09-29 2006-04-20 Tir Systems Ltd. System and method for controlling luminaires
CN101699923A (en) * 2009-11-11 2010-04-28 广州中大中鸣科技有限公司 Lighting control system based on DMX512 protocol and method thereof
JP5789727B1 (en) * 2014-04-09 2015-10-07 スターデココリア カンパニー リミテッド Illuminance control device for LED stage lighting system using hybrid control system
CN204707304U (en) * 2015-01-29 2015-10-14 广州景晴光电科技有限公司 Can many pixels RGB controller of custom lamp optical mode arbitrarily

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
任慧;李舒伟;刘洋;: "基于ARM的舞台LED灯具光色控制系统的研究", 中国传媒大学学报(自然科学版), no. 03, pages 18 - 22 *
杨静;马小军;王永庆;: "基于DMX512协议的LED灯光场景编辑软件设计", 现代建筑电气, no. 03, pages 15 - 19 *

Also Published As

Publication number Publication date
CN116761317B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
US7742032B2 (en) Image adaptation phase-in
CN106710571B (en) Display control method, display controller and tiled display system
CN101873437B (en) Method and device for regulating exposure
CN105245469A (en) Data transmission method, device and system
CN109005365B (en) Method and device for controlling starting of light supplement lamp
US20120099543A1 (en) Transmission method of base station for random access resource allocation, transmission method of terminal for using the random access resource allocation, and apparatus for thereof
WO2018227867A1 (en) User classification-based differential backoff method in 5g big connection internet of things
CA3065621C (en) Method of uplink power control, terminal device and network device
CN110211540A (en) A kind of multi-region method for controlling backlight thereof, device, terminal and storage medium
CN113613370A (en) Atmosphere lamp control method and device, computer readable storage medium and terminal
WO2023109390A1 (en) Data sending method and apparatus, storage medium, processor, and ap terminal
CN110234151A (en) A kind of terminal access method and device
CN110427300A (en) Server GPU performance regulates and controls method, apparatus, equipment and readable storage medium storing program for executing
CN110113852A (en) Scene lamp control method and system
CN116761317B (en) Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium
US20180234934A1 (en) Anchor master am management method and node
CN109819172B (en) Automatic exposure method and system
CN107567098B (en) Method and device for power distribution
CN112866756B (en) Code rate control method, device, medium and equipment for multimedia file
US20080123619A1 (en) Apparatus, method, and computer readable medium thereof for dividing a beacon interval
CN116723619B (en) Spliced lamp group control method and device, computer equipment and readable storage medium
WO2023231373A1 (en) Device connection method and apparatus, electronic device and storage medium
US8849937B2 (en) Apparatus and method for time synchronization by automatically controlling sending message count of master
CN114401404A (en) VPU (virtual private Unit) coding strategy implementation method and device
CN114513888A (en) Microwave sensor group control method based on bus, computer device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant