CN109511203A - A kind of system and method for stage lamp Double buffer calibration DMX512 data - Google Patents
A kind of system and method for stage lamp Double buffer calibration DMX512 data Download PDFInfo
- Publication number
- CN109511203A CN109511203A CN201811343760.7A CN201811343760A CN109511203A CN 109511203 A CN109511203 A CN 109511203A CN 201811343760 A CN201811343760 A CN 201811343760A CN 109511203 A CN109511203 A CN 109511203A
- Authority
- CN
- China
- Prior art keywords
- dmx512
- data
- buff1
- data packet
- buff2
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a kind of system and method for stage lamp Double buffer calibration DMX512 data, including reception device, memory, processor and determining device, from DMX512 interface data;The buffer area for defining two reception data is BUFF1 and BUFF2 respectively, and BUFF1 receives the channel data that stage lighting needs, and BUFF2 receives DMX512 data packet;The BUFF2 DMX512 data packet received and DMX512 agreement are compared;If DMX512 data packet and DMX512 the agreement comparison that BUFF2 is received, as a result the channel data of consistent BUFF1 is exported to stage lighting, otherwise the channel data of BUFF1 is deleted, and is received again.The present invention can judge to obtain a reliable data flow by single in insecure transmission so that stage lamp obtain correct lamps and lanterns in unidirectional DMX512 data needed for channel value.
Description
Technical field
The present invention relates to stage lighting data processing technique, in particular to a kind of stage lamp Double buffer calibrates DMX512 data
System and method.
Background technique
DMX512 agreement is that USITT (theater technological associations, the U.S.) develops into and controls from console with standard digital interface
The mode of light modulator.Currently, the Intelligent lamp including various stage effect lamps, light adjusting controller and Computer lamp is all supported comprehensively
DMX512 agreement, dimming lamp realize Digital Control comprehensively, and on this basis, gradually tend to computerized, networking.
In the control technology of light of stage equipment, generallys use DMX512 agreement and fixture is controlled.But by
In the agreement that DMX512 agreement is a kind of one-way transmission data flow, cause data transmission unreliable.
Existing judgement DMX512 data method is that its error rate, this method are reduced by judging multiple data packets mostly
Influence whether the efficiency of stage lamp processing data.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of stage lamp Double buffer calibration DMX512 data system and
Method, without receive multiple DMX512 data can quick detection data correctness, improve the efficiency of stage lighting data processing.
In order to solve the above-mentioned technical problem, the technical solution of the present invention is as follows:
A kind of system of stage lamp Double buffer calibration DMX512 data, comprising:
Reception device: for receiving the DMX512 data packet of DMX512 interface;
Memory: for defining buffer area, buffer area stores DMX512 data packet;
Processor: for exporting and handling DMX512 data;
Determining device: for comparing and judging DMX512 data packet and DMX512 agreement.
A kind of method of stage lamp Double buffer calibration DMX512 data, comprising:
Step S1, from DMX512 interface DMX512 data packet;
Step S2 defines the buffer areas of two reception data, is BUFF1 and BUFF2 respectively, will be in DMX512 data packet
Channel data is stored to BUFF1, and whole frame DMX512 data packet is stored to BUFF2;
Step S3 compares the DMX512 data packet of BUFF2 and DMX512 agreement by determining device,
If result is consistent, processor exports the channel data of BUFF1 to stage lighting, conversely, processor is by BUFF1's
Channel data is deleted, and re-execute the steps S1.
Preferably, the memory size of the BUFF1 is the size of channel number required for stage lighting.
Preferably, the memory size of the BUFF2 is 513 bytes.
Preferably, the DMX512 data packet of the DMX512 interface is the DMX512 data of whole frame.
By adopting the above technical scheme, by defining the buffer area BUFF1 and BUFF2 of two reception data, BUFF2 is for examining
The integrality of measured data, BUFF1 for exporting, without receive multiple DMX512 data can quick detection data correctness, mention
The high efficiency of stage lighting data processing.
Detailed description of the invention
Fig. 1 is a kind of structural block diagram for the system that Double buffer calibrates DMX512 data;
Fig. 2 is the program chart for a kind of method that Double buffer calibrates DMX512 data.
Specific embodiment
Specific embodiments of the present invention will be further explained with reference to the accompanying drawing.It should be noted that for
The explanation of these embodiments is used to help understand the present invention, but and does not constitute a limitation of the invention.In addition, disclosed below
The each embodiment of the present invention involved in technical characteristic can be combined with each other as long as they do not conflict with each other.
Referring to Fig. 1, the present invention provides a kind of systems of stage lamp Double buffer calibration DMX512 data, comprising:
Reception device: for receiving the DMX512 data packet of DMX512 interface;
Memory: for defining buffer area, buffer area stores DMX512 data packet;
Processor: for exporting and handling DMX512 data;
Determining device: for comparing and judging DMX512 data packet and DMX512 agreement.
Reception device and Memory linkage, reception device by from DMX512 interface to DMX512 allocation of packets to interior
It deposits, CPU and determining device and Memory linkage, the DMX512 data packet that CPU obtains memory are output to determining device.
Referring to fig. 2, the present invention provides a kind of methods of stage lamp Double buffer calibration DMX512 data, comprising:
Step S1, from DMX512 interface DMX512 data packet, the DMX512 data packet of DMX512 interface is whole
The DMX512 data of frame;Step S2 defines the buffer area of two reception data, is BUFF1 and BUFF2, the memory of BUFF1 respectively
Size is the size of channel number required for stage lighting, and the memory size of BUFF2 is 513 bytes, by DMX512 data packet
In channel data store to BUFF1, whole frame DMX512 data packet is stored to BUFF2;Step S3, by the DMX512 of BUFF2
Data packet and DMX512 agreement are compared by determining device, if result is consistent, processor exports the channel data of BUFF1 to dance
Desk lamp conversely, processor deletes the channel data of BUFF1, and re-execute the steps S1.
In conjunction with attached drawing, the embodiments of the present invention are described in detail above, but the present invention is not limited to described implementations
Mode.For a person skilled in the art, in the case where not departing from the principle of the invention and spirit, to these embodiments
A variety of change, modification, replacement and modification are carried out, are still fallen in protection scope of the present invention.
Claims (5)
1. a kind of system of stage lamp Double buffer calibration DMX512 data characterized by comprising
Reception device: for receiving the DMX512 data packet of DMX512 interface;
Memory: for defining buffer area, buffer area stores DMX512 data packet;
Processor: for exporting and handling DMX512 data;
Determining device: for comparing and judging DMX512 data packet and DMX512 agreement.
2. a kind of method of stage lamp Double buffer calibration DMX512 data characterized by comprising
Step S1, from DMX512 interface DMX512 data packet;
Step S2 defines the buffer area of two reception data, is BUFF1 and BUFF2 respectively, by the channel in DMX512 data packet
Data storage stores whole frame DMX512 data packet to BUFF2 to BUFF1;
The DMX512 data packet of BUFF2 and DMX512 agreement are compared by determining device, if result is consistent, are handled by step S3
Device exports the channel data of BUFF1 to stage lighting, conversely, processor deletes the channel data of BUFF1, and re-executes step
Rapid S1.
3. a kind of method of stage lamp Double buffer calibration DMX512 data according to claim 2, it is characterised in that: institute
The memory size for stating BUFF1 is channel number required for stage lighting.
4. a kind of method of stage lamp Double buffer calibration DMX512 data according to claim 2, it is characterised in that: institute
The memory size for stating BUFF2 is 513 bytes.
5. a kind of method of stage lamp Double buffer calibration DMX512 data according to claim 2, it is characterised in that: institute
The DMX512 data packet for stating DMX512 interface is the DMX512 data of whole frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811343760.7A CN109511203B (en) | 2018-11-13 | 2018-11-13 | System and method for calibrating DMX512 data by double caches of stage lamp |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811343760.7A CN109511203B (en) | 2018-11-13 | 2018-11-13 | System and method for calibrating DMX512 data by double caches of stage lamp |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109511203A true CN109511203A (en) | 2019-03-22 |
CN109511203B CN109511203B (en) | 2020-09-29 |
Family
ID=65748014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811343760.7A Active CN109511203B (en) | 2018-11-13 | 2018-11-13 | System and method for calibrating DMX512 data by double caches of stage lamp |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109511203B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000052879A3 (en) * | 1999-03-01 | 2001-01-25 | Sun Microsystems Inc | Method and apparatus for data re-assembly with a high performance network interface |
US6907042B1 (en) * | 1999-05-18 | 2005-06-14 | Fujitsu Limited | Packet processing device |
US7284070B2 (en) * | 1997-10-14 | 2007-10-16 | Alacritech, Inc. | TCP offload network interface device |
CN101320065A (en) * | 2008-07-22 | 2008-12-10 | 中国科学院长春光学精密机械与物理研究所 | Simulation test method of space flight optical remote sensor imaging circuit |
CN101917772A (en) * | 2010-08-26 | 2010-12-15 | 张若南 | Media access control method based on double-buffer area mixed type media access control protocol |
US20140168967A1 (en) * | 2012-12-17 | 2014-06-19 | Toshiba Lighting & Technology Corporation | Lighting Batten and Lighting System |
CN104038495A (en) * | 2014-06-13 | 2014-09-10 | 苏州科技学院 | Repeater based on DMX512 protocol extension and interference restraining method |
CN104956311A (en) * | 2013-10-09 | 2015-09-30 | 株式会社日立制作所 | Storage system and storage control method |
CN105100100A (en) * | 2015-07-30 | 2015-11-25 | 北京广密华安科技有限公司 | UDP transmission method and system suitable for distributed network |
CN105302612A (en) * | 2015-11-18 | 2016-02-03 | 西南技术物理研究所 | Method for quick upgrading of software program of single-chip microcomputer in electronic system case |
CN107770623A (en) * | 2017-11-06 | 2018-03-06 | 深圳创维-Rgb电子有限公司 | A kind of upgrade method and device of system for TV set software |
CN108419336A (en) * | 2018-04-09 | 2018-08-17 | 横店集团得邦照明股份有限公司 | A kind of LED lamplight screen control system and its implementation |
-
2018
- 2018-11-13 CN CN201811343760.7A patent/CN109511203B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7284070B2 (en) * | 1997-10-14 | 2007-10-16 | Alacritech, Inc. | TCP offload network interface device |
WO2000052879A3 (en) * | 1999-03-01 | 2001-01-25 | Sun Microsystems Inc | Method and apparatus for data re-assembly with a high performance network interface |
US6907042B1 (en) * | 1999-05-18 | 2005-06-14 | Fujitsu Limited | Packet processing device |
CN101320065A (en) * | 2008-07-22 | 2008-12-10 | 中国科学院长春光学精密机械与物理研究所 | Simulation test method of space flight optical remote sensor imaging circuit |
CN101917772A (en) * | 2010-08-26 | 2010-12-15 | 张若南 | Media access control method based on double-buffer area mixed type media access control protocol |
US20140168967A1 (en) * | 2012-12-17 | 2014-06-19 | Toshiba Lighting & Technology Corporation | Lighting Batten and Lighting System |
CN104956311A (en) * | 2013-10-09 | 2015-09-30 | 株式会社日立制作所 | Storage system and storage control method |
CN104038495A (en) * | 2014-06-13 | 2014-09-10 | 苏州科技学院 | Repeater based on DMX512 protocol extension and interference restraining method |
CN105100100A (en) * | 2015-07-30 | 2015-11-25 | 北京广密华安科技有限公司 | UDP transmission method and system suitable for distributed network |
CN105302612A (en) * | 2015-11-18 | 2016-02-03 | 西南技术物理研究所 | Method for quick upgrading of software program of single-chip microcomputer in electronic system case |
CN107770623A (en) * | 2017-11-06 | 2018-03-06 | 深圳创维-Rgb电子有限公司 | A kind of upgrade method and device of system for TV set software |
CN108419336A (en) * | 2018-04-09 | 2018-08-17 | 横店集团得邦照明股份有限公司 | A kind of LED lamplight screen control system and its implementation |
Non-Patent Citations (2)
Title |
---|
YU DENG: "《A Double-Buffering Strategy for the SRF management in the Imagine Stream Processor》", 《 2008 THE 9TH INTERNATIONAL CONFERENCE FOR YOUNG COMPUTER SCIENTISTS》 * |
王岳鹏: "《八通道串口数据采集与处理虚拟仪器系统设计》", 《电子设计工程》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109511203B (en) | 2020-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6198987B1 (en) | Lighting control based on deformation of flexible lighting strip | |
AU2015202557B2 (en) | Illumination Regulating System in Synchronization with AC Power Frequency and Method Using the Same | |
KR20160067633A (en) | Method for controlling white balance and an electronic device thereof | |
JP2009289471A (en) | Lighting control system | |
US9713229B2 (en) | Lighting control apparatus and lighting system | |
US11602034B2 (en) | Forming groups of devices by analyzing device control information | |
US10616981B2 (en) | Smart LED lighting system and method | |
CN109511203A (en) | A kind of system and method for stage lamp Double buffer calibration DMX512 data | |
JP6146570B2 (en) | Dimming control system | |
CN110868784B (en) | Stage lighting data bidirectional synchronous communication method and system, storage medium and device | |
CN105682324B (en) | Dim data reporting method, Intelligent illumination device and gateway | |
CN112040601B (en) | Lamp dot matrix control device and method and LED stage lamp | |
CN106714383A (en) | LED (Light Emitting Diode) lamplight control method | |
KR20110135564A (en) | Wireless lighting control system using power control priority | |
WO2019052873A1 (en) | System and method for dynamic lighting using a narrowband wireless lighting network | |
JP2017073279A (en) | Illumination control system, illumination control method and illumination control device | |
JP7101884B2 (en) | Determining light settings and / or daylight blocker settings based on data signal quality | |
WO2016068688A1 (en) | Method and system for ubiquitous interface for led devices | |
WO2018228867A1 (en) | Automatic address allocation for serially connected devices | |
US11477874B2 (en) | Network bridge to communication protocols for lighting systems | |
US20160174342A1 (en) | Method for controlling lighting element and associated system | |
CN105898930A (en) | Light-compensating LED lamp applicable to growth of plants | |
US20230146188A1 (en) | Controlling a lighting device associated with a light segment of an array | |
CN206398545U (en) | Luminous even LED ceiling lamp | |
CN212486857U (en) | Self-adaptive dimming system |
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 |