CN109511203B - System and method for calibrating DMX512 data by double caches of stage lamp - Google Patents
System and method for calibrating DMX512 data by double caches of stage lamp Download PDFInfo
- Publication number
- CN109511203B CN109511203B CN201811343760.7A CN201811343760A CN109511203B CN 109511203 B CN109511203 B CN 109511203B CN 201811343760 A CN201811343760 A CN 201811343760A CN 109511203 B CN109511203 B CN 109511203B
- Authority
- CN
- China
- Prior art keywords
- dmx512
- data
- buff1
- buff2
- stage
- 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
- 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
Abstract
The invention discloses a system and a method for calibrating DMX512 data by double caches of stage lamps, wherein the system comprises a receiving device, a memory, a processor and a judger, wherein the receiving device receives data from a DMX512 interface; defining two buffer areas for receiving data, namely BUFF1 and BUFF2, BUFF1 receives channel data required by stage lamps, and BUFF2 receives DMX512 data packets; comparing the DMX512 data packet received by the BUFF2 with the DMX512 protocol; if the DMX512 data packet received by the BUFF2 is compared with the DMX512 protocol, and the result is consistent, the channel data of the BUFF1 is output to the stage lamp, otherwise, the channel data of the BUFF1 is deleted and received again. The invention can obtain a reliable data stream through single judgment in unreliable transmission, so that the stage lamp obtains a correct channel value required by the lamp in the unidirectional DMX512 data.
Description
Technical Field
The invention relates to a stage lamp data processing technology, in particular to a system and a method for calibrating DMX512 data by double caches of a stage lamp.
Background
The DMX512 protocol is the USITT (american theater technology association) developed as a way to control dimmers from a console with a standard digital interface. At present, intelligent lamps including various stage effect lamps, dimming controllers and computer lamps all support a DMX512 protocol comprehensively, and the dimming lamps realize digital control comprehensively and gradually tend to be computerized and networked on the basis.
In the control technology of stage lighting equipment, a DMX512 protocol is generally adopted to control lighting equipment. However, the DMX512 protocol is a protocol for unidirectional data stream transmission, which results in unreliable data transmission.
The existing DMX512 data judging method reduces the error rate of a plurality of data packets mostly by judging the data packets, and the method affects the efficiency of the stage lighting fixture for processing data.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a system and a method for calibrating DMX512 data by double cache of a stage lamp, which can quickly detect the correctness of the data without receiving a plurality of DMX512 data and improve the efficiency of stage lamp data processing.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a system for stage light dual-cache calibration DMX512 data, comprising:
the receiving device: the DMX512 data packet is used for receiving a DMX512 interface;
memory: the buffer area is used for defining buffer areas, namely BUFF1 and BUFF2, the BUFF1 is used for storing channel data in DMX512 data packets, and the BUFF2 is used for storing whole frame DMX512 data packets; (ii) a
A processor: for outputting and processing DMX512 data;
the judger: the device is used for comparing and judging the DMX512 data packet and the DMX512 protocol, if the result is consistent, the processor outputs the channel data of the BUFF1 to the stage lamp, otherwise, the processor deletes the channel data of the BUFF 1.
A method for calibrating DMX512 data by double caching of stage lamps comprises the following steps:
step S1, receiving a DMX512 data packet from the DMX512 interface;
step S2, defining two buffer areas for receiving data, namely, BUFF1 and BUFF2, respectively, storing the channel data in the DMX512 packet to BUFF1, and storing the DMX512 packet of the whole frame to BUFF 2;
step S3, comparing the DMX512 data packet of BUFF2 with the DMX512 protocol by a judger,
if the result is consistent, the processor outputs the channel data of BUFF1 to the stage lamp, otherwise, the processor deletes the channel data of BUFF1 and re-executes step S1.
Preferably, the memory size of the BUFF1 is the size of the number of channels required by the stage lamp.
Preferably, the memory size of BUFF2 is 513 bytes.
Preferably, the DMX512 data packet received by the DMX512 interface is DMX512 data of an entire frame.
By adopting the technical scheme, two buffer areas BUFF1 and BUFF2 for receiving data are defined, BUFF2 is used for detecting the integrity of the data, BUFF1 is used for outputting, the data correctness can be quickly detected without receiving a plurality of DMX512 data, and the data processing efficiency of the stage lamp is improved.
Drawings
FIG. 1 is a block diagram of a system for dual cache alignment of DMX512 data;
FIG. 2 is a block diagram of a method for double-caching DMX512 data.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Referring to fig. 1, the present invention provides a system for calibrating DMX512 data by using a stage lighting fixture double-cache, including:
the receiving device: the DMX512 data packet is used for receiving a DMX512 interface;
memory: the device is used for defining a cache region, and the cache region stores DMX512 data packets;
a processor: for outputting and processing DMX512 data;
the judger: used for comparing and judging the DMX512 data packet and the DMX512 protocol.
The receiving device is connected with the memory, the receiving device distributes the DMX512 data packets received from the DMX512 interface to the memory, the CPU is connected with the judger and the memory, and the CPU acquires the DMX512 data packets of the memory and outputs the DMX512 data packets to the judger.
Referring to fig. 2, the present invention provides a method for calibrating DMX512 data by using a stage lighting fixture double cache, including:
step S1, receiving a DMX512 data packet from the DMX512 interface, where the DMX512 data packet received by the DMX512 interface is the DMX512 data of the whole frame; step S2, defining two buffer areas for receiving data, namely, BUFF1 and BUFF2, wherein the memory size of BUFF1 is the size of the number of channels required by the stage lamp, the memory size of BUFF2 is 513 bytes, storing the channel data in the DMX512 packet to the BUFF1, and storing the DMX512 packet of the whole frame to the BUFF 2; and step S3, comparing the DMX512 data packet of the BUFF2 with the DMX512 protocol through the judger, if the result is consistent, outputting the channel data of the BUFF1 to the stage lamp by the processor, otherwise, deleting the channel data of the BUFF1 by the processor, and re-executing the step S1.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, and the scope of protection is still within the scope of the invention.
Claims (5)
1. A system for double-cache calibration of DMX512 data of stage lighting fixtures is characterized by comprising:
the receiving device: the DMX512 data packet is used for receiving a DMX512 interface;
memory: the buffer area is used for defining buffer areas, namely BUFF1 and BUFF2, the BUFF1 is used for storing channel data in DMX512 data packets, and the BUFF2 is used for storing whole frame DMX512 data packets;
a processor: for outputting and processing DMX512 data;
the judger: the device is used for comparing and judging the DMX512 data packet and the DMX512 protocol, if the result is consistent, the processor outputs the channel data of the BUFF1 to the stage lamp, otherwise, the processor deletes the channel data of the BUFF 1.
2. A method for calibrating DMX512 data by double caches of stage lamps is characterized by comprising the following steps:
step S1, receiving a DMX512 data packet from the DMX512 interface;
step S2, defining two buffer areas for receiving data, namely, BUFF1 and BUFF2, respectively, storing the channel data in the DMX512 packet to BUFF1, and storing the DMX512 packet of the whole frame to BUFF 2;
and step S3, comparing the DMX512 data packet of the BUFF2 with the DMX512 protocol through the judger, if the result is consistent, outputting the channel data of the BUFF1 to the stage lamp by the processor, otherwise, deleting the channel data of the BUFF1 by the processor, and re-executing the step S1.
3. The method for stage light double-buffer calibration DMX512 data according to claim 2, wherein the method comprises the following steps: the memory size of BUFF1 is the number of channels required by the stage lamp.
4. The method for stage light double-buffer calibration DMX512 data according to claim 2, wherein the method comprises the following steps: the memory size of BUFF2 is 513 bytes.
5. The method for stage light double-buffer calibration DMX512 data according to claim 2, wherein the method comprises the following steps: the DMX512 data packet received by the DMX512 interface is the DMX512 data of the 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 CN109511203A (en) | 2019-03-22 |
CN109511203B true 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) |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7284070B2 (en) * | 1997-10-14 | 2007-10-16 | Alacritech, Inc. | TCP offload network interface device |
US6480489B1 (en) * | 1999-03-01 | 2002-11-12 | Sun Microsystems, Inc. | Method and apparatus for data re-assembly with a high performance network interface |
JP2000332817A (en) * | 1999-05-18 | 2000-11-30 | Fujitsu Ltd | Packet processing unit |
CN101320065B (en) * | 2008-07-22 | 2010-06-02 | 中国科学院长春光学精密机械与物理研究所 | 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 |
JP2014120351A (en) * | 2012-12-17 | 2014-06-30 | Toshiba Lighting & Technology Corp | Illumination baton and illumination system |
DE112013005903T5 (en) * | 2013-10-09 | 2015-09-10 | Hitachi, Ltd. | Storage system and storage control method |
CN104038495B (en) * | 2014-06-13 | 2017-01-25 | 苏州科技学院 | Interference restraining method for repeater based on DMX512 protocol extension |
CN105100100A (en) * | 2015-07-30 | 2015-11-25 | 北京广密华安科技有限公司 | UDP transmission method and system suitable for distributed network |
CN105302612B (en) * | 2015-11-18 | 2018-05-08 | 西南技术物理研究所 | The method of scm software program in quick upgrading electronic system chassis |
CN107770623A (en) * | 2017-11-06 | 2018-03-06 | 深圳创维-Rgb电子有限公司 | A kind of upgrade method and device of system for TV set software |
CN108419336B (en) * | 2018-04-09 | 2019-12-10 | 横店集团得邦照明股份有限公司 | LED light screen control system and implementation method thereof |
-
2018
- 2018-11-13 CN CN201811343760.7A patent/CN109511203B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109511203A (en) | 2019-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9386126B2 (en) | System and method for hierarchical compression | |
US11711881B2 (en) | Method of quickly setting DMX address of light fixture | |
JP2017011684A (en) | Wired/wireless control system and data bridge method | |
US8879924B2 (en) | Visible light communication method using DMX-512 network and apparatuses for the same | |
CN109511203B (en) | System and method for calibrating DMX512 data by double caches of stage lamp | |
JP2014534578A (en) | Method and apparatus for controlling a luminaire using a communication protocol | |
JP2008513935A (en) | Luminaire network control system and control method | |
JP6096201B2 (en) | Method and apparatus for improved DMX512 communication with checksum | |
CN110868784B (en) | Stage lighting data bidirectional synchronous communication method and system, storage medium and device | |
CN110113852A (en) | Scene lamp control method and system | |
JP6146570B2 (en) | Dimming control system | |
CN105915377A (en) | Flume and Spark streaming integration method and system | |
CN112040601B (en) | Lamp dot matrix control device and method and LED stage lamp | |
CN107918589B (en) | High-efficient buffer memory concurrency system of DMX512 signal based on FPGA | |
KR20110061069A (en) | Led lighting instruments to support dmx512 communication protocol | |
US10292239B2 (en) | Illumination power saving method | |
US20210037631A1 (en) | System and method for dynamic lighting using a narrowband wireless lighting network | |
CN115001624A (en) | Encoding transmission method, system, equipment and storage medium based on DMX512 protocol | |
CN104754843B (en) | Synchronous control method and device of lamp strobing | |
CN110710330A (en) | Automatic address assignment for serially connected devices | |
US9395744B2 (en) | De-skewing transmitted data | |
JP2014535132A (en) | Method and apparatus for improved DMX512 communication | |
JP2013125634A (en) | Dimmer and lighting control system | |
JP6178858B2 (en) | Method and apparatus for communication over a three-phase power system using a communication protocol | |
US20140199071A1 (en) | Method of processing dmx-vlc address using dmx-512 network and device using the same |
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 |