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.