Transmission Characteristics and Application of DMX512 Light Control Protocol
Classification:
summary description]
The lighting system based on DMX512 control protocol for dimming control is called digital lighting system. At present, all kinds of stage lighting equipment, including computer lights, dimming controllers, consoles, color changers, electric booms and other stage lighting equipment, with its full support for DMX512 protocol, has fully realized the digitization of dimming control, and on this basis, gradually tends to be computerized and networked. Therefore, for film and television lighting design and operation personnel, it is necessary to understand the program structure, control principle and application points of DMX512 control protocol.
Han Zhenlei, Qi Lisen -- Department of Media Technology, School of Computer Science and Technology, Shandong University of Technology
The lighting system based on DMX512 control protocol for dimming control is called digital lighting system. At present, all kinds of stage lighting equipment, including computer lights, dimming controllers, consoles, color changers, electric booms and other stage lighting equipment, with its full support for DMX512 protocol, has fully realized the digitization of dimming control, and on this basis, gradually tends to be computerized and networked. Therefore, for film and television lighting design and operation personnel, it is necessary to understand the program structure, control principle and application points of DMX512 control protocol.
DMX512 Lighting Control Protocol
DMX is an abbreviation of Digital MultipleX, which means multi-channel digital transmission. DMX512 control protocol is an industrial standard for data transmission between lighting controllers and lighting equipment issued by the American Stage Lighting Association (usITT) in 1990. Its full name is USITT DMX512(1990), including electrical characteristics, data protocols, data formats, etc. Each DMX control byte is called a command frame, called a control channel, which can control one or more functions of the lighting device. A DMX command frame is composed of 1 start bit, 8 data bits and 2 end bits, and adopts unidirectional asynchronous serial transmission.
The basic mechanism of DMX512 protocol
A DMX interface can control up to 5l2 channels, because computer lights generally have several to dozens of functions, so. A computer lamp needs to occupy as few as a few and as many as dozens of control channels. Let's take a look at the control process and principle of DMx5l2 through the DMX channel table of a small computer lamp with simple functions and fewer channels. The computer lamp has eight DMX control channels, one color wheel and two pattern wheels, which have the functions of dimming, strobe, shaking head and changing light color and pattern. Its DMX channel serial number, channel code and corresponding functions are shown in Table 2.
The DMX values in Table 2 are expressed in decimal numbers, and the binary combination of 0 7 corresponding to 8-bit control data is 00000~0 000001 1 1.232~255 corresponding to 11101000~11111111, and so on. The process of combining some or all 8-bit binary of a certain instruction frame in DMX protocol to form a certain ~ function conversion or state change of computer lamp is decoding and control. From the DMX channel table, it can be clearly seen that the computer lamp function, the number of channels and their corresponding relationship are important basis for calculating the number of unit loads carried by a DMX interface and setting the starting address code. For example, for a computer lamp with only 8 channels, a DMX interface can control 64 units (512/8=64). If the number of DMX channels of another computer lamp is 20, then the number that one DMX interface can control is 25 (512/20=25.6, the remainder is omitted)
Some Application Problems of DMX5 12 Control Protocol
When using DMX512 protocol to control digital lighting equipment, it is also necessary to understand the application characteristics of DMX interface, starting address code, unit load and signal terminator. Application Characteristics of 3.1 DMX Interface The DMX512 standard stipulates that the DMX interface uses a 5-core card interface, of which 1 core is grounded, 2,3 and 4,5 cores transmit control signals (2,4 are inverted terminals, 3,5 are in-phase terminals), and 4,5 cores were originally intended to transmit information such as the status of lighting equipment and error detection, but were later idle. The reason why it is required to use a 5-core card attachment port instead of the more common 3-core card attachment port is to prevent accidental connection with the 3-core card attachment port commonly used in professional audio, because the 3-core card attachment port connected to condenser microphone on audio equipment can provide 48 v phantom voltage to the outside, which is easy to burn out the internal circuit. In spite of this, many computer lights still use 3-core card ports. If two Canon ports coexist, an adapter should be used to correctly switch them.
All digital lighting equipment has a DMX input interface and a DMX output interface. DMX512 control protocol allows mixed connection of various lighting equipment. In use, the DMX output interface of the previous equipment can be directly connected with the input interface of the next equipment. However, it should be clear that this seemingly serial link architecture is actually parallel for DMX control signals. Because DMX control signal enters the lighting equipment and "soldiers are divided into two paths" (see fig. 2), one path is compared, amplified and shaped by the operational amplifier circuit, then the command pulse is decoded, and then the stepping motor is controlled by the drive circuit to complete various control actions. The other way is directly transported to the next lighting equipment after buffering and isolation. In addition, it is not difficult to draw such a conclusion from the voltage comparison function of the amplifier in fig. 2: the anti-interference ability of the DMX control signal can be greatly improved by using the high common mode rejection ability of the operational amplifier circuit, which is why the DMX512 control signal is transmitted in balance.
Starting address code
Each lighting device based on the DMX512 control protocol needs to be given a digital startup address number, which is the address code of the lighting device. The address code is used for addressing DMX512 control signals to ensure that the device only reacts to "own" control signals. The address code is actually the starting serial number of the lighting device control channel. When the channel number (frame number) of the DMX512 packet is the same as the address code of a lighting device, that is, the channel start number assigned, the device starts to decode the DMX512 control signal and generate a control action. At the same time, other lighting devices on the same link do not respond to the DM ~ 12 control signal. Until the control channel number of DMX512 packet transitions to the same channel start number as that given by the next lighting device, the device stops being controlled, and the address code of the next lighting device plays a role and is in a controlled state. Taking a computer lamp as an example, assuming that a DMX control port drives several computer lamps, the starting address code of the first computer lamp is 001, the starting address code of the second computer lamp is 001 plus the number of DMX channels of the first lamp, and so on. For example, if the number of channels of the first and second computer lamps is l6 and 20 respectively, the starting address code of the first computer lamp is 001, the starting address code of the second computer lamp is 017, and the starting address code of the third computer lamp is 037. The starting address code of the last computer lamp and the number of its channels cannot exceed 512. If there are any remaining computer lamps, the next DMX control interface of the console should be enabled. There are two ways to set the starting address code of digital lighting equipment: digital and dial code, and the overall setting method is relatively simple. Different brands of products, the operation method may be different, can be set according to the instructions.
Computer light unit load (Units of Load)
According to the DMX512 protocol standard, each DMX interface can only control up to 32 unit loads under the premise that the total number of channels of the controlled lamps does not exceed 512. When there are more than 32 computer lights, silicon boxes, color changers or other lighting devices supporting DMX512 control protocol, but the total number of control channels is far from 512, a DMX distributor can be used to divide one DMX signal into multiple DMX branches. On the one hand, it is convenient to connect each lighting device on the lamp stand nearby, and on the other hand, each branch can drive 32 unit loads. However, the total number of channels controlled by each DMX branch on the same DMX link still cannot exceed 512.
DMX终端器fDMX Terminator)
DMX terminal is a Cannon port connector connected to the DMX output interface of the last lighting device of each DMX branch. The connector shall be connected with a resistor with a resistance value of 120 Q and a power of about 1 W to make the end of each DMX branch in a closed state. Due to the high frequency of DMX control pulses, it has the nature of returning from the original route when the transmission line is blocked. In this way, the signal returning from the original route will be superimposed with the subsequent signal, which will easily cause the DMX control instruction to generate error codes, make the computer lamp unable to decode normally, and cause the phenomenon of action error or control failure. Therefore, a terminal device is connected to the DMX output interface of the last computer lamp, which is beneficial to ensure the stable operation of the computer lamp.
Compared with the traditional analog dimming system, the digital lighting system based on DMXS12 control protocol has brought earth-shaking changes to the lighting effects of large and medium-sized film and television studios and variety stages with its powerful control functions. However, the DMX512 lighting control standard also has some shortcomings, such as the speed is not fast enough, the transmission distance is not far enough, the wiring and initial setting become too complicated with the increase of the system scale, etc. In addition, the control data can only be transmitted one-way from the control end to the controlled unit, and the working condition and online status of the lamps cannot be detected, which is prone to transmission errors. Later, the revised and improved DMX512-A standard supports two-way transmission, which can return information such as error diagnosis reports of lamps and lanterns, and is compatible with all lighting equipment conforming to DMX512 standard. In addition, the decoding circuit of some lighting devices supports 12-bit and 12-bit data expansion modes for more precise control.
More Cases