CN1193635C - Method and device for prompting mobile telephone set information by color LED flashing - Google Patents

Method and device for prompting mobile telephone set information by color LED flashing Download PDF

Info

Publication number
CN1193635C
CN1193635C CN02111316.5A CN02111316A CN1193635C CN 1193635 C CN1193635 C CN 1193635C CN 02111316 A CN02111316 A CN 02111316A CN 1193635 C CN1193635 C CN 1193635C
Authority
CN
China
Prior art keywords
flashing
color led
mobile telephone
color
control signal
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.)
Expired - Fee Related
Application number
CN02111316.5A
Other languages
Chinese (zh)
Other versions
CN1450823A (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.)
SHANGHAI DIBITE IND CO Ltd
Original Assignee
SHANGHAI DIBITE IND 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 SHANGHAI DIBITE IND CO Ltd filed Critical SHANGHAI DIBITE IND CO Ltd
Priority to CN02111316.5A priority Critical patent/CN1193635C/en
Publication of CN1450823A publication Critical patent/CN1450823A/en
Application granted granted Critical
Publication of CN1193635C publication Critical patent/CN1193635C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a method and device for prompting mobile telephone information by color LED flashing. The device comprises a flashing circuit arranged on a mobile telephone. The flashing circuit comprises a keyboard, a central processor, a drive circuit and a color LED circuit. The method comprises the following steps: in the state that the flashing mode is opened, whether an input value of a user accords with the input format is judged; if input value of a user accords with the input format, a central processor reads a set color value; a timing function is invoked, and the interruption time span is determined according to the default optimum frequency value of a flashing program; in the time interruption process, a control signal is circularly output externally to drive the frequency and the color flashing set by color LED. The present invention can make the mobile telephone realize the color flashing by a fixed frequency in certain time according to the set of the user, and thereby, the mobile telephone can be rapidly and easily positioned in the stand-by state, and partial current state information of the mobile telephone is presented. The technique is lifted and the function is increased under the condition of keeping the original cost, and therefore, the present invention has high-performance price ratio.

Description

A kind of method and apparatus of prompting mobile telephone set information by color LED flashing
Technical field
The present invention relates to a kind of method and apparatus of prompting mobile telephone set information by color LED flashing, can be applied to comprise in the electronic flash equipment that band color LED such as mobile phone shows.
Background technology
We know, in the use of existing mobile phone, the functional design that is used to show mobile phone state is nothing more than two kinds of ring and vibrations, and in many special public situation, as the song cinema, the use of this dual mode is very unfavorable all.How under dark condition, to realize noiseless incoming call prompting, do you and in the state of not answering, recognize the attribute (relative of the other side in telephone directory group? friend? the classmate?), or the inner case of understanding mobile phone, as electric weight abundance etc. whether, the problem of these several respects is that present mobile phone function of use design is more perfect, some developing direction of more humane consideration.
Summary of the invention
At the problems referred to above, main purpose of the present invention provides a kind of colored apparatus and method that show program control flicker of LED of mobile phone, can make mobile phone realize colour flicker with fixed frequency within a certain period of time according to user's setting, thereby make the mobile phone can be quick under holding state, convenient location and present the current state information of part mobile phone.Under the condition that keeps original cost, the content that develops skill increases function, has high performance price ratio.
To achieve these goals, the technical solution used in the present invention is:
A kind of device of prompting mobile telephone set information by color LED flashing, it is characterized in that, on mobile phone, be equiped with flashing circuit, described flashing circuit comprises the color LED circuit that central processing unit, drive circuit and drive circuit are connected, described drive circuit comprises a control signal processing module, one group of filter circuit, and one group of triode control switch, it is characterized in that
Described control signal processing module links to each other with the IIC interface of described central processing unit, be used to receive the control signal of described central processing unit transmission and described control signal is made the corresponding driving action, described central processing unit links to each other with described triode control switch by its universal input and output port that has, described color LED circuit links to each other with described control signal processing module and triode control switch, is controlled jointly by described control signal processing module and described triode control switch.
A kind of method of prompting mobile telephone set information by color LED flashing is characterized in that, said method comprising the steps of:
1) under flicker pattern opening, judges whether user's input value meets pattern of the input;
2) if meet pattern of the input, then central processing unit reads the color value of setting;
3) calculate length break period according to the optimum frequency value of flicker program acquiescence or the frequency values of user's setting, to realize calling of timing function;
4) in the time interrupt procedure, the color value of the setting that described central processing unit will obtain outputs to described control signal processing module by described IIC interface, and pass through the programming Control universal input and output port to described triode control switch generation control signal, to drive the frequency and the chromatic flicker of color LED to set.
Program control scintillation technique disclosed according to the present invention, can beautify mobile phone and be applied to mobile phone, as the different colours prompting of the colored prompting of the incoming call LED in the group in the telephone directory, cell-phone battery electric-charge quantity,, make it with 7 kinds of monochromatic light circulation flickers or the like by the direct input command of keyboard.The present invention mainly is combining of software and hardware, and programming can realize control.
Description of drawings
Below, with reference to accompanying drawing, for those skilled in the art that, from detailed description of the present invention, above-mentioned and other purposes of the present invention, feature and advantage will be apparent.
Fig. 1 is the structured flowchart that constitutes apparatus of the present invention;
Fig. 2 is a drive circuit circuit diagram of realizing the color LED flashing device in a preferred embodiment of the present invention;
Fig. 3 provides the flow chart of realizing the inventive method;
Fig. 4 is the regularly flow chart of interrupt service subroutine of the invention process.
Embodiment
The composition of apparatus of the present invention sees also block diagram shown in Figure 1, be provided with by 10 pairs of control circuits 11 of the keyboard on the mobile phone faceplate, control circuit 11 comprises central processing unit (CPU) and peripheral circuit thereof, it is responsible for detecting the set parameter of keyboard 10 and outer triggering signal is handled, then provide the corresponding driving signal to drive circuit 12, carry out corresponding action to trigger colored backlight led circuit 13.
Fig. 2 provides the physical circuit schematic diagram of drive circuit 12 in one embodiment.This circuit utilizes HC mode chip for driving PCF8574 to reach the purpose of control different color flicker with the control of three kinds of individual colour circuit power supply low sides carrying out color LED.Red green two kinds of individual colour circuits that fracture GPIO01 able to programme, the GPIO02 of mobile phone central processing unit (CPU) is used for respectively driving color LED in the diagram are to carry out the demonstration that mobile phone has no signal, and wherein GPIO is the abbreviation of universal input and output port.Resistance R 1, R2, R3 play different dividing potential drop effects respectively, and triode T1, T2 then use as switch, and model is that the chip Q1 of PCF8574 handles to derive from control signal HC signal SDA that the mobile phone central processor CPU sends and the module of SCL.
Illustrate that below in conjunction with figure Fig. 3 and Fig. 4 the present invention realizes the flow process of color LED flashing method.Fig. 3 is the flow process that combines by the direct input command of cell phone keyboard, and we are called main program here.Fig. 4 is an invoked timer interrupt service subroutine among Fig. 3, or is called flicker service subprogram flow chart.
At first each variable name that the present invention is used in flow chart describes: FLAG represents the switch sign of timer interrupt service subroutine, and wherein FLAG=0 represents to withdraw from the timer interrupt service routine, enters holding state (or step); FLAG=1 represents to enter the timer interrupt service subroutine.ON/OFF represents that LED flicker opens or close, and wherein ON/OFF=0 represents that flicker closes, and ON/OFF=1 represents that flicker opens.X and Y value are represented two default values in the timer interrupt service subroutine respectively, and wherein X represents to open the time that flashing function continues; The Y value representation wink-off function duration.ON_COUNT represents the initial value of timer, and this value is decided according to the parameter of user's input.ON_COUNT is relevant with parameter X in the present embodiment, the time that corresponding flicker is lighted, is called the timer value of lighting.OFF_COUNT also represents the timer initial value, and this value is decided according to the parameter of user's input, and Y is relevant with parameter, the corresponding flicker fall time, is called the timer close value.
See also Fig. 3, the main flow to the inventive method describes below:
Step 301 enters the initial state of operating handset;
Step 302, this moment, mobile phone entered holding state, waited for that the user is by the keyboard input command;
Step 303 judges whether the user has key entry " 10001# ", does not then jump into step 302 if key in, and recovers holding state, and the user can select other service as required;
Step 304, the pattern of the input of " 10001# " if judged result satisfies condition, at this moment timer interrupt program sign FLAG=1 shows that the user need enter the flicker service;
Step 305, the timing that this program default setting timer is lighted and extinguished, i.e. certain special time cycle at interval, the time that repeats to call an interrupt service subroutine;
Step 306 changes over to and calls the timer interrupt service subroutine;
Step 307, whether the cycle detection user imports stop signal in main program, and that adopt in the present embodiment is " 10002# ", if not input then continues the circulation flicker;
Step 309, input stops correct format, and at this moment timer interrupt program sign FLAG=0 shows that the user withdraws from the flicker service;
Step 309 finishes main program.
Step 306 in the main flow changes the timer interrupt service subroutine over to, please then referring to the flow chart of this subprogram shown in Figure 4.
Step 401 at first begins to enter interrupt service subroutine;
Does step 402 judge that then whether the mobile phone LED flashing function opens or closes, and promptly judges identifier ON/OFF=0? or ON/OFF=1?
Step 403, if ON/OFF=1, again and then judge whether the timer value of lighting ON_COUNT is 0, this is worth and is X when calling first;
If flicker unlatching number of times ON_COUNT is not equal to 0 in the step 403, i.e. expression is lighted and is continued to finish, and judges in step 406 then whether timer interrupt identification FLAG equals 0, if FLAG=0 then enters step 413, withdraw from interrupt service routine, change step 414 then over to, return main program; Be not equal to 0 if judge timer interrupt identification FLAG in the step 406, enter step 407, the timer value of lighting ON_COUNT is from subtracting 1, and the expression time of lighting is begun to reduce by initial value, and then program turns back to the main program of step 414;
If the timer value of lighting ON_COUNT is 0 in the judgement of step 403, continue the value of variable X is composed to the timer value of lighting ON_COUNT, i.e. step 404, then in step 405, carry out ON/OFF=0, be the wink-off function, return main program then, i.e. step 414;
If Rule of judgment does not satisfy in step 402, promptly the mobile phone LED flashing function is closed, and judges whether timer close value OFF_COUNT is 0 again and then by step 408; If timer close value OFF_COUNT is not 0, then in step 409, continue to judge whether interrupt service routine FLAG is 0; The flow process of lighting process to top timer is similar.If FLAG=0 then by step 413 and 414, withdraws from interrupt service routine, return main program; If the discontented foot of condition in the step 409, i.e. FLAG=1, then timer close value OFF_COUNT is from subtracting 1, i.e. step 410, main program forwards step 414 to then; If Rule of judgment satisfies in step 408, both timer close value OFF_COUNT was 0, then continued the silent definite value Y of program is composed to variable OFF_COUNT, it is step 411, then enter step 412, variable ON/OFF=1 is set and opens flicker, program turns back to 414 then.
In addition, the present invention can also specify as follows with realizing the prompting of incoming call color LED flashing;
At first, the user enters in the setting of telephone directory group, selects passage of scintillation light (passage of scintillation light 1-passage of scintillation light 9);
Secondly, during incoming call, the mobile phone central processing unit calls the timing loop control LED flicker that timer interrupt routine is lighted and extinguished with the timer of the color set and program default setting, and the timing routine flow chart is with accompanying drawing 4;
Then, wait for that the user imports stop signal (incoming call answering action);
At last, withdraw from main program.
In addition, the present invention can also specify as follows with realizing color LED flashing prompting mobile telephone set battery current electric quantity value:
Mobile phone electric weight surplus value with icon display, is divided into five grades on LCD, respectively corresponding five kinds of flash color, and the user selects five kinds of different color values respectively in mobile phone is set.
At first, the user enters in the mobile phone setting, selects color LED flashing prompting mobile telephone set electric weight.
Secondly, the mobile phone central processing unit is read cell-phone battery electric-charge quantity and is selected corresponding setpoint color and timing loop control LED flash for prompting mobile phone information about power that the timer of program default setting is lighted and extinguished.The timing routine flow chart is with accompanying drawing 4;
The 3rd, the wait user intervention (repeat first step, or second step, or press closing key);
At last, withdraw from main program.
Method and apparatus of the present invention not only can be applied to field of mobile phones, can also be applied to have in the electronic equipment of input set-up function and Presentation Function, even can also relate to toy industry, caution system, various fields such as consumer electronics product.
The front provides the description to preferred embodiment, so that any technical staff in this area can use or utilize the present invention.Various modifications to these embodiment are conspicuous to those skilled in the art, can be applied to other embodiment to total principle described here and not use creativeness.Thereby the embodiment of the present invention shown in will being not limited to here, and the application of wide scope of principle that should disclose and new feature according to meeting here.

Claims (5)

1, a kind of device of prompting mobile telephone set information by color LED flashing, on mobile phone, be equiped with flashing circuit, described flashing circuit comprises the color LED circuit that central processing unit, drive circuit and drive circuit are connected, described drive circuit comprises a control signal processing module, one group of filter circuit, and one group of triode control switch, it is characterized in that
Described control signal processing module links to each other with the IIC interface of described central processing unit, be used to receive the control signal of described central processing unit transmission and described control signal is made the corresponding driving action, described central processing unit links to each other with described triode control switch by its universal input and output port that has, described color LED circuit links to each other with described control signal processing module and triode control switch, is controlled jointly by described control signal processing module and described triode control switch.
2, a kind of method of prompting mobile telephone set information by color LED flashing is characterized in that, said method comprising the steps of:
1) under flicker pattern opening, judges whether user's input value meets pattern of the input;
2) if meet pattern of the input, then central processing unit reads the color value of setting;
3) calculate length break period according to the optimum frequency value of flicker program acquiescence or the frequency values of user's setting, to realize calling of timing function;
4) in the time interrupt procedure, the color value of the setting that described central processing unit will obtain outputs to described control signal processing module by described IIC interface, and pass through the programming Control universal input and output port to described triode control switch generation control signal, to drive the frequency and the chromatic flicker of color LED to set.
3, the method for a kind of prompting mobile telephone set information by color LED flashing according to claim 2 is characterized in that, described flicker opening can be used to characterize cell phone incoming call and show.
4, the method for a kind of prompting mobile telephone set information by color LED flashing according to claim 2 is characterized in that, described flicker opening can be used to characterize mobile phone electric weight deficiency.
5, the method for a kind of prompting mobile telephone set information by color LED flashing according to claim 2, it is characterized in that the central processing unit of described mobile phone can be by realizing the break period that timing function is set in the described set point about glimmering with the optimum frequency of program acquiescence with any kind of color.
CN02111316.5A 2002-04-10 2002-04-10 Method and device for prompting mobile telephone set information by color LED flashing Expired - Fee Related CN1193635C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN02111316.5A CN1193635C (en) 2002-04-10 2002-04-10 Method and device for prompting mobile telephone set information by color LED flashing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN02111316.5A CN1193635C (en) 2002-04-10 2002-04-10 Method and device for prompting mobile telephone set information by color LED flashing

Publications (2)

Publication Number Publication Date
CN1450823A CN1450823A (en) 2003-10-22
CN1193635C true CN1193635C (en) 2005-03-16

Family

ID=28680549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN02111316.5A Expired - Fee Related CN1193635C (en) 2002-04-10 2002-04-10 Method and device for prompting mobile telephone set information by color LED flashing

Country Status (1)

Country Link
CN (1) CN1193635C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159560B (en) * 2007-10-22 2010-12-01 中兴通讯股份有限公司 Network card status indication method and system for time division multiplex network
CN101737762B (en) * 2008-11-13 2013-02-13 宏达国际电子股份有限公司 Portable electronic device and control method of light source thereof
CN102769706A (en) * 2012-08-07 2012-11-07 深圳天珑无线科技有限公司 Mobile phone and reminding method thereof
BR112017007482B8 (en) * 2014-10-13 2023-02-14 Avery Dennison Retail Information Services Llc PROCESS FOR CREATING EVENT TIMER ON A FOOD FRESHNESS BAR CODE PRINTER OR SMART PRINTER THAT WILL BEEP ON A PERIODICAL BASIS OR AT A SPECIFIC PASSAGE OF TIME
CN104507230A (en) * 2014-12-24 2015-04-08 深圳市航盛电子股份有限公司 LED (light emitting diode) lamp meter reading flickering method and system based on STM32 timer
CN108377594B (en) * 2018-03-05 2020-09-15 上海艾为电子技术股份有限公司 Driving method and driving device for indicator light of mobile equipment and mobile equipment

Also Published As

Publication number Publication date
CN1450823A (en) 2003-10-22

Similar Documents

Publication Publication Date Title
CN1099820C (en) Mobile terminal provided with display controlling function by detecting insertion of earphone jack
JP2005267629A5 (en)
CN1313907C (en) Keyboard inputting means
CN1640101A (en) Mobile communication terminal
CN1671230A (en) Power consumption control apparatus in personal digital assistant (pda) phone
CN1828711A (en) Backlight control for a portable computing device
EP2312818A1 (en) Portable electronic device and method for notifying state of same
CN1193635C (en) Method and device for prompting mobile telephone set information by color LED flashing
CN100388213C (en) Application programe switch-over method and system
CN1852341A (en) Method and device for controlling keyboard backlight
CN1233901A (en) Mobile telephone set
CN102215296A (en) Method for realizing mobile phone key function by simulating double-click operation
CN1426259A (en) Dynamic back lighting method for mobile communication terminal
CN1842238A (en) Signal lamp flashing controlling method
JP2005134998A (en) Control system, control method and control program for key backlight
CN1306842C (en) A power supply management method and apparatus for mobile communication terminal
CN1791256A (en) Mobile phone communication automatic testing method and mobile phone automatic calling unit
CN1961564A (en) Controlling the appearance of a hand-portable electronic device
CN1159937C (en) Method and device for flashing back light of mobile telephone's LCD
CN203522808U (en) LED (Light Emitting Diode) flashing mobile phone protection casing structure
US20040253976A1 (en) Controlling a light source of a telephone keypad
CN101452680B (en) Display driver with built-in test circuit and test method thereof
CN1571438A (en) Method and apparatus for controlling light source of telephone key-press
US20060132384A1 (en) Graphic data files including illumination control and related methods and computer program products
CN1354423A (en) Radio communication equipment switcher

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
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee