Summary of the invention
In view of this, technical problem to be solved in the utility model has provided a kind of LED Landscape Lamp control system based on GPRS and DMX512, finishes control to the LED Landscape Lamp by integrating DMX512 agreement and GPRS technology with the advantage that obtains two kinds of technology.
In order to solve the problems of the technologies described above, the utility model discloses a kind of LED Landscape Lamp control system based on GPRS and DMX512, comprise one or one group of LED light fixture and corresponding at least one DMX512 decoder that is of coupled connections with it, also comprise: master controller; Wherein, described master controller, be of coupled connections with described DMX512 decoder, insert the Internet by GPRS network and receive program data and the preservation of upgrading, the program data of the program to be showed of reading and saving is also packed by the DMX512 agreement, sends to described DMX512 decoder by the wire transmission passage and finishes the control of described LED light fixture being showed described program for its program data that obtains according to parsing.
Further, also comprise: a server, be of coupled connections with described master controller, it preserves the record of the program data of storing on the described master controller, according to described record the program data of storing on the described master controller is upgraded, the program data that upgrades is packed by self-defining communications protocol, and the program data of the renewal that packing is obtained sends to described master controller by the Internet.
Further, described master controller also comprises: input module, one-level main control module, memory module and wired sending module, and wherein, described memory module is preserved the program data of each program that described LED light fixture shows; Described input module is of coupled connections with described one-level main control module, gathers the incident of user's input and selects information and be sent to described one-level main control module; Described one-level main control module, be of coupled connections with described memory module, wired sending module, judge current displaying one program that is operating as according to described incident selection information, the program data that then reads described program from described memory module is packaged into the DMX512 packet and is sent to described wired sending module; Described wired sending module is of coupled connections with described DMX512 decoder, will send to the DMX512 decoder through the packet of DMX512 protocol packing by RS485 wire transmission passage.
Further, described master controller, also comprise: the GPRS wireless transport module, be of coupled connections with described one-level main control module, judge that according to described incident selection information current the triggering through described one-level main control module when being operating as more new data starts at described one-level main control module, insert the Internet according to self-defining communications protocol by GPRS network and receive the program data that upgrades and notify described one-level main control module the program data that upgrades to be resolved and verification, triggered by described one-level main control module when depositing memory module in and close in the errorless back of described one-level main control module verification and with the program data of described renewal by self-defining communications protocol.
Further, described master controller, also comprise: display module, be of coupled connections with described one-level main control module, the display message of the described program that reads the display message of described each program when judging that the user will show a certain program, preserved from described memory module that receives that described one-level main control module sends, and show the display message of described program.
Further, described DMX512 decoder, comprise: secondary main control module and wired receiver module, wherein, described wired receiver module, be of coupled connections with described secondary main control module, wired sending module, receive the packet that described wired sending module is sent by RS485 wire transmission passage, and notify described secondary main control module; Described secondary main control module obtains described program data after by the DMX512 agreement described packet being resolved.
Further, described DMX512 decoder, comprise: address setting module and LED driver module, wherein, described address setting module, be of coupled connections with described secondary main control module, be used for setting address information and notifying described secondary main control module for the DMX512 decoder at its place by toggle switch; Described secondary main control module also is of coupled connections with described LED driver module, receives in the program data that obtains after the parsing by described address information to meet the program data of own address information and send to described LED driver module; Described LED driver module is controlled described LED light fixture according to the program data that meets own address information in the described program data and is showed described program.
Compare the technique effect that the utility model obtained with existing scheme:
Compare with traditional Landscape Lamp control system,, can realize to realize remote wireless renewal owing to integrated the GPRS technology based on the RS485 transmission.
Because the network coverage widely of GPRS network, make that its application is very convenient, just can send data to GPRS network by the Internet on computers, so just can change the data of master controller whenever and wherever possible, reach wireless data and be transmitted in application aims in the illuminator.
And easy construction is succinct, be convenient to maintenance, need not to dismantle the renewal that can realize data for already installed control system, greatly reduced the input of manpower and materials, the Landscape Lighting system that adds after remote-wireless transmits all has great advantage on cost or the convenient degree of construction.
Embodiment
Below will cooperate graphic and embodiment describes execution mode of the present utility model in detail, by this to the utility model how the application technology means implementation procedure that solves technical problem and reach the technology effect can fully understand and implement according to this.
Core idea of the present utility model is: a GPRS wireless transport module is set in master controller, makes server can be connected by the Internet and GPRS network with master controller and upgrade program data, after master controller receives data, preserve the SD card; Be packaged into the DMX512 packet of standard when needed again, this makes GPRS network bring into play the effect of abundant transfer of data in the Landscape Lighting system.
The core of Landscape Lamp control system of the present invention is a master controller, master controller can be controlled multichannel DMX512 decoder, it has two kinds of patterns: the incident that is intended to carry out according to the keeper (incident comprises: be presenting programs or new data more), incision GPRS communication mode inserts the program data of the renewal that the Internet reception server sends and preserves by the GPRS wireless network; Perhaps remain under the normal mode of operation, (program comprises a certain program of selecting according to the keeper: the lighting effects of wishing the displaying of LED light fixture), the DMX512 form that the program data of correspondence is read out and converts to (program data comprises: color and brightness that the LED light fixture shows) standard sends to each DMX512 decoder by the wire transmission passage, adjusts Landscape Lamp by the DMX512 decoder and demonstrates splendid lighting effects.
Based on wireless transfer channel, use self-defining communications protocol between master controller and the server; Between master controller and the DMX512 decoder based on the wire transmission passage.
Concrete implementation mode is as follows:
As shown in Figure 1, structural representation for a kind of LED Landscape Lamp control system based on GPRS and DMX512 comprises: server 1, master controller 2, at least one DMX512 decoder 3 and with DMX512 decoder 3 corresponding of being of coupled connections or one group of LED light fixture 4;
Server 1 is of coupled connections with described master controller 2, and the program data that upgrades is packed by self-defining communications protocol, and the program data of the renewal that packing is obtained sends to master controller 2 by the Internet.
Master controller 2, be of coupled connections with described DMX512 decoder 3, under normal mode of operation, when the keeper selects the program of intention displaying by button operation, read the program data of described program correspondence and pack, send to corresponding D MX512 decoder 3 by the cable data transmission channel by the DMX512 agreement of standard; Needs more during new data by normal mode of operation incision GPRS communication mode, insert the program data of the renewal that the Internet reception server 1 sends by the GPRS wireless network, and the program data of the renewal that receives is resolved by described communications protocol, whether the program data of judging described renewal is correct, as correctly, then the program data of described renewal is preserved, withdrawed from the GPRS communication mode and cut normal mode of operation, the acquiescence operating state is a normal mode of operation;
DMX512 decoder 3 is of coupled connections with described LED light fixture 4, receives described program data and by the DMX512 protocol-decoding, controls LED light fixture 4 and carries out described program, shows corresponding color.
Need to prove, when DMX512 decoder 3 is a plurality of, a plurality of DMX512 decoders are relation in parallel, the DMX512 decoder receives the program data through the DMX512 packing of autonomous controller 2, and described program data handled, reception meets the program data of own address information, and the program data that does not meet own address information is discarded.The corresponding program data that each DMX512 decoder receives according to oneself is controlled color and the brightness that corresponding LED light fixture 4 shows, reaches the lighting effects of whole colorful conversion.
Below server is elaborated.
The record that the program data that master controller 2 preserved is arranged in the server 1, the comparison by record is packaged into the TCP/IP packet with the program data of newly-generated program, sends on the Internet;
The program data that server 1 generates program is the layout by the LED light fixture 4 of industrial software simulated field, thereby the color conversion of the RGB of each LED light fixture is generated corresponding RGB data, i.e. program data.
Use self-defining communications protocol during the packing of described program data, send through the Internet, receive and insert the Internet by GPRS network by master controller by server 1.
Be self-defining communications protocol below
Project |
Packet header |
The agreement sign indicating number |
Load length |
Data |
Verification |
Byte number |
1 |
3 |
The data length that is sent |
Packet |
XOR |
Server will send by above-mentioned agreement regulation to the program data that master controller sends, and master controller also will carry out the reception of program data by this agreement regulation.
Below master controller is elaborated.
Master controller 2 is when operate as normal, real-time or the cycle is gathered key information, judge the incident that to carry out (as: be presenting programs or more new data) according to the key information of keeper input, as be judged to be more new data, then enter the GPRS communication mode, open the UART mouth, at this moment, master controller 2 no longer responds other incident, only allows master controller 2 to receive the program data of the renewal that sends from GPRS network, inserts the Internet according to self-defining communications protocol by GPRS network and receives the program data that upgrades, will be after verification be errorless, deposit the SD card in, Data Update finishes and promptly withdraws from the GPRS communication mode, enters normal mode of operation; As be judged to be and show a certain program, select described program according to key information, read corresponding program data from the SD card, be packaged into the DMX512 packet of standard, send the data to each DMX512 decoder of next stage by the wire transmission passage, so far master controller 2 has been finished the process of transfer of data.
DMX512 agreement sequential as described in Figure 3, wherein 1---signal, 2---the back mark resets, 3---field, 4---start bit, 5---the minimum data position, 6---the maximum data position, 7---position of rest, 8---position of rest, 9---accounting between the field (free time), 10---the preceding mark that resets, 11---the interval between reset signal, 12---homing sequence, 13---the DMX512 packet, 14---initial code (field 0), 15---field 1,16---field n (being 512 to the maximum).
As shown in Figure 2, structural representation for the master controller among Fig. 1, wherein dotted arrow is represented supply current, solid arrow represent signal flow to, comprising: one-level main control module 20, memory module 22, GPRS wireless transport module 21, wired sending module 26 and other functional modules (as input module 23, display module 24, be used to the power management module 25 of each module for power supply etc.);
Input module 23 is of coupled connections with described one-level main control module 20, gathers the user and selects information and be sent to one-level main control module 20 by the incident of button input;
Memory module 22, program data, the display message of preserving each program of LED light fixture 4 displayings, in practice, memory module 22 can be realized by the SD card;
Display module 24 is used to show the display message of described program;
GPRS wireless transport module 21, be of coupled connections with described one-level main control module 20, trigger startup through one-level main control module 20, open the UART mouth, insert the Internet according to self-defining communications protocol by GPRS network and receive the program data that upgrades and notify one-level main control module 20; Close through 20 triggerings of one-level main control module;
One-level main control module 20, also be of coupled connections with described memory module 22, wired sending module 26, display module 24, judge that according to described incident selection information the user is concrete presenting programs or new data more, if judge that the user will show a certain program, the display message that reads described program from memory module 22 is sent to display module 24, and the program data that reads described program from memory module 22 is packaged into the DMX512 packet of standard and is sent to wired transmission mould 26; If judge more new data of user, then enter the GPRS communication mode, trigger GPRS wireless transport module 21 and start, no longer respond other incident this moment; Accept the notice of GPRS wireless transport module 21, the program data of the renewal that receives is resolved and verification by self-defining communications protocol, after verification is errorless, deposit the program data that upgrades in memory module 22, trigger GPRS wireless transport module 21 and close;
Wired sending module 26 also is of coupled connections with described DMX512 decoder 3, will send to DMX512 decoder 3 through the DMX512 packet of packing by RS485 wire transmission passage.
Below the DMX512 decoder is elaborated.
DMX512 decoder 3 at first configures the address information of oneself by toggle switch.Decoder at first reads the address information that toggle switch shows, receive program data after the DMX512 packing from RS485 wire transmission passage then, described program data is resolved, reception wherein meets the program data of own address and sends to the LED driver module, controls demonstration and conversion that LED light fixture 4 shows various lighting effects.
As shown in Figure 4, structural representation for the DMX512 decoder among Fig. 1, wherein dotted arrow is represented supply current, solid arrow represent signal flow to, comprising: secondary main control module 30, wired receiver module 31, address setting module 32, LED driver module 33 and other functional modules (as being used to power management module 34 of each module for power supply etc.);
Address setting module 32 is of coupled connections with described secondary main control module 30, is used for setting address information and notifying described secondary main control module 30 for the DMX512 decoder at its place by the toggle switch of 4-9 position in advance for the attendant;
Wired receiver module 31 is of coupled connections with wired sending module 26 of described secondary main control module 30, master controller 2, receives the program data through the DMX512 protocol packing that wired sending module 26 is sent, and notifies described secondary main control module 30;
Secondary main control module 30, also be of coupled connections with described LED driver module 33, to obtain program data after the program data parsing through packing by the DMX512 agreement, and meet the program data of own address information and send to described LED driver module 33 by described address information reception;
LED driver module 33 is controlled corresponding LED light fixture 4 according to the program data that meets own address information and is showed the demonstration and the conversion of various lighting effects.
The connected mode of finger that be of coupled connections described in the utility model based on the signal transmission, when describing annexation by being of coupled connections, in specifying, then be corresponding connected mode by wired mode or wireless mode connection, comprise all connected modes as its indeterminate acquiescence of pointing out then to be of coupled connections if any spelling out to be of coupled connections.
Above-mentioned explanation illustrates and has described some preferred embodiments of the present utility model, but as previously mentioned, be to be understood that the utility model is not limited to the disclosed form of this paper, should not regard eliminating as to other embodiment, and can be used for various other combinations, modification and environment, and can in utility model contemplated scope described herein, change by the technology or the knowledge of above-mentioned instruction or association area.And change that those skilled in the art carried out and variation do not break away from spirit and scope of the present utility model, then all should be in the protection range of the utility model claims.