CN109548235B - Synchronous control method and system for computer moving head lamp - Google Patents
Synchronous control method and system for computer moving head lamp Download PDFInfo
- Publication number
- CN109548235B CN109548235B CN201811449905.1A CN201811449905A CN109548235B CN 109548235 B CN109548235 B CN 109548235B CN 201811449905 A CN201811449905 A CN 201811449905A CN 109548235 B CN109548235 B CN 109548235B
- Authority
- CN
- China
- Prior art keywords
- control unit
- data
- synchronous
- slave control
- dmx
- 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.)
- Active
Links
Images
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
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
-
- 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
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a synchronous control method and a system of a computer moving head lamp, wherein the method comprises the following steps: step S1, the moving head lamp main control unit receives the DMX data packet, takes the DMX frequency as the synchronous signal of each moving head lamp, and marks a main control unit synchronous mark bit; step S2, the master control unit processes DMX data packet according to the current channel mode to distribute the processed DMX data to the slave control unit and set the synchronous mark of the slave control unit; step S3, the master control unit transmits the processed data and the slave control unit synchronization mark to each slave control unit according to the synchronization signal; and step S4, after receiving the data, each slave control unit carries out synchronous processing according to the synchronous mark and the synchronous signal, updates the data of each module and outputs the updated result.
Description
Technical Field
The invention relates to the technical field of lighting lamps, in particular to a synchronous control method and a system of a computer moving head lamp, which can ensure the real-time synchronization of DMX data of a master CPU and a slave CPU of the computer moving head lamp.
Background
Stage lighting is also called stage lighting, and is called lighting for short. One of the means of stage art modeling. With the development of the scenario, stage lighting equipment (such as lighting lamps, slide projectors, control systems and the like) and technical means are used for displaying the environment, rendering the atmosphere and highlighting central characters by using the light color and the change thereof, creating the space sense and the time sense of the stage, shaping the external image of stage performance, providing necessary lighting effects (such as wind, rain, cloud, water, lightning) and the like.
Stage lighting is an important component of a performance space, and is an artistic creation that performs all-around visual environment lighting design on characters and required specific scenes according to the development of plots and reproduces design intentions to audiences in a visual image mode purposefully.
With the development of science and technology, the control of stage elements such as lamplight, sound, video, machinery, scenes and the like is not limited to manual control, and the central control system of the stage enables the control of the stage elements to be more accurate, so that more complex stage effects can be perfectly presented.
Among a plurality of stage lighting devices, the computer moving head lamp is a high-tech product integrating electronics, machinery and optics, and is commonly used in occasions such as stages, squares and the like.
The synchronism of the computer moving head light is always an important index of stage lighting effect, such as: synchronization of colors, synchronization of patterns, XY scan synchronization, LED brightness strobing, and so forth. The shaking head lamp for a stage is less than dozens of lamps and more than hundreds of lamps, and because the power transmission time of the lamp and each electronic component have certain difference, the reference clock of each lamp has certain difference, the main CPU has certain time difference on the data transmission time sequence, so that the time of the data received from the CPU is inconsistent, thereby causing certain difference between the shaking head lamps of each computer, such as: the colors are not consistent when the color is slowly slid.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a synchronous control method and a system for a computer moving head lamp, so that the aim of real-time synchronization of the computer moving head lamp is fulfilled by taking the DMX frequency as a synchronous signal of each computer moving head lamp, and the effect of stage lighting is improved.
In order to achieve the above and other objects, the present invention provides a synchronous control method for a computer moving head lamp, comprising the steps of:
step S1, the moving head lamp main control unit receives the DMX data packet, takes the DMX frequency as the synchronous signal of each moving head lamp, and marks a main control unit synchronous mark bit;
step S2, the master control unit processes DMX data packet according to the current channel mode to distribute the processed DMX data to the slave control unit and set the synchronous mark of the slave control unit;
step S3, the master control unit transmits the processed data and the slave control unit synchronization mark to each slave control unit according to the synchronization signal;
and step S4, after receiving the corresponding data and the slave control unit synchronization flag, each slave control unit performs synchronization processing according to the corresponding synchronization flag and the synchronization signal, updates the data of each module, and outputs the updated result.
Preferably, in step S1, after the data packet is received, the synchronization flag of the master control unit is set to 1.
Preferably, in step S3, the master control unit transmits the process allocated data and the slave control unit synchronization flag to the corresponding slave control unit through the 485 bus by using the DMX frequency as a synchronization signal.
Preferably, in step S4, after the slave control units obtain the data and the slave control unit synchronization flag via the 485 bus, the data is updated according to the synchronization flag and the synchronization signal.
Preferably, in step S4, each slave control unit clears the slave control unit synchronization flag after updating the corresponding data, so as to facilitate the next data synchronization.
In order to achieve the above object, the present invention further provides a synchronous control system for a computer moving head light, comprising:
a main control unit including,
the data packet receiving unit is used for receiving the DMX data packet from the main control console, using the DMX frequency as a synchronous signal of each moving head lamp according to the DMX control protocol and marking a main control unit synchronous mark bit;
the data packet processing unit is used for processing the DMX data packet according to the current channel mode so as to distribute the processed DMX data to the corresponding slave control unit and set a slave control unit synchronization mark;
the data transmission unit is used for transmitting the processed data and the synchronous mark of the slave control unit to the corresponding slave control unit according to the synchronous signal;
a plurality of slave control units, each slave control unit comprising,
and the data receiving unit is used for receiving the data transmitted by the main control unit and the synchronization mark of the slave control unit.
And the synchronous processing unit is used for carrying out synchronous processing on the data according to the synchronous mark of the slave control unit and the synchronous signal so as to update the data of each module and output the updated result.
Preferably, the data packet receiving unit sets the synchronization flag of the master control unit to 1 after the data packet is received.
Preferably, the master control unit is connected with each slave control unit through a 485 bus.
Preferably, the data transmission unit transmits the processed and distributed data and the slave control unit synchronization mark to the corresponding slave control unit through a 485 bus by using the DMX frequency as a synchronization signal.
Preferably, the synchronization processing unit clears the synchronization flag of the slave control unit after updating the corresponding data, so as to facilitate the next data synchronization.
Compared with the prior art, the synchronous control method and the system for the computer moving head lamp can achieve high synchronism by taking the DMX frequency as the synchronous signal of each computer moving head lamp, can efficiently achieve the aim of real-time synchronization of the computer moving head lamp, and further improve the stage lighting effect.
Drawings
FIG. 1 is a flow chart of the steps of a method for synchronously controlling a moving head light of a computer according to the present invention;
FIG. 2 is a system architecture diagram of a synchronous control system of a computer moving head lamp according to the present invention;
FIG. 3 is a flow chart of the synchronous control of the moving head light of the computer according to the embodiment of the present invention.
Detailed Description
Other advantages and capabilities of the present invention will be readily apparent to those skilled in the art from the present disclosure by describing the embodiments of the present invention with specific embodiments thereof in conjunction with the accompanying drawings. The invention is capable of other and different embodiments and its several details are capable of modification in various other respects, all without departing from the spirit and scope of the present invention.
Generally, the control of moving head lamps adopts the DMX512 protocol, and the DMX512 protocol is developed by USITT (american theater technology association) into a way of controlling dimmers from a console with a standard digital interface. In the invention, the stage lighting control adopts a protocol DMX512, which is a data packet uniformly transmitted by a main control console, the frequency is 20Hz, the frequency comprises 512 values and is used for controlling various lamps, the control data of the computer moving head lamp of the invention comes from the data packet, and because the lamps on the stage all uniformly receive the data packet, the time sequence of the data is consistent
FIG. 1 is a flow chart of the steps of a method for synchronously controlling a moving head light of a computer according to the present invention. As shown in FIG. 1, the invention relates to a synchronous control method of a computer moving head lamp, comprising the following steps:
and step S1, the moving head lamp main control unit receives the DMX data packet, takes the DMX frequency as the synchronous signal of each moving head lamp, and marks a main control unit synchronous mark bit. The synchronization flag bit of the main control unit is used for data synchronization between different moving head lamps. In an embodiment of the present invention, the DMX packet has a frequency of 20Hz and includes 512 values, that is, when the data reception is completed, the DMX packet as the synchronization signal has a frequency of 20Hz, and the synchronization flag of the master control unit is set to 1.
In step S2, the master control unit processes the DMX packet according to the current channel mode to allocate the processed DMX data to the slave control unit and sets the slave control unit synchronization flag. Specifically, after receiving the DMX data, the master control unit processes the DMX data according to the current channel mode, and allocates the DMX data to the slave control units, and sets the slave control unit synchronization flag. For example, the color-controlled data is processed and distributed to the slave control units for color control.
In step S3, the master control unit transmits the processed data and the slave control unit synchronization flag to each slave control unit according to the synchronization signal. In the embodiment of the invention, the master control unit and each slave control unit can be connected through a 485 bus, and correspondingly, the master control unit transmits the processed and distributed data and the slave control unit synchronization mark to the corresponding slave control unit through the 485 bus by using the DMX frequency as a synchronization signal.
And step S4, after receiving the corresponding data and the slave control unit synchronization flag, each slave control unit performs synchronization processing according to the corresponding synchronization flag and the synchronization signal, updates the data of each module, and outputs the updated result. In a specific embodiment of the present invention, after the data and the synchronization flag are obtained by each slave control unit through the 485 bus, corresponding update is performed according to the synchronization flag and the data, for example, after the slave control unit for color control obtains the data and the slave control unit synchronization flag, the color target value is updated according to the synchronization signal according to the synchronization flag, and a corresponding color is output. Preferably, in step S4, each slave control unit clears the slave control unit synchronization flag after updating the corresponding data, so as to facilitate the next data synchronization.
Fig. 2 is a system architecture diagram of a synchronous control system of a computer moving head lamp according to the present invention, as shown in fig. 2, the synchronous control system of a computer moving head lamp according to the present invention comprises: a master control unit 20 and a plurality of slave control units 21.
Wherein the main control unit 20 includes:
a data packet receiving unit 201, configured to receive a DMX data packet from a master console, use the DMX frequency as a synchronization signal of each moving head light according to a DMX control protocol, and mark a synchronization mark bit of a master control unit; in an embodiment of the present invention, the DMX packet has a frequency of 20Hz and includes 512 values, that is, the DMX frequency as the synchronization signal is 20Hz, and when the packet is received, the synchronization flag of the master control unit is set to 1.
And the data packet processing unit 202 is used for processing the DMX data packet according to the current channel mode, so as to distribute the processed DMX data to the corresponding slave control unit, and setting the slave control unit synchronization flag. That is, after receiving the DMX data, the packet processing unit 202 processes the DMX data according to the current channel mode and assigns the DMX data to the slave control unit, and sets the slave control unit synchronization flag, for example, for the color control data, the DMX data is processed and assigned to the slave control unit for color control.
And the data transmission unit 203 is used for transmitting the processed data and the slave control unit synchronization mark to the corresponding slave control unit according to the synchronization signal. In the embodiment of the present invention, the master control unit and each slave control unit may be connected via a 485 bus, and accordingly, the data transmission unit 203 transmits the processed and distributed data and the slave control unit synchronization flag to the corresponding slave control unit via the 485 bus by using the DMX frequency as a synchronization signal.
Each slave control unit 21 is connected to the master control unit 20 via a 485 bus, and the slave control unit 21 includes:
a data receiving unit 210 for receiving the data transmitted by the master control unit 20 and the slave control unit synchronization flag.
And a synchronization processing unit 211, configured to perform synchronization processing on the data according to the slave control unit synchronization flag and the synchronization signal, so as to update the data for each module, and output the updated result. In a specific embodiment of the present invention, after the data and the synchronization flag are obtained by each slave control unit through the 485 bus, corresponding update is performed according to the synchronization flag and the data, for example, after the slave control unit for color control obtains the data and the slave control unit synchronization flag, the color target value is updated according to the synchronization signal according to the synchronization flag, and a corresponding color is output. Preferably, the synchronization processing unit 211 also clears the synchronization flag of the slave control unit after updating the corresponding data, so as to facilitate the next data synchronization.
FIG. 3 is a flow chart of the synchronous control of the moving head light of the computer according to the embodiment of the present invention. In a specific embodiment of the present invention, the master control unit is a master CPU, the slave control unit is a slave CPU, and as shown in fig. 3, after the master CPU of each computer moving head lamp receives a packet of data (DMX data packet), the DMX frequency is used as a synchronization signal of each computer moving head lamp, and simultaneously a synchronization flag bit is marked, and DMX data is processed according to the current channel mode, and is distributed to the slave CPU, and a slave CPU synchronization flag is set, and the slave CPU sends the slave CPU synchronization flag and data to the slave CPU through a 485 bus according to the synchronization signal, and the slave CPU receives the data from the 485 bus, and updates the data position of each module according to the slave CPU synchronization flag. For example, for color control data, the master CPU processes the data and distributes the processed data to the slave CPUs for color control, and the slave CPUs perform synchronization processing according to the corresponding synchronization flags and the synchronization signals, update the color target values, clear the synchronization flags, and output corresponding colors.
In summary, the method and system for synchronously controlling the computer moving head lamps in the invention can achieve high synchronism by using the DMX frequency as the synchronous signal of each computer moving head lamp, and can efficiently achieve the purpose of real-time synchronization of the computer moving head lamps, thereby improving the effect of stage lighting.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Modifications and variations can be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the present invention. Therefore, the scope of the invention should be determined from the following claims.
Claims (8)
1. A synchronous control method of a computer moving head lamp comprises the following steps:
step S1, the moving head lamp main control unit receives DMX data packets, the frequency of the DMX data packets is 20Hz, and the DMX data packets comprise 512 numerical values; taking the DMX frequency as a synchronous signal of each moving head lamp, and marking a synchronous mark bit of a main control unit; the method specifically comprises the following steps: when the DMX frequency of the synchronization signal is 20Hz and data reception is finished, setting the synchronization mark of the main control unit to be 1;
step S2, the master control unit processes DMX data packet according to the current channel mode to distribute the processed DMX data to the slave control unit and set the synchronous mark of the slave control unit;
step S3, the master control unit transmits the processed data and the slave control unit synchronization mark to each slave control unit according to the synchronization signal;
and step S4, after receiving the corresponding data and the slave control unit synchronization flag, each slave control unit performs synchronization processing according to the corresponding synchronization flag and the synchronization signal, updates the data of each module, and outputs the updated result.
2. A method for the synchronous control of a computer moving head light according to claim 1, characterized in that: in step S3, the master control unit transmits the process-allocated data and the slave control unit synchronization flag to the corresponding slave control unit via the 485 bus using the DMX frequency as a synchronization signal.
3. A method for the synchronous control of a computer moving head light according to claim 1, characterized in that: in step S4, after the slave control units obtain the data and the slave control unit synchronization flag via the 485 bus, the data is updated according to the synchronization flag and the synchronization signal.
4. A method of synchronous control of a computer moving head light according to claim 3, characterized in that: in step S4, each slave control unit clears the slave control unit synchronization flag after updating the corresponding data, so as to facilitate the next data synchronization.
5. A system for synchronous control of a computer moving head light, comprising:
a main control unit including,
the data packet receiving unit is used for receiving a DMX data packet from a master console, wherein the frequency of the DMX data packet is 20Hz and the DMX data packet comprises 512 numerical values; according to the DMX control protocol, the DMX frequency is used as a synchronous signal of each moving head lamp, and a main control unit synchronous marker bit is marked; the method specifically comprises the following steps: when the DMX frequency of the synchronization signal is 20Hz and data reception is finished, setting the synchronization mark of the main control unit to be 1;
the data packet processing unit is used for processing the DMX data packet according to the current channel mode so as to distribute the processed DMX data to the corresponding slave control unit and set a slave control unit synchronization mark;
the data transmission unit is used for transmitting the processed data and the synchronous mark of the slave control unit to the corresponding slave control unit according to the synchronous signal;
a plurality of slave control units, each slave control unit comprising,
the data receiving unit is used for receiving the data transmitted by the master control unit and the synchronous mark of the slave control unit;
and the synchronous processing unit is used for carrying out synchronous processing on the data according to the synchronous mark of the slave control unit and the synchronous signal so as to update the data of each module and output the updated result.
6. A synchronous control system of a computer moving head light as claimed in claim 5, characterized in that: the master control unit is connected with each slave control unit through a 485 bus.
7. The system of claim 6, wherein said system comprises: and the data transmission unit transmits the processed and distributed data and the synchronization mark of the slave control unit to the corresponding slave control unit through a 485 bus by using the DMX frequency as a synchronization signal.
8. The system of claim 6, wherein said system comprises: after the synchronous processing unit updates the corresponding data, the synchronous mark of the slave control unit is cleared so as to facilitate the next data synchronization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811449905.1A CN109548235B (en) | 2018-11-30 | 2018-11-30 | Synchronous control method and system for computer moving head lamp |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811449905.1A CN109548235B (en) | 2018-11-30 | 2018-11-30 | Synchronous control method and system for computer moving head lamp |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109548235A CN109548235A (en) | 2019-03-29 |
CN109548235B true CN109548235B (en) | 2021-01-01 |
Family
ID=65851163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811449905.1A Active CN109548235B (en) | 2018-11-30 | 2018-11-30 | Synchronous control method and system for computer moving head lamp |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109548235B (en) |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101553065B (en) * | 2008-04-02 | 2013-05-01 | 南京汉德森科技股份有限公司 | LED atmosphere illumination control system |
CN101505567A (en) * | 2009-02-27 | 2009-08-12 | 刘延平 | Control method and control system using DMX512 protocol |
CN201700063U (en) * | 2010-06-30 | 2011-01-05 | 东莞华明灯具有限公司 | LED mixed light synchronization device |
CN202274306U (en) * | 2011-09-13 | 2012-06-13 | 上海理工大学 | Novel intelligent environment-friendly light-emitting diode (LED) light source |
CN202587475U (en) * | 2012-03-06 | 2012-12-05 | 四川九洲光电科技股份有限公司 | LED lamp mounting system based on DMX512 control protocol |
CN102691938B (en) * | 2012-05-31 | 2014-05-07 | 深圳市凯铭电气照明有限公司 | Dimmable linear LED projection lamp |
CN203115822U (en) * | 2013-03-22 | 2013-08-07 | 黄胜券 | Road sign lamp with programmable light-emitting diode (LED) drive control device |
CN104754843B (en) * | 2015-04-22 | 2017-04-26 | 广州市珠江灯光科技有限公司 | Synchronous control method and device of lamp strobing |
US20170257935A1 (en) * | 2016-03-07 | 2017-09-07 | Mark Hopperton | Intelligent Lighting System |
CN206640840U (en) * | 2017-03-30 | 2017-11-14 | 深圳市皓祥光电有限公司 | A kind of LED controller with synchronizing function |
CN207340230U (en) * | 2017-08-17 | 2018-05-08 | 深圳市禾光照明有限公司 | A kind of LED light sync control device |
CN107438315A (en) * | 2017-09-04 | 2017-12-05 | 西安建艺设计制作策划有限公司 | Lamp, light control terminal, control system and control method based on DMX512 agreements |
CN107734790A (en) * | 2017-11-24 | 2018-02-23 | 山西高科华烨电子集团有限公司 | LED plant lamp light adjusting systems |
CN108040389B (en) * | 2017-12-01 | 2019-09-06 | 广东工业大学 | Synchronous method, system and the DMX lamps and lanterns of online DMX lamps and lanterns dynamic effect |
CN108650758A (en) * | 2018-04-28 | 2018-10-12 | 广州诚之程音响设备制造有限公司 | A kind of light of stage music control system and its method |
-
2018
- 2018-11-30 CN CN201811449905.1A patent/CN109548235B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109548235A (en) | 2019-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022169030A1 (en) | Performance production method and performance production system using same | |
CN104090548B (en) | Stage performance dispatching method | |
CN104155929A (en) | Stage performance scheduling device | |
CN108770134B (en) | Color space management device and method for LED multi-primary color lamp | |
CN103974512A (en) | Method and system for wireless music dimming based on lighting devices | |
CN111736489B (en) | Distributed stage lighting simulation system and method | |
CN107438315A (en) | Lamp, light control terminal, control system and control method based on DMX512 agreements | |
CN115315040B (en) | LED full spectrum color management system based on RGBWCLA seven-color unification | |
CN109548235B (en) | Synchronous control method and system for computer moving head lamp | |
CN102892235A (en) | Illumination control system compatible with double protocols and control method adopting DMN (Default Mode Network) protocol | |
WO2024106807A1 (en) | Method for generating and providing lighting effects | |
CN102467870A (en) | Intelligent storage method, intelligent storage device, intelligent storage system, light-emitting diode (LED) display panel and display | |
WO2024147533A1 (en) | Lighting control system and method supporting multiple modes | |
CN110868784A (en) | Stage lighting data bidirectional synchronous communication method and system, storage medium and device | |
CN111295023B (en) | timeline city level light show deduction system and method | |
US20200257831A1 (en) | Led lighting simulation system | |
WO2018228867A1 (en) | Automatic address allocation for serially connected devices | |
CN115334099B (en) | Linkage system, method and storage medium for streaming media audio/video data and lamp | |
KR101240229B1 (en) | Led apparatus for multimedia | |
CN114022646A (en) | Virtual film production light synchronization method and device, storage medium and electronic equipment | |
CN114143475A (en) | Global light simulation method and system applicable to virtual movie shooting | |
US9814120B2 (en) | Channel allocation method and apparatus for use in a wireless communication local area network | |
CN107683000A (en) | A kind of light of stage and Landscape Lighting coordinated control system | |
Bengtsson et al. | Image Based Lighting-Current Capabilities and Limitations | |
CN202818734U (en) | Illumination control system compatible with double protocols |
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 |