CN116709618A - Lamp, lamp control method and lamp control device - Google Patents
Lamp, lamp control method and lamp control device Download PDFInfo
- Publication number
- CN116709618A CN116709618A CN202310759357.7A CN202310759357A CN116709618A CN 116709618 A CN116709618 A CN 116709618A CN 202310759357 A CN202310759357 A CN 202310759357A CN 116709618 A CN116709618 A CN 116709618A
- Authority
- CN
- China
- Prior art keywords
- light
- lamp
- emitting element
- ballast
- mcu
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000003287 optical effect Effects 0.000 claims description 5
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 abstract description 4
- 229910052710 silicon Inorganic materials 0.000 abstract description 4
- 239000010703 silicon Substances 0.000 abstract description 4
- 238000004590 computer program Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 6
- 230000000875 corresponding effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 2
- 229910052736 halogen Inorganic materials 0.000 description 2
- 150000002367 halogens Chemical class 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 241001465382 Physalis alkekengi Species 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/19—Controlling the light source by remote control via wireless transmission
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/20—Responsive to malfunctions or to light source life; for protection
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
Description
技术领域technical field
本申请涉及灯具控制技术领域,特别是涉及一种灯具、灯具控制方法和灯具控制装置。The present application relates to the technical field of lamp control, in particular to a lamp, a lamp control method and a lamp control device.
背景技术Background technique
在舞台演出中,舞台灯具通常通过灯光控制台远程控制。如果舞台灯具在演出过程中出现故障,而无法通过灯光控制台远程控制时,故障灯具可能无法关闭,从而导致故障灯具不受控制地照射到其他物体上,因此,需要将故障灯具及时关闭。In stage performances, stage lighting is usually controlled remotely through a lighting console. If the stage lamp fails during the performance and cannot be remotely controlled through the lighting console, the faulty lamp may not be able to be turned off, which will cause the faulty lamp to irradiate other objects uncontrollably. Therefore, it is necessary to turn off the faulty lamp in time.
但是,目前通常多个灯具由一个电源硅箱进行供电,直接对故障灯具进行断电会影响其他正常灯具的使用。However, at present, usually multiple lamps are powered by one power silicon box, directly powering off the faulty lamp will affect the use of other normal lamps.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种能够独立控制的灯具、灯具控制方法和灯具控制装置。Based on this, it is necessary to provide an independently controllable lamp, a lamp control method, and a lamp control device for the above technical problems.
第一方面,本申请提供了一种灯具。该灯具包括:In a first aspect, the present application provides a lamp. The lamp includes:
发光元件;镇流器,镇流器与发光元件连接,用于控制发光元件的点亮和熄灭;MCU,MCU与镇流器连接,用于在确定发光元件无法由灯光控制台进行控制,且,发光元件的光线能够出射到灯具之外的情况下,发送控制信号至镇流器,以使镇流器控制发光元件熄灭。The light-emitting element; the ballast, the ballast is connected with the light-emitting element, and is used to control the lighting and extinguishing of the light-emitting element; the MCU, the MCU is connected with the ballast, and is used to determine that the light-emitting element cannot be controlled by the lighting console, and When the light of the light-emitting element can exit the lamp, a control signal is sent to the ballast, so that the ballast controls the light-emitting element to go out.
在其中一个实施例中,MCU具体用于在接收到灯光控制台发送的DMX512信号之后的预设时长内未接收到灯光控制台发送的新的DMX512信号的情况下,确定发光元件无法由灯光控制台进行控制。In one of the embodiments, the MCU is specifically used to determine that the light-emitting element cannot be controlled by the lighting when no new DMX512 signal sent by the lighting console is received within a preset period of time after receiving the DMX512 signal sent by the lighting console. platform to control.
在其中一个实施例中,MCU具体用于在发光元件常亮,且灯具的光闸打开的情况下,确定发光元件的光线能够出射到灯具之外。In one of the embodiments, the MCU is specifically configured to determine that light from the light emitting element can exit the light fixture when the light emitting element is always on and the shutter of the lamp is opened.
在其中一个实施例中,MCU具体用于根据镇流器的反馈信号确定发光元件是否常亮。In one of the embodiments, the MCU is specifically configured to determine whether the light-emitting element is always on according to the feedback signal of the ballast.
在其中一个实施例中,MCU具体用于根据灯具的地址码、灯具的型号以及DMX512信号,确定灯具的光闸的状态。In one of the embodiments, the MCU is specifically used to determine the state of the shutter of the lamp according to the address code of the lamp, the model of the lamp and the DMX512 signal.
在其中一个实施例中,MCU具体用于若确定发光元件无法由灯光控制台进行控制,且,发光元件的光线能够出射到灯具之外的状态的时间超过预设时间阈值后,则发送控制信号至镇流器。In one of the embodiments, the MCU is specifically configured to send a control signal if it is determined that the light-emitting element cannot be controlled by the lighting console, and the time for the light of the light-emitting element to exit the state outside the lamp exceeds a preset time threshold to the ballast.
在其中一个实施例中,灯具还包括无线接收模块,无线接收模块用于供MCU通过无线方式接收DMX512信号。In one embodiment, the lamp further includes a wireless receiving module, which is used for the MCU to receive DMX512 signals wirelessly.
在其中一个实施例中,灯具还包括网线,网线用于供MCU通过网线接收DMX512信号。In one embodiment, the lamp further includes a network cable for the MCU to receive DMX512 signals through the network cable.
第二方面,本申请还提供了一种灯具控制方法,该方法包括:In a second aspect, the present application also provides a lamp control method, the method comprising:
在确定灯具无法由灯光控制台进行控制,且,灯具的光线能够出射到灯具之外的情况下;发送控制信号通过设置于灯具内部的镇流器控制灯具的发光元件熄灭。When it is determined that the lamp cannot be controlled by the lighting console, and the light of the lamp can be emitted outside the lamp; the control signal is sent to control the light-emitting element of the lamp to be extinguished through the ballast arranged inside the lamp.
在其中一个实施例中,确定灯具无法由灯光控制台进行控制,包括:定时接收灯光控制台发送的DMX512信号,若超过预设时长后未接收到DMX512信号,则确定灯具无法由灯光控制台进行控制。In one of the embodiments, determining that the lamp cannot be controlled by the lighting console includes: regularly receiving the DMX512 signal sent by the lighting console, and if the DMX512 signal is not received after a preset period of time, then determining that the lamp cannot be controlled by the lighting console control.
在其中一个实施例中,确定灯具的光线能够出射到灯具之外,包括:接收镇流器的反馈信号;根据反馈信号确定发光元件是否常亮;根据灯具的地址码、灯具的型号以及DMX512信号,确定灯具的光闸的状态;根据发光元件是否常亮以及光闸的状态确定灯具的光线是否能够出射到灯具之外。In one of the embodiments, determining that the light of the lamp can exit the lamp includes: receiving a feedback signal from the ballast; determining whether the light-emitting element is always on according to the feedback signal; , determine the state of the shutter of the lamp; determine whether the light of the lamp can exit the lamp according to whether the light-emitting element is always on and the state of the shutter.
第三方面,本申请还提供了一种灯具控制装置,该装置包括:In a third aspect, the present application also provides a lamp control device, which includes:
发送模块,用于在确定灯具无法由灯光控制台进行控制,且,灯具的光线能够出射到灯具之外的情况下;发送控制信号通过设置于灯具内部的镇流器控制灯具的发光元件熄灭。The sending module is used to send a control signal to control the light-emitting element of the lamp to turn off through the ballast installed inside the lamp when it is determined that the lamp cannot be controlled by the lighting console, and the light of the lamp can be emitted outside the lamp.
在其中一个实施例中,该装置还包括第一确定模块,用于定时接收灯光控制台发送的DMX512信号,若超过预设时长后未接收到DMX512信号,则确定灯具无法由灯光控制台进行控制。In one of the embodiments, the device also includes a first determination module, which is used to regularly receive the DMX512 signal sent by the lighting console, and if the DMX512 signal is not received after a preset period of time, it is determined that the lamp cannot be controlled by the lighting console .
在其中一个实施例中,该装置还包括第二确定模块,用于接收镇流器的反馈信号;根据反馈信号确定发光元件是否常亮;根据灯具的地址码、灯具的型号以及DMX512信号,确定灯具的光闸的状态;根据发光元件是否常亮以及光闸的状态确定灯具的光线是否能够出射到灯具之外。In one of the embodiments, the device also includes a second determination module, which is used to receive the feedback signal of the ballast; determine whether the light-emitting element is always on according to the feedback signal; determine the The state of the shutter of the lamp; determine whether the light of the lamp can exit the lamp according to whether the light-emitting element is always on and the state of the shutter.
第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述第二方面所述的灯具控制方法。In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the lamp control method described in the second aspect above is realized.
第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述第二方面所述的灯具控制方法。In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the lamp control method described in the second aspect above is implemented.
上述灯具、灯具控制方法和灯具控制装置,该灯具包括发光元件;还包括镇流器,镇流器与发光元件连接,用于控制发光元件的点亮和熄灭;还包括MCU,MCU与镇流器连接,用于在确定发光元件无法由灯光控制台进行控制,并且发光元件的光线能够出射到灯具之外的情况下,MCU发送控制信号至镇流器,通过镇流器控制发光元件熄灭。通过这种方式,该灯具在使用过程中,当灯具由于故障等原因无法由灯光控制台进行远程控制时,灯具内置的MCU对灯具状态进行判断,确定若灯具无法由灯光控制台进行控制同时灯具的光线能够出射到灯具之外时,发送控制信号至灯具内置的镇流器,控制灯具的发光元件熄灭,这样不需要通过电源硅箱对故障灯具进行断电即可熄灭灯具,实现对灯具的独立控制,使用更方便。The above lamp, lamp control method and lamp control device, the lamp includes a light emitting element; also includes a ballast, the ballast is connected with the light emitting element for controlling the lighting and extinguishing of the light emitting element; it also includes an MCU, the MCU and the ballast When it is determined that the light-emitting element cannot be controlled by the lighting console and the light of the light-emitting element can exit the lamp, the MCU sends a control signal to the ballast, and the light-emitting element is controlled to be extinguished through the ballast. In this way, during the use of the luminaire, when the luminaire cannot be remotely controlled by the lighting console due to failure or other reasons, the MCU built in the luminaire will judge the status of the luminaire to determine if the luminaire cannot be controlled by the lighting console. When the light can be emitted outside the lamp, send a control signal to the built-in ballast of the lamp to control the light-emitting element of the lamp to extinguish, so that the lamp can be extinguished without powering off the faulty lamp through the power silicon box, realizing the protection of the lamp Independent control, more convenient to use.
附图说明Description of drawings
图1为一个实施例中灯具的结构示意图;Fig. 1 is the structural representation of lamps and lanterns in an embodiment;
图2为一个实施例中DMX512数据包的示意图;Fig. 2 is the schematic diagram of DMX512 packet in an embodiment;
图3为一个实施例中DMX512数据帧的示意图;Fig. 3 is the schematic diagram of DMX512 data frame in an embodiment;
图4为另一个实施例中灯具的结构示意图;Fig. 4 is a schematic structural view of a lamp in another embodiment;
图5为一个实施例中灯具ART-NET的端口地址示意图;Fig. 5 is a schematic diagram of the port address of the lamp ART-NET in an embodiment;
图6为另一个实施例中灯具控制方法的流程示意图;Fig. 6 is a schematic flowchart of a lamp control method in another embodiment;
图7为另一个实施例中灯具控制方法的流程示意图;Fig. 7 is a schematic flowchart of a lamp control method in another embodiment;
图8为另一个实施例中灯具控制方法的流程示意图;Fig. 8 is a schematic flowchart of a lamp control method in another embodiment;
图9为另一个实施例中灯具控制方法的流程示意图;Fig. 9 is a schematic flowchart of a lamp control method in another embodiment;
图10为另一个实施例中灯具控制方法的流程示意图;Fig. 10 is a schematic flowchart of a lamp control method in another embodiment;
图11为一个实施例中灯具控制模块的结构框图。Fig. 11 is a structural block diagram of a lamp control module in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在本申请中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如,两个,三个等,除非另有明确具体的限定。In this application, the terms "first" and "second" are only used for descriptive purposes, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.
在本申请中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In this application, terms such as "installation", "connection", "connection" and "fixation" should be interpreted in a broad sense, for example, it can be a fixed connection or a detachable connection, unless otherwise clearly specified and limited. , or integrated; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components or the interaction relationship between two components, unless otherwise specified limit. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application according to specific situations.
在本申请中,除非另有明确的规定和限定,第一特征在第二特征“上”或“下”可以是第一和第二特征直接接触,或第一和第二特征通过中间媒介间接接触。而且,第一特征在第二特征“之上”、“上方”和“上面”可是第一特征在第二特征正上方或斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”可以是第一特征在第二特征正下方或斜下方,或仅仅表示第一特征水平高度小于第二特征。In the present application, unless otherwise clearly specified and limited, a first feature being "on" or "under" a second feature may mean that the first and second features are in direct contact, or that the first and second features are indirect through an intermediary. touch. Moreover, "above", "above" and "above" the first feature on the second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. "Below", "beneath" and "beneath" the first feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is less horizontally than the second feature.
需要说明的是,当元件被称为“固定于”或“设置于”另一个元件,它可以直接在另一个元件上或者也可以存在居中的元件。当一个元件被认为是“连接”另一个元件,它可以是直接连接到另一个元件或者可能同时存在居中元件。本文所使用的术语“垂直的”、“水平的”、“上”、“下”、“左”、“右”以及类似的表述只是为了说明的目的,并不表示是唯一的实施方式。It should be noted that when an element is referred to as being “fixed on” or “disposed on” another element, it may be directly on the other element or there may be an intervening element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or intervening elements may also be present. As used herein, the terms "vertical", "horizontal", "upper", "lower", "left", "right" and similar expressions are for the purpose of illustration only and are not intended to represent the only embodiments.
图1为本申请实施例提供的灯具的结构示意图。如图1所示,该灯具包括发光元件11;镇流器12,镇流器12与发光元件11连接,用于控制发光元件11的点亮和熄灭;MCU13,MCU13与镇流器12连接,用于在确定发光元件11无法由灯光控制台进行控制,且,发光元件11的光线能够出射到灯具之外的情况下,发送控制信号至镇流器12,以使镇流器12控制发光元件11熄灭。Fig. 1 is a schematic structural diagram of a lamp provided by an embodiment of the present application. As shown in Figure 1, the lamp includes a light emitting element 11; a ballast 12, the ballast 12 is connected with the light emitting element 11, and is used to control the lighting and extinguishing of the light emitting element 11; MCU13, the MCU13 is connected with the ballast 12, It is used to send a control signal to the ballast 12 when it is determined that the light-emitting element 11 cannot be controlled by the lighting console, and the light of the light-emitting element 11 can exit the lamp, so that the ballast 12 controls the light-emitting element 11 goes out.
其中,发光元件11可以是灯泡,是灯具中的发光器件。镇流器12可以是电子镇流器,通过电子技术驱动光源,控制发光元件11的点亮和熄灭。MCU13可以是带显示面板的MCU,通过显示面板可以显示灯具的当前状态,可选的,可以设置指示灯显示当前灯具的状态,例如当灯具状态正常由远程灯光控制台进行控制时,指示灯熄灭,当灯具出现故障,无法由灯光控制台进行控制时,指示灯闪烁进行提醒。Wherein, the light emitting element 11 may be a light bulb, which is a light emitting device in a lamp. The ballast 12 may be an electronic ballast, which drives the light source through electronic technology and controls the lighting and extinguishing of the light emitting element 11 . MCU13 can be an MCU with a display panel, through which the current status of the lamp can be displayed. Optionally, an indicator light can be set to display the current status of the lamp. For example, when the status of the lamp is normally controlled by the remote lighting console, the indicator light is off , when the lamp fails and cannot be controlled by the lighting console, the indicator light flashes to remind.
正常情况下灯光控制台通过发送DMX512信号控制灯具的正常运行,当灯具出现故障,无法由远程控制台控制时,此时为避免灯具不受控制的照射在其他物体上,需要对灯具进行熄灭。MCU13在确定发光元件11无法由灯光控制台进行控制,同时,发光元件11的光线能够出射到灯具之外时,MCU13发送熄灭灯泡的控制信号至镇流器12,镇流器12在接收到熄灭灯泡的控制信号后控制发光元件11熄灭,同时反馈成功灭泡的信号给MCU13。Under normal circumstances, the lighting console controls the normal operation of the lamps by sending DMX512 signals. When the lamps fail and cannot be controlled by the remote console, the lamps need to be extinguished to avoid uncontrolled irradiation of the lamps on other objects. When the MCU13 determines that the light-emitting element 11 cannot be controlled by the lighting console, and at the same time, when the light of the light-emitting element 11 can exit the lamp, the MCU13 sends a control signal to turn off the light bulb to the ballast 12, and the ballast 12 receives the signal to turn off the light bulb. After the control signal of the light bulb, the light-emitting element 11 is controlled to be extinguished, and at the same time, a signal of successfully extinguishing the bulb is fed back to the MCU13.
上述实施例,灯具包括发光元件,镇流器,镇流器与发光元件连接,用于控制发光元件的点亮和熄灭;还包括MCU,MCU与镇流器连接,用于在确定发光元件无法由灯光控制台进行控制,并且发光元件的光线能够出射到灯具之外的情况下,MCU发送控制信号至镇流器,通过镇流器控制发光元件熄灭。通过这种方式,该灯具在使用过程中,当灯具由于故障等原因无法由灯光控制台进行远程控制时,灯具内置的MCU对灯具状态进行判断,确定若灯具无法由灯光控制台进行控制同时灯具的光线能够出射到灯具之外时,发送控制信号至灯具内置的镇流器,控制灯具的发光元件熄灭,这样不需要通过电源硅箱对故障灯具进行断电即可熄灭灯具,实现对灯具的独立控制,使用更方便。In the above embodiment, the lamp includes a light-emitting element, a ballast, and the ballast is connected with the light-emitting element for controlling the lighting and extinguishing of the light-emitting element; it also includes an MCU, and the MCU is connected with the ballast for determining that the light-emitting element cannot When it is controlled by the lighting console and the light of the light-emitting element can exit the lamp, the MCU sends a control signal to the ballast, and the light-emitting element is controlled to be extinguished through the ballast. In this way, during the use of the luminaire, when the luminaire cannot be remotely controlled by the lighting console due to failure or other reasons, the MCU built in the luminaire will judge the status of the luminaire to determine if the luminaire cannot be controlled by the lighting console. When the light can be emitted outside the lamp, send a control signal to the built-in ballast of the lamp to control the light-emitting element of the lamp to extinguish, so that the lamp can be extinguished without powering off the faulty lamp through the power silicon box, realizing the protection of the lamp Independent control, more convenient to use.
在一种可选的实施方式中,MCU13具体用于在接收到灯光控制台发送的DMX512信号之后的预设时长内未接收到灯光控制台发送的新的DMX512信号的情况下,确定发光元件11无法由灯光控制台进行控制。In an optional implementation, the MCU 13 is specifically used to determine the light emitting element 11 when no new DMX512 signal sent by the lighting console is received within a preset period of time after receiving the DMX512 signal sent by the lighting console. Cannot be controlled by lighting console.
其中,预设时长为1个DMX512数据包的传输时间。如图2所示,为一个DMX512数据包的结构。MTBP(Mark Time Between Packets)标志着一个完整的DMX512数据包发送完毕,为下一个DMX512数据包即将开始的空闲位,MTBP是高电平有效。可选的,灯光控制台可以通过DMX512信号线与灯具连接,灯光控制台不间断的向灯具发送DMX512数据包,MCU13检测DMX512数据包的MTBP位,并接收DMX512数据包。1个DMX512数据包包含1个MTBP位,1个Break位,1个MAB,1个SC和512个数据帧构成。DMX512数据包的传输速率固定为250Kbps,每个数据位的时间是4μs,每个数据帧是11位,就是44μs。也即512个数据帧的数据传输时间为44*512=22.528ms。由上述可知,1个DMX512数据包传输时间为88μs+8μs+44μs+44μs*512=22.668ms,即发送一个DMX512数据包的时间大约是23ms,也即预设时长为23ms。Wherein, the preset duration is the transmission time of one DMX512 data packet. As shown in Figure 2, it is the structure of a DMX512 data packet. MTBP (Mark Time Between Packets) marks that a complete DMX512 data packet has been sent, and it is a free bit for the next DMX512 data packet. MTBP is active at high level. Optionally, the lighting console can be connected to the lamps through the DMX512 signal line, the lighting console continuously sends DMX512 data packets to the lamps, and the MCU13 detects the MTBP bit of the DMX512 data packets and receives the DMX512 data packets. A DMX512 data packet consists of 1 MTBP bit, 1 Break bit, 1 MAB, 1 SC and 512 data frames. The transmission rate of DMX512 data packets is fixed at 250Kbps, the time of each data bit is 4μs, and each data frame is 11 bits, which is 44μs. That is, the data transmission time of 512 data frames is 44*512=22.528ms. It can be seen from the above that the transmission time of a DMX512 data packet is 88μs+8μs+44μs+44μs*512=22.668ms, that is, the time to send a DMX512 data packet is about 23ms, that is, the preset duration is 23ms.
MCU13不间断接收灯光控制台的DMX512信号,当接收到DMX512信号后,超过23ms后仍未检测到下一个DMX512数据包的MTBP位,MCU13确定此时发光元件11无法由灯光控制台进行控制,也即确定DMX512数据包从有到无。可选的,MCU13发送闪烁信号,可以使显示面板的指示灯闪烁。MCU13 continuously receives the DMX512 signal from the lighting console. After receiving the DMX512 signal, the MTBP bit of the next DMX512 data packet has not been detected after more than 23ms. MCU13 determines that the light emitting element 11 cannot be controlled by the lighting console at this time. That is to determine the DMX512 data packet from presence to absence. Optionally, the MCU 13 sends a blinking signal to make the indicator light on the display panel blink.
上述实施例,通过检测接收到灯光控制台发送的DMX512信号之后的预设时长内未接收到灯光控制台发送的新的DMX512信号,也即DMX512信号从有到无,来判断灯具是否无法由灯光控制台进行控制,避免如果是通过MCU的显示面板手动点亮灯泡以及打开光闸这种情况的误操作。In the above-mentioned embodiment, by detecting that no new DMX512 signal sent by the lighting console is received within the preset period of time after receiving the DMX512 signal sent by the lighting console, that is, the DMX512 signal changes from existence to non-existence, to determine whether the lamp cannot be controlled by the lighting console. The control console is used to avoid misoperation if the light bulb is manually turned on and the shutter is opened through the display panel of the MCU.
在一个实施例中,MCU13具体用于在发光元件11常亮,且灯具的光闸打开的情况下,确定发光元件11的光线能够出射到灯具之外。In one embodiment, the MCU 13 is specifically configured to determine that light from the light emitting element 11 can exit the light fixture when the light emitting element 11 is always on and the shutter of the lamp is opened.
光闸为灯具光线的隔离部件,当灯具的发光元件常亮,且光闸打开时,发光元件的光线可以出射到灯具之外,当灯具的发光元件常亮但是光闸关闭时,发光元件的光线无法出射到灯具之外。The shutter is the isolation part of the light of the lamp. When the light-emitting element of the lamp is always on and the shutter is opened, the light of the light-emitting element can go out of the lamp. When the light-emitting element of the lamp is always on but the shutter is closed, the light of the light-emitting element Light cannot exit the light fixture.
可选的,MCU13具体用于根据镇流器12的反馈信号确定发光元件11是否常亮。Optionally, the MCU 13 is specifically configured to determine whether the light emitting element 11 is always on according to the feedback signal from the ballast 12 .
MCU13可以通过串口与镇流器12进行通信,MCU13可以根据镇流器12的反馈信号确定发光元件11的状态。例如,当MCU13发送“点泡”信号给镇流器12,镇流器12在接收到点泡信号后,触发并点亮发光元件11。当发光元件11成功点亮后,镇流器12会发送“成功亮泡”的反馈信号给MCU13。可选的,当发光元件11成功点亮后,MCU13的显示面板可以显示相应的标识用于指示灯具正常点亮。当发光元件11异常熄灭后,镇流器12会发送“灯泡异常”的反馈信号给MCU13。因此,当发光元件11点亮后,如果MCU13一直未收到镇流器12反馈的“灯泡异常”的反馈信号,则可以确定发光元件11处于常亮状态。The MCU 13 can communicate with the ballast 12 through the serial port, and the MCU 13 can determine the state of the light emitting element 11 according to the feedback signal of the ballast 12 . For example, when the MCU 13 sends a “ignition” signal to the ballast 12 , the ballast 12 triggers and lights the light emitting element 11 after receiving the signal. When the light-emitting element 11 is successfully lit, the ballast 12 will send a feedback signal of "successfully lit the bubble" to the MCU 13 . Optionally, when the light-emitting element 11 is successfully turned on, the display panel of the MCU 13 may display a corresponding mark for indicating that the light is turned on normally. When the light-emitting element 11 is turned off abnormally, the ballast 12 will send a feedback signal of "the bulb is abnormal" to the MCU 13 . Therefore, when the light-emitting element 11 is turned on, if the MCU 13 has not received the feedback signal of "abnormal light bulb" from the ballast 12, it can determine that the light-emitting element 11 is always on.
在本申请的实施例中,MCU13具体用于根据灯具的地址码、灯具的型号以及DMX512信号,确定灯具的光闸的状态。In the embodiment of the present application, the MCU 13 is specifically used to determine the state of the shutter of the lamp according to the address code of the lamp, the model of the lamp and the DMX512 signal.
灯光控制台不间断的发送DMX512数据包至所有灯具,灯具MCU将接收到的DMX512数据包保存在缓存中,同时灯具根据缓存中DMX512数据包执行相应的功能。缓存中的DMX512数据包持续进行更新,当灯具无法由灯光控制台进行控制,也即MCU13未接收到新的DMX512数据包,根据缓存中的最后一次接收到的DMX512数据包确定灯具的光闸的状态。The lighting console continuously sends DMX512 data packets to all lamps, and the lamp MCU saves the received DMX512 data packets in the cache, and the lamps perform corresponding functions according to the DMX512 data packets in the cache. The DMX512 data packets in the buffer are continuously updated. When the lamp cannot be controlled by the lighting console, that is, the MCU13 does not receive a new DMX512 data packet, the shutter of the lamp is determined according to the last received DMX512 data packet in the buffer. state.
灯光控制台可以通过DMX512信号线与灯具进行通信,同一条DMX512信号线可以连接多个灯具,不同的灯具通过不同的地址码和通道数进行区别。1个地址码对应1个数据帧,一个DMX512数据包共有512个数据帧,故障灯具只需要抓取对应的DMX512数据帧。1个数据帧包含1位低电平起始位,8位数据位,2位高电平停止位,其中8位数据位就是控制通道值0-255,如图3所示。The lighting console can communicate with the lamps through the DMX512 signal line. The same DMX512 signal line can connect multiple lamps. Different lamps are distinguished by different address codes and channel numbers. 1 address code corresponds to 1 data frame, a DMX512 data packet has 512 data frames in total, and the faulty lamp only needs to capture the corresponding DMX512 data frame. A data frame includes 1 low-level start bit, 8 data bits, and 2 high-level stop bits. The 8 data bits are the control channel value 0-255, as shown in Figure 3.
例如,灯具的通道数量是30,地址码是31,即灯具的MCU13只获取第31-60个DMX512数据帧。而故障灯具MCU13先查询内置的灯具型号,以及光闸通道的通道电平值。例如故障灯具的灯具型号是550BSW,第11通道是光闸通道。由于故障灯具设置的地址码是31,所以第42(31+11=42)个DMX512数据帧对应的是光闸通道。其中数据帧中的8个数据位全部为1,即光闸通道电平值是255,此时光闸打开。MCU13通过已经接收的通道电平值,确定灯具的光闸打开。For example, the number of channels of the lamp is 30, and the address code is 31, that is, the MCU13 of the lamp only obtains the 31st-60th DMX512 data frames. The faulty lamp MCU13 first inquires about the model of the built-in lamp and the channel level value of the shutter channel. For example, the lamp model of the faulty lamp is 550BSW, and the 11th channel is the shutter channel. Since the address code set by the faulty lamp is 31, the 42nd (31+11=42) DMX512 data frame corresponds to the shutter channel. The 8 data bits in the data frame are all 1, that is, the optical gate channel level value is 255, and the optical gate is opened at this time. The MCU13 determines that the shutter of the lamp is opened through the received channel level value.
可选的,MCU13具体用于若确定发光元件11无法由灯光控制台进行控制,且,发光元件11的光线能够出射到灯具之外的状态的时间超过预设时间阈值后,则发送控制信号至镇流器12。Optionally, MCU13 is specifically used to send a control signal to Ballast 12.
预设时间阈值为应急系统计时的阈值,如果超过预设时间阈值仍未收到DMX512信号,则发送控制信号至镇流器,如果在时间未超过预设时间阈值又收到了DMX512信号,说明此时灯具可以由灯光控制台进行控制,则不发送控制信号至镇流器熄灭灯泡。可选的,以灯具为卤素泡光束灯为例,卤素泡光束应急系统计时阈值是3分钟,如果在应急系统计时期间也即3分钟内,灯具的MCU又接收到DMX512信号,例如人为将DMX512信号线断开后又接通,应急系统将停止计时,灯具继续正常接收DMX512数据包。The preset time threshold is the timing threshold of the emergency system. If the DMX512 signal is not received beyond the preset time threshold, the control signal will be sent to the ballast. If the DMX512 signal is received before the preset time threshold, it means this When the lamp can be controlled by the lighting console, no control signal is sent to the ballast to turn off the bulb. Optionally, take the lamp as an example of a halogen bulb beam lamp. The timing threshold of the halogen bulb beam emergency system is 3 minutes. When the signal line is disconnected and then connected again, the emergency system will stop timing, and the lamps will continue to receive DMX512 data packets normally.
在一个实施例中,如图4所述,灯具还包括无线接收模块41,无线接收模块41用于供MCU13通过无线方式接收DMX512信号。In one embodiment, as shown in FIG. 4 , the lamp further includes a wireless receiving module 41 for the MCU 13 to receive DMX512 signals wirelessly.
可选的,灯具还可以通过无线连接的方式与灯光控制台进行通信。灯具包括无线接收模块41,MCU13通过无线方式接收灯光控制台的DMX512信号。Optionally, the lamps can also communicate with the lighting console through a wireless connection. The lamp includes a wireless receiving module 41, and the MCU13 receives the DMX512 signal of the lighting console through wireless.
当灯具设置为无线DMX512接收模式时,无线接收模块41发送链接信号至MCU13,MCU13接收到链接信号并进行匹配,匹配成功即可以通过无线方式接收DMX512信号。如果MCU13没有检测到无线DMX512链接信号,此时,即使灯光控制台发送无线DMX512数据包,MCU13无法接收到DMX512数据包。When the lamp is set to the wireless DMX512 receiving mode, the wireless receiving module 41 sends a link signal to the MCU13, and the MCU13 receives the link signal and performs matching. If the matching is successful, the DMX512 signal can be received wirelessly. If MCU13 does not detect the wireless DMX512 link signal, even if the lighting console sends wireless DMX512 data packets, MCU13 cannot receive the DMX512 data packets.
可选的,灯具还包括网线,网线用于供MCU13通过网线接收DMX512信号。Optionally, the lamp also includes a network cable, which is used for the MCU13 to receive DMX512 signals through the network cable.
在大型演出场景中,灯具使用的数量越来越多,可选的,灯具还可以通过网线接收DMX512数据包,当灯具连接网线,并设置为Art-Net接收模式时,增加了端口地址的检测,用于判断DMX512数据包的接收。In large-scale performance scenes, more and more lamps are used. Optionally, the lamps can also receive DMX512 data packets through the network cable. When the lamps are connected to the network cable and set to Art-Net receiving mode, the detection of the port address is added. , used to judge the reception of DMX512 data packets.
Art-Net是一种基于TCP/IP协议的10base T以太网协议,它能够允许大量DMX512数据帧传输到域中设备,最大输出速度可达10M/S。因此灯具需要先设置IP地址,例如:255.0.0.0。Art-Net中还包括一个端口地址(Port-Address),端口地址为15位数,包括Net(网络)+Sub-Net(子网)+Universe(数据包),灯具Art-Net的端口地址如图5所示。Art-Net is a 10base T Ethernet protocol based on TCP/IP protocol, which can allow a large number of DMX512 data frames to be transmitted to devices in the domain, and the maximum output speed can reach 10M/S. Therefore, the lamp needs to set the IP address first, for example: 255.0.0.0. Art-Net also includes a port address (Port-Address), the port address is 15 digits, including Net (network) + Sub-Net (subnet) + Universe (packet), the port address of the lamp Art-Net is as follows Figure 5 shows.
其中,端口地址共有32768(215=32768)个,其中网络组号是由Net(网络)+Sub-Net(子网)组成,共有128(27=128)个,Universe是数据包,共有256(28=256)个。1个DMX512数据包包含1个MTBP位,1个Break位,1个MAB,1个SC和512个数据帧构成。1个数据帧包含1位低电平起始位,8位数据位,2位高电平停止位,其中8位数据位就是控制通道值为0-255。1个数据帧对应1个地址码,共有512个地址码。Among them, there are 32768 (2 15 = 32768) port addresses in total, and the network group number is composed of Net (network) + Sub-Net (subnet), and there are 128 (2 7 = 128) in total. 256 (2 8 =256) pieces. A DMX512 data packet consists of 1 MTBP bit, 1 Break bit, 1 MAB, 1 SC and 512 data frames. 1 data frame contains 1 low-level start bit, 8 data bits, and 2 high-level stop bits, among which 8 data bits are the control channel value 0-255. 1 data frame corresponds to 1 address code , a total of 512 address codes.
每个端口地址可以写入可控的DMX512数据帧,而这些数据帧是以数据包的形式放置在端口地址中。因此灯具还需要设置网络组号,网络组号可以为1-128,以及地址码,地址码可以为1-512。然后灯具还需要设置网络组号和地址码。完成以上设置后,灯具就可以通过网线,正常接收灯光控制台发送的DMX512数据包。如果MCU13没有检测到灯具Art-Net的端口地址,包括灯具网络组号和地址码,此时即使灯光控制台远程发送DMX512数据包,灯具MCU13也无法接收到网线上的DMX512数据包。Each port address can write controllable DMX512 data frames, and these data frames are placed in the port address in the form of data packets. Therefore, the lamp also needs to set the network group number, which can be 1-128, and the address code, which can be 1-512. Then the lamp also needs to set the network group number and address code. After completing the above settings, the lamps can normally receive the DMX512 data packets sent by the lighting console through the network cable. If MCU13 does not detect the port address of the lamp Art-Net, including the network group number and address code of the lamp, even if the lighting console sends DMX512 data packets remotely, the lamp MCU13 cannot receive the DMX512 data packets on the network cable.
上述实施例中,除了舞台灯具通常使用的DMX512信号线连接的通信方式,灯具还可以是使用无线连接的方式通信,以及网线连接的方式进行通信的,均可以实现对灯具的控制。In the above-mentioned embodiments, in addition to the communication mode of DMX512 signal line connection commonly used by stage lamps, the lamps can also communicate through wireless connection and network cable connection, and control the lamps can be realized.
第二方面,本申请还提供了一种灯具控制方法,如图6所示,该方法包括:In the second aspect, the present application also provides a lamp control method, as shown in FIG. 6, the method includes:
步骤601,在确定灯具无法由灯光控制台进行控制,且,灯具的光线能够出射到灯具之外的情况下。Step 601, when it is determined that the light fixture cannot be controlled by the lighting console, and the light of the light fixture can exit the light fixture.
其中,如上述所述,灯具MCU确定灯具无法由灯光控制台进行控制,且灯具的光线能够出射到灯具之外,为避免故障灯具一直亮或者不受控制的照射到其他物体上,需要对故障灯具进行熄灭。Among them, as mentioned above, the lamp MCU determines that the lamp cannot be controlled by the lighting console, and the light of the lamp can exit the lamp. Lights are turned off.
步骤602,发送控制信号通过设置于灯具内部的镇流器控制灯具的发光元件熄灭。Step 602, sending a control signal to control the light-emitting element of the lamp to turn off through the ballast arranged inside the lamp.
灯具MCU发送熄灭灯泡的控制信号至灯具内部的镇流器中,由镇流器控制灯具的发光元件熄灭,同时镇流器反馈“成功灭泡”的信号给MCU,MCU确定灯具已经成功熄灭。The MCU of the lamp sends a control signal to turn off the bulb to the ballast inside the lamp, and the ballast controls the light-emitting element of the lamp to turn off, and at the same time, the ballast feeds back a signal of "successful defoaming" to the MCU, and the MCU determines that the lamp has been successfully extinguished.
在一个实施例中,确定灯具无法由灯光控制台进行控制,包括:定时接收灯光控制台发送的DMX512信号,若超过预设时长后未接收到DMX512信号,则确定灯具无法由灯光控制台进行控制。In one embodiment, determining that the lamp cannot be controlled by the lighting console includes: regularly receiving the DMX512 signal sent by the lighting console, and if the DMX512 signal is not received after a preset period of time, then determining that the lamp cannot be controlled by the lighting console .
灯具MCU定时接收灯光控制台发送的DMX512信号,预设时长如上述实施例中所述为1个DMX512数据包的传输时间,当超过预设时长,也即超过一个DMX512数据包的传输时间仍未收到新的DMX512信号,则确定此时灯具无法由灯光控制台进行控制了。The lamp MCU regularly receives the DMX512 signal sent by the lighting console. The preset duration is the transmission time of one DMX512 data packet as described in the above embodiment. When the preset duration is exceeded, that is, the transmission time of one DMX512 data packet is still When a new DMX512 signal is received, it is determined that the lamp cannot be controlled by the lighting console at this time.
可选的,确定灯具的光线能够出射到灯具之外的步骤,如图7所示,包括:Optionally, the step of determining that the light of the luminaire can exit the luminaire, as shown in Figure 7, includes:
步骤701,接收镇流器的反馈信号。Step 701, receiving a feedback signal from a ballast.
如上述实施例所述,灯具MCU发送控制信号至镇流器后,镇流器控制发光元件执行相应的动作,然后发送反馈信号至MCU。As described in the above embodiments, after the lamp MCU sends a control signal to the ballast, the ballast controls the light-emitting element to perform corresponding actions, and then sends a feedback signal to the MCU.
步骤702,根据反馈信号确定发光元件是否常亮。Step 702, determine whether the light emitting element is always on according to the feedback signal.
若灯具MCU发送“点亮”信号给镇流器,镇流器触发并点亮发光元件,当发光元件成功点亮后,镇流器发送“成功亮泡”信号至MCU。此后,若MCU一直未接收到镇流器的其他反馈信号,如“灯泡异常”等,MCU确定发光元件常亮。If the MCU of the lamp sends a "light up" signal to the ballast, the ballast triggers and lights up the light-emitting element. When the light-emitting element is successfully lit, the ballast sends a "successfully light up" signal to the MCU. Since then, if the MCU has not received other feedback signals from the ballast, such as "the bulb is abnormal", the MCU determines that the light-emitting element is always on.
步骤703,根据灯具的地址码、灯具的型号以及DMX512信号,确定灯具的光闸的状态。Step 703, according to the address code of the lamp, the model of the lamp and the DMX512 signal, determine the state of the shutter of the lamp.
灯具的光闸状态确定的具体步骤如上述灯具实施例中所述。The specific steps of determining the state of the shutter of the lamp are as described in the embodiments of the lamp above.
步骤704,根据发光元件是否常亮以及光闸的状态确定灯具的光线是否能够出射到灯具之外。Step 704, according to whether the light-emitting element is always on and the state of the shutter, it is determined whether the light of the lamp can exit the lamp.
当发光元件常亮,且光闸的状态为打开时,确定灯具的光线能够出射到灯具之外,若以上两个条件任意一个不满足时,确定灯具的光线无法出射到灯具之外。When the light-emitting element is always on and the shutter is open, it is determined that the light of the lamp can exit the lamp. If any of the above two conditions is not met, it is determined that the light of the lamp cannot exit the lamp.
在一个实施例中,当灯具通过DMX512信号线连接的方式与灯光控制台进行通信时,该灯具控制方法的流程图如图8所示,具备步骤包括:In one embodiment, when the lamp communicates with the lighting console through a DMX512 signal line connection, the flow chart of the lamp control method is shown in Figure 8, and the steps include:
(1)灯具MCU循环检测DMX512数据包的MTBP位,若检测到则继续正常接收,若未检测到,则执行步骤2。(1) The MCU of the lamp detects the MTBP bit of the DMX512 data packet cyclically. If it is detected, it will continue to receive normally. If it is not detected, it will perform step 2.
(2)MCU确定DMX512信号是否从有到无,若否,则继续正常接收DMX512信号,若是则执行步骤3。(2) The MCU determines whether the DMX512 signal changes from presence to absence, if not, continue to receive the DMX512 signal normally, and if so, execute step 3.
(3)MCU根据反馈信号确定发光元件是否常亮,若否,则结束灯具控制流程,若是,则执行步骤(4)。(3) The MCU determines whether the light-emitting element is always on according to the feedback signal, if not, ends the lamp control process, and if so, executes step (4).
(4)MCU确定灯具光闸是否打开,若否,则结束灯具控制流程,若是,则执行步骤(5)。(4) The MCU determines whether the shutter of the lamp is open, if not, ends the control process of the lamp, and if so, executes step (5).
(5)开始计时,当计时时间超过预设时间阈值时,执行步骤(6),未超时则返回步骤(1)。(5) Start timing, and when the timing exceeds the preset time threshold, execute step (6), and return to step (1) if it is not overtime.
(6)MCU发送控制指令至镇流器熄灭发光元件,灯具控制流程结束。(6) The MCU sends a control command to the ballast to extinguish the light-emitting element, and the lamp control process ends.
在本申请的一个实施例中,如图9所示,当灯具包括无线接收模块,通过无线连接的方式与灯光控制台进行通信时,该灯具控制方法的流程图如图9所示,具备步骤包括:In one embodiment of the present application, as shown in FIG. 9, when the lamp includes a wireless receiving module and communicates with the lighting console through a wireless connection, the flow chart of the lamp control method is shown in FIG. 9, with steps include:
(1)灯具MCU检测无线DMX512链接信号,若未检测到则无法接收DMX512数据包返回继续检测,检测到则执行步骤(2)。(1) The lamp MCU detects the wireless DMX512 link signal. If it is not detected, it cannot receive the DMX512 data packet and returns to continue detection. If it is detected, perform step (2).
(2)灯具MCU循环检测DMX512数据包的MTBP位,若检测到则继续正常接收,若未检测到,则执行步骤(3)。(2) The MCU of the lamp cyclically detects the MTBP bit of the DMX512 data packet. If it is detected, it will continue to receive normally. If it is not detected, it will perform step (3).
(3)MCU确定DMX512信号是否从有到无,若否,则继续正常接收DMX512信号,若是则执行步骤(4)。(3) The MCU determines whether the DMX512 signal changes from presence to absence, if not, then continue to receive the DMX512 signal normally, and if so, execute step (4).
(4)MCU根据反馈信号确定发光元件是否常亮,若否,则结束灯具控制流程,若是,则执行步骤(5)。(4) The MCU determines whether the light-emitting element is always on according to the feedback signal, if not, ends the lamp control process, and if so, executes step (5).
(5)MCU确定灯具光闸是否打开,若否,则结束灯具控制流程,若是,则执行步骤(6)。(5) The MCU determines whether the shutter of the lamp is open, if not, ends the control process of the lamp, and if so, executes step (6).
(6)开始计时,当计时时间超过预设时间阈值时,执行步骤(7),未超时则返回步骤(2)。(6) Start timing, and when the timing exceeds the preset time threshold, execute step (7), and return to step (2) if it is not overtime.
(7)MCU发送控制指令至镇流器熄灭发光元件,灯具控制流程结束。(7) The MCU sends a control command to the ballast to extinguish the light-emitting element, and the lamp control process ends.
在本申请的一个实施例中,如图10所示,当灯具连接网线,通过网线连接的方式与灯光控制台进行通信时,该灯具控制方法的流程图如图10所示,具备步骤包括:In one embodiment of the present application, as shown in FIG. 10 , when the lamp is connected to a network cable and communicates with the lighting console through a network cable connection, the flow chart of the lamp control method is shown in FIG. 10 , and the steps include:
(1)灯具MCU检测端口地址,若未检测到则无法接收DMX512数据包返回继续检测,检测到则执行步骤(2)。(1) The lamp MCU detects the port address. If it is not detected, it cannot receive the DMX512 data packet and returns to continue detection. If it is detected, perform step (2).
(2)灯具MCU循环检测DMX512数据包的MTBP位,若检测到则继续正常接收,若未检测到,则执行步骤(3)。(2) The MCU of the lamp cyclically detects the MTBP bit of the DMX512 data packet. If it is detected, it will continue to receive normally. If it is not detected, it will perform step (3).
(3)MCU确定DMX512信号是否从有到无,若否,则继续正常接收DMX512信号,若是则执行步骤(4)。(3) The MCU determines whether the DMX512 signal changes from presence to absence, if not, then continue to receive the DMX512 signal normally, and if so, execute step (4).
(4)MCU根据反馈信号确定发光元件是否常亮,若否,则结束灯具控制流程,若是,则执行步骤(5)。(4) The MCU determines whether the light-emitting element is always on according to the feedback signal, if not, ends the lamp control process, and if so, executes step (5).
(5)MCU确定灯具光闸是否打开,若否,则结束灯具控制流程,若是,则执行步骤(6)。(5) The MCU determines whether the shutter of the lamp is open, if not, ends the control process of the lamp, and if so, executes step (6).
(6)开始计时,当计时时间超过预设时间阈值时,执行步骤(7),未超时则返回步骤(2)。(6) Start timing, and when the timing exceeds the preset time threshold, execute step (7), and return to step (2) if it is not overtime.
(7)MCU发送控制指令至镇流器熄灭发光元件,灯具控制流程结束。(7) The MCU sends a control command to the ballast to extinguish the light-emitting element, and the lamp control process ends.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的灯具控制方法的灯具控制装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个灯具控制装置实施例中的具体限定可以参见上文中对于灯具控制方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a lamp control device for implementing the above-mentioned lamp control method. The solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in one or more lamp control device embodiments provided below can refer to the above definition of the lamp control method, I won't repeat them here.
在一个实施例中,如图11所示,提供了一种灯具控制装置1100,包括:发送模块1101,其中:In one embodiment, as shown in FIG. 11 , a lamp control device 1100 is provided, including: a sending module 1101, wherein:
该发送模块1101,用于在确定灯具无法由灯光控制台进行控制,且,灯具的光线能够出射到灯具之外的情况下;发送控制信号通过设置于灯具内部的镇流器控制灯具的发光元件熄灭。The sending module 1101 is used to send a control signal to control the light-emitting element of the lamp through the ballast installed inside the lamp when it is determined that the lamp cannot be controlled by the lighting console, and the light of the lamp can be emitted outside the lamp. off.
在一个实施例中,该装置还包括第一确定模块,用于定时接收灯光控制台发送的DMX512信号,若超过预设时长后未接收到DMX512信号,则确定灯具无法由灯光控制台进行控制。In one embodiment, the device further includes a first determining module, configured to regularly receive the DMX512 signal sent by the lighting console, and if the DMX512 signal is not received after a preset period of time, it is determined that the lamp cannot be controlled by the lighting console.
在一个实施例中,该装置还包括第二确定模块,用于接收镇流器的反馈信号;根据反馈信号确定发光元件是否常亮;根据灯具的地址码、灯具的型号以及DMX512信号,确定灯具的光闸的状态;根据发光元件是否常亮以及光闸的状态确定灯具的光线是否能够出射到灯具之外。In one embodiment, the device further includes a second determining module, configured to receive a feedback signal from the ballast; determine whether the light-emitting element is always on according to the feedback signal; The state of the shutter; according to whether the light-emitting element is always on and the state of the shutter determines whether the light of the lamp can be emitted out of the lamp.
上述灯具控制装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned lamp control device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:在确定灯具无法由灯光控制台进行控制,且,灯具的光线能够出射到灯具之外的情况下;发送控制信号通过设置于灯具内部的镇流器控制灯具的发光元件熄灭。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when it is determined that the lamp cannot be controlled by the lighting console, and the light of the lamp In the case of being able to emit light outside the lamp; send a control signal to control the light-emitting element of the lamp to extinguish through the ballast installed inside the lamp.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:定时接收灯光控制台发送的DMX512信号,若超过预设时长后未接收到DMX512信号,则确定灯具无法由灯光控制台进行控制。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: regularly receiving the DMX512 signal sent by the lighting console, and if the DMX512 signal is not received after a preset period of time, it is determined that the lamp cannot be controlled by the lighting console .
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:接收镇流器的反馈信号;根据反馈信号确定发光元件是否常亮;根据灯具的地址码、灯具的型号以及DMX512信号,确定灯具的光闸的状态;根据发光元件是否常亮以及光闸的状态确定灯具的光线是否能够出射到灯具之外。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving the feedback signal of the ballast; determining whether the light-emitting element is always on according to the feedback signal; determining The state of the shutter of the lamp; determine whether the light of the lamp can exit the lamp according to whether the light-emitting element is always on and the state of the shutter.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:在确定灯具无法由灯光控制台进行控制,且,灯具的光线能够出射到灯具之外的情况下;发送控制信号通过设置于灯具内部的镇流器控制灯具的发光元件熄灭。In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the following steps are implemented: when it is determined that the lamp cannot be controlled by the lighting console, and the light of the lamp can be emitted to the lamp In other cases; send a control signal to control the light-emitting elements of the lamp to go out through the ballast installed inside the lamp.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:定时接收灯光控制台发送的DMX512信号,若超过预设时长后未接收到DMX512信号,则确定灯具无法由灯光控制台进行控制。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: regularly receiving the DMX512 signal sent by the lighting console, and if the DMX512 signal is not received after a preset period of time, it is determined that the lamp cannot be controlled by the lighting console .
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:接收镇流器的反馈信号;根据反馈信号确定发光元件是否常亮;根据灯具的地址码、灯具的型号以及DMX512信号,确定灯具的光闸的状态;根据发光元件是否常亮以及光闸的状态确定灯具的光线是否能够出射到灯具之外。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving the feedback signal of the ballast; determining whether the light-emitting element is always on according to the feedback signal; determining The state of the shutter of the lamp; determine whether the light of the lamp can exit the lamp according to whether the light-emitting element is always on and the state of the shutter.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. As an illustration and not a limitation, RAM can be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be determined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310759357.7A CN116709618A (en) | 2023-06-26 | 2023-06-26 | Lamp, lamp control method and lamp control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310759357.7A CN116709618A (en) | 2023-06-26 | 2023-06-26 | Lamp, lamp control method and lamp control device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116709618A true CN116709618A (en) | 2023-09-05 |
Family
ID=87829050
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310759357.7A Pending CN116709618A (en) | 2023-06-26 | 2023-06-26 | Lamp, lamp control method and lamp control device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116709618A (en) |
-
2023
- 2023-06-26 CN CN202310759357.7A patent/CN116709618A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8729824B2 (en) | Systems and methods for rules based, automated lighting control | |
US8207830B2 (en) | Network communication system | |
CN101861043B (en) | Remote lighting control system | |
CN102647825A (en) | Device and method for controlling lighting based on digital addressable lighting interface communication | |
US8890707B2 (en) | Mixed element strobe | |
CN102264177A (en) | Power source control device of illuminator and lighting system | |
CN101238757A (en) | Selective control of lighting devices | |
US6388400B1 (en) | Administration device for lighting fixtures | |
CN116709618A (en) | Lamp, lamp control method and lamp control device | |
KR20120095154A (en) | Light control device and method | |
CN103891410B (en) | Addressing method for device operational device | |
CN1758824B (en) | Emergency light element having a digital addressable control interface | |
WO2016068688A1 (en) | Method and system for ubiquitous interface for led devices | |
JP6954202B2 (en) | Control device, lighting device and control method | |
JP4939312B2 (en) | Signal control device, lighting control method, and program | |
JP2016208481A (en) | Electronic apparatus control device, electronic apparatus control system, and electronic apparatus control method | |
JP2007157361A (en) | Emergency lighting equipment and emergency lighting equipment automatic inspection system | |
JP2007250422A (en) | Lighting control system | |
JP4640580B2 (en) | Lighting control system | |
EP2942763B1 (en) | Emergency illumination system and visual alarm therefor | |
CN212183766U (en) | LED lamp bank control system for illumination and disinfection | |
JPH07240279A (en) | Illuminating lamp monitor and control system | |
WO2021106550A1 (en) | Equipment information transmission device and remote information collection system | |
JP2008293720A (en) | Lighting fixture and lighting control system | |
US20250096895A1 (en) | Commissioning a device based on visible light signals received by multiple devices |
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 | ||
CB02 | Change of applicant information |
Country or region after: China Address after: No. 46 Ketai 1st Road, Guangzhou Private Science and Technology Park, Baiyun District, Guangzhou City, Guangdong Province, 510000 Applicant after: Guangzhou Caiyi Technology Co.,Ltd. Address before: No. 46 Ketai 1st Road, Guangzhou Private Science and Technology Park, Baiyun District, Guangzhou City, Guangdong Province Applicant before: Guangzhou Colourful Lighting Co.,Ltd. Country or region before: China |
|
CB02 | Change of applicant information |