CN102958220A - Method and device for regulating flicker of indicator lamps - Google Patents

Method and device for regulating flicker of indicator lamps Download PDF

Info

Publication number
CN102958220A
CN102958220A CN2011102376913A CN201110237691A CN102958220A CN 102958220 A CN102958220 A CN 102958220A CN 2011102376913 A CN2011102376913 A CN 2011102376913A CN 201110237691 A CN201110237691 A CN 201110237691A CN 102958220 A CN102958220 A CN 102958220A
Authority
CN
China
Prior art keywords
flicker
unit
bit
bit map
flicker cycle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011102376913A
Other languages
Chinese (zh)
Other versions
CN102958220B (en
Inventor
许俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Centec Networks Suzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201110237691.3A priority Critical patent/CN102958220B/en
Publication of CN102958220A publication Critical patent/CN102958220A/en
Application granted granted Critical
Publication of CN102958220B publication Critical patent/CN102958220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a method for regulating flicker of indicator lamps. The method includes setting N unit flicker cycles; determining fixed lengths of bitmaps according to lengths M of the unit flicker cycles; repeatedly arraying the same unit flicker cycle with the length M until the sum of the lengths of the unit flicker cycles is equal to the fixed length of the corresponding bitmap, and forming the bitmaps corresponding to N flicker levels; and regulating the frequency of flicker of the indicator lamps by selecting the bitmaps. Each unit flicker cycle is MXtB, wherein the tB is the duration of each bit and is shorter than or equal to 1/24 second, the M is the length of the corresponding unit flicker cycle, the MXtB is longer than or equal to 1/24 second, each unit flicker cycle MXtB is equal to the sum of a light-on stage XXtB and a light-off stage YXtB, the frequency of flicker is lowered when the M is increased, and the fixed length of each bitmap can be exactly divided by the length M of each unit flicker cycle. Compared with the prior art, the method for regulating flicker of the indicator lamps has the advantage that flicker of the multiple indicator lamps is controlled by selecting the limited bitmaps.

Description

Indicator light flash adjustment method and device
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of indicator light flash adjustment method and device.
Background technology
On the diverse network terminal equipment, such as Ethernet switch etc., often all adopt LED(Light Emitting Diode, light-emitting diode) as the operating state of status indicator lamp indicating terminal equipment, some terminal equipment has a plurality of indicator lights, change by different flicker frequency, such as quickflashing, the slow state such as sudden strain of a muscle, come operating states different in the indicating equipment.
The method of existing control indicator light flicker is that the frequency by the by-pass cock indicator light realizes, adopt frequency divider to regulate the cycle that divide ratio is controlled the high and low level of indicator light signal, if the cycle is elongated, then the indicator light flicker frequency is slack-off, otherwise flicker frequency accelerates.Yet for a plurality of indicator light terminal equipments are arranged, because the state that each indicator light shows is different, need a plurality of one to one frequency dividers to regulate.Along with the increase of indicator light quantity, frequency divider quantity increases thereupon, and cost is thereupon linear increase also.
Summary of the invention
In order to address the above problem, the invention provides a kind of indicator light flash adjustment method and device, this control method and device can utilize the selection of limited bit map to control a plurality of indicator light flickers.
Concrete technical scheme is as follows:
A kind of indicator light flash adjustment method that the embodiment of the invention provides comprises:
Set N unit flicker cycle, each unit flicker cycle is M*t B, wherein, t BBe the duration of each bit, t B≤ 1/24 second, M was unit flicker cycle length, M*t B〉=1/24 second, described each flicker cycle M*t of unit B=ignition phase X*t B+ extinguish stage Y*t B, M is larger, and flicker frequency is slower;
According to described unit flicker cycle length M, determine the regular length of bit map, aliquot described each the unit flicker cycle length M of the regular length of described bit map;
With the regular length of same unit flicker cycle length M repeated arrangement to bit map, form the bit map of corresponding N flicker grade;
By selecting described bit map, regulate the flicker frequency of indicator light.
The preferred embodiment one of according to the present invention, described bit map be with binary representation, and bit value is lighted indicator light during for " 1 ", and bit value extinguishes indicator light during for " 0 ".
The preferred embodiment one of according to the present invention, the bit value of the beginning of the ignition phase X of described each unit flicker cycle and the bit value of end are " 1 ", and described all bit values that extinguish stage Y are " 0 ".
The preferred embodiment one of according to the present invention, the bit value that is positioned at the centre position among the described ignition phase X can be made as " 0 " in the interval, and the brightness of indicator light is regulated in " 0 " that occurs by the interval.
The preferred embodiment one of according to the present invention, the duration t of described each bit BIt is 1/60 second.
The preferred embodiment one of according to the present invention, this control method are supported a plurality of ports outputs, and the duration of each bit output this moment is t B/ port sum.
A kind of indicator light flash adjustment device that the embodiment of the invention provides comprises:
Be used for setting N unit flicker cycle, each unit flicker cycle is M*tB, wherein, tB is the duration of each bit, tB≤1/24 second, M is unit flicker cycle length, M*tB 〉=1/24 second, described each the flicker cycle M*tB=of unit ignition phase X*tB+ extinguishes stage Y*tB, the unit that the larger flicker frequency of M is slower;
Be used for according to described unit flicker cycle length M, determine the regular length of bit map, the unit of aliquot each the unit flicker cycle length M of the regular length of described bit map;
Be used for the regular length of same unit flicker cycle length M repeated arrangement to bit map, form the unit of the bit map of corresponding N flicker grade;
Be used for regulating the unit of the flicker frequency of indicator light by selecting described bit map.
The preferred embodiment one of according to the present invention, described bit map be with binary representation, and bit value is lighted indicator light during for " 1 ", and bit value extinguishes indicator light during for " 0 ".
The preferred embodiment one of according to the present invention, the bit value of the beginning of the ignition phase X of described each unit flicker cycle and the bit value of end are " 1 ", and described all bit values that extinguish stage Y are " 0 ".
The preferred embodiment one of according to the present invention, the bit value that is positioned at the centre position among the described ignition phase X can be made as " 0 " in the interval, and the brightness of indicator light is regulated in " 0 " that occurs by the interval.
As can be seen from the above technical solutions, a kind of indicator light flash adjustment method provided by the invention, this control method can utilize the selection of limited bit map to control a plurality of indicator light flickers, adjustable brightness and flicker frequency, do not need regulation voltage and use frequency divider, simple, and along with the increase of indicator light quantity does not need to increase hardware yet, reduce cost.
Description of drawings
Fig. 1 is the flow chart of the indicator light flash adjustment method of an embodiment of the present invention;
Fig. 2 is the bit map of 4 kinds of flicker frequencies of the high brightness of the embodiment of the invention one;
Fig. 3 is the bit map of 4 kinds of flicker frequencies of the low-light level of the embodiment of the invention one;
Fig. 4 is the bit map of 2 kinds of flicker frequencies of the high brightness of the embodiment of the invention two;
Fig. 5 is the bit map of 2 kinds of flicker frequencies of the middle brightness of the embodiment of the invention two;
Fig. 6 is the bit map of 2 kinds of flicker frequencies of the low-light level of the embodiment of the invention two;
Fig. 7 is the indicator light flash adjustment apparatus module figure of an embodiment of the present invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
The present invention adopts the selection of limited bit map to control a plurality of indicator light lamp flickers, and described bit map is the character string that is formed by a plurality of bit values, and exports bit value as conditional code in the mode of serial output, the blink states of control indicator light.
As shown in Figure 1, be the flow chart of the indicator light flash adjustment method of an embodiment of the present invention, described control method comprises:
A, N unit flicker cycle of setting, each unit flicker cycle is M*t B, wherein, t BBe the duration of each bit, t B≤ 1/24 second, M, N were positive integer, and M is unit flicker cycle length, i.e. number of bits, M*t B〉=1/24 second, described each flicker cycle M*t of unit B=ignition phase X*t B+ extinguish stage Y*t B, M is larger, and flicker frequency is slower.
Each unit flicker cycle comprises ignition phase X and extinguishes stage Y, and the state of ignition phase X performance is that indicator light is bright, and the state that extinguishes stage Y performance is that indicator light goes out.
Because the persistence of vision time of human eye approximately is 1/24 second, the duration of each bit is set t BBe t BBe made as≤1/24 second persistence of vision time of human eye, make human eye can not differentiate the state of each bit, guarantee when error code occurring, not discovered by human eye.With the flicker cycle M*t of unit BBeing made as 〉=1/24 second persistence of vision time of human eye, is that the light on and off of indicator light can be distinguished by human eye, has flicker effect.
B, according to described unit flicker cycle length M, determine the regular length of bit map, aliquot described each the unit flicker cycle length M of the regular length of described bit map.
When determining the regular length of bit map, can get the multiple of the least common multiple of each unit flicker cycle length M or least common multiple as the regular length of described bit map.Preferably, adopt least common multiple as the regular length of bit map.
The grade of the unit flicker cycle of setting is more, and namely N is larger, and the regular length of described bit map is larger.
C, with the regular length of same unit flicker cycle length M repeated arrangement to bit map, form corresponding N the flicker grade bit map.
Because the regular length of bit map is the multiple of unit flicker cycle length, each unit flicker cycle length M is formed corresponding bit map, be with same unit flicker cycle length M repeated arrangement, until take the regular length of described bit map.Corresponding to N different unit flicker cycle, can form the bit map of N flicker grade.
Described bit map is with binary representation, and output signal was for lighting indicator light when bit value was " 1 ", and output signal was for extinguishing indicator light when bit value was " 0 ", and the bit value the when bit value when beginning in the described bit map and end is opposite.The bit value of the beginning of described ignition phase X and the bit value of end are " 1 ", and described all bit values that extinguish stage Y are " 0 ".
D, by selecting described bit map, regulate the flicker frequency of indicator light.
Described bit map is to export as conditional code in the mode of serial output, and the duration of each bit is t B, the blink states of control indicator light.Since N different unit flicker cycle arranged, to the bit map of N flicker grade should be arranged, corresponding to N kind flicker frequency, the flicker of control indicator light.
When needs were supported a plurality of port, the duration of each bit output was t B/ port sum.Duration t such as each bit of setting B Be 1/60 second, the port sum that needs to support is 30, and the duration of each bit output this moment will be reduced to 1/(60*30 so) second.Rely on latch to keep the bit output valve, for each LED lamp, the duration of each bit output is constant, remains 1/60 second.
The present invention adopt the selection of limited bit map glimmer control mode can also carry out brightness regulation.
The method of existing control indicator light brightness is to realize by the magnitude of voltage that adjusting is carried on the indicator light, often adopts hardware circuit to come the regulating resistance partial pressure value.Yet in order to realize dynamically finely tuning by digital form, the design of its hardware circuit is comparatively complicated, need utilize single-chip microcomputer to regulate numerical digit resistance or realizes the adjustment of voltage by digital-to-analogue conversion (D/A) device, and the while has increased again cost.
The present invention arranges bit value for the mode of " 0 " by the interval, centre position at ignition phase X, carries out brightness regulation.Because the duration of each bit is less than the persistence of vision time of human eye, the time that " 0 " control indicator light that the interval occurs goes out is too short, and human eye can not be discovered indicator light and go out, and only perceived brightness is dimmed, " 0 " that the interval occurs is more frequent, and the brightness of indicator light is just darker.Thereby can carry out brightness regulation by " 0 " that the interval occurs, set different brightness degrees.
In Ethernet switch, usually each port has one or more LED lamp as indicator light, the speed of the Link State of display port and the receipts/literary composition of transmitting messages, the LED lamp of each port can be exported serial conditional code stream by Ethernet switching chip and control.By LED lamp flicker frequency and brightness are controlled, show different states.LED lamp flicker speed can show the speed of Link State and the receipts/literary composition of transmitting messages of each port, and different LED lamp brightness can adapt to the application of different occasions, for example in machine room, does not need the LED lamp too bright, simultaneously also in order to reduce power consumption; And with out of doors switch, since outdoor light, the brightness that then needs to improve the LED lamp; When indoor, all right lower Night of furnishing brightness, the LED lamp that minimizing is being glimmered impacts people's rest, life.
Among the present invention, the signal of Ethernet switching chip output control LED lamp is to adopt the mode of bit map to represent, in order to brightness and the flicker frequency of controlling the LED lamp.
Embodiment 1
Usually for simple and shorten for the purpose of the bitmap lengths, the progression of the control of the brightness of LED lamp and flicker frequency had better not be above 4 grades.Suppose in the Ethernet switch, the brightness progression of LED lamp is 2 grades, is divided into high brightness and low-light level, and LED lamp flicker progression is 4 grades, is divided into quickflashing, inferior quickflashing, dodges slowly, dodges the most slowly.
The duration of setting each bit is 1/60 second (less than the persistence of vision time of human eye).Lightening LED lamp when output signal is " 1 " extinguishes the LED lamp when output signal is " 0 ".In a flicker cycle, the length of output signal " 1 " is longer, and flicker frequency is slower.
Set first unit flicker cycle and be flicker frequency for quickflashing grade, because brightness progression is 2 grades, the output of " 0 " will be arranged in the ignition phase, and the bit value of the bit value of the beginning of ignition phase and end is " 1 " when low-light level.Thereby the length that can determine the unit flicker week of the highlighted quickflashing grade of LED lamp is 6, and namely continuous wave output " 111 " and then export " 000 ", and this unit flicker cycle comprises the ignition phase of " 111 " and extinguishing the stage of " 000 ", then repetition.Such flicker cycle is 1/10 second (greater than the persistence of vision time of human eye), is the flicker frequency of quickflashing.Unit flicker cycle length in low bright quickflashing grade also is 6, i.e. then output " 000 " of output " 101 ", and this unit flicker cycle comprises the ignition phase of " 101 " and extinguishing the stage of " 000 ", then repeats.
Setting second unit flicker cycle is that flicker frequency is time quickflashing grade, can lengthen ignition phase and extinguish the length in stage, slows down flicker frequency.In the unit flicker cycle when high brightness, " 1 " of continuous wave output can be lengthened to " 11111 ", and then output " 00000 " then repeats.This unit flicker cycle length is 10, and flicker cycle is 1/6 second, is reduced to the flicker frequency of time quickflashing.Can select in the 2nd, 3,4 one or two bit values to be " 0 " in the ignition phase in the unit flicker cycle when low-light level, but " 0 " must be the interval to be occurred, can not continuous two be " 0 ", namely output " 10111 ", " 11011 ", " 11101 " or " 10101 " are and then exported " 00000 " and are then repeated.
Same, set the 3rd unit flicker cycle and be flicker frequency for dodging slowly grade, in the unit flicker cycle of high brightness, continuous wave output " 1 " can be lengthened to " 1111111111 ", and then output " 0000000000 " then repeats.This unit flicker cycle length is 20, and flicker cycle is 1/3 second, is reduced to the flicker frequency of dodging slowly.In the unit flicker cycle when low-light level, one or several in the middle of can selecting in the ignition phase is " 0 ", but " 0 " must occur at the interval, can not continuous two be " 0 ", can export " 1110110111 " or " 1101110111 " etc., and then output " 0000000000 " then repeats.
Same, setting the 4th unit flicker cycle is that flicker frequency is for dodging the most slowly grade, in the unit flicker cycle of high brightness, continuous wave output " 1 " and " 0 " can be lengthened, as being lengthened to 15 " 1 " of output, and then export 15 " 0 ", then repeat.This unit flicker cycle length is 30, and flicker cycle is 1/2 second, is reduced to the flicker frequency of dodging the most slowly.In the unit flicker cycle when low-light level, one or several in the middle of selecting in the ignition phase be " 0 ", but " 0 " must interval appearance, can not continuous two be " 0 ", the way of output that ignition phase is concrete can be multiple, and is not exhaustive at this.
Like this, according to the unit flicker cycle length (6,10,20,30) of above-mentioned each grade, the regular length that can determine bit map is 60.In this process, can adopt the method for asking least common multiple to carry out, when determining the regular length of bit map, first unit flicker cycle length (namely the longest) according to the slowest the darkest grade determines, judges whether this length or its multiple also can be divided exactly by the unit flicker cycle length of other grades.Like this, can be by 6,10,20,30 numbers of dividing exactly, being easy to be defined as is 60 multiple, thereby the regular length of choosing described bit map is 60.
When choosing flicker speed grade, can increase progressively in order unit flicker cycle length, as selecting respectively 3 " 1 " and 3 " 0 " among the above-mentioned embodiment, 4 " 1 " and 4 " 0 ", 5 " 1 " and 5 " 0 ", 6 " 1 " and 6 " 0 ", corresponding flicker cycle is 1/10 second respectively, 1/7.5 second, 1/6 second and 1/5 second, and wherein be spaced apart 1/30 second, less than the persistence of vision time of human eye, be difficult for being discovered by the people.Therefore, in order to improve distinguishable rate, preferably, the length of the unit flicker cycle of two adjacent ranks will differ 4 at least, namely is spaced apart more than 1/15 second.The time interval is longer, more easily distinguishes the difference of the flicker speed between each grade.
Then, with the regular length of same unit flicker cycle length (6,10,20,30) repeated arrangement to bit map, form the bit map of corresponding 4 flicker 2 brightness degrees of grade (totally 8 grades).Because the regular length of bit map is the multiple of unit flicker cycle length, when each unit flicker cycle length is formed corresponding bit map, with same unit flicker cycle length repeated arrangement, until take the regular length of described bit map, as shown in Figures 2 and 3.
The bit map of 4 kinds of flicker frequencies when high brightness as shown in Figure 2, output comprises " 111 " and " 000 " of repeated arrangement 10 times when quickflashing grade, then constantly repeats the bit map of regular length.Output comprises " 11111 " and " 00000 " of repeated arrangement 5 times when inferior quickflashing grade.Output comprises 10 " 1 " and 10 " 0 " of repeated arrangement 3 times when dodging grade slowly.Output comprises 15 " 1 " and 15 " 0 " of repeated arrangement 2 times when dodging grade the most slowly.
The bit map of 4 kinds of flicker frequencies when low-light level as shown in Figure 3, output comprises " 101 " and " 000 " of repeated arrangement 10 times when quickflashing grade, then constantly repeats the bit map of regular length.Output comprises " 11011 " and " 00000 " of repeated arrangement 5 times when inferior quickflashing grade.Output comprises " 1101110111 " and 10 " 0 " of repeated arrangement 3 times when dodging grade slowly.Output comprises " 110111101110111 " and 15 " 0 " of repeated arrangement 2 times when dodging grade the most slowly.
At last, by selecting described bit map, regulate the flicker frequency of indicator light.According to the bit map output signal of described each grade that arranges, control LED lamp carries out the change of flicker frequency and brightness.
The duration of each bit is 1/60 second in the bit map of described each grade, according to the light on and off of described bit map output electrical signals control LED lamp, thus flicker frequency and the brightness of control LED lamp.
When supporting a plurality of port output, the duration of each bit output is t B/ port sum.Rely on latch to keep the bit output valve, for the LED lamp of each port, the duration of each bit output still is 1/60 second.
It is worth mentioning that, when the progression that requires to control becomes many, can set duration of each bit of bit map for less value, such as 1/120 second etc., the progression of control and the fine setting degree of brightness were set according to actual needs.
Embodiment 2
Suppose in the Ethernet switch, the brightness progression of LED lamp is 3 grades, is divided into high brightness, middle brightness and low-light level, and LED lamp flicker progression is 2 grades, is divided into quickflashing and slowly sudden strain of a muscle.The duration of setting each bit in the bit map is 1/30 second (less than the persistence of vision time of human eye).
Because the brightness degree of LED lamp is 3 grades, " 0 " output all will be arranged in the ignition phase when middle brightness and low-light level, and the bit value of the beginning of ignition phase and the bit value of end are " 1 ", thereby can determine that the unit flicker cycle length when flicker is the quickflashing grade is 10, be that high brightness continuous wave output " 11111 " is and then exported " 00000 ", then repeat.Such flicker cycle is 1/3 second (greater than the persistence of vision time of human eye), is the flicker frequency of quickflashing." 00000 " is and then exported in output " 11011 " when middle brightness, then repeats." 00000 " is and then exported in output " 10101 " when low-light level, then repeats.
, lengthen ignition phase and extinguish the length in stage when dodging grade slowly in flicker, slow down flicker frequency.As can the unit's of being lengthened to flicker cycle length being 20, when high brightness, 10 of continuous wave outputs " 1 " and 10 " 0 " then repeat.This unit flicker cycle is 2/3 second then, is reduced to the flicker frequency of dodging slowly.The bit value that can select to be positioned in the ignition phase one in centre position or two when middle brightness is for " 0 " but " 0 " must be the interval occurs, can not continuous two be " 0 ", can export " 1110110111 " etc., and then export 10 " 0 ", then repeat.When low-light level, can select to be positioned in the ignition phase two of centre position or several bit value and be " 0 ", " 0 " must be that the interval occurs equally, can not continuous two be " 0 ", and the quantity of " 0 " is many during than middle brightness, such as " 1010101011 ", and then export 10 " 0 ", then repeat.
Like this, according to the length of the unit flicker cycle of each grade in the present embodiment, the regular length that can determine bit map is 20.
Then, with the regular length of same unit flicker cycle length (10,20) repeated arrangement to bit map, form the bit map of corresponding 2 flicker 3 brightness degrees of grade (totally 6 grades), such as Fig. 4, Fig. 5 and shown in Figure 6.
The bit map of 2 kinds of flicker frequencies when high brightness as shown in Figure 4, output comprises " 11111 " and " 00000 " of repeated arrangement 4 times when the quickflashing grade.Output comprises 10 " 1 " and 10 " 0 " of repeated arrangement 2 times when dodging grade slowly.
The bit map of 2 kinds of flicker frequencies when middle brightness as shown in Figure 5, output comprises " 11011 " and " 00000 " of repeated arrangement 4 times when the quickflashing grade.Output comprises " 1110110111 " and 10 " 0 " of repeated arrangement 2 times when dodging grade slowly.
The bit map of 2 kinds of flicker frequencies when low-light level as shown in Figure 6, output comprises " 10101 " and " 00000 " of repeated arrangement 4 times when the quickflashing grade.Output comprises " 1010101011 " and 10 " 0 " of repeated arrangement 2 times when dodging grade slowly.
At last, by selecting described bit map, regulate the flicker frequency of indicator light.According to the bit map output signal of described each grade that arranges, control LED lamp carries out the change of flicker frequency and brightness.The duration of each bit is 1/30 second, according to the light on and off of described bit map output electrical signals control LED lamp, thus flicker frequency and the brightness of control LED lamp.
As shown in Figure 7, for the indicator light flash adjustment method of an embodiment of the present invention realizes by indicator light flash adjustment device, this device comprises:
Unit flicker cycle unit, be used for setting N unit flicker cycle, each unit flicker cycle is M*tB, wherein, tB is the duration of each bit, tB≤1/24 second, M, N are positive integer, M is unit flicker cycle length, it is number of bits, M*tB 〉=1/24 second, described each the flicker cycle M*tB=of unit ignition phase X*tB+ extinguishes stage Y*tB, and M is larger, and flicker frequency is slower.
Each unit flicker cycle comprises ignition phase X and extinguishes stage Y, and the state of ignition phase X performance is that indicator light is bright, and the state that extinguishes stage Y performance is that indicator light goes out.
Because persistence of vision time of human eye approximately is 1/24 second, it is that tB is made as≤1/24 second persistence of vision time of human eye that the duration of each bit is set tB, makes human eye can not differentiate the state of each bit, guarantees not discovered by human eye when error code occurring.The flicker cycle M*tB of unit being made as 〉=1/24 second persistence of vision time of human eye, is that the light on and off of indicator light can be distinguished by human eye, has flicker effect.
The bit map fixed-length cell is used for according to described unit flicker cycle length M, determines the regular length of bit map, aliquot described each the unit flicker cycle length M of the regular length of described bit map.
When determining the regular length of bit map, can get the multiple of the least common multiple of each unit flicker cycle length M or least common multiple as the regular length of described bit map.Preferably, adopt least common multiple as the regular length of bit map.
The grade of the unit flicker cycle of setting is more, and namely N is larger, and the regular length of described bit map is larger.
The bit map unit is used for the regular length of same unit flicker cycle length M repeated arrangement to bit map, forms the bit map of corresponding N flicker grade.
Because the regular length of bit map is the multiple of unit flicker cycle length, each unit flicker cycle length M is formed corresponding bit map, be with same unit flicker cycle length M repeated arrangement, until take the regular length of described bit map.Corresponding to N different unit flicker cycle, can form the bit map of N flicker grade.
Described bit map is with binary representation, and output signal was for lighting indicator light when bit value was " 1 ", and output signal was for extinguishing indicator light when bit value was " 0 ", and the bit value the when bit value when beginning in the described bit map and end is opposite.The bit value of the beginning of described ignition phase X and the bit value of end are " 1 ", and described all bit values that extinguish stage Y are " 0 ".
Regulon is used for by selecting described bit map, the flicker frequency of regulating indicator light.
Described bit map is to export as conditional code in the mode of serial output, and the duration of each bit is tB, the blink states of control indicator light.Since N different unit flicker cycle arranged, to the bit map of N flicker grade should be arranged, corresponding to N kind flicker frequency, the flicker of control indicator light.
When needs were supported a plurality of port, the duration of each bit output was t B/ port sum.Duration t such as each bit of setting BBe 1/60 second, the port sum that needs to support is 30, and the duration of each bit output this moment will be reduced to 1/(60*30 so) second.Rely on latch to keep the bit output valve, for each LED lamp, the duration of each bit output is constant, remains 1/60 second.
The present invention adopt the selection of limited bit map glimmer control mode can also carry out brightness regulation.
The method of existing control indicator light brightness is to realize by the magnitude of voltage that adjusting is carried on the indicator light, often adopts hardware circuit to come the regulating resistance partial pressure value.Yet in order to realize dynamically finely tuning by digital form, the design of its hardware circuit is comparatively complicated, need utilize single-chip microcomputer to regulate numerical digit resistance or realizes the adjustment of voltage by digital-to-analogue conversion (D/A) device, and the while has increased again cost.
The present invention arranges bit value for the mode of " 0 " by the interval, centre position at ignition phase X, carries out brightness regulation.Because the duration of each bit is less than the persistence of vision time of human eye, the time that " 0 " control indicator light that the interval occurs goes out is too short, and human eye can not be discovered indicator light and go out, and only perceived brightness is dimmed, " 0 " that the interval occurs is more frequent, and the brightness of indicator light is just darker.Thereby can carry out brightness regulation by " 0 " that the interval occurs, set different brightness degrees.
In Ethernet switch, usually each port has one or more LED lamp as indicator light, the speed of the Link State of display port and the receipts/literary composition of transmitting messages, the LED lamp of each port can be exported serial conditional code stream by Ethernet switching chip and control.By LED lamp flicker frequency and brightness are controlled, show different states.LED lamp flicker speed can show the speed of Link State and the receipts/literary composition of transmitting messages of each port, and different LED lamp brightness can adapt to the application of different occasions, for example in machine room, does not need the LED lamp too bright, simultaneously also in order to reduce power consumption; And with out of doors switch, since outdoor light, the brightness that then needs to improve the LED lamp; When indoor, all right lower Night of furnishing brightness, the LED lamp that minimizing is being glimmered impacts people's rest, life.
Among the present invention, the signal of Ethernet switching chip output control LED lamp is to adopt the mode of bit map to represent, in order to brightness and the flicker frequency of controlling the LED lamp.
By the above as seen, the present invention controls brightness and the flicker frequency of indicator light by the selection of limited bit map, can not need voltage regulating device and frequency divider fully, and is simple, and along with the increase of indicator light quantity, its cost is changeless.
For the convenience of describing, be divided into various unit with function when describing above device and describe respectively.Certainly, when implementing the application, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each execution mode of the application or execution mode.
Device embodiments described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation that do not pay creative work.
The application can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment etc.
The application can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment (DCE), put into practice the application, in these distributed computing environment (DCE), be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Be to be understood that, although this specification is described according to execution mode, but be not that each execution mode only comprises an independently technical scheme, this narrating mode of specification only is for clarity sake, those skilled in the art should make specification as a whole, technical scheme in each execution mode also can through appropriate combination, form other execution modes that it will be appreciated by those skilled in the art that.
Above listed a series of detailed description only is specifying for feasibility execution mode of the present invention; they are not to limit protection scope of the present invention, allly do not break away from equivalent execution mode or the change that skill spirit of the present invention does and all should be included within protection scope of the present invention.

Claims (10)

1. an indicator light flash adjustment method is characterized in that, comprising:
Set N unit flicker cycle, each unit flicker cycle is M*t B, wherein, t BBe the duration of each bit, t B≤ 1/24 second, M was unit flicker cycle length, M*t B〉=1/24 second, described each flicker cycle M*t of unit B=ignition phase X*t B+ extinguish stage Y*t B, M is larger, and flicker frequency is slower;
According to described unit flicker cycle length M, determine the regular length of bit map, aliquot each the unit flicker cycle length M of the regular length of described bit map;
With the regular length of same unit flicker cycle length M repeated arrangement to bit map, form the bit map of corresponding N flicker grade;
By selecting described bit map, regulate the flicker frequency of indicator light.
2. control method according to claim 1 is characterized in that, described bit map is lighted indicator light with binary representation when bit value is " 1 ", and bit value extinguishes indicator light when being " 0 ".
3. control method according to claim 2 is characterized in that, the bit value of the beginning of the ignition phase X of described each unit flicker cycle and the bit value of end are " 1 ", and described all bit values that extinguish stage Y are " 0 ".
4. control method according to claim 3 is characterized in that, the bit value that is positioned at the centre position among the described ignition phase X can be made as " 0 " in the interval, regulates the brightness of indicator light by " 0 " of interval appearance.
5. control method according to claim 1 is characterized in that, the duration t of described each bit BIt is 1/60 second.
6. control method according to claim 1 or 5 is characterized in that, this control method is supported a plurality of ports outputs, and the duration of each bit output this moment is t B/ port sum.
7. an indicator light flash adjustment device is characterized in that, described adjusting device comprises:
Be used for setting N unit flicker cycle, each unit flicker cycle is M*tB, wherein, tB is the duration of each bit, tB≤1/24 second, M is unit flicker cycle length, M*tB 〉=1/24 second, described each the flicker cycle M*tB=of unit ignition phase X*tB+ extinguishes stage Y*tB, the unit that the larger flicker frequency of M is slower;
Be used for according to described unit flicker cycle length M, determine the regular length of bit map, the unit of aliquot each the unit flicker cycle length M of the regular length of described bit map;
Be used for the regular length of same unit flicker cycle length M repeated arrangement to bit map, form the unit of the bit map of corresponding N flicker grade;
Be used for regulating the unit of the flicker frequency of indicator light by selecting described bit map.
8. adjusting device according to claim 7 is characterized in that, described bit map is lighted indicator light with binary representation when bit value is " 1 ", and bit value extinguishes indicator light when being " 0 ".
9. adjusting device according to claim 8 is characterized in that, the bit value of the beginning of the ignition phase X of described each unit flicker cycle and the bit value of end are " 1 ", and described all bit values that extinguish stage Y are " 0 ".
10. adjusting device according to claim 9 is characterized in that, the bit value that is positioned at the centre position among the described ignition phase X can be made as " 0 " in the interval, regulates the brightness of indicator light by " 0 " of interval appearance.
CN201110237691.3A 2011-08-18 2011-08-18 Method and device for regulating flicker of indicator lamps Active CN102958220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110237691.3A CN102958220B (en) 2011-08-18 2011-08-18 Method and device for regulating flicker of indicator lamps

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110237691.3A CN102958220B (en) 2011-08-18 2011-08-18 Method and device for regulating flicker of indicator lamps

Publications (2)

Publication Number Publication Date
CN102958220A true CN102958220A (en) 2013-03-06
CN102958220B CN102958220B (en) 2015-04-22

Family

ID=47766253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110237691.3A Active CN102958220B (en) 2011-08-18 2011-08-18 Method and device for regulating flicker of indicator lamps

Country Status (1)

Country Link
CN (1) CN102958220B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105321527A (en) * 2014-06-26 2016-02-10 广东美的制冷设备有限公司 Terminal operation environment prompt method and system
CN105611682A (en) * 2014-11-24 2016-05-25 中兴通讯股份有限公司 Method and device for controlling indication lamps
CN109275220A (en) * 2017-07-17 2019-01-25 迈普通信技术股份有限公司 LED light control method, device, control device and computer readable storage medium
CN113180347A (en) * 2021-05-06 2021-07-30 湖北爱微迈智能科技有限责任公司 Colorful gem system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001185370A (en) * 1999-12-28 2001-07-06 Avix Inc Linear illumination system
CN1802065A (en) * 2006-01-23 2006-07-12 北京飞天诚信科技有限公司 Respiration lamp controlling method and its device
CN1842238A (en) * 2005-03-31 2006-10-04 华为技术有限公司 Signal lamp flashing controlling method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001185370A (en) * 1999-12-28 2001-07-06 Avix Inc Linear illumination system
CN1842238A (en) * 2005-03-31 2006-10-04 华为技术有限公司 Signal lamp flashing controlling method
CN1802065A (en) * 2006-01-23 2006-07-12 北京飞天诚信科技有限公司 Respiration lamp controlling method and its device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105321527A (en) * 2014-06-26 2016-02-10 广东美的制冷设备有限公司 Terminal operation environment prompt method and system
CN105611682A (en) * 2014-11-24 2016-05-25 中兴通讯股份有限公司 Method and device for controlling indication lamps
CN109275220A (en) * 2017-07-17 2019-01-25 迈普通信技术股份有限公司 LED light control method, device, control device and computer readable storage medium
CN109275220B (en) * 2017-07-17 2022-03-22 迈普通信技术股份有限公司 LED lamp control method, device, control device and computer readable storage medium
CN113180347A (en) * 2021-05-06 2021-07-30 湖北爱微迈智能科技有限责任公司 Colorful gem system
CN113180347B (en) * 2021-05-06 2024-01-26 湖北爱微迈智能科技有限责任公司 Colorful precious stone system

Also Published As

Publication number Publication date
CN102958220B (en) 2015-04-22

Similar Documents

Publication Publication Date Title
JP5814398B2 (en) Method and apparatus for operating high power LED group
CN1319420C (en) Protocol enhancement for lighting control networks and communications interface for same
US8587212B2 (en) Lighting system, dimming control apparatus and dimming control method
CN102215622A (en) Power control device for LED lighting and lighting system
CN102958220B (en) Method and device for regulating flicker of indicator lamps
CN102354482B (en) LED (light-emitting diode) display system and display method
US20070216320A1 (en) Method and apparatus for illuminating light sources within an electronic device
CN104717794A (en) System for controlling light in wireless manner
CN111246628B (en) Control method, device, equipment and storage medium for optical module indicator lamp
CN107545864A (en) LED display and its drive circuit and driving method
CN102629458A (en) Backlight circuit, backlight panel and light emitting diode driver
EP1705633A2 (en) Light emitting device single-cluster lamp control system
CN103945617A (en) LED (light emitting diode) guardrail tube control circuit and device
CN106804081B (en) Light adjusting circuit and dimming controlling method
CN202383979U (en) Led display system
CN202454226U (en) Brightness control circuit, chip and device
CN102855849A (en) Liquid crystal backlight driving current control device
CN108882435B (en) Circuit capable of realizing continuous dimming without stroboflash
CN106817805A (en) Indicate lamp control method and device
CN201252667Y (en) Lighting system and lighting apparatus controller
CN105810154A (en) LED back light module, display device and LED back light driving method
CN212157841U (en) Control device of indicator lamp and electrical equipment
CN204090237U (en) A kind of LED lamp of series system
CN103971641A (en) Led display screen control system
CN207625837U (en) A kind of control device of seismic detector indicator light

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province

Patentee after: Suzhou Shengke Communication Co.,Ltd.

Address before: 215021 unit 13 / 16, floor 4, building B, No. 5, Xinghan street, Suzhou Industrial Park, Suzhou, Jiangsu

Patentee before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd.