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) a kind ofly is directly changed into the solid electronic device of light to electric energy, have the efficient height, pollution-free, volume is little, the life-span is long and many good characteristics such as reliability height.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 influences the use of back level 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 of USITT (U.S. arenas technological associations) issue 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.Though the communication baud rate that formulate the standard the inside is 250kbps, along with development of electronic technology, system can communicate by letter under higher baud rate.The user can require to set up on their own the baud rate of concrete communication according to reality.
Adopt the DMX512 bus protocol to control, each product must be provided with 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 the operating state of light fixture in real time, brings very big difficulty for the investigation of field failure.
Summary of the invention
The objective of the invention is problem, propose a kind of lamp light control system and method, thereby solved the problem of traditional DMX512 lamp light control system based on the DMX512 agreement at traditional DMX512 lamp light control system existence.
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 is connected by network with the DMX signal generator, 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, respectively the following work of Fu Zeing:
(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 the job information of light fixture as requested.
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 a 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 transmitting 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 disposes independently light fixture address, adopt the method contention bus of time-sharing multiplex, do not disturb mutually
During the system operate as normal, host computer disposes 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 used to identify the concrete implication of the follow-up data of every frame data initial code, be used to distinguish light modulation information, revise light fixture information, read light fixture information, the information that configuration information is different, the whole system operate as normal, at first to dispose 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 allow 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 are formed;
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 give light fixture with this data forwarding, 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 and gives 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 light fixture information is this time disposed in judgement 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 are formed;
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, specify above four kinds of operations below;
(1) revises the system communication baud rate
When system powered on, the system communication baud rate was fixed, and when system moves, if need to revise communication baud rate, revised the Frame of communication baud rate and was made up 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 modification is immediately communicated by letter with light fixture, light fixture is received the baud rate of revising current communication behind these frame data immediately, returns to the Frame of DMX decoding signals and is made up of initial code, Frame length field, baud rate value field and the frame check field of flag of frame field;
If host computer do not receive this acknowledgement frame, think and this time revise invalidly that 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, give light fixture with predefined baud rate with data forwarding, the light fixture that meets the address requirement receives this Frame and rewrites non volatile register, echo reply information data frame after revising is successfully replied command frame and is made up of initial code, Frame length field, need modification light fixture address field, the new address field of light fixture and the frame check field of flag of frame field;
(3) read the running parameter of specifying light fixture
It is the important evidence of system maintenance that the running parameter of light fixture is monitored in real time, the staff can be provided with 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 made up 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, give light fixture with predefined baud rate with data forwarding, the light fixture that satisfies the address requirement receives this Frame and sends corresponding reply data frame, reads and specifies the data frame format of light fixture running parameter to be made up of 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 be transmitted to light fixture once more; 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 512 passages at most, 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 frequency modulation(FM) to the received signal, the speed that signal after the modulation is transmitted with a kind of compliance with system sends to light fixture, 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 an online programming, and host computer is monitored the operating state of each light fixture in real time.
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 the functions such as job information of light fixture in real time.And a kind of scheme of forms data bus transfer has been proposed, and reduced the wiring cost of system, reduced long line transmission simultaneously and disturbed.Design to lamp light control system has important 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, so that 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 also 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 equalizations 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 the configuration or the dim signal of bus transmitting 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 disposes independently light fixture address, adopts the method contention bus of time-sharing multiplex, does not disturb mutually.
During the system operate as normal, 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 to identify the concrete implication of the follow-up data of every frame data initial code, is used to distinguish light modulation information, revises light fixture information, reads light fixture information, a series of different information such as configuration information.The whole system operate as normal at first will dispose some basic information, 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 allow a light fixture on the bus.Light fixture configuration-direct frame is made up 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 |
A data packet length high position (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 |
A light fixture address high position (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 gives light fixture with this data forwarding, 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 and gives 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 light fixture information is this time disposed in judgement successful.Light fixture configuration information reply data frame is made up 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 |
Slot |
Definition |
Span |
2 |
A data packet length high position (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 |
A light fixture address high position (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.Specify above four kinds of operations below.
(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.Revising the Frame of communication baud rate is made up 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 |
A data packet length high position (MSB) |
??00H |
??3 |
Low eight of baud rate value low byte |
??00H-FFH |
??4 |
Baud rate value low byte high eight-bit |
??00H-FFH |
Slot |
Definition |
Span |
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 modification is immediately communicated by letter with light fixture, light fixture is received the baud rate of revising current communication behind these frame data immediately, returns to the Frame of DMX decoding signals and is made up 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 |
A data packet length high position (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 do not receive 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 |
A data packet length high position (MSB) |
00H |
3 |
Need to revise light fixture address low level (LSB) |
00H-FFH |
4 |
Need to revise a light fixture address high position (MSB) |
00H-FFH |
5 |
Status, the new address of light fixture (LSB) |
00H-FFH |
6 |
The new address of a light fixture high position (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, give light fixture with predefined baud rate with data forwarding, the light fixture that meets the address requirement receives this Frame and rewrites non volatile register, echo reply information data frame after revising is successfully replied command frame and is made up of initial code, Frame length field, need modification light fixture address field, the new address field of light fixture and the frame check field of flag of frame field;
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 |
A data packet length high position (MSB) |
??00H |
Slot |
Definition |
Span |
3 |
Light fixture address low level (LSB) before revising |
00H-FFH |
4 |
A light fixture address high position (MSB) before revising |
00H-FFH |
5 |
Revise status, the new address of light fixture (LSB), back |
00H-FFH |
6 |
Revise a back light fixture new address high position (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 |
(3) read the running parameter of specifying light fixture
It is the important evidence of system maintenance that the running parameter of light fixture is monitored in real time, the staff can be provided with 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 made up 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 |
A data packet length high position (MSB) |
00H |
3 |
Light fixture address low level (LSB) |
00H-FFH |
4 |
A light fixture address high position (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, give light fixture with predefined baud rate with data forwarding, the light fixture that satisfies the address requirement receives this Frame and sends corresponding reply data frame, reads and specifies the data frame format of light fixture running parameter to be made up of 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 |
A data packet length high position (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 |
A light fixture address high position (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 be transmitted to light fixture once more; 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 512 passages at most, 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 video data 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 video data 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 video data 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, reduced the baud rate of DMX decoding signals, thereby reduce the interference of transfer of data, improve the reliability of system with light fixture communication according to the light fixture of self being responsible in the address realm.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, can reset communication protocol according to the different demands of different occasions in the practice for more detailed elaboration the present invention.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 of Fig. 2 based on the lamp light control system of DMX512 agreement
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 a 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 frequency modulation(FM) to the received signal, the speed that signal after the modulation is transmitted with a kind of compliance with system sends to light fixture, 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 an online programming, and host computer 101 is the operating state of each light fixture of monitoring in real time.