Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of node apparatus for LED lamplight net control and LED lamplight network topology structure, for solve LED control system driving node number in prior art few, drive apart from short, cable core number is many, data traffic is little and chain network topological structure node failure problem such as cause large stretch of node out of control.
For achieving the above object and other relevant objects, the invention provides a kind of node apparatus for LED lamplight net control, its one end connection signal input line, other end connection signal output line, described node apparatus at least comprises:
Signal codec module, resolve after receiving packet that described signal input line sends, and the data format that after extracting the data matched with Self address, regeneration is identical with described packet, export by described output line as playback of data bag;
Discrimination module, connects described signal codec module, detects input and the output of described signal codec module, the output drive signal when differentiating the input of described signal codec module or output no signal inputing or outputing within the time period of presetting;
First by-pass switch, between the input being connected to described signal input line and described signal codec module, there is the first moving contact connecting described signal input line, connect the first normality contact of the input of described signal codec module, and the first bypass contact, described first by-pass switch under normal conditions its first moving contact is connected with described first normality contact, when described first by-pass switch receives described drive singal, described first moving contact jumps to described first bypass contact;
Second by-pass switch, between the output being connected to described output line and described signal codec module, there is the second moving contact connecting described output line, connect the second normality contact of the output of described signal codec module, and the second bypass contact, and described second by-pass switch under normal conditions its second moving contact be connected with described second normality contact, when described second by-pass switch receives described drive singal, described second moving contact jumps to described second bypass contact;
Straight-through cable, one end connects described first bypass contact, and the other end connects described second bypass contact.
The present invention also provides a kind of LED lamplight network topology structure, comprising:
Signal input line;
Multiple node apparatus, connects described signal input line, and each node apparatus comprises:
Signal codec module, resolve after receiving packet that described signal input line sends, and the data format that after extracting the data matched with Self address, regeneration is identical with described packet, export by described output line as playback of data bag;
Discrimination module, connects described signal codec module, detects input and the output of described signal codec module, the output drive signal when differentiating the input of described signal codec module or output no signal inputing or outputing within the time period of presetting;
First by-pass switch, between the input being connected to described signal input line and described signal codec module, there is the first moving contact connecting described signal input line, connect the first normality contact of the input of described signal codec module, and the first bypass contact, described first by-pass switch under normal conditions its first moving contact is connected with described first normality contact, when described first by-pass switch receives described drive singal, described first moving contact jumps to described first bypass contact;
Second by-pass switch, between the output being connected to described output line and described signal codec module, there is the second moving contact connecting described output line, connect the second normality contact of the output of described signal codec module, and the second bypass contact, and described second by-pass switch under normal conditions its second moving contact be connected with described second normality contact, when described second by-pass switch receives described drive singal, described second moving contact jumps to described second bypass contact;
Straight-through cable, one end connects described first bypass contact, and the other end connects described second bypass contact;
Output line, one end connects the second moving contact being positioned at the node apparatus of upper level, the other end connects the first moving contact being positioned at the node apparatus of next stage, is transferred to for the playback of data bag sent by the node apparatus being positioned at upper level the node apparatus being positioned at next stage;
Ground wire, connects described even higher level of node device and next stage node apparatus.
As mentioned above, the node apparatus for LED lamplight net control of the present invention and LED lamplight network topology structure, have following beneficial effect:
Each node can monitor oneself input/output state automatically, once occur that abnormal signal interrupts, start bypass circuit immediately, this node is departed from network and signal is led directly to rear class, owing to being chain network topological structure, two node communication that each node is only adjacent with it, therefore, signal driving force increases greatly, can drive the more number of nodes of longer Distance geometry, and required cable core number is few and data traffic is large, automatic address distribution function can also be realized, reduce the workload of construction greatly.Specifically:
1. whether correct each node have one to input signal and output signal discriminating gear, once the abnormal information of Signal transmissions be detected, immediately by input and output signal bypass, and this malfunctioning node departed from network.The fault of such respective nodes can not have influence on the node of rear class.
Even if 2. certain node power is lost, this signal bypass circuit also can switching signal path in time, and when guaranteeing loss of power, signal bypass changeover circuit still can work.
3. each node only carries out single-point transmission data with its next node, and concerning sending node, its offered load is very light, can transmit farther or adopt higher rate communications.
4. through the refile of each node, be equivalent to each node and become a repeater, send again after signal is regenerated again, there is not accumulated phase bias distortion in signal waveform, so just can drive more number of nodes, chip unlike current main flow adopts Training system driver output, can cause the accumulative of phase deviation like this and have a strong impact on the ability that the stability of a system and cascade drive.
5., owing to being chain network topological structure, automatic address distribution function can be realized easily, bring very large convenience to site operation.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
Refer to Fig. 2 to Fig. 4 b.It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Embodiment one
Refer to Fig. 2, be shown as the node apparatus configuration diagram of the present invention for LED lamplight net control.As shown in the figure, the invention provides a kind of node apparatus 3b for LED lamplight net control, its one end connection signal input line 1, other end connection signal output line 5, in the present embodiment, described node apparatus 3b in order to resolve control command with control respectively respectively this LED lamplight module execution point bright, extinguish, brightness regulation or colour temperature regulate operation and for monitoring and feeding back the operating state of respectively this LED lamplight module that it controls to control centre.Described node apparatus 3b at least comprises: signal codec module 31, discrimination module 32, the first by-pass switch 33, second by-pass switch 34, and straight-through cable 35.
Described signal codec module 31 is resolved for after the packet that receives described signal input line 1 and send, and the data format that after extracting the data matched with Self address, regeneration is identical with described packet, export by described output line 5 as playback of data bag; In other words, resolve after described signal codec module 31 receives the packet carrying control command, leave the serial data matched with Self address, exported by described output line 5 after the serial data of node is below regenerated again, there is not accumulated phase bias distortion in signal waveform like this, and then avoid in prior art and adopt Training system driver output, the accumulative of phase deviation can be caused like this and have a strong impact on the ability that the stability of a system and cascade drive.In the present embodiment, described signal codec module 31 comprises microcontroller (MCU).
Described discrimination module 32 connects described signal codec module 31, detect input and the output of described signal codec module 31, the output drive signal when differentiating the input of described signal codec module 31 or output no signal inputing or outputing within the time period of presetting; In the present embodiment, section detection time that described discrimination module 32 is preset is 1 ~ 500ms, but is not limited thereto, for different applied environments, and the section detection time also adjustable that described discrimination module 32 is preset.
In the implementation process of reality, the operating state of described discrimination module 32 has several situation:
1. discriminating gear 32 described in detects the level state of described signal codec module 31 input and output respectively, if (such as in the time period of 500ms) can't detect output signal in the certain hour having input signal, declarative section point apparatus 3b has fault, cannot regenerated signal, then discriminating gear 32 is by output one drive singal.
2. discriminating gear 32 described in detects the level state of described signal codec module 31 input and output respectively, if (such as in the time period of 500ms) detects output signal in the certain hour having input signal, then declarative section point apparatus 3b can normally resolve, also can regenerated signal, then discriminating gear 32 will keep original output state.
3. discriminating gear 32 described in detects the level state of described signal codec module 31 input and output respectively, if (in the time period such as 500ms) described discrimination module 32 detects output signal in the certain hour of no signal input, then declarative section point apparatus 3b output signal is come by straight-through cable 35, described node apparatus 3b is in bypass condition, then discriminating gear 32 makes first, second by-pass switch 33,34 still be in bypass condition.
4. discriminating gear 32 described in detects the level state of described signal codec module 31 input and output respectively, if (in the time period such as 500ms) described discrimination module 32 does not detect output signal yet in the certain hour of no signal input, illustrate it is likely that the server of control centre does not send data, network is in idle condition, then now discriminating gear 32 exports first, second by-pass switch 33,34 of driving to normal condition, waits pending data to arrive and judges.
Described first by-pass switch 33 is connected between the input of described signal input line 1 and described signal codec module 31, there is the first moving contact a connecting described signal input line 1, connect the first normality contact b of the input of described signal codec module 31, and the first bypass contact c, described first by-pass switch 33 under normal conditions its first moving contact a is connected with described first normality contact b, when described first by-pass switch 33 receives described drive singal, described first moving contact a jumps to described first bypass contact c.
Described second by-pass switch 34 is connected between the output of described output line 5 and described signal codec module 31, there is the second moving contact a ' connecting described output line 5, connect the second normality contact b ' of the output of described signal codec module 31, and the second bypass contact c ', and described second by-pass switch 34 under normal conditions its second moving contact a ' be connected with described second normality contact b ', when described second by-pass switch 34 receives described drive singal, described second moving contact a ' jumps to described second bypass contact c '.
In the present embodiment, described first by-pass switch 33 and the second by-pass switch 34 are miniature relay or electronic switch.
Described straight-through cable 35 one end connects described first bypass contact c, the other end connects described second bypass contact c ', namely when described first bypass contact c is communicated with the second normality contact b ' with the first normality contact b and described second bypass contact c ', then described signal codec module 31 departs from network, and signal is by the short circuit of described straight-through cable 35.
Node apparatus 3b of the present invention can monitor oneself input/output state automatically, once occur that abnormal signal interrupts, start by-pass switch immediately, this node apparatus 3b is departed from network and signal is led directly to rear class, then can realize chain network topological structure (being detailed later) thus, realize each node apparatus 3b only former and later two node apparatus 3as adjacent with it and 3c communication, therefore, signal driving force increases greatly, the more number of nodes of longer Distance geometry can be driven, and, required cable core number is few and data traffic is large, automatic address distribution function can also be realized, reduce the workload of construction greatly.
Embodiment two
The present invention also provides a kind of LED lamplight network topology structure based on above-mentioned node apparatus, comprising: signal input line 1, multiple node apparatus 3a, 3b and 3c, output line 5, and ground wire 7.
Each node apparatus 3a, 3b or 3c include: signal codec module 31, discrimination module 32, the first by-pass switch 33, second by-pass switch 34, and straight-through cable 35.
Described signal codec module 31 is resolved for after the packet that receives described signal input line 1 and send, and the data format that after extracting the data matched with Self address, regeneration is identical with described packet, export by described output line 5 as playback of data bag; In other words, resolve after described signal codec module 31 receives the packet carrying control command, leave the serial data matched with Self address, the serial data of node is below regenerated rear described output line 5 again export, there is not accumulated phase bias distortion in signal waveform like this, and then avoid in prior art and adopt Training system driver output, the accumulative of phase deviation can be caused like this and have a strong impact on the ability that the stability of a system and cascade drive.In the present embodiment, described signal codec module 31 comprises microcontroller (MCU).
Described discrimination module 32 connects described signal codec module 31, detect input and the output of described signal codec module 31, the output drive signal when differentiating the input of described signal codec module 31 or output no signal inputing or outputing within the time period of presetting; In the present embodiment, section detection time that described discrimination module 32 is preset is 1 ~ 500ms, but is not limited thereto, for different applied environments, and the section detection time also adjustable that described discrimination module 32 is preset.
In the implementation process of reality, the operating state of described discrimination module 32 has several situation:
1. discriminating gear 32 described in detects the level state of described signal codec module 31 input and output respectively, if (such as in the time period of 500ms) can't detect output signal in the certain hour having input signal, declarative section point apparatus 3b has fault, cannot regenerated signal, then discriminating gear 32 is by output one drive singal.
2. discriminating gear 32 described in detects the level state of described signal codec module 31 input and output respectively, if (such as in the time period of 500ms) detects output signal in the certain hour having input signal, then declarative section point apparatus 3b can normally resolve, also can regenerated signal, then discriminating gear 32 will keep original output state.
3. discriminating gear 32 described in detects the level state of described signal codec module 31 input and output respectively, if (in the time period such as 500ms) described discrimination module 32 detects output signal in the certain hour of no signal input, then declarative section point apparatus 3b output signal is come by straight-through cable 35, described node apparatus 3b is in bypass condition, then discriminating gear 32 makes first, second by-pass switch 33,34 still be in bypass condition.
4. discriminating gear 32 described in detects the level state of described signal codec module 31 input and output respectively, if (in the time period such as 500ms) described discrimination module 32 does not detect output signal yet in the certain hour of no signal input, illustrate it is likely that the server of control centre does not send data, network is in idle condition, then now discriminating gear 32 exports first, second by-pass switch 33,34 of driving to normal condition, waits pending data to arrive and judges.
Described first by-pass switch 33 is connected between the input of described signal input line 1 and described signal codec module 31, there is the first moving contact a connecting described signal input line 1, connect the first normality contact b of the input of described signal codec module 31, and the first bypass contact c, described first by-pass switch 33 under normal conditions its first moving contact a is connected with described first normality contact b, when described first by-pass switch 33 receives described drive singal, described first moving contact a jumps to described first bypass contact c.
Described second by-pass switch 34 is connected between the output of described output line 5 and described signal codec module 31, there is the second moving contact a ' connecting described output line 5, connect the second normality contact b ' of the output of described signal codec module 31, and the second bypass contact c ', and described second by-pass switch 34 under normal conditions its second moving contact a ' be connected with described second normality contact b ', when described second by-pass switch 34 receives described drive singal, described second moving contact a ' jumps to described second bypass contact c '.
In the present embodiment, described first by-pass switch 33 and the second by-pass switch 34 are miniature relay or electronic switch.
Described straight-through cable 35 one end connects described first bypass contact c, the other end connects described second bypass contact c ', namely when described first bypass contact c is communicated with the second normality contact a ' with the first normality contact a and described second bypass contact c ', then described signal codec module 31 departs from network, and signal is by the short circuit of described straight-through cable 35.
Described output line 5 one end connects the second moving contact a ' being positioned at the node apparatus 3a of upper level, the other end connects the first moving contact a being positioned at the node apparatus 3c of next stage, is transferred to for the playback of data bag sent by the node apparatus 3a being positioned at upper level the node apparatus 3c being positioned at next stage;
Described ground wire 7 connects described even higher level of node device 3a and next stage node apparatus 3c.
For setting forth principle of the present invention and effect further, Fig. 4 a and Fig. 4 b is consulted on the basis referring to Fig. 3, and in the application process of reality, the operating state of described node apparatus has following several situation:
If described discrimination module does not detect output signal in the certain hour 1. having signal to input, declarative section is decorated and is equipped with fault, cannot regenerated signal, then discriminating gear starts first, second bypass changeover switch to bypass condition, allow input signal by described straight-through cable to next node, guarantee that node below can continue to obtain signal.
2. if described discrimination module detects output signal in the certain hour having signal to input, declarative section point apparatus can normally be resolved, also can regenerated signal, then discriminating gear exports and makes first, second bypass changeover switch still be in normal condition.
If described discrimination module detects output signal in the certain hour of 3. no signal input, declarative section point apparatus output signal is straight-through, described node apparatus is in bypass condition, then discriminating gear makes first, second bypass changeover switch still be in bypass condition.
If described discrimination module does not also detect output signal in the certain hour of 4. no signal input, illustrate it is likely that the server of control centre does not send data, network is in idle condition, then now discriminating gear exports first, second bypass changeover switch of driving to normal condition, waits pending data to arrive and judges.
After adopting this by pass mechanism, the reliability model revolutionizing chain network topological structure is the critical defect of cascaded structure, make it should use reliability reliable just as bus type, and even a lot of aspect exceedes bus type, such as can realize automatic allocation address, this is that bus type cannot realize, this function greatly can reduce the workload of job site, and, this bus structures are easy to investigation problem when breaking down, as long as find bad point just to find problem, individual failure point is sometimes also there will be by bus signals clamper or interference unlike bus type, cause whole unstable networks, the situation that phenomenon is intangible, be difficult to find fault point.And because each node of this bus structures is only with two somes communication of its consecutive points, offered load is very light, and communication speed and communication distance can increase greatly; Node signal in this bus have employed regenerative system, a brand-new signal waveform can be regenerated after each decoding, be equivalent to every one-level node apparatus all through school zero process, after nodes many again, waveform still as before, driving force is very powerful, as long as and a holding wire can be connected two points with a ground wire.
In sum, node apparatus for LED lamplight net control of the present invention and LED lamplight network topology structure, each node apparatus can monitor oneself input/output state automatically, once occur that abnormal signal interrupts, start bypass circuit immediately, this node apparatus is departed from network and signal is led directly to rear class, owing to being chain network topological structure, two node communication that each node apparatus is only adjacent with it, therefore, signal driving force increases greatly, the more number of nodes of longer Distance geometry can be driven, and, required cable core number is few and data traffic is large, automatic address distribution function can also be realized, reduce the workload of construction greatly.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.