CN101699923B - Lighting control system based on DMX512 protocol and method thereof - Google Patents

Lighting control system based on DMX512 protocol and method thereof Download PDF

Info

Publication number
CN101699923B
CN101699923B CN 200910210848 CN200910210848A CN101699923B CN 101699923 B CN101699923 B CN 101699923B CN 200910210848 CN200910210848 CN 200910210848 CN 200910210848 A CN200910210848 A CN 200910210848A CN 101699923 B CN101699923 B CN 101699923B
Authority
CN
China
Prior art keywords
light fixture
frame
dmx
field
data
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.)
Expired - Fee Related
Application number
CN 200910210848
Other languages
Chinese (zh)
Other versions
CN101699923A (en
Inventor
蔡如海
廖世文
刘燕林
张健翀
张耀天
吴建宏
黄以华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU JOINMAX DISPLAY TECHNOLOGY Co Ltd
Sun Yat Sen University
National Sun Yat Sen University
Original Assignee
GUANGZHOU JOINMAX DISPLAY TECHNOLOGY Co Ltd
National Sun Yat Sen University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by GUANGZHOU JOINMAX DISPLAY TECHNOLOGY Co Ltd, National Sun Yat Sen University filed Critical GUANGZHOU JOINMAX DISPLAY TECHNOLOGY Co Ltd
Priority to CN 200910210848 priority Critical patent/CN101699923B/en
Publication of CN101699923A publication Critical patent/CN101699923A/en
Application granted granted Critical
Publication of CN101699923B publication Critical patent/CN101699923B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a lighting control system based on a DMX512 protocol and a method thereof. The system comprises an upper computer, a DMX signal generator, a DMX signal decoder and lamps, wherein each part is connected in a distribution mode; the upper computer is connected with the DMX signal generator by a network; the DMX signal generator is connected with the DMX signal decoder by an interface; and the DMX signal decoder is communicated with the lamps by a single data bus. The method comprises the following steps: the upper computer controls the DMX signal generator; the signal generator is communicated with the DMX signal decoder; and the signal decoder is connected with the lamps. Baud rate of the communication between the decoder and the lamps can be configured online to synchronize DMX devices with different speeds; the invention is provided with the functions of luminance adjustment for the lamps, temperature detection and open circuit detection and the like; and the invention has an important reference value for the design of the lighting control system.

Description

A kind of lamp light control system and method based on the DMX512 agreement
Technical field
The present invention relates to the lighting control technology field, particularly a kind of lamp light control system and method based on the DMX512 agreement.
Background technology
LED (Light Emitting Diode, light-emitting diode) is a kind of solid electronic device that electric energy is directly changed into light, has that efficient is high, pollution-free, volume is little, the life-span is long and many good characteristics such as reliability is high.Especially make the LED technology boundary of deeply throwing light on gradually in the tremendous potential aspect energy-conservation and useful life.The LED lighting technology is considered to 21 century and most possibly enters one of the novel solid cold light source in general lighting field and high-technology field of tool development prospect.
The control mode of LED illuminating product generally adopts bus mastering mode and SPI (SerialPeripheral Interface, Serial Peripheral Interface) cascade control mode.Under the SPI control mode, light fixture is cascade one by one, and the damage meeting of any light fixture directly affects the use of rear class light fixture, and reliability is low.Bus mode generally adopts the DMX512 bus protocol to control.The DMX512 bus protocol is a kind of light of stage control protocol that USITT (U.S. arenas technological associations) issued in 1986, has now become international standard agreement, is extensively adopted by various lamp light control systems.The Frame of the DMX512 bus protocol regulation length-specific of standard, the data capacity of each Frame is 513 bytes, wherein comprises the initial code of a byte.The baud rate of the DMX512 protocol communication of standard is 250kbps.Although the communication baud rate that formulate the standard the inside is 250kbps, along with the development of electronic technology, system can communicate by letter under higher baud rate.The user can set up according to actual requirement the baud rate of concrete communication on their own.
Adopt the DMX512 bus protocol to control, each product must arrange unique address, traditional DMX512 system, the address of light fixture generally writes nonvolatile storage, in case just writing can't online modification, thereby cause when certain node of system breaks down, equipment to be pulled down re-mapping, bring great inconvenience for the maintenance of system.Traditional DMX512 control system adopts the one-way transmission function usually, can't read in real time the operating state of light fixture, brings very large difficulty for the investigation of field failure.
Summary of the invention
The objective of the invention is the problem for traditional DMX512 lamp light control system existence, propose a kind of lamp light control system and method based on the DMX512 agreement, thereby solved the problem of traditional DMX512 lamp light control system.
The invention provides a kind of lamp light control system based on the DMX512 agreement, comprise host computer, DMX signal generator, DMX decoding signals, four parts of light fixture, various piece adopts distributed connection, host computer and DMX signal generator pass through network connection, the DMX signal generator is connected by interface with the DMX decoding signals, and communicating by letter between DMX decoding signals and the light fixture adopted the forms data bus.
System's each several part adopts distributed connection, the following work of being responsible for respectively:
(1) host computer is responsible for the parameter of Configuration Online DMX signal generator and is monitored the light fixture operating state;
(2) the DMX signal generator is responsible for the DMX signal of the standard that sends;
(3) the DMX decoding signals is responsible for the DMX signal decoding to receiving, and the signal that receives is carried out sending to light fixture after the frequency modulation(FM);
(4) light fixture is adjusted running parameter according to the DMX signal that receives, and returns as requested the job information of light fixture.
Described host computer is connected by Ethernet interface with the DMX signal generator, and its communication protocol adopts ICP/IP protocol, and the DMX signal generator is connected by 5 line DMX512 interfaces with DMX decoding signals (103), realizes bidirectional data communication.
The hardware configuration that described DMX decoding signals and light fixture adopt is universal asynchronous UART serial line interface.
Communicating by letter between described DMX decoding signals and the light fixture adopts the forms data bus to realize two-way simultaneous asynchronous data transmissions, and the communication link design adopts signal to amplify and the power buffer circuit, realizes that signal long-distance transmits.
Transfer of data between described DMX decoding signals and the light fixture adopts zero line as reference ground.
Described host computer is common PC.
A kind of lamp light control system method based on the DMX512 agreement, its process is as follows:
The DMX decoding signals adopts semiduplex mode with communicating by letter of light fixture, configuration or dim signal that the DMX decoding signals sends by the Bus repeater controller, light fixture returns to the DMX decoding signals by bus with response message, the DMX decoding signals is transmitted to response message the DMX signal generator again and finally receives for host computer, each light fixture configures independently light fixture address, adopt the method contention bus of time-sharing multiplex, do not interfere with each other
When system worked, host computer configured the running parameter of DMX signal generator in real time, and the data frame head time of DMX signal is set, the baud rate that signal sends, and the DMX signal generator sends the DMX512 Frame by the RS485 interface; Generally, the signal baud rate is set to 250kbs, 513 bytes of frame data, the initial code of a byte, 512 byte datas; Initial code is for the concrete meaning of the follow-up data that identifies every frame data initial code, be used for distinguishing light modulation information, revise light fixture information, read light fixture information, the information that configuration information is different, the whole system normal operation, at first to configure some basic information, the light fixture address, communication baud rate, each light fixture must be finished writing configuration information in advance before being articulated to system, when writing configuration information, only allowed a light fixture on the bus, light fixture configuration-direct frame is by the initial code of flag of frame field, Frame length field, light fixture model field, the control program version number field, light fixture address field and frame check field form;
When the DMX signal generator sends the data of above-mentioned frame format, the DMX decoding signals detects the 5A initial code, judge that these these frame data are configuration light fixture information data frame, and with this data retransmission to light fixture, light fixture is according to the information that receives, configuration information is written to nonvolatile storage, write after the configuration information, light fixture postbacks the reply data frame to the DMX decoding signals, the DMX decoding signals is transmitted to host computer by the DMX signal generator with response message, upper computer software is according to the data of receiving, whether judgement this time configures light fixture information successful, and light fixture configuration information reply data frame is by the initial code of flag of frame field, Frame length field, configuration successful acknowledgement field and frame check field form;
After writing the configuration information of light fixture, just light fixture can be articulated in the system, the data/address bus of each DMX decoding signals articulates several light fixtures, hardware configuration is passed through in the address of three DMX decoding signals, each DMX decoding signals is responsible for several light fixtures in the address realm separately, after system installs, can be achieved as follows operation: revise the system communication baud rate, revise the light fixture address, read the running parameter of specifying light fixture, regulate lamp brightness, the below specifies above four kinds of operations;
(1) revises the system communication baud rate
When system powered on, the system communication baud rate was fixed, and when system moved, if need to revise communication baud rate, the Frame of modification communication baud rate was comprised of initial code, Frame length field, baud rate value field and the frame check field of flag of frame field;
The DMX decoding signals receives this frame data, send these frame data to light fixture with the baud rate before not changing, send the baud rate that immediately modification is communicated by letter with light fixture, light fixture is received the baud rate of revising immediately current communication behind these frame data, returns to the Frame of DMX decoding signals and is comprised of initial code, Frame length field, baud rate value field and the frame check field of flag of frame field;
If host computer is not received this acknowledgement frame, think and this time revise invalidly, during system reset, the system communication baud rate reverts to default value,
(2) revise the light fixture address
Revising the light fixture address is the common operation of system maintenance, definition revise the command frame of light fixture address by initial code, the Frame length field of flag of frame field, need to revise light fixture address field, the new address field of light fixture and frame check field and form;
When the DMX decoding signals is received these frame data, with predefined baud rate with data retransmission to light fixture, the light fixture that meets the address requirement receives this Frame and rewrites non volatile register, return the response message Frame after being successfully modified, reply command frame by initial code, the Frame length field of flag of frame field, need to revise light fixture address field, the new address field of light fixture and frame check field and form;
(3) read the running parameter of specifying light fixture
Running parameter to light fixture carries out the important evidence that Real Time Monitoring is system maintenance, the staff can arrange upper computer software and send corresponding Frame, require light fixture to postback current job information, the corresponding command frame of light fixture running parameter that reads is comprised of initial code, Frame length field, the address field that need read light fixture information and the frame check field of flag of frame field;
When the DMX decoding signals is received these frame data, with predefined baud rate with data retransmission to light fixture, satisfy the light fixture that the address requires and receive this Frame and send corresponding reply data frame, read the data frame format of specifying the light fixture running parameter and formed by initial code, Frame length field, light fixture model address field, control program version field, light fixture Current Temperatures field, LED open-circuit condition indication field, light fixture address field and the frame check field of flag of frame field;
If the DMX decoding signals is not received this reply data frame within a certain period of time; the DMX decoding signals can continue to receive the DMX signal of DMX signal generator and again be transmitted to light fixture; do not receive response message if send continuously 3 times, think that then unusual or this light fixture of circuit is in abnormal operating state.
(4) regulate lamp brightness
Adjusting lamp brightness is the work of the core of system, the DMX signal of standard comprises the data of 512 bytes, every frame DMX light modulation Frame can be controlled at most 512 passages, each light fixture takies 3 passages, 3 corresponding light fixture tools of passage are red, green, primary colors, whole system lamplight brightness information altogether, light modulation Frame lattice contain 513 bytes, first byte is DMX Frame initial code 00H, the light modulation information of the 1st to the 450th corresponding 1-450 the DMX passage of byte difference, the red color tone optical parameter of corresponding first light fixture of first passage, the green hue optical parameter of second corresponding first light fixture of passage, the 3rd corresponding first light fixture blue cast optical parameter of passage, by that analogy, the 451st to 512 byte is spare bytes;
When the DMX decoding signals is received the light modulation Frame, transmit light modulation information according to the light fixture of self being responsible in the address realm, reduced the baud rate of DMX decoding signals with light fixture communication, thereby reduce the interference of transfer of data, the reliability of raising system, when light fixture was received this Frame, intercepting belonged to the light modulation information of three bytes of address realm own, and configuration PWM carries out light modulation to three paths of LEDs.
The DMX decoding signals is resolved the DMX signal of standard, carry out to the received signal frequency modulation(FM), signal after the modulation is sent to light fixture with a kind of speed that meets system transmissions, and the demodulates information that light fixture can be returned is that standard DMX signal returns to the DMX signal generator, plays the effect of data link.
The address of each light fixture is online programming, the operating state of each light fixture of host computer Real Time Monitoring.
Beneficial effect
Lamp light control system based on the DMX512 agreement provided by the invention, this system can realize light control, online modification light fixture address well, reads in real time the functions such as job information of light fixture.And a kind of scheme of forms data bus transfer has been proposed, and reduced the wiring cost of system, reduced simultaneously long line transmission and disturbed.Design to lamp light control system has important reference value.
Description of drawings
Fig. 1 is the structure chart that the present invention is based on the lamp light control system of DMX512 agreement;
Fig. 2 is the system circuit diagram that the present invention is based on the lamp light control system of DMX512 agreement.
Embodiment
Purport of the present invention is lamp light control system based on the DMX512 agreement of design.Be elaborated below in conjunction with concrete execution mode, in order to technical characterictic of the present invention and advantage are had more deep annotation.
System construction drawing of the present invention such as accompanying drawing 1.Lamp light control system of the present invention comprises host computer computer 101, DMX signal generator 102, DMX decoding signals 103,104 4 parts of light fixture.Host computer 101 can be common PC (in control software is set), and upper computer software mainly is responsible for the running parameter of configuration DMX signal generator 102 and is monitored the light fixture operating state.Host computer 101 and DMX signal generator 102 are connected by Ethernet interface, and its communication protocol adopts ICP/IP protocol, and upper computer software is by the parameter of Ethernet interface configuration DMX signal generator 102.DMX signal generator 102 is connected by RS485,5 line DMX512 interfaces with DMX decoding signals 103, realizes bidirectional data communication.
DMX decoding signals 103 is followed the DMX512 agreement with communicating by letter of light fixture 104.Three DMX decoding signals 103 adopt bus mode to link to each other with DMX signal generator 102.Three DMX decoding signals status are impartial, are assigned independently address.DMX decoding signals 103 is connected with light fixture by a UART Universal Asynchronous Receiver Transmitter UART, light fixture 104 also is a UART Universal Asynchronous Receiver Transmitter UART with the interface of DMX decoding signals 103,50 light fixtures link to each other with the DMX decoding signals in the mode of bus, and whole system can be controlled 150 light fixtures.
Light fixture 104 is RGB light fixtures.
A kind of lamp light control system method based on the DMX512 agreement, its process is as follows:
DMX decoding signals 103 adopts semiduplex mode with communicating by letter of light fixture 104, the DMX decoding signals can be by configuration or the dim signal of Bus repeater controller transmission, light fixture returns to the DMX decoding signals by bus with response message, and the DMX decoding signals is transmitted to response message the DMX signal generator again and finally receives for host computer.Each light fixture configures independently light fixture address, adopts the method contention bus of time-sharing multiplex, does not interfere with each other.
When system worked, host computer 101 is the running parameters of configuration DMX signal generators 102 in real time, as the data frame head time of DMX signal, the baud rate that signal sends etc. are set.The DMX signal generator sends the DMX512 Frame by the RS485 interface.Generally, the signal baud rate is set to 250kbs, 513 bytes of frame data, the initial code of a byte, 512 byte datas.Initial code is used for distinguishing light modulation information for the concrete meaning of the follow-up data that identifies every frame data initial code, revises light fixture information, reads light fixture information, a series of different information such as configuration information.The whole system normal operation at first will configure some basic information, such as light fixture address, communication baud rate etc.Each light fixture must be finished writing configuration information in advance before being articulated to system.When writing configuration information, only allowed a light fixture on the bus.Light fixture configuration-direct frame is comprised of initial code, Frame length field, light fixture model field, control program version number field, light fixture address field and the frame check field of flag of frame field;
For example, light fixture configuration-direct frame format is as follows:
SYN PKLEN Data CHKSUM
Initial code Packet length Data Verification and
Slot Definition Span
0 Initial code (Start Code) 5AH
1 Data packet length low level (LSB) 16H
2 Data packet length high-order (MSB) 00H
3-14 The ascii character of 12 byte light fixture models 20H-7FH
15-20 The ascii character of 6 byte program version numbers 20H-7FH
21 Light fixture address low level (LSB) 00H-FFH
22 Light fixture address high-order (MSB) 00H-FFH
23-24 2 simple verifications of byte and (CHKSUM) comprise after " packet length " and " packet " all byte datas add up and get last 2 bytes. 0000H-FFFFH
When the DMX signal generator sends the data of above-mentioned frame format, the DMX decoding signals detects the 5A initial code, judges that these these frame data are configuration light fixture information data frame, and with this data retransmission to light fixture, light fixture is written to nonvolatile storage according to the information that receives with configuration information.Write after the configuration information, light fixture postbacks the reply data frame to the DMX decoding signals, and the DMX decoding signals is transmitted to host computer by the DMX signal generator with response message, and upper computer software is according to the data of receiving, whether judgement this time configures light fixture information successful.Light fixture configuration information reply data frame is comprised of initial code, Frame length field, configuration successful acknowledgement field and the frame check field of flag of frame field;
Light fixture configuration information reply data frame format is as follows:
Slot Definition Span
0 Initial code (Start Code) 5BH
1 Data packet length low level (LSB) 06H
2 Data packet length high-order (MSB) 00H
3 The ASCII character of " O " 4FH
4 The ASCII character of " K " 4BH
5 Light fixture address low level (LSB) 00H-FFH
6 Light fixture address high-order (MSB) 00H-FFH
7-8 2 simple verifications of byte and (CHKSUM) comprise after " packet length " and " packet " all byte datas add up and get last 2 bytes. 0000H-FFFFH
After writing the configuration information of light fixture, just light fixture can be articulated in the system, 50 light fixtures that the data/address bus of each DMX decoding signals can articulate, the light fixture that whole system can be installed altogether reach 150.The address of three DMX decoding signals is by hardware configuration, and each DMX decoding signals is responsible for 50 light fixtures in the address realm separately.After system installs, can be achieved as follows operation: revise the system communication baud rate, revise the light fixture address, read the running parameter of specifying light fixture, regulate lamp brightness etc.The below specifies above four kinds of operations.
(1) revises the system communication baud rate
When system powered on, the system communication baud rate was fixed.When system moves, if need to revise communication baud rate.The Frame of modification communication baud rate is comprised of initial code, Frame length field, baud rate value field and the frame check field of flag of frame field;
The data frame format of revising communication baud rate is as follows:
Slot Definition Span
0 Initial code (Start Code) 5CH
1 Data packet length low level (LSB) 06H
2 Data packet length high-order (MSB) 00H
3 Low eight of baud rate value low byte 00H-FFH
4 Baud rate value low byte high eight-bit 00H-FFH
5 Low eight of baud rate value high byte 00H-FFH
6 Baud rate value high byte high eight-bit 00H-FFH
7-8 2 simple verifications of byte and (CHKSUM) comprise after " packet length " and " packet " all byte datas add up and get last 2 bytes. 0000H-FFFFH
The DMX decoding signals receives this frame data, send these frame data to light fixture with the baud rate before not changing, send the baud rate that immediately modification is communicated by letter with light fixture, light fixture is received the baud rate of revising immediately current communication behind these frame data, returns to the Frame of DMX decoding signals and is comprised of initial code, Frame length field, baud rate value field and the frame check field of flag of frame field;
The data frame format that returns to the DMX decoding signals is as follows:
Slot Definition Span
0 Initial code (Start Code) 5DH
1 Data packet length low level (LSB) 06H
2 Data packet length high-order (MSB) 00H
3 Low eight of baud rate value low byte 00H-FFH
4 Baud rate value low byte high eight-bit 00H-FFH
5 Low eight of baud rate value high byte 00H-FFH
6 Baud rate value high byte high eight-bit 00H-FFH
7-8 2 simple verifications of byte and (CHKSUM) comprise after " packet length " and " packet " all byte datas add up and get last 2 bytes. 0000H-FFFFH
If host computer is not received this acknowledgement frame, think this time revise invalid.During system reset, the system communication baud rate reverts to default value.
(2) revise the light fixture address
Revising the light fixture address is the common operation of system maintenance, definition revise the command frame of light fixture address by initial code, the Frame length field of flag of frame field, need to revise light fixture address field, the new address field of light fixture and frame check field and form;
The command frame form of definition modification light fixture address is as follows:
Slot Definition Span
0 Initial code (Start Code) 6AH
1 Data packet length low level (LSB) 06H
2 Data packet length high-order (MSB) 00H
3 Need to revise light fixture address low level (LSB) 00H-FFH
4 Need to revise light fixture address high-order (MSB) 00H-FFH
5 Status, the new address of light fixture (LSB) 00H-FFH
6 The new address of light fixture high-order (MSB) 00H-FFH
7-8 2 simple verifications of byte and (CHKSUM) comprise after " packet length " and " packet " all byte datas add up and get last 2 bytes. 0000H-FFFFH
When the DMX decoding signals is received these frame data, with predefined baud rate with data retransmission to light fixture, the light fixture that meets the address requirement receives this Frame and rewrites non volatile register, return the response message Frame after being successfully modified, reply command frame by initial code, the Frame length field of flag of frame field, need to revise light fixture address field, the new address field of light fixture and frame check field and form;
The reply data frame format is as follows:
Slot Definition Span
0 Initial code (Start Code) 6BH
1 Data packet length low level (LSB) 06H
2 Data packet length high-order (MSB) 00H
3 Light fixture address low level (LSB) before revising 00H-FFH
4 Before revising light fixture address high-order (MSB) 00H-FFH
5 Status, the new address of light fixture (LSB) after revising 00H-FFH
6 The new address of light fixture high-order (MSB) after revising 00H-FFH
7-8 2 simple verifications of byte and (CHKSUM) comprise after " packet length " and " packet " all byte datas add up and get last 2 bytes. 0000H-FFFFH
(3) read the running parameter of specifying light fixture
Running parameter to light fixture carries out the important evidence that Real Time Monitoring is system maintenance, the staff can arrange upper computer software and send corresponding Frame, require light fixture to postback current job information, the corresponding command frame of light fixture running parameter that reads is comprised of initial code, Frame length field, the address field that need read light fixture information and the frame check field of flag of frame field;
Require light fixture to postback current job information, the corresponding command frame that reads the light fixture running parameter is as follows:
Slot Definition Span
0 Initial code (Start Code) 7AH
1 Data packet length low level (LSB) 04H
2 Data packet length high-order (MSB) 00H
3 Light fixture address low level (LSB) 00H-FFH
4 Light fixture address high-order (MSB) 00H-FFH
5-6 2 simple verifications of byte and (CHKSUM) comprise after " packet length " and " packet " all byte datas add up and get last 2 bytes. 0000H-FFFFH
When the DMX decoding signals is received these frame data, with predefined baud rate with data retransmission to light fixture, satisfy the light fixture that the address requires and receive this Frame and send corresponding reply data frame, read the data frame format of specifying the light fixture running parameter and formed by initial code, Frame length field, light fixture model address field, control program version field, light fixture Current Temperatures field, LED open-circuit condition indication field, light fixture address field and the frame check field of flag of frame field;
Read and specify the data frame format of light fixture running parameter as follows:
Slot Definition Span
0 Initial code (Start Code) 7BH
1 Data packet length low level (LSB) 18H
2 Data packet length high-order (MSB) 00H
3-14 The ascii character of 12 byte light fixture models 20H-7FH
15-20 The ascii character of 6 byte program version numbers 20H-7FH
21 1 byte temperature value (highest order 1 expression negative temperature, 0 expression 00H-FFH
Positive temperature)
22 1 byte LED operating state * 00H-07H
23 Light fixture address low level (LSB) 00H-FFH
24 Light fixture address high-order (MSB) 00H-FFH
25-26 2 simple verifications of byte and (CHKSUM) comprise after " packet length " and " packet " all byte datas add up and get last 2 bytes. 0000H-FFFFH
If the DMX decoding signals is not received this reply data frame within a certain period of time; the DMX decoding signals can continue to receive the DMX signal of DMX signal generator and again be transmitted to light fixture; do not receive response message if send continuously 3 times, think that then unusual or this light fixture of circuit is in abnormal operating state.
(4) regulate lamp brightness
Adjusting lamp brightness is the work of the core of system, the DMX signal of standard comprises the data of 512 bytes, every frame DMX light modulation Frame can be controlled at most 512 passages, each light fixture takies 3 passages, 3 corresponding light fixture tools of passage are red, green, primary colors, whole system lamplight brightness information altogether, light modulation Frame lattice contain 513 bytes, first byte is DMX Frame initial code 00H, the light modulation information of the 1st to the 450th corresponding 1-450 the DMX passage of byte difference, the red color tone optical parameter of corresponding first light fixture of first passage, the green hue optical parameter of second corresponding first light fixture of passage, the 3rd corresponding first light fixture blue cast optical parameter of passage, by that analogy, the 451st to 512 byte is spare bytes;
The light modulation data frame format is as follows:
Slot Definition Span
0 Initial code (Start Code) #00H
1 The address is the light fixture red display data of " #1 " 00-FF
2 The address is the green data that show of the light fixture of " #1 " 00-FF
3 The address is the light fixture blue-display data of " #1 " 00-FF
4 The address is the light fixture red display data of " #2 " 00-FF
5 The address is the green data that show of the light fixture of " #2 " 00-FF
6 The address is the light fixture blue-display data of " #2 " 00-FF
。。 。。。 。。。
。。。 。。。 。。。
448 The address is the light fixture red display data of " #150 " 00-FF
449 The address is the green data that show of the light fixture of " #150 " 00-FF
450 The address is the light fixture blue-display data of " #150 " 00-FF
451-512 Spare bytes
When the DMX decoding signals is received the light modulation Frame, transmit light modulation information according to the light fixture of self being responsible in the address realm, reduced the baud rate of DMX decoding signals with light fixture communication, thereby reduce the interference of transfer of data, improve the reliability of system.When light fixture was received this Frame, intercepting belonged to the light modulation information of three bytes of address realm own, and configuration PWM carries out light modulation to three paths of LEDs.
In the above-mentioned example, set specific communication protocol and frame format for more detailed elaboration the present invention, can reset communication protocol according to the different demands of different occasions in the practice.In a word, the various changes that can carry out communication protocol of the present invention of those skilled in the art and distortion and do not break away from the spirit and scope of the present invention.If of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
The system circuit diagram based on the lamp light control system of DMX512 agreement of Fig. 2
Host computer 101 and DMX signal generator 102 are connected by Ethernet interface, and its communication protocol adopts ICP/IP protocol, and DMX signal generator 102 is connected by 5 line DMX512 (RS485) interfaces with DMX decoding signals 103, the realization bidirectional data communication.
DMX decoding signals 103 is universal asynchronous serial interface with the hardware configuration that light fixture 104 adopts.
Communicating by letter between DMX decoding signals 103 and the light fixture 104 adopts the forms data bus to realize two-way simultaneous asynchronous data transmissions, and the communication link design adopts signal to amplify and the power buffer circuit, realizes that signal long-distance transmits.
Transfer of data between DMX decoding signals 103 and the light fixture 104 adopts zero line as reference ground.
DMX decoding signals 103 is resolved the DMX signal of standard, carry out to the received signal frequency modulation(FM), signal after the modulation is sent to light fixture with a kind of speed that meets system transmissions, and the demodulates information that light fixture can be returned is that standard DMX signal returns to the DMX signal generator, plays the effect of data link.
The address of each light fixture 104 is online programming, the operating state of host computer 101 each light fixture of Real Time Monitoring.

Claims (3)

1. lamp light control method based on the DMX512 agreement, its process is as follows:
DMX decoding signals (103) adopts semiduplex mode with communicating by letter of light fixture (104), configuration or dim signal that the DMX decoding signals sends by Bus repeater DMX signal generator (102), light fixture (104) returns to the DMX decoding signals by bus with response message, the DMX decoding signals is transmitted to response message the DMX signal generator again, final is that host computer (101) receives, each light fixture configures independently light fixture address, adopt the method contention bus of time-sharing multiplex, do not interfere with each other;
When system worked, host computer (101) configured the running parameter of DMX signal generator (102) in real time, and the data frame head time of DMX signal is set, the baud rate that signal sends, and the DMX signal generator sends the DMX512 Frame by the RS485 interface; Generally, the signal baud rate is set to 250kbs, 513 bytes of frame data, the initial code of a byte, 512 byte datas; Initial code is for the concrete meaning of the follow-up data that identifies every frame data initial code, be used for distinguishing and comprise light modulation information, revise light fixture information, read light fixture information and configuration information in interior different information, the whole system normal operation, at first to configure some basic information, the light fixture address, communication baud rate, each light fixture must be finished writing configuration information in advance before being articulated to system, when writing configuration information, only allowed a light fixture on the bus, light fixture configuration-direct frame is by the initial code of flag of frame field, Frame length field, light fixture model field, the control program version number field, light fixture address field and frame check field form;
When the DMX signal generator sends the data of above-mentioned frame format, the DMX decoding signals detects the 5AH initial code, judge that these frame data are configuration light fixture information data frame, and with this data retransmission to light fixture, light fixture is according to the information that receives, configuration information is written to nonvolatile storage, write after the configuration information, light fixture postbacks the reply data frame to the DMX decoding signals, the DMX decoding signals is transmitted to host computer by the DMX signal generator with response message, host computer is according to the data of receiving, whether judgement this time configures light fixture information successful, and light fixture configuration information reply data frame is by the initial code of flag of frame field, Frame length field, configuration successful acknowledgement field and frame check field form;
After writing the configuration information of light fixture, just light fixture can be articulated in the system, the data/address bus of each DMX decoding signals articulates several light fixtures, hardware configuration is passed through in the address of three DMX decoding signals, each DMX decoding signals is responsible for several light fixtures in the address realm separately, after system installs, can be achieved as follows operation: revise the system communication baud rate, revise the light fixture address, read the running parameter of specifying light fixture, regulate lamp brightness, the below specifies above four kinds of operations;
(1) revises the system communication baud rate
When system powered on, the system communication baud rate was fixed, and when system moved, if need to revise communication baud rate, the Frame of modification communication baud rate was comprised of initial code, Frame length field, baud rate value field and the frame check field of flag of frame field;
The DMX decoding signals receives this frame data, send these frame data to light fixture with the baud rate before not changing, send the baud rate that immediately modification is communicated by letter with light fixture, light fixture is received the baud rate of revising immediately current communication behind these frame data, returns to the Frame of DMX decoding signals and is comprised of initial code, Frame length field, baud rate value field and the frame check field of flag of frame field;
If host computer is not received this acknowledgement frame, think and this time revise invalidly, during system reset, the system communication baud rate reverts to default value;
(2) revise the light fixture address
Revising the light fixture address is the common operation of system maintenance, definition revise the command frame of light fixture address by initial code, the Frame length field of flag of frame field, need to revise light fixture address field, the new address field of light fixture and frame check field and form;
When the DMX decoding signals is received these frame data, with predefined baud rate with data retransmission to light fixture, the light fixture that meets the address requirement receives this Frame and rewrites non volatile register, return the response message Frame after being successfully modified, reply command frame by initial code, the Frame length field of flag of frame field, need to revise light fixture address field, the new address field of light fixture and frame check field and form;
(3) read the running parameter of specifying light fixture
Running parameter to light fixture carries out the important evidence that Real Time Monitoring is system maintenance, the staff can arrange host computer and send corresponding Frame, require light fixture to postback current job information, the corresponding command frame of light fixture running parameter that reads is comprised of initial code, Frame length field, the address field that need read light fixture information and the frame check field of flag of frame field;
When the DMX decoding signals is received these frame data, with predefined baud rate with data retransmission to light fixture, satisfy the light fixture that the address requires and receive this Frame and send corresponding reply data frame, read the data frame format of specifying the light fixture running parameter and formed by initial code, Frame length field, light fixture model address field, control program version field, light fixture Current Temperatures field, LED open-circuit condition indication field, light fixture address field and the frame check field of flag of frame field;
If the DMX decoding signals is not received this reply data frame within a certain period of time, the DMX decoding signals can continue to receive the DMX signal of DMX signal generator and again be transmitted to light fixture, do not receive response message if send continuously 3 times, think that then unusual or this light fixture of circuit is in abnormal operating state;
(4) regulate lamp brightness
Adjusting lamp brightness is the work of the core of system, the DMX signal of standard comprises the data of 512 bytes, every frame DMX light modulation Frame can be controlled at most 512 passages, each light fixture takies 3 passages, 3 corresponding light fixture tools of passage are red, green, primary colors, whole system lamplight brightness information altogether, light modulation Frame lattice contain 513 bytes, first byte is DMX Frame initial code 00H, the light modulation information of the 1st to the 450th corresponding 1-450 the DMX passage of byte difference, the red color tone optical parameter of corresponding first light fixture of first passage, the green hue optical parameter of second corresponding first light fixture of passage, the 3rd corresponding first light fixture blue cast optical parameter of passage, by that analogy, the 451st to 512 byte is spare bytes;
When the DMX decoding signals is received the light modulation Frame, transmit light modulation information according to the light fixture of self being responsible in the address realm, reduced the baud rate of DMX decoding signals with light fixture communication, thereby reduce the interference of transfer of data, the reliability of raising system, when light fixture was received this Frame, intercepting belonged to the light modulation information of three bytes of address realm own, and configuration PWM carries out light modulation to three paths of LEDs.
2. the lamp light control method based on the DMX512 agreement according to claim 1, it is characterized in that, DMX decoding signals (103) is resolved the DMX signal of standard, carry out to the received signal frequency modulation(FM), signal after the modulation is sent to light fixture with a kind of speed that meets system transmissions, and the demodulates information that light fixture can be returned is that standard DMX signal returns to the DMX signal generator, plays the effect of data link.
3. the lamp light control method based on the DMX512 agreement according to claim 1 is characterized in that, the address of each light fixture (104) is online programming, the operating state of host computer (101) each light fixture of Real Time Monitoring.
CN 200910210848 2009-11-11 2009-11-11 Lighting control system based on DMX512 protocol and method thereof Expired - Fee Related CN101699923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910210848 CN101699923B (en) 2009-11-11 2009-11-11 Lighting control system based on DMX512 protocol and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910210848 CN101699923B (en) 2009-11-11 2009-11-11 Lighting control system based on DMX512 protocol and method thereof

Publications (2)

Publication Number Publication Date
CN101699923A CN101699923A (en) 2010-04-28
CN101699923B true CN101699923B (en) 2013-05-01

Family

ID=42148360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910210848 Expired - Fee Related CN101699923B (en) 2009-11-11 2009-11-11 Lighting control system based on DMX512 protocol and method thereof

Country Status (1)

Country Link
CN (1) CN101699923B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731959A (en) * 2013-12-25 2014-04-16 广州市升龙灯光设备有限公司 Method and system for detecting DMX signal data mutation

Families Citing this family (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467870B (en) * 2010-11-05 2015-10-28 深圳利亚德光电有限公司 Intelligent storage method, device, system and LED display panel thereof and display
CN102164445A (en) * 2011-05-10 2011-08-24 苏州市华工照明科技有限公司 Wireless gang control system for lightening buildings
CN102209419B (en) * 2011-07-05 2014-07-09 北京朗波尔光电股份有限公司 Dimming and toning system
US9378087B2 (en) 2011-10-07 2016-06-28 Koninklijke Philips N.V. Methods for improved DMX512 communication while maintaining backwards compatibility
CN103152923A (en) * 2013-01-29 2013-06-12 广州朗闻光电有限公司 Automatically-induced decentralized-control energy-saving street lamp lighting system
CN104009856A (en) * 2013-02-22 2014-08-27 西门子公司 Device and method for determining position of fault in fieldbus network
CN103220851B (en) * 2013-03-22 2015-06-17 深圳市众朝科技有限公司 Programmable light-emitting diode (LED) driving control device
CN103249226B (en) * 2013-04-28 2015-02-18 浙江晶日照明科技有限公司 LED control bus communication method
CN103236912B (en) * 2013-04-28 2016-03-09 浙江晶日照明科技有限公司 A kind of real-time two-pass communication method of LED control system
JP6502355B2 (en) 2013-09-04 2019-04-17 シグニファイ ホールディング ビー ヴィ METHOD AND APPARATUS FOR INTERNET PROTOCOL COMMUNICATIONS ON A DMX NETWORK
CN103841724B (en) * 2013-12-03 2016-08-17 深圳市明微电子股份有限公司 A kind of LED parallel connection lamp control system and parallel connection lamp control circuit thereof
CN104853503B (en) * 2015-05-28 2018-02-27 广州市珠江灯光科技有限公司 The collection system and lamp control system of light fixture operating state data
CN104869734B (en) * 2015-06-19 2018-07-17 福建骏鹏通信科技有限公司 A kind of lighting system of multidiameter delay control
US10537009B2 (en) 2015-07-31 2020-01-14 Signify Holding B.V. Lighting device with context based light output
CN105307326B (en) * 2015-09-25 2017-10-31 擎茂微电子(深圳)有限公司 A kind of method that LED string produces the change of monomer pattern
CN106224917A (en) * 2016-07-21 2016-12-14 广州市升龙灯光设备有限公司 The bulb temperature control method of a kind of stage lighting and device
CN106402716A (en) * 2016-10-05 2017-02-15 长沙修恒信息科技有限公司 Lamp tree branch with piece-shaped components
CN106402736A (en) * 2016-10-05 2017-02-15 长沙修恒信息科技有限公司 Sphere-crown-shaped decoration lamp
CN107529263B (en) * 2017-09-07 2019-04-05 广州市雅江光电设备有限公司 A kind of lamps and lanterns address configuration method and device based on lamp control system
CN107567147B (en) 2017-09-29 2019-08-27 广州市浩洋电子股份有限公司 A kind of Ethernet lamp light control system and method for stage lighting
CN107683000A (en) * 2017-11-06 2018-02-09 广州达森灯光股份有限公司 A kind of light of stage and Landscape Lighting coordinated control system
CN108848601B (en) * 2018-05-15 2019-09-27 江苏领焰智能科技股份有限公司 The implementation method and device of signal light control
CN108834274B (en) * 2018-05-15 2019-10-08 江苏领焰智能科技股份有限公司 Lamp light control system and lamp light control method
CN109041352B (en) * 2018-09-12 2020-08-18 广州市雅江光电设备有限公司 Lamp control method and system based on DMX protocol configuration
CN109800829B (en) * 2018-12-04 2022-02-18 北京千方科技股份有限公司 Signal time-sharing sending method, device and system for vehicle identification
CN110072322B (en) * 2019-04-29 2020-11-13 广州市浩洋电子股份有限公司 Method for rapidly setting DMX address of lamp
CN110556073B (en) * 2019-09-12 2021-01-01 洛阳银杏科技有限公司 Multi-path LED display system capable of dynamically increasing and decreasing number and control method
CN110572920A (en) * 2019-09-18 2019-12-13 广东德洛斯照明工业有限公司 Automatic code writing system and method for connecting multiple lamps
CN111010407A (en) * 2019-12-31 2020-04-14 江苏领焰智能科技股份有限公司 Intelligent tool equipment, system and method for detecting signal and lamp
CN111693252B (en) * 2020-06-05 2021-10-26 深圳爱克莱特科技股份有限公司 Lamp test control system and lamp test method
CN111901952B (en) * 2020-07-03 2021-03-23 深圳市秀骑士科技有限公司 Combination lamps and lanterns based on DMX agreement
CN111901951B (en) * 2020-07-28 2023-03-24 众盒智能科技(上海)有限公司 RDM lamp automatic address writing system and method
CN111954344A (en) * 2020-08-28 2020-11-17 东莞华明灯具有限公司 DMX controlled color mixing lamp strip and control system thereof
CN112074063B (en) * 2020-09-14 2023-03-24 广州彩熠灯光股份有限公司 Method and device for configuring lamp information
CN114363421A (en) * 2021-12-03 2022-04-15 深圳市明微电子股份有限公司 Communication method, communication system and storage medium for LED dimming
CN115001624B (en) * 2022-05-11 2023-08-18 江苏领焰智能科技股份有限公司 Coding transmission method, system, equipment and storage medium based on DMX512 protocol
CN115002173B (en) * 2022-05-11 2023-10-31 江苏领焰智能科技股份有限公司 Distributed computing dimming method, system, equipment and storage medium based on Ethernet
CN114666396B (en) * 2022-05-23 2022-08-30 杭州涂鸦信息技术有限公司 Node control method, master control node and node
CN116761317B (en) * 2023-08-11 2023-10-20 深圳爱图仕创新科技股份有限公司 Light efficiency control method, light efficiency control device, lighting equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201252664Y (en) * 2008-06-20 2009-06-03 深圳市联腾科技有限公司 Transmitting-receiving control device of DMX512 lamp
CN101547542A (en) * 2009-04-30 2009-09-30 浙江大学 Logic group address supporting method and logic group address supporting system for DMX512 landscape lighting management and control

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201252664Y (en) * 2008-06-20 2009-06-03 深圳市联腾科技有限公司 Transmitting-receiving control device of DMX512 lamp
CN101547542A (en) * 2009-04-30 2009-09-30 浙江大学 Logic group address supporting method and logic group address supporting system for DMX512 landscape lighting management and control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731959A (en) * 2013-12-25 2014-04-16 广州市升龙灯光设备有限公司 Method and system for detecting DMX signal data mutation

Also Published As

Publication number Publication date
CN101699923A (en) 2010-04-28

Similar Documents

Publication Publication Date Title
CN101699923B (en) Lighting control system based on DMX512 protocol and method thereof
CN201585178U (en) Control device of LED lamp based on DMX512 protocol
CN101282605B (en) Energy-saving type interior illumination wireless intelligent control system and control method based on ZigBee sensing network
CN201839492U (en) Networked intelligent illumination control system for buildings
CN101365275B (en) Digital address lighting control system and method having remote and local control function
CN201199739Y (en) Energy-saving type interior illumination intelligent control system based on ZigBee sensing network
CN101945516A (en) Intelligent LED lamp controller and control method
CN203225938U (en) Intelligent control system for low-voltage direct-current centralized power supply of LED lamps
CN102338342B (en) Internal control type LED (light-emitting diode) nixie tube system and control method thereof
CN102300378A (en) Wireless remote controller and remotely-controlled dimming power-saving bulb device with signal responding and forwarding functions
CN105960071A (en) ZLL (ZigBee light link) technology based intelligent streetlamp interconnection system and control method
CN106376154A (en) Control system for self-adaptive scene of stage lighting
US9370068B2 (en) Dimming and control arrangement and method for solid state lamps
CN202276515U (en) Wireless linkage device
CN201146625Y (en) LED control equipment
CN201789667U (en) Intelligent light-emitting diode (LED) lamp controller
CN207969019U (en) A kind of LED intelligent dimming tinting systems for household
CN201667738U (en) Led illumination intelligent energy-saving control system
CN204157109U (en) Based on the intelligent wireless LED illumination System of 2.4GHz
CN201773493U (en) Traffic signal controller
CN201690650U (en) Wireless control system used for LED dimming
CN107635306A (en) A kind of decoding apparatus based on LED control system and a kind of LED control system
CN103796384A (en) Environment self-adaptation multi-scene multiplex semiconductor illumination control device
CN207947935U (en) A kind of RS485 turns the controller of DMX512
CN102238769A (en) Light-emitting diode (LED) light control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: 510000 Guangdong city of Guangzhou province Panyu District Xiaoguwei street in two cross road 22 B615-B616 room

Patentee after: GUANGZHOU JOINMAX DISPLAY TECHNOLOGY CO., LTD.

Patentee after: Sun Yat-sen University

Address before: 510000 Guangdong city of Guangzhou province Panyu District Xiaoguwei Road No. 60 in a digital home incubator room B6-1

Patentee before: GUANGZHOU JOINMAX DISPLAY TECHNOLOGY CO., LTD.

Patentee before: Sun Yat-sen University

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130501

Termination date: 20141111

EXPY Termination of patent right or utility model