CN100563402C - Signal lamp flashing controlling method - Google Patents
Signal lamp flashing controlling method Download PDFInfo
- Publication number
- CN100563402C CN100563402C CNB200510059875XA CN200510059875A CN100563402C CN 100563402 C CN100563402 C CN 100563402C CN B200510059875X A CNB200510059875X A CN B200510059875XA CN 200510059875 A CN200510059875 A CN 200510059875A CN 100563402 C CN100563402 C CN 100563402C
- Authority
- CN
- China
- Prior art keywords
- signal lamp
- flicker
- light
- mask
- stage duration
- 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.)
- Active
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The present invention discloses a kind of signal lamp flashing controlling method, comprising: the flicker stage duration that the signal lamp flicker cycle is set to extinguish the stage duration and divides by the light on and off time slot; Determine the flicker mask of the bit sequence of each light on and off time slot signal lamp on/off state in the respective signal lamp flicker stage duration; At described flicker stage duration, glimmer according to the bit sequence control signal lamp of described flicker mask; Extinguish at the described stage duration control signal lamp that extinguishes.But the present invention's advantages of simplicity and high efficiency realizes signal lamp flicker control.
Description
Technical field
The present invention relates to a kind of signal lamp flashing controlling method.
Background technology
Signal lamp is widely used in the prompting means of various terminal equipments as processes such as signal quality, data traffic, switching on and shutting down actions.For example, the signal lamp on various mobile phones points out the user to be in normal operating state in the mode of periodically flicker; And various network device such as Ethernet card its signal lamp of fast blink in transfer of data often at work.
Especially, for wireless terminal device, since equipment can have such as do not have service, just in search signal, search network, speech called or carry out a plurality of states such as transfer of data, often need to design some kinds of flash type and pointed out the user, as the flicker of periodicity single, periodically two flickers, flicker (being the process that the light on and off state replaces at a slow speed) or fast blink in short-term etc. periodically at a slow speed.
At present, realize that the flicker control of signal lamp has the multiple technologies scheme, for example fixing operating state with a kind of flashing mode prompting subscriber equipment is normal behind some mobile phone power-ons.The control of flicker then is the cycle count that realizes by program language.
With reference to figure 1, this figure is the periodically schematic diagram of single flicker of control signal lamp.
At first, reach M time of expectation in cycle count after, light by the program control signal indicator light; When continuing cycle count to N time, the black out signal indicator light periodically repeats then, thereby has realized the effect of single flicker, and as shown in fig. 1, the duty ratio of a general flicker cycle is N: M.
With reference to figure 2, this figure is the periodically schematic diagram of two flickers of control signal lamp.
Similar with periodicity single flicker, if two flickers of property performance period then need to carry out following treatment step in one-period: at first, when starting cycle count M time, by lighting of program control signal indicator light; After continuation circulation N time, the black out signal indicator light; During cycle count N1, light indicator light then; After lasting circulation N time, extinguish indicator light, restart then to carry out.
Above-mentioned prior art can realize the flicker control of signal lamp, but following shortcoming is also arranged:
1) in the scheme of above-mentioned cycle count control signal lamp flicker, need design a kind of control flow at a kind of flashing mode, therefore when needing to support multiple flash type, and when change is big between these flash type, need tediously long program code describe each flicker flow process;
3) secondly, adopt cycle count to realize the scheme of signal lamp flicker control, can only change the time and the duty ratio of whole flicker cycle by the number of times of counting, underaction, and because the software execution environment of the terminal equipment at majority signal lamp place is a multitask system, cycle count need take the time of implementation of microprocessor, and not only efficient is low, also may influence other task executions;
3) if be applied to wireless terminal device, the prompting state that above-mentioned prior art is supported is limited, can't point out the operating state of user's current wireless terminal equipment such as search network, no signal, test pattern, incoming call ring etc. comprehensively.
Summary of the invention
The technical problem that the present invention solves provides a kind of signal lamp flashing controlling method, so that advantages of simplicity and high efficiency realizes signal lamp flicker control.
For addressing the above problem, signal lamp flashing controlling method of the present invention comprises:
The flicker stage duration that A, signal lamp flicker cycle are set to extinguish the stage duration and divide by the light on and off time slot;
B, determine the flicker mask of the bit sequence of each light on and off time slot signal lamp on/off state in the respective signal lamp flicker stage duration;
C, at described flicker stage duration, glimmer according to the bit sequence control signal lamp of described flicker mask;
D, extinguish at the described stage duration control signal lamp that extinguishes.
Wherein, step C comprises:
C1, determine the significant bit number of signal lamp flicker mask;
C2, get a bit value as current time slots signal lamp light on and off value the mask from flicker;
C3, carry out corresponding light on and off flicker according to described signal lamp light on and off value control signal lamp;
Whether the bit number that C4, judgement are got reaches the significant bit number, if, execution in step D, otherwise, execution in step C2 returned.
Wherein, step C3 also comprises:
Light on and off slot timing device is set;
Described light on and off slot timing device do not have overtime before the control signal lamp carry out corresponding light on and off flicker according to signal lamp light on and off value.
Wherein, step D comprises:
The duration timer is extinguished in setting;
Described extinguish the duration timer do not have overtime before the control signal lamp extinguish.
Wherein, step B also comprises signal lamp flash color in the flicker stage duration is set, step C2 also be included in signal lamp when bright the control signal lamp be shown as described color.
In addition, also the flicker mask of described signal lamp, the significant bit number that extinguishes stage duration, light on and off time slot, mask and signal lamp flash color are set to the signal lamp flicker community set of corresponding a kind of flashing mode, modification corresponding attribute parameters value when the signal lamp flashing mode changes among the present invention.
In addition, go back the state machine model of signalization lamp state transition among the present invention, the corresponding a kind of flashing mode of each state of this state machine triggers the change of realization signal lamp flashing mode by the state transitions of described state machine.
Compared with prior art, the present invention has following beneficial effect:
At first, the flicker stage duration of described signal lamp among the present invention, extinguish the signal lamp flicker community set that stage duration, flicker mask, mask significant bit number and signal lamp flash color are set to corresponding a kind of flashing mode, modification corresponding attribute parameters value when the signal lamp flashing mode changes.When each flicker control flow of specific implementation signal lamp, only need to revise above-mentioned property parameters value and get final product, do not need tediously long program code to describe each flicker flow process;
Secondly, can use software timer or hardware circuit control light on and off time slot width among the present invention and extinguish the stage duration, and when time slot replaces, according to the bit value in the mask, determine the light on and off of next time slot signal indicator light, compared to existing technology, processing signals lamp flicker control of the present invention is more flexible, the time of implementation that takies microprocessor, still less efficient was higher;
Once more, also design the state machine model of signal lamp among the present invention and can point out a plurality of terminal unit statuses easily, and can increase and describe more state transitions relation.State transitions by described state machine when the flashing mode of signal lamp changes triggers the change that realizes the signal lamp flashing mode, can point out the operating state of user's current wireless terminal equipment comprehensively.
Description of drawings
Fig. 1 is the schematic diagram of existing techniques in realizing signal lamp cycle single flicker control;
Fig. 2 is the schematic diagram of two flicker controls of existing techniques in realizing signal lamp cycle;
Fig. 3 is the flicker property parameters schematic diagram of the present invention to the modeling of signal lamp flashing mode;
Fig. 4 is the method specific embodiment flow chart of signal lamp flicker control of the present invention;
Fig. 5 is the state machine model schematic diagram of signal lamp flashing mode of the present invention.
Embodiment
Core of the present invention is various signal lamp flashing modes are carried out unified description and modeling, and has designed the selection switching of the various flashing modes of state machine model control realization signal lamp of signal lamp.
With reference to figure 3, this figure is the flicker property parameters schematic diagram of the present invention to the modeling of signal lamp flashing mode.
Introduce following several attribute definition signal lamp flashing modes among the present invention, be used for realizing flicker control:
1) the flicker stage, refers to the duration of the light on and off alternating phases of signal lamp;
2) bright/time slot that goes out refers to signal lamp each bright when light on and off replace or the duration of going out;
3) the flicker mask refers to the bit sequence that the flicker stage is bright at every turn, institute's foundation is then lighted or extinguished to the time of going out, and wherein, on behalf of this operation, each bit light or extinguish;
4) extinguish the stage, refer in the flicker cycle to remove the remaining time after the flicker stage, signal lamp is in the state that extinguishes.Obviously, flicker cycle=flicker stage+extinguish the stage;
5) indicator light colors refers to the signal lamp color that a certain flashing mode adopts.
Wherein, the concrete condition that the light on and off in above-mentioned flicker stage replace uses the flicker mask to describe, this mask can adopt one 16 system number, it is brightly still to go out that each bit of this mask is used to represent each time slot signal lamp in the flicker stage, according to the requirement to flicker stage duration, the unit of light on and off time slot can be millisecond or second equal time unit.
In addition, for above-mentioned its figure place of flicker mask can be 32 bits or 64 bits, mainly the software systems by terminal equipment determine, and in order to represent the significant bit number in the mask, can increase new attribute is mask significant bit number, like this, flicker stage duration=light on and off duration * mask significant bit number.
These several attributes based on said extracted, can adopt the various cyclical signal lamp flash type of following community set definition signal lamp among the present invention: { flicker mask, mask significant bit number, the light on and off time slot width, extinguish the stage, signal lamp color }, wherein the signal lamp color attribute is optionally, revises the corresponding attribute parameters value and can realize that the signal lamp flashing mode changes when the signal lamp flashing mode changes.
By means of the C language, above-mentioned community set can be designed to a data structure type and be explained:
struct?blink_pattern_type
{
Uint32 blink_mask; / * the mask that glimmers, maximum 32 bit */
Int mask_len; The significant bit of/* mask count */
Int slot_width; The time slot width * of/* light on and off/
Int2 off_len; / * extinguish duration */
Int color/* with value respectively representation signal lamp color */
}
Describe with object lesson, for example the flashing mode of a signal lamp can be described like this: { 0xAA000000,8,100,5000,1}.Concrete, the flicker mask has 8 bits with binary representation, be 10101010B, if light with 1 representative, 0 representative is extinguished, and then is that four light on and off replace, totally 8 time slots, 100 milliseconds of each time slots after lasting 5000 milliseconds fall time, begin the flicker of following one-period then, value 1 can be represented blue lamp (2 expression green light, and the like).
The following describes the flow chart that the present invention carries out signal lamp flicker control.
With reference to figure 4, this figure the present invention is based on the specific embodiment flow chart that mask and timer carry out signal lamp flicker control, specifically mainly may further comprise the steps:
Whether the bit number that step 124, judgement are got reaches mask significant bit number, if, execution in step 13, otherwise, execution in step 122 returned.
Need to prove that above-mentioned steps 11 also comprises signal lamp flash color in the flicker stage duration is set, step 123 also be included in signal lamp when bright the control signal lamp be shown as described color.
The example that is applied as with signal lamp flicker control in the wireless terminal describes below.
Along with the development of mobile communication technology, increasing function that various wireless terminal devices are integrated such as business such as support wireless Internet access, voice calls, or selects to support multiple standard such as GSM or WCDMA etc.Although the state that relates to is many, but still require to provide the signal lamp prompting mode of simple unanimity to the terminal use.
Designed the mechanism of signal lamp flicker under the state machine of control signal lamp state and the corresponding states in the present embodiment.The corresponding a kind of flashing mode of each state of this state machine triggers the change of realization signal lamp flashing mode by the state transitions of described state machine.
The wireless terminal device state machine model has defined the various blink states of this equipment in the present embodiment, is the foundation that the signal lamp flashing mode switches.
With reference to figure 5, this state machine relates to but is not limited to following 5 states:
1) network loss incident is when promptly wireless terminal device loses and takes place with getting in touch of mobile network;
2) search network event, promptly wireless terminal device has received effective signal when covering;
3) enter the test pattern incident, promptly terminal equipment changes test pattern over to from normal mode of operation, so that the production test function is provided;
4) incoming call incident, promptly wireless terminal device receives the call request from another user, needs the ringring prompting user;
5) transfer of data detects incident, i.e. user's operation of getting online without being tethered to a cable by wireless terminal.
In addition, also need terminal equipment that the report mechanism for following incident (not in category of the present invention) is provided, so that trigger the migration of state machine state.Concrete, the transformational relation between above-mentioned (signal lamp) state can followingly design:
1) receive " searching network event ", ST_A is moved to ST_B, and detect signal this moment, searches the network service, and state is moved to " searching network " from " no signal ";
2) receive " network loss incident ", ST_B is moved to ST_A, and signal strength signal intensity reduces or can't obtain effective service because of other reasons at this moment, and state is transferred to " no signal " from " searching network ";
3) receive " entering the test pattern incident ", ST_B/ST_A is moved to ST_C, and this moment, terminal equipment switched to test pattern according to control command;
4) receive " incoming call incident ", ST_B is moved to ST_D, uses the flashing mode prompting user corresponding to the incoming call incident;
6) receive " transfer of data detection incident ", ST_B is moved to ST_E, and have data to transmit by wireless terminal device this moment.
In addition, as shown in Figure 5, in the process of state transition, can provide the mode of operation information of current wireless terminal equipment, as GSM or WCDMA, as selecting the signal lamp flashing mode, as the foundation of indicator light colors.
To sum up, no matter the present invention is periodicity flicker or aperiodicity flicker control to signal lamp, all can carry out the realization of unification with software code or hardware circuit.For example use software timer control light on and off time slot width and extinguish the stage duration, and when time slot replaces,, determine the light on and off of next time slot signal indicator light, but advantages of simplicity and high efficiency realizes signal lamp flicker control according to the bit value in the mask.
The above only is a preferred implementation of the present invention, does not constitute the qualification to protection range of the present invention.Any any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection range of the present invention.
Claims (7)
1, a kind of signal lamp flashing controlling method is characterized in that, comprising:
The flicker stage duration that A, signal lamp flicker cycle are set to extinguish the stage duration and divide by the light on and off time slot;
B, determine the flicker mask of the bit sequence of each light on and off time slot signal lamp on/off state in the respective signal lamp flicker stage duration;
C, at described flicker stage duration, glimmer according to the bit sequence control signal lamp of described flicker mask;
D, extinguish at the described stage duration control signal lamp that extinguishes.
2, signal lamp flashing controlling method according to claim 1 is characterized in that, step C comprises:
C1, determine the significant bit number of signal lamp flicker mask;
C2, get a bit value as current time slots signal lamp light on and off value the mask from flicker;
C3, carry out corresponding light on and off flicker according to described signal lamp light on and off value control signal lamp;
Whether the bit number that C4, judgement are got reaches the significant bit number, if, execution in step D, otherwise, execution in step C2 returned.
3, signal lamp flashing controlling method according to claim 2 is characterized in that, step C3 also comprises:
Light on and off slot timing device is set;
Described light on and off slot timing device do not have overtime before the control signal lamp carry out corresponding light on and off flicker according to signal lamp light on and off value.
4, according to each described signal lamp flashing controlling method of claim 1-3, it is characterized in that step D comprises:
The duration timer is extinguished in setting;
Described extinguish the duration timer do not have overtime before the control signal lamp extinguish.
5, according to claim 2 or 3 described signal lamp flashing controlling methods, it is characterized in that step B also
Comprise signal lamp flash color in the flicker stage duration is set that step C3 also is included in the bright time control signal lamp of signal lamp and is shown as described color.
6, signal lamp flashing controlling method according to claim 5, it is characterized in that, the flicker mask of described signal lamp, the significant bit number that extinguishes stage duration, light on and off time slot, mask and signal lamp flash color are set to the signal lamp flicker community set of corresponding a kind of flashing mode, revise the corresponding attribute parameters value when the signal lamp flashing mode changes.
7, signal lamp flashing controlling method according to claim 6, it is characterized in that, the state machine model of signalization lamp state transition, the corresponding a kind of flashing mode of each state of this state machine triggers the change of realization signal lamp flashing mode by the state transitions of described state machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200510059875XA CN100563402C (en) | 2005-03-31 | 2005-03-31 | Signal lamp flashing controlling method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB200510059875XA CN100563402C (en) | 2005-03-31 | 2005-03-31 | Signal lamp flashing controlling method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1842238A CN1842238A (en) | 2006-10-04 |
CN100563402C true CN100563402C (en) | 2009-11-25 |
Family
ID=37031038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB200510059875XA Active CN100563402C (en) | 2005-03-31 | 2005-03-31 | Signal lamp flashing controlling method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100563402C (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102958220B (en) * | 2011-08-18 | 2015-04-22 | 盛科网络(苏州)有限公司 | Method and device for regulating flicker of indicator lamps |
CN102680011B (en) * | 2012-05-15 | 2015-02-04 | 深圳市未来智能电气有限公司 | Single-lamp multi-information indication method |
CN103167158A (en) * | 2012-09-25 | 2013-06-19 | 深圳市金立通信设备有限公司 | System and method of reminding user of generated general packet radio service (GPRS) traffic |
CN105611682A (en) * | 2014-11-24 | 2016-05-25 | 中兴通讯股份有限公司 | Method and device for controlling indication lamps |
CN107085375B (en) * | 2016-02-16 | 2024-03-08 | 周锡卫 | Distributed intelligent home system based on intelligent controller |
CN106502154B (en) * | 2016-11-04 | 2019-10-01 | 三星电子(中国)研发中心 | Electric control method, device and terminal for electrical control system |
CN106879138B (en) * | 2017-02-08 | 2019-07-19 | 北京小鸟看看科技有限公司 | A kind of electronic equipment and the method, apparatus of controlling electronic devices indicator light flashing |
CN109996370A (en) * | 2019-04-04 | 2019-07-09 | 深圳市三旺通信股份有限公司 | A method of instruction electronic equipment operating status |
CN112654110B (en) * | 2020-12-30 | 2022-09-27 | 泰斗微电子科技有限公司 | Flicker control method and device of LED indicator lamp and terminal equipment |
-
2005
- 2005-03-31 CN CNB200510059875XA patent/CN100563402C/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN1842238A (en) | 2006-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100563402C (en) | Signal lamp flashing controlling method | |
CN101128048B (en) | Communication system and method for managing multimode communication device | |
CN101084693B (en) | Method and system for policy enforcement in a communication system | |
CN102904738B (en) | Work order processing method, relevant device and relevant system | |
CN102724736B (en) | A kind of method for searching network of single deck tape-recorder double-standby mobile terminal Public Land Mobile Nerwork and device | |
AU5660898A (en) | An operational test device and method of performing an operational test for a system under test | |
CN103747143A (en) | Breathing lamp realization method based on mobile terminal and mobile terminal | |
CN104168391A (en) | Control method and device for mobile terminal | |
CN103136929B (en) | Method enabling network terminal with photosensitive components to initialize | |
CN104486504A (en) | Mobile phone call reminding method and system | |
CN111343059A (en) | Multifunctional setting method and device for ZigBee terminal equipment | |
CN109309942A (en) | Method for switching network and device | |
CN101188844A (en) | A testing system and testing method for service automation | |
CN106163001B (en) | A kind of Intelligent LED lighting control system based on Android, IOS and ZigBee | |
CN101516154A (en) | Method for using a mobile phone camera to automatic control a flash lamp as a photoinduction flashlight | |
CN101309254A (en) | Device and method for controlling multiple function of communication apparatus by related parallel state machine | |
CN106332163B (en) | A kind of functional module test method and system | |
CN115915556A (en) | Distributed intelligent light control method, device, equipment and medium | |
CN100376738C (en) | Washing machine and information receiving method | |
CN114898583A (en) | Signal lamp control scheme determining method and data processing method of intelligent traffic equipment | |
CN103268225A (en) | Simulator for simulating LED (light-emitting diode) indicator lamp in mobile terminal and implementation method thereof | |
CN107168510A (en) | A kind of method and device for extinguishing screen | |
CN108377594B (en) | Driving method and driving device for indicator light of mobile equipment and mobile equipment | |
CN112468555A (en) | Macro command group control scheme based on cloud mobile phone | |
CN100502530C (en) | Method for intelligent generation of signal tone of fixed frequency for digital program-control exchange |
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 |