A kind of control method being applicable to the different LED lamp of pixel
Technical field
The present invention relates to field of lighting devices, be specifically related to a kind of controlling party being applicable to the different LED lamp of pixel
Method.
Background technology
The luminaire that LED is little as energy consumption, luminous efficiency is high, volume is little, is used widely in recent years, frequent application
In all kinds of city lighting engineerings.In use, a luminaire usually contains multiple separate LED, needs that
This coordinates the illuminating effect that could form personalization, and this is accomplished by a control end and effectively controls these multiple LED
System.
Notification number is that the patent document of CN 102448219 A discloses a kind of control system for LED, comprises control
Multiple main websites LED that platform processed is connected with control station and the slave station LED being connected with main website LED, reduce in such a way
Controlling cost, such mode is also by the most widely used, but such control mode has two defects: 1, the most multiple
During LED hybrid junction, it is not necessarily the light fixture of same pixel, is frequently present of the hybrid junction of different pixels point LED lamp, and present
Writing location mode for multiple LED is one address of a LED, so has a certain of multiple pixel control one
The when of individual LED, need from substantial amounts of LED, find this lamp, and it is individually operated, extremely inconvenience;2、
Prior art controls end and LED is all one-way communication, and each control end is controlled the size for LED and also existed
Limit, workman can often have error connecting lamp when, there is situation about connecting more, beyond the transformation of control end, and
When some LED breaks down when, it is impossible on control end, the very first time observes.
Summary of the invention
It is an object of the invention to provide a kind of control method being applicable to the different LED lamp of pixel, not only can solve
It is only capable of same channels number light fixture is realized the problem of address distribution, controls end when communication failure or address are repeated and may know that fault
Light fixture number, it is simple to malfunction elimination.
It is different that the above-mentioned technical purpose of the present invention has the technical scheme that one is applicable to pixel
The control method of LED lamp, comprise the following steps:
1), Connection Step: multiple control ends and a master control end being connected, each controls end and passes through data/address bus
Connecting and have multiple LED, each described LED is all only connected with a described data/address bus, now each described LED
Pixel be set to a node, between described LED and described control end use two-way communication.
2), setting steps: include broadcast address setting steps and descendant node address frame setting steps;Broadcast address sets
Putting step is to arrange first described address of node needing communication, and ensures that node described in each only one is connected to institute
State on data/address bus;Descendant node address frame setting steps is the address frame arranging a descendant node on each node.
3), address frame step is sent: described control end sends address frame and enters to first described node, first described node
Row signal feedback.
4), fully loaded step is checked whether: calculate after the signal feedback that described control end receives described node, be
The no quantity having reached described control end control node is reached the standard grade, if reaching, sends fully loaded termination signal, if not up to,
Carry out next step.
5) inquiry frame step, is sent: described control end sends inquiry frame step to node this described.
6), feedback step: this described node back channel information and set first address information give described control end, described
Back channel information, for having issued the verification of data, described has set first address information then for parameter feedback, described control end receipts
Next described address of node information can be calculated after replying to this parameter.
7) step is repeated: after described control end obtains next the described address of node information calculated, to this address
Node repeats the above step 2 operation to step 6.
Step 1 is preparation process to step 2, by described control end, controls the hard of bus, multiple LED and master control end
Part connects, and sets address frame on described control end, consists of for first pixel step 3 to step 6
Described node operate, send address frame and inquiry frame, according to the information feedback of described node carry out solve frame, if reaching
Maximum node number then terminates, if feedback data solution frame the most then calculates the address of next node, enters next node
Row step 3, to the repetitive operation of step 6, so on the one hand uses two-way communication between described LED and described control end,
Using the mode of two-way communication, described control end can receive the data back coming from described pixel, hence for communication event
When the quantity of barrier or described pixel is arranged beyond the transformation that described control end is controlled, user can observe, just
In malfunction elimination, on the other hand, be not that a LED is set to a node, but using a single pixel as
One single addressed nodes, thus the LED lamp mixed connection operation for different pixels point provides possibility, and can unify
Operation, it is not necessary to extra data call and data are found.
Preferred as the present invention, also includes tolerance step after described feedback step, described tolerance step is for working as
State control end and receive the described channel information of a certain node feedback and the described first address information that set carries out solving frame, solve frame correct the most then
Carrying out next step, if it is incorrect to solve frame, described control end repeatedly sends described inquiry frame, solves frame after repeatedly sending
Correct then enter next step, if solving frame or mistake after repeatedly sending, send termination signal.
Preferred as the present invention, the number of times repeating to send inquiry frame after described control end solution frame mistake is 3 times.
In sum, there is advantages that
1, each pixel is operated as single node so that a described control end can control multiple
Comprise the LED of different pixels point, it is not necessary to additionally call different control programs.
2, data terminal and node use duplex channel to carry out data communication, and described control end can be according to the feedback letter of node
Breath measures full signal, and user can also detect fault light fixture number at communication failure or address when repeating, it is simple to investigation.
Accompanying drawing explanation
Fig. 1 is the data block diagram of embodiment 1;
Fig. 2 is the hardware connection diagram of embodiment 1.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in further detail.
This specific embodiment is only explanation of the invention, and it is not limitation of the present invention, people in the art
The present embodiment can be made after reading this specification by member as required does not has the amendment of creative contribution, but as long as at this
All protected by Patent Law in the right of invention.
Embodiment 1, as depicted in figs. 1 and 2: a kind of control method being applicable to the different LED lamp of pixel, including with
Lower step:
1), Connection Step: multiple control ends and a master control end being connected, each controls end and passes through data/address bus
Connecting and have multiple LED, each described LED is all only connected with a described data/address bus, now each described LED
Pixel be set to a node, use two-way communication between described LED and described control end, use two-way communication
Mode, described control end can receive the data back coming from described pixel, hence for communication failure or described pixel
When the quantity of point is arranged beyond the transformation that described control end is controlled, user can observe, it is simple to malfunction elimination, another
Aspect, is not that a LED is set to a node, but is saved as a single address by a single pixel
Point, thus the LED lamp mixed connection operation for different pixels point provides possibility, and can be with unified operation, it is not necessary to extra
Data call and data are found.
2), setting steps: include broadcast address setting steps and descendant node address frame setting steps;Broadcast address sets
Putting step is to arrange first described address of node needing communication, and ensures that node described in each only one is connected to institute
State on data/address bus;Descendant node address frame setting steps is the address frame arranging a descendant node on each node.
3), address frame step is sent: described control end sends address frame and enters to first described node, first described node
Row signal feedback.
4), fully loaded step is checked whether: calculate after the signal feedback that described control end receives described node, be
The no quantity having reached described control end control node is reached the standard grade, if reaching, sends fully loaded termination signal, if not up to,
Carry out next step.
5) inquiry frame step, is sent: described control end sends inquiry frame step to node this described.
6), feedback step: this described node back channel information and set first address information give described control end, described
Back channel information, for having issued the verification of data, described has set first address information then for parameter feedback, described control end receipts
Next described address of node information can be calculated after replying to this parameter.
7) step is repeated: after described control end obtains next the described address of node information calculated, to this address
Node repeats the above step 2 operation to step 6.
Step 1 is preparation process to step 2, by described control end, controls the hard of bus, multiple LED and master control end
Part connects, and sets address frame on described control end, consists of for first pixel step 3 to step 6
Described node operate, send address frame and inquiry frame, according to the information feedback of described node carry out solve frame, if reaching
Maximum node number then terminates, if feedback data solution frame the most then calculates the address of next node, enters next node
Row step 3, to the repetitive operation of step 6, so on the one hand uses two-way communication between described LED and described control end,
Using the mode of two-way communication, described control end can receive the data back coming from described pixel, hence for communication event
When the quantity of barrier or described pixel is arranged beyond the transformation that described control end is controlled, user can observe, just
In malfunction elimination, on the other hand, be not that a LED is set to a node, but using a single pixel as
One single addressed nodes, thus the LED lamp mixed connection operation for different pixels point provides possibility, and can unify
Operation, it is not necessary to extra data call and data are found.
Also including tolerance step after described feedback step, described tolerance step is for receiving a certain joint when described control end
Described channel information and the described first address information that set of some feedback carry out solving frame, solve frame and the most then carry out next step, if solving
Frame is incorrect, and described control end repeatedly sends described inquiry frame, solves frame and the most then enter next step after sending for 3 times,
If solving frame or mistake after sending for 3 times, send termination signal.