Summary of the invention
The invention provides a kind of control device.
The present invention also provides a kind of Trouble Report generation system that can automatically judge fault type and the position of fault point is recorded.
The present invention provides a kind of Trouble Report generation method that can automatically judge fault type and the position of fault point is recorded in addition.
The invention provides a kind of control device, it comprises: for the local clock module of clock signal is provided, and respectively coupled main decoder module, from decoder module, main coding module with from coding module;
Described control device also comprises the display control module being connected with above-mentioned each module, for judging validity and the signal validity of master and slave cascade channel, processes the input signal of master and slave cascade channel;
Described main decoder module, for receiving the serial input signals of main cascade channel, sends to described display control module after decoding;
Described from decoder module for receiving the serial input signals from cascade channel, after decoding, send to described display control module;
Described main coding module, for the main cascade channel serial output signal of described display control module is encoded, is transmitted by main cascade channel;
Described from coding module for to the encoding from cascade channel serial output signal of described display control module, by transmitting from cascade channel.
Described control device, wherein, described display control module comprises:
The first judging unit, for judging the signal that whether has stabilized frequency in master and slave cascade channel;
The second judging unit, for judging that in master and slave cascade channel, whether signal is effective;
And data processing unit, for intercepting local data, adding set state bag.
Described control device, wherein, described main decoder module and describedly adopt identical decoding protocol element from decoder module, described main coding module and describedly adopt identical coding protocol unit from coding module.
Described control device, wherein, in described decoding protocol element and described coding protocol unit, adopts the pulse signal of a complete cycle to represent 1 signal, and wherein, the high level time of logical one is greater than the high level time of logical zero.
The present invention also provides a kind of system of automatic fault reporting, comprising: control device, the level of master controller, at least one and master controller cascade is associated in of control device tail end from controller; Master controller and control device form main cascade channel, from controller and control device, form from cascade channel; Described master controller, for sending main connection input signal, receives from cascade channel output signal; Described from controller, for sending from cascade input signal, receive main cascade channel output signal; Described control device comprises: for the local clock module of clock signal is provided, and respectively coupled main decoder module, from decoder module, main coding module with from coding module; Also comprise the display control module being connected with above-mentioned each module, for judging validity and the signal validity of master and slave cascade channel, process the input signal of master and slave cascade channel; Described main decoder module, for receiving the serial input signals of main cascade channel, sends to described display control module after decoding; Described from decoder module for receiving the serial input signals from cascade channel, after decoding, send to described display control module; Described main coding module, for the main cascade channel serial output signal to described display control module, is encoded, and by main cascade channel, transmits; Described from coding module for to described display control module from cascade channel serial output signal, encode, by transmitting from cascade channel.
Described system, wherein, described main decoder module and describedly adopt identical decoding protocol element from decoder module, described main coding module and describedly adopt identical coding protocol unit from coding module.
Described system, wherein, in described decoding protocol element and coding protocol unit: adopt the pulse signal of a complete cycle to represent 1 signal, the high level time of logical one is greater than the high level time of logical zero.
Described system, also comprises the LED lamp point that at least one and described display control module is connected, and described display control module receives the fault message of each LED lamp point, for the treatment of main cascade channel with from the input signal of cascade channel.
Described system, also comprise at least one drive unit, each drive unit at least connects a LED lamp point, described display control module is controlled each LED lamp point by each drive unit, described display control module receives the fault message of each drive unit and the fault message of each LED lamp point, for the treatment of main cascade channel with from the input signal of cascade channel.
The present invention also provides a kind of method of automatic fault reporting, comprises following steps:
A, to control device at different levels, sequentially carry out respectively following steps:
A1: the input signal decoding to master and slave cascade channel; Wherein said input signal is comprised of frame signal, and every frame signal comprises: frame starts bag, frame state bag and frame data bag;
A2: the frame that detects each frame signal starts bag, judges that respectively whether master and slave cascade channel is effective; All, carry out A3, arbitrary is no, carries out A4;
A3: to each input signal, reading its frame state bag, judge its whether useful signal, is to obtain its frame data bag, is its adding set state bag, otherwise directly forwards; Carry out A5;
A4: to the input signal in effective passage, reading its frame state bag, obtain its frame data bag, is its adding set state bag; To invalid passage, adopt the output signal of effective passage as output;
A5: the master and slave cascade channel signal of coding output;
B, analyze the output signal of final master and slave cascade channel, obtain Trouble Report.
Described method, in described frame signal, described frame starts bag, described frame state bag, described frame data bag, and the data bits comprising is identical.
Described method, adopts the pulse signal of a complete cycle to represent 1 signal, and the high level time of logical one is greater than the high level time of logical zero.
Described method, in steps A 3, described adding set state bag, specifically carry out following steps:
B1: receive control device at the corresponding levels and the status signal that is subject to the device of its control;
B2: according to described status signal generating apparatus state bag;
B3: adding set state bag after the frame data bag of frame signal.
Described method, described step B2 generates a unit state bag.
Described method, described step B2 generates a plurality of unit state bags.
Adopt such scheme, the present invention has increased by one from controller by the end at former transmission cascade chain, and controller sends control signal thus, thereby increased a reverse cascade channel, make the malfunction of master and slave cascade channel can feed back in real time master and slave controller, generate Trouble Report, fix a breakdown in time, improve system works stability.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
As shown in Figure 2, the invention provides a kind of control device of LED light fixture, this control device comprises: comprise for the local clock module of clock signal is provided, and respectively coupled main decoder module, from decoder module, main coding module with from coding module.
Described control device also comprises the display control module being connected with above-mentioned each module, for judging validity and the signal validity of master and slave cascade channel, processes the input signal of master and slave cascade channel;
Described main decoder module, for receiving the serial input signals of main cascade channel, sends to described display control module after decoding;
Described from decoder module for receiving the serial input signals from cascade channel, after decoding, send to described display control module;
Described main coding module, for the main cascade channel serial output signal of described display control module is encoded, is transmitted by main cascade channel;
Described from coding module for to the encoding from cascade channel serial output signal of described display control module, by transmitting from cascade channel.
For example, main decoder module, for the main cascade channel serial input signals msin that decodes, output signal m_data; From decoder module, for decoding from cascade channel serial input signals ssin, output signal s_data; Main coding module, for the main cascade channel serial output signal m_datal coding output to processing through display control module; From coding module, for encoding and export from cascade channel serial output signal s_datal what processing through display control module; Display control module, for receiving main cascade signal m_data and from cascade signal s_data, judges main cascade channel and from cascade channel validity and signal validity, according to different situations, processes main cascade channel and from cascade channel input signal; And local clock module, for providing clock signal to above-mentioned module.
Define channel is effectively in each passage, to have the signal of stabilized frequency in the present invention, otherwise passage is invalid; Definition signal is effectively in main cascade channel to be main cascade signal, and main cascade signal is effective, in cascade channel, is from cascade signal, effective from cascade signal, otherwise invalidating signal.
Below describe that display control module judges main cascade channel in detail and from cascade channel validity and signal validity and concrete signal processing method.
Receiving main cascade channel signal m_data and from cascade channel signal s_data, the frame that detects respectively m_data and s_data starts bag, if the frame of signal in main cascade channel only detected, start bag, think that main UNICOM is effective and invalid from cascade channel; If only detected from the frame of signal in cascade channel, start bag, think invalid from the effective and main cascade channel of cascade channel, if correct frame all detected in master and slave cascade channel, start bag, think main cascade channel and all effective from cascade channel.
Situation one: main cascade channel effectively and invalid from cascade channel, has the signal of stabilized frequency in main cascade channel, from not having the signal of stabilized frequency in cascade channel.Read the frame state bag of signal m_data in main cascade channel, intercept the some local frame data bag of signal in main cascade channel as local display control signal, the number of concrete data intercept bag is determined according to the number of lamp point that control device is controlled, adding set state bag after the residue frame packet of main cascade channel signal afterwards, the state information that this unit state bag has comprised current control device, the driving chip that it is controlled and with the state information of the LED lamp point being connected; Above in each signal processing links, only process the signal m_data in main cascade channel, for from cascade channel, owing to frame not detected, start bag, so this passage, in disarmed state, at this passage, should be given above-mentioned treated main cascade channel signal assignment from cascade channel, in main coding module with from coding module, main cascade channel and the signal in cascade channel are encoded, to next stage cascade control device, export.
Situation two: main cascade channel is invalid and effective from cascade channel, from there being the signal of stabilized frequency in cascade channel, and in main cascade channel without the signal of stabilized frequency.At this moment, read from the frame state bag of signal s_data in cascade channel, intercepting from several frame data bags of signal in cascade channel as local display control signal, the concrete number of data intercept bag is determined according to the number of lamp point that control device is controlled, adding set state bag the residue frame packet from cascade channel signal afterwards, the state information of the state information that this unit state bag has comprised current control device, the driving chip that it is controlled and coupled LED lamp point; Above in each signal processing links, only process from the signal s_data in cascade channel, for main cascade channel, owing to frame not detected, start bag, so this passage is in disarmed state, at this passage, should treatedly from cascade channel signal assignment, give main cascade channel by above-mentioned, in main coding module with from coding module, main cascade channel and the signal in cascade channel are encoded, to next stage cascade control device, export.
Situation three: main cascade channel, all effective from cascade channel, i.e. main cascade channel and from there being the signal of stabilized frequency in cascade channel.Read respectively main cascade channel signal and from the frame state bag of cascade channel signal, it is main cascade channel signal or from the state information of cascade channel signal that frame state bag contains current demand signal, therefore according to frame state bag, can judge main cascade channel and from cascade channel signal validity.If main cascade channel signal and all effective from cascade channel signal, intercept respectively main cascade channel signal and from the frame data bag of cascade channel signal, according to the frame data bag output display control signal ctrl of main cascade channel signal, the LED lamp point number that the number of same data intercept bag is controlled according to control device is determined, afterwards main cascade channel signal and from cascade channel signal adding set state bag remaining frame data bag, in main coding module with from coding module by above-mentioned main cascade channel signal with from cascade channel Signal coding, export to next stage control device, if main cascade channel signal is effectively and from cascade channel invalidating signal, only intercept the frame data bag of main cascade channel signal, according to the frame data bag output display control signal ctrl of main cascade channel signal, adding set state bag after the remaining frame data bag of main cascade channel signal afterwards, and be left intact for the signal in cascade channel, former state forwards, in main coding module with from coding module by above-mentioned main cascade channel signal with from cascade channel Signal coding, export to next stage control device, if main cascade channel invalidating signal and effective from cascade channel signal, only intercept the frame data bag from cascade channel signal, according to the frame data bag output display control signal ctrl from cascade channel signal, adding set state bag the remaining frame data bag from cascade channel signal afterwards, and be left intact for the signal in main cascade channel, former state forwards, in main coding module with from coding module by above-mentioned main cascade channel signal with from cascade channel Signal coding, export to next stage control device.
Employing, with upper type, has completed the processing procedure to signal at current control device.Like this, control device is in the situation that a cascade channel disconnects, and same energy is output display control signal normally, and can and drive the state information of chip return in time by this stage arrangement, make control end can grasp in real time system works situation, fix a breakdown in time.
It should be noted that, control device of the present invention must be in effective situation at least one cascade channel, could work, the production method of the driving chip of controlling for state information and it of current control device in addition and the state information of LED lamp point thereof, belong to known technology, at this, needn't repeat.
Embodiment 2
On the basis of embodiment 1, display control module can adopt such structure to realize its function, as shown in Figure 4, this display control module comprises: the first judging unit, for judging the signal that whether has stabilized frequency in master and slave cascade channel, thereby judge the validity of main cascade channel and from the validity of cascade channel; The second judging unit, for judging master and slave cascade signal validity, judges that in master and slave cascade channel, whether signal is effective; This display control module also comprises data processing unit, for the treatment of the signal in master and slave cascade channel, intercepts local data, adding set state bag.Completed like this, very easily the data processing function of display control module.
Embodiment 3
On the basis of embodiment 1, for main decoder module, adopt identical decoding protocol element to decode from decoder module, main coding module and adopt identical coding protocol unit to encode from coding module.Can improve system data treatment effeciency like this.
Embodiment 4
On the basis of embodiment 3, can adopt such decoding protocol element and coding protocol unit: in decoding protocol element and coding protocol unit, agreement represents a signal with the pulse signal of a complete cycle, wherein the longer signal of high level time is logical one, and the shorter signal of high level time is logical zero.This special signal agreement can be easy to realize data sampling, and then facilitates Code And Decode.
Embodiment 5
And the present invention also provides a kind of system of automatic fault reporting, it comprises: control device, the level of master controller, at least one and master controller cascade is associated in of control device tail end from controller; Master controller and control device form main cascade channel, from controller and control device, form from cascade channel; Wherein, described control device is the control device described in above-mentioned arbitrary embodiment.
For example, this system also comprises the LED lamp point that at least one and described display control module is connected, and described display control module receives the fault message of each LED lamp point, for the treatment of main cascade channel with from the input signal of cascade channel.
And for example, this system also comprises at least one drive unit, each drive unit at least connects a LED lamp point, described display control module controls by each drive unit the LED lamp point that it connects, described display control module receives the fault message of each drive unit and the fault message of each LED lamp point, for the treatment of main cascade channel with from the input signal of cascade channel.
An example as shown in Figure 5, this system comprises: the control device of master controller 501, three and master controller cascade, comprise control device 503, control device 504, control device 505, be numbered respectively control device s00, control device s01, control device s02, level is associated in of control device tail end from controller 502; Master controller 501 and control device s00, control device s01, control device s02 form main cascade channel, from controller 502 and control device s00, control device s01, control device s02, form from cascade channel; Wherein master controller 501, send main connection input signal msin, receive from cascade channel output signal sbout_s00; From controller, send from cascade input signal ssin, receive main cascade channel output signal saout_s02; Control device s00, control device s01, control device s02 26S Proteasome Structure and Function are identical with the control device described in embodiment 1, do not repeat them here.
Application as a kind of this system, control device s00 controls three-stage cascade and drives chip, comprise and drive chip 506, driving chip 507, driving chip 508, control device s01 controls three-stage cascade and drives chip, comprise and drive chip 509, driving chip 510, driving chip 511, control device s02 controls three-stage cascade and drives chip, comprises and drives chip 512, driving chip 513, driving chip 514, and each drives chip to drive respectively some LED lamp points.
As the application of another kind of this system, as shown in Figure 6, control device s00 directly controls some R, G, B lamp point, and control device s01 directly controls some R, G, B lamp point, and control device s02 directly controls some R, G, B lamp point.
Embodiment 6
The present invention also provides a kind of method that realizes automatic fault reporting, is applied in system as shown in Figure 5.It comprises following steps.
A, to control device at different levels, sequentially carry out respectively following steps:
A1: the input signal decoding to master and slave cascade channel; Wherein said input signal is comprised of frame signal, and every frame signal comprises: frame starts bag, frame state bag and frame data bag;
A2: the frame that detects each frame signal starts bag, judges that respectively whether master and slave cascade channel is effective; All, carry out A3, arbitrary is no, carries out A4.If be no simultaneously, cannot obtain Trouble Report.
A3: to each input signal, reading its frame state bag, judge its whether useful signal, is to obtain its frame data bag, is its adding set state bag, otherwise directly forwards; Carry out A5; Wherein, described adding set state bag, specifically can carry out following steps: B1: receive control device at the corresponding levels and the status signal that is subject to the device of its control; B2: according to described status signal generating apparatus state bag; This step can according to actual needs, generate one or more unit state bags; B3: adding set state bag after the frame data bag of frame signal.
A4: to the input signal in effective passage, reading its frame state bag, obtain its frame data bag, is its adding set state bag; To invalid passage, adopt the output signal of effective passage as output;
A5: the master and slave cascade channel signal of coding output;
B, analyze the output signal of final master and slave cascade channel, obtain Trouble Report.
For example, in each control device, all sequentially carry out following operation, master and slave cascade channel input signal decoding; The frame of detection signal starts bag; Judge master and slave cascade channel validity, wherein passage effectively refers to the signal that has stabilized frequency in each passage; If master and slave cascade channel all effectively, according to the following step processing signals: the frame state bag that reads each channel signal; Judgement signal validity, signal effectively refers in main cascade channel to be main cascade signal, in cascade channel, is from cascade signal; The frame data bag of intercepting useful signal; For useful signal adding set state bag; Invalid signals is not carried out to any operation; Afterwards to the output of encoding respectively of master and slave cascade channel signal.
If main cascade channel or invalid from cascade channel, carries out following operation: the frame state bag that reads signal in effective passage; Intercept the frame data bag of signal in effective passage; For signal adding set state bag in effective passage; Invalid passage is used the output signal of effective passage as output; Master and slave cascade channel Signal coding output; Later control device at different levels repeats above step; At cascade chain tail end, master and slave controller is analyzed master and slave cascade channel output signal and is obtained Trouble Report.
Below in conjunction with system schematic as shown in Figure 5, the main cascade channel signal schematic representation shown in Fig. 8, shown in Fig. 9 from cascade channel signal schematic representation, and the method flow diagram shown in Figure 10, describes method of the present invention in detail.
System is by master controller 501, from controller 502 as shown in Figure 5,3 grades of control device, comprise control device 503, control device 504, control device 505, be numbered respectively control device s00, control device s01, control device s02, and the driving chip 506 controlled is separately to driving chip 514 and respectively driving LED lamp point R, G, the B that chip drives to form.Master and slave cascade channel all carries out signal transmission according to each bag of the frame signal shown in Fig. 7 order from left to right, and it is the data of immobilized substance that frame starts bag, for determining the beginning of a frame signal; The information comprising in frame state bag comprises: current frame signal is frame data bag number main or that comprise from cascade signal, current frame signal; Frame data bag comprises driving the control information of chip; In the present embodiment, each control device is controlled three-stage cascade and is driven chip, and each drives chip need to intercept 1 frame data bag, in the middle of master controller 501 and the frame signal sent from controller 502, all comprises 9 frame data bags.
Situation one:
When master controller, from main cascade channel between controller and each control device with when all working properly from cascade channel.
Concerning control device s00, the input cascade signal that it receives is respectively output signal msin and the sbout_s01 of master controller, sbout_s01 be through two-stage control device s02 and s01, processed from controller output signal ssin, as shown in Figure 9, ssin intercepts after required separately frame data bag adding set state bag through s02 and s01, remain three frame data bag D7, D8, D9, 6 frame state bag S1 have been increased, S2, S3, S4, S5 and S6, wherein, the state information that S1 has comprised control device s02 and driving chip 512 and its R driving, G, the state information of B lamp point, S2, S3 has comprised driving chip 513, drive chip 514 and corresponding R, G, the state information of B lamp point, the state information that S4 has comprised control device s01 and driving chip 509 and its R driving, G, the state information of B lamp point, S5, S6 has comprised driving chip 510, drive chip 511 and corresponding R, G, the state information of B lamp point, through main decoder module with from decoder module decoding, the first step, the display control module of s00 starts bag to the frame of msin and sbout_s01 and detects, when frame being detected and starting to wrap, confirm main cascade channel and all effective from cascade channel, and confirm the beginning of each frame signal, second step, carries out reading of msin and sbout_s01 frame state bag, thereby learns that msin signal is main signal, and sbout_s01 signal is from signal, this main cascade channel signal and all effective from cascade channel signal, and frame data bag number is 9, the 3rd, msin and sbout_s01 are carried out to the intercepting of packet, front 3 frame data bag D1, D2, the D3 of intercepting msin, last three frame data bag D7, D8, the D9 of intercepting sbout_s01, the 4th, msin is increased to 3 unit state bag S1, S2, S3, wherein, the state information that S1 has comprised control device s00 and drive chip 01 and the state information of its R driving, G, B lamp point, S2, S3 have comprised and have driven chip 02,03 and R, the G of correspondence, the state information of B lamp point, sbout_s01 is increased to 3 unit state bag S7, S8, S9, wherein, the state information that S7 has comprised control device s00 and drive chip 01 and the state information of its R driving, G, B lamp point, S8, S9 have comprised and have driven chip 02,03 and R, the G of correspondence, the state information of B lamp point.Meanwhile, the driving chip controls signal ctrl that the display control module of control device s00 generates according to main connection input signal msin exports to its driving chip of controlling 506,507,508, finally, main coding module and from coding module by treated main cascade signal with from cascade signal recompile, output saout_s00 and sbout_s00.
Concerning control device s01, input signal is the output signal saout_s00 of control device s00 and the output sbout_s02 of control device s02, be the frame signal structure of saout_s00 and sbout_s02 as shown in Figure 8 and Figure 9, remainder data processing procedure is identical with control device s00, repeats no more.
Concerning control device s02, input signal is the output signal saout_s01 of control device s01 and from the output signal ssin of controller 502, be the frame signal structure of saout_s01 and ssin as shown in Figure 8 and Figure 9, remainder data processing procedure is identical with control device s00, repeats no more.
Main cascade channel signal msin and be output as respectively saout_s02 and sbout_s00 from cascade channel signal ssin after three-stage cascade control device is processed, master controller and from controller end from controller end, receive respectively saout_s02 and sbout_s00 as shown in Figure 8 and Figure 9, by the analysis to state bag, can know, this signal of saout_s02 is main cascade signal, illustrate that main cascade channel is working properly, by the analysis to unit state bag 1 to 9, can know that in cascade chain, 9 drive chip 506 to 514 and corresponding R thereof, G, the malfunction of B lamp point, obtained Trouble Report.
Situation two:
When the main UNICOM road between control device s00 and s01 breaks down.
Concerning control device s00, the input cascade signal that it receives is respectively output signal msin and the sbout_s01 of master controller, control device s00 is identical to the processing procedure of msin and sbout_s01 with situation one to the processing procedure of msin and sbout_s01, needn't repeat.
Concerning control device s01, input signal should be the output sbout_s02 of control device s02 and the output signal saout_s00 of control device s00, but because the main UNICOM road between control device s00 and s01 breaks down, therefore, now do not receive main cascade channel signal saout_s00; Sbout_s02 be through control device s02, processed from controller output signal ssin, as shown in Figure 9, ssin is after s02 intercepting frame data bag and adding set state bag, remain 6 frame data bag D4, D5, D6, D7, D8, D9,3 frame state bag S1, S2, S3 have been increased, wherein, the state information of the state information that S1 has comprised control device s02 and driving chip 512 and its R driving, G, B lamp point, S2, S3 have comprised driving chip 513, driving chip 514 and corresponding R, G, the state information of B lamp point; Through from decoder module decoding, the first step, the display control module of s01 starts bag to the frame of sbout_s02 and detects, the frame that sbout_s02 detected starts bag, and the frame that can't detect signal in main cascade channel starts bag, confirmation is effective from cascade channel, and main cascade channel is invalid, and confirms the beginning of main cascade channel one frame signal; Second step, carries out reading of sbout_s02 frame state bag; The 3rd, sbout_s02 is carried out to the intercepting of frame data bag, front 3 frame data bag D4, D5, the D6 of intercepting sbout_s02, meanwhile, the display control module of control device s01 drives chip controls signal ctrl to export to its driving chip of controlling 509,510,511 according to generating from cascade channel signal sbout_s02; The 4th, sbout_s02 is increased to 3 unit state bag S4, S5, S6, wherein, the state information that S4 has comprised control device s01 and drive chip 509 and the state information of its R driving, G, B lamp point, S5, S6 have comprised and have driven chip 510,511 and R, the G of correspondence, the state information of B lamp point.The 5th, due to no signal in main cascade channel now, in disarmed state, use above-mentioned treated from cascade channel signal the output signal as main cascade channel, also in Fig. 5, the value of the output saout_s01 of control device s01 is sbout_s01; Finally, main coding module and from coding module by treated signal sbout_s01 recompile in cascade signal and main cascade channel output sbout_s01 and saout_s01.
Concerning control device s02, input signal is the output signal saout_s01 of control device s01 and from the output signal ssin of controller 502, be illustrated in figure 9 the frame signal structure of ssin, as from the foregoing, signal saout_s01 is sbout_s01 in fact, so its signal structure is as shown in sbout_s01 in Fig. 9.After master and slave decoder module decoding, the first step, the display control module of s02 starts bag to the frame of ssin and saout_s01 and detects, and the frame that ssin and saout_s01 detected starts bag, confirm that master and slave cascade channel is all effective, and confirm the beginning of master and slave cascade channel one frame signal; Second step, reads the frame state bag of ssin and saout_s01, thereby confirms, the signal in main cascade channel be from cascade signal sbout_s01, and the signal in cascade channel is from cascade signal, so main joins invalidating signal and effective from cascade signal; The 3rd, effective cascade signal ssin is carried out to the intercepting of frame data bag, front 3 frame data bag D1, D2, the D3 of intercepting ssin, meanwhile, the display control module of control device s01 drives chip controls signal ctrl to export to its driving chip of controlling 512,513,514 according to generating from cascade channel signal ssin; The 4th, ssin is increased to 3 unit state bag S1, S2, S3, wherein, the state information of the state information that S1 has comprised control device s02 and driving chip 512 and its R driving, G, B lamp point, S2, S3 have comprised driving chip 513, driving chip 514 and corresponding R, G, the state information of B lamp point.It may be noted that, due to invalidating signal in main cascade channel, above-mentioned steps does not all relate to the processing of signal in main cascade channel, its former state is forwarded to each packet, also i.e. sbout_s01 as shown in Figure 9, it comprises that frame starts bag, frame state bag, frame data bag D7, D8, D9, and unit state bag S1, S2, S3, S4, S5, S6; Finally, main coding module and from coding module by treated signal sbout_s01 recompile in cascade signal and main cascade channel output sbout_s02 and saout_s02.
Main cascade channel signal msin and be output as respectively saout_s02 and sbout_s00 from cascade channel signal ssin after three-stage cascade control device is processed, should be noted that, now saout_s02 is sbout_s01 in fact, at master controller, receive sbout_s00 as shown in Figure 9, by the analysis to frame state bag, can know, sbout_s00 signal is from cascade signal, explanation is working properly from cascade channel, from controller termination, receiving sbout_s01 as shown in Figure 9, by the analysis to frame state bag, can know, sbout_s01 signal is from cascade signal, illustrate that main UNICOM road breaks down, at master controller or from controller end, by the analysis to unit state bag 1 to 9, can know in cascade chain 9 malfunctions that drive chip 506 to 514 and corresponding R, G, B lamp point, so just obtained Trouble Report.
For other faults of system shown in Figure 5, processing method all as mentioned above, all can obtain Trouble Report, does not repeat them here.
Embodiment 6
On the basis of embodiment 5, each packet in frame signal can be set, as frame starts bag, frame state bag, frame data bag, all comprises identical data bits.In each packet, comprise identical data figure place, the beginning of packet and end only need judge by data bits, reduce logic judgement difficulty, reduce failure rate.
Embodiment 7
On the basis of embodiment 5, a kind of method as adding set state bag, can realize like this: receive control device at the corresponding levels and the status signal err that is subject to the device of its control, as directly controlled LED lamp point or passing through to drive chip controls LED lamp point, according to status signal err generating apparatus state bag, finally said apparatus state bag is added on to the coding output afterwards of frame data bag.This unit state bag can comprise separately the state information of LED lamp point, or comprises the state information of LED lamp point and driving chip simultaneously, and this unit state bag is added on to the coding output afterwards of frame data bag, facilitates control device deal with data at different levels.
Embodiment 8
On the basis of embodiment 7, control device at the corresponding levels can directly be controlled some LED lamp points, now can only generate a unit state bag, the state information that this unit state bag has comprised control device at the corresponding levels and the state information of LED lamp point.
Embodiment 9
On the basis of embodiment 7, control device at the corresponding levels can cascade multiple drive power chip, each drives the some LED lamp points of chip drives, now can generate a plurality of unit state bags, S1, S2......Sn, the state information that unit state bag S1 has comprised control device at the corresponding levels and first order driving chip and institute's driving LED lamp point thereof, S2 to Sn has comprised the second level and has driven chip to the n level to drive the state information of chip and each self-driven LED lamp point thereof.
Should be understood that, for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection range of claims of the present invention.