CN102781141B - Indication lamp control method in charging process of mobile terminal and mobile terminal - Google Patents
Indication lamp control method in charging process of mobile terminal and mobile terminal Download PDFInfo
- Publication number
- CN102781141B CN102781141B CN201210220126.0A CN201210220126A CN102781141B CN 102781141 B CN102781141 B CN 102781141B CN 201210220126 A CN201210220126 A CN 201210220126A CN 102781141 B CN102781141 B CN 102781141B
- Authority
- CN
- China
- Prior art keywords
- battery
- indicator light
- mobile terminal
- baseband chip
- control method
- 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
Links
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
Abstract
The invention discloses an indication lamp control method in the charging process of a mobile terminal and the mobile terminal, wherein the indication lamp control method comprises the following steps that A, when the mobile terminal is connected with a power supply, the indication lamp control function of the mobile terminal is opened; B, a base band chip reads a voltage value at a preset time interval when a battery is charged; and C, the base band chip calculates a frequency at which a GPIO (general purpose input-output) interface of the base band chip outputs a square wave according to the voltage value and enables an indication lamp to flicker according to the frequency, wherein the flicker frequency of the indication lamp becomes slow along with the increment of the voltage value of the battery; and the indication lamp is extinguished when the battery is fully charged. By using the indication lamp control method and the mobile terminal, by controlling the indication lamp to flicker when the battery is charged, the higher the voltage value of the battery is, the slower the flicker frequency is; a user can intuitively know the electric quantity of the battery according to the flicker frequency of the indication lamp; and the experience effect of the user is improved. Moreover, by comparing that the indication lamp flickers with that the battery is maintained to be always on when the battery is charged in the prior art, electrical energy resources are saved, and the indication lamp control method and the mobile terminal are more environment-friendly.
Description
Technical field
The present invention relates to communication technical field, the indicator light control method particularly during a kind of mobile terminal charging and mobile terminal.
Background technology
At present, mobile phone is often arranged the effect of a LED as charging instruction, such as, mobile phone this LED when charging shows a kind of color, and after battery is full of electricity, this LED shows another kind of color, as long as and mobile phone connects power supply, this LED just can keep often bright and indicate charging.Although this charging modes can inform whether user's battery electric quantity is full of to a certain extent, but LED is lighted can waste valuable electric power energy always, and the brightness of LED remains unchanged when charging, user cannot judge battery electric quantity by the state of LED, makes Consumer's Experience effect not high.
Thus prior art need to improve.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, indicator light control method when the object of the present invention is to provide a kind of mobile terminal to charge and mobile terminal, light the wastes power energy to solve prior art indicator light always, and the problem that Consumer's Experience effect is not high.
In order to achieve the above object, this invention takes following technical scheme:
Indicator light control method during mobile terminal charging, it comprises:
A, when mobile terminal connects power supply, open the indicator light controlling functions of mobile terminal;
B, the baseband chip magnitude of voltage when the scheduled time reads battery charging;
C, baseband chip calculate its GPIO mouth side of output wave frequency according to described magnitude of voltage, and make indicator light by this frequency scintillation; Wherein, the flicker frequency of indicator light with battery voltage value increase and slack-off, and when battery is full of electricity, indicator light is extinguished;
In step C, when described baseband chip calculates its GPIO mouth side's of output wave frequency according to magnitude of voltage, by following formulae discovery:
Wherein, Vbat is the battery voltage value that baseband chip reads, and Vmax is the maximum voltage value of battery, and Vmin is the minimum amount of voltage that of battery, and fmax is the maximum square wave frequency that the GPIO mouth of baseband chip is preset.
Indicator light control method when described mobile terminal charges, after step before step B, described method also comprises: B0, opening timing time are the first timer of the scheduled time.
Indicator light control method during described mobile terminal charging, after step c, described method also comprises: D, judge that whether first timer is overtime, the execution step B when first timer time-out.
Indicator light control method when described mobile terminal charges, described step C specifically comprises:
C1, unlatching second timer, and the timing arranging second timer is 0.5/f, wherein, f>0;
C2, judge that whether second timer is overtime, read the level of the GPIO mouth of baseband chip when second timer time-out, and the level value negate that will read exports.
Indicator light control method when described mobile terminal charges, the described scheduled time is 2-5S.
For realizing a mobile terminal for above-mentioned indicator light control method, it comprises:
Battery;
Indicator light circuit, is used to indicate the charged state of battery;
Baseband chip, for reading magnitude of voltage during battery charging every the scheduled time, calculating its GPIO mouth according to magnitude of voltage should the side's of output wave frequency, and makes indicator light in indicator light circuit by this frequency scintillation; Wherein, the flicker frequency of indicator light with battery voltage value increase and slack-off, and when battery is full of electricity, indicator light is extinguished;
When described baseband chip calculates its GPIO mouth side's of output wave frequency according to magnitude of voltage, by following formulae discovery:
Wherein, Vbat is the battery voltage value that baseband chip reads, and Vmax is the maximum voltage value of battery, and Vmin is the minimum amount of voltage that of battery, and fmax is the maximum square wave frequency that the GPIO mouth of baseband chip is preset;
Described baseband chip is connected with battery and indicator light circuit.
In described mobile terminal, described baseband chip comprises:
For reading battery voltage value, and described magnitude of voltage is carried out analog-to-digital ADC module;
GPIO pin for controlling baseband chip exports low and high level, and the GPIO control module of square-wave signal;
The positive pole of described ADC model calling battery, described GPIO control module connects the input of indicator light circuit.
In described mobile terminal, described indicator light circuit comprises resistance and indicator light, and the positive pole of described indicator light connects GPIO control module by resistance, minus earth.
Compared to prior art, indicator light control method during mobile terminal charging provided by the invention and mobile terminal, by the magnitude of voltage of baseband chip when the scheduled time reads battery charging; Baseband chip calculates its GPIO mouth side of output wave frequency according to magnitude of voltage afterwards, makes indicator light by this frequency scintillation, and make the flicker frequency of indicator light with battery voltage value increase and slack-off, when battery is full of electricity, indicator light is extinguished.Control indicator light flicker when the present invention is charged by battery, when battery voltage value is higher, flicker frequency is slower, and user can get information about the electricity of battery according to the flicker frequency of indicator light, improve the experience effect of user.And indicator light flicker when charging with prior art battery battery keep the ratio that often exposes, saved electric power energy, more environmental protection.
Accompanying drawing explanation
The method flow diagram of indicator light control method when Fig. 1 is mobile terminal of the present invention charging.
In indicator light control method when Fig. 2 is mobile terminal of the present invention charging, the linear relationship schematic diagram of cell voltage and indicator light flicker frequency.
Fig. 3 is that the present invention is for realizing the structured flowchart of the mobile terminal of indicator light control method.
Fig. 4 is that the present invention is for realizing the circuit diagram of the mobile terminal of indicator light control method.
Embodiment
The invention provides indicator light control method when a kind of mobile terminal charges and mobile terminal, for making object of the present invention, technical scheme and effect clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Indicator light control method during mobile terminal charging provided by the invention, as shown in Figure 1, it comprises:
S100, when mobile terminal connects power supply, open the indicator light controlling functions of mobile terminal.When mobile terminal inserts charger or connects computer by USB, the unlatching charge function of mobile terminal, indicator light controlling functions is opened automatically.
S200, the baseband chip magnitude of voltage when the scheduled time reads battery charging.Wherein, the described scheduled time is 2-5S, such as when charging, baseband chip can read magnitude of voltage during battery charging every 5 seconds.
S300, baseband chip calculate its GPIO(General Purpose Input Output according to magnitude of voltage, universal input/output) the mouth side of output wave frequency, make indicator light by this frequency scintillation; Wherein, the flicker frequency of indicator light with battery voltage value increase and slack-off, and when battery is full of electricity, indicator light is extinguished.
During concrete enforcement, described baseband chip output duty cycle is the square-wave signal of 50%, and when baseband chip calculates its GPIO mouth side's of output wave frequency according to magnitude of voltage, by following formulae discovery:
Wherein, Vbat is the battery voltage value that baseband chip reads, and Vmax is the maximum voltage value of battery, and Vmin is the minimum amount of voltage that of battery, and fmax is the maximum square wave frequency that the GPIO mouth of baseband chip is preset.
As can be seen from above-mentioned formula, the baseband chip side of output wave frequency is slack-off gradually with increasing of battery voltage value, visible cell voltage and square wave frequency linear, as shown in Figure 2.As can be seen from Figure 2, when cell voltage Vbat becomes large, frequency f diminishes; For mobile phone, current mobile phone battery is pressed between 3.4 ~ 4.2V, so can to get Vmin be 3.4V, Vmax is 4.2V; If LED flicker is too fast, human eye perceives will as normal bright the same, so fmax can get 2, when battery electric quantity is minimum, indicator light 0.5s flicker once.When battery electric quantity is full of, battery voltage value Vbat is equal with the maximum voltage value Vmax of battery, and therefore square wave output frequency f is 0, and namely battery is full of electricity, and it is that low level makes indicator light extinguish that baseband chip then arranges its GPIO mouth.
Read the time of battery voltage value to control baseband chip, after described step S100, before step S200, described method also comprises: S101, opening timing time are the first timer of the scheduled time.
After first timer is opened, after step S300, described method also comprises step S301, judges that whether first timer is overtime, performing step S200, when not having time-out, continuing wait timeout when first timer time-out.The timing that this first timer is arranged can be 5S, makes baseband chip read the magnitude of voltage of primary cell every 5S.
In the embodiment of the present invention, in order to control the square-wave signal that base band output duty cycle is 50%, and control indicator light by frequency f flicker, described step S300 specifically comprises:
First, open second timer, and the timing arranging second timer is 0.5/f, wherein, f>0; Then, judge that whether second timer is overtime, the level of the GPIO mouth of baseband chip is read when second timer time-out, and the level value negate of reading is exported, low and high level is exported according to the cycle of square-wave signal by making the GPIO mouth of base band, indicator light is glimmered, and the frequency of square-wave signal is identical with the frequency that indicator light glimmers.
The present invention is also corresponding provides a kind of mobile terminal for realizing indicator light control method, and as shown in Figure 3 and Figure 4, it comprises: battery 10, indicator light circuit 20 and baseband chip 30, and described baseband chip 30 is connected with battery 10 and indicator light circuit 20.
Wherein, described battery 10 is for powering to mobile terminal, and indicator light circuit 20 is used to indicate the charged state of battery 10; Baseband chip 30 is for reading magnitude of voltage when battery 10 charges every the scheduled time, calculating its GPIO mouth according to magnitude of voltage should the side's of output wave frequency, and makes indicator light D1 in indicator light circuit 20 by this frequency scintillation.Wherein, the flicker frequency of indicator light with battery voltage value increase and slack-off, and when battery is full of electricity, indicator light is extinguished.
Refer to Fig. 4, described baseband chip 30 comprises: for reading battery 10 magnitude of voltage, and described magnitude of voltage is carried out analog-to-digital ADC(Analog-to-Digital Converter, analog-to-digital conversion) module 31 and the GPIO pin for controlling baseband chip 30 export low and high level, and the GPIO control module 32 of square-wave signal; Described ADC module 31 connects the positive pole of battery 10, and described GPIO control module 32 connects the input of indicator light circuit 20.
Described indicator light circuit 20 comprises resistance R1 and indicator light D1, and the positive pole of described indicator light D1 connects GPIO control module 32 by resistance R1, minus earth.Wherein, described resistance R1 is current-limiting resistance, its selectable resistance values 1k Ω, flows through indicator light D1 electric current for restriction, and the electric current preventing from flowing through indicator light D1 is too high burns out indicator light.When baseband chip 30 arranges GPIO mouth output high level, indicator light D1 is bright; When arranging GPIO mouth output low level, indicator light D1 goes out.
In sum, in charging process, the present invention is by reading the magnitude of voltage of battery at regular intervals, square-wave signal frequency is calculated according to battery voltage value, and the square-wave signal of this frequency is exported by baseband chip control GPIO, realize indicating whole charging process with indicator light flicker, and make the square wave frequency of output become large along with cell voltage and diminish, make user know the number of battery electric quantity by the flicker frequency of indicator light, make charging process more vivid.And indicator light keeps the ratio that often exposes when in charging process, indicator light flicker is charged with prior art always, and when battery electric quantity is full of, closing indicator light, save the electric power resource that indicator light in charging process consumes, being specially adapted to use in the mobile phone of the band LED instruction when charging.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection range that all should belong to the claim appended by the present invention.
Claims (8)
1. indicator light control method during mobile terminal charging, is characterized in that, comprising:
A, when mobile terminal connects power supply, open the indicator light controlling functions of mobile terminal;
B, the baseband chip magnitude of voltage when the scheduled time reads battery charging;
C, baseband chip calculate its GPIO mouth side of output wave frequency according to described magnitude of voltage, and make indicator light by this frequency scintillation; Wherein, the flicker frequency of indicator light with battery voltage value increase and slack-off, and when battery is full of electricity, indicator light is extinguished;
In step C, when described baseband chip calculates its GPIO mouth side's of output wave frequency according to magnitude of voltage, by following formulae discovery:
Wherein, Vbat is the battery voltage value that baseband chip reads, and Vmax is the maximum voltage value of battery, and Vmin is the minimum amount of voltage that of battery, and fmax is the maximum square wave frequency that the GPIO mouth of baseband chip is preset.
2. indicator light control method during mobile terminal charging according to claim 1, it is characterized in that, after step before step B, described method also comprises: B0, opening timing time are the first timer of the scheduled time.
3. indicator light control method during mobile terminal according to claim 2 charging, it is characterized in that, after step c, described method also comprises: D, judge that whether first timer is overtime, the execution step B when first timer time-out.
4. indicator light control method during mobile terminal charging according to claim 1, it is characterized in that, described step C specifically comprises:
C1, unlatching second timer, and the timing arranging second timer is 0.5/f, wherein, f>0;
C2, judge that whether second timer is overtime, read the level of the GPIO mouth of baseband chip when second timer time-out, and the level value negate that will read exports.
5. indicator light control method during mobile terminal charging according to claim 1 and 2, it is characterized in that, the described scheduled time is 2-5S.
6. for realizing a mobile terminal for indicator light control method described in claim 1, it is characterized in that, comprising:
Battery;
Indicator light circuit, is used to indicate the charged state of battery;
Baseband chip, for reading magnitude of voltage during battery charging every the scheduled time, calculating its GPIO mouth according to magnitude of voltage should the side's of output wave frequency, and makes indicator light in indicator light circuit by this frequency scintillation; Wherein, the flicker frequency of indicator light with battery voltage value increase and slack-off, and when battery is full of electricity, indicator light is extinguished;
When described baseband chip calculates its GPIO mouth side's of output wave frequency according to magnitude of voltage, by following formulae discovery:
Wherein, Vbat is the battery voltage value that baseband chip reads, and Vmax is the maximum voltage value of battery, and Vmin is the minimum amount of voltage that of battery, and fmax is the maximum square wave frequency that the GPIO mouth of baseband chip is preset;
Described baseband chip is connected with battery and indicator light circuit.
7. mobile terminal according to claim 6, is characterized in that, described baseband chip comprises:
For reading battery voltage value, and described magnitude of voltage is carried out analog-to-digital ADC module;
GPIO pin for controlling baseband chip exports low and high level, and the GPIO control module of square-wave signal;
The positive pole of described ADC model calling battery, described GPIO control module connects the input of indicator light circuit.
8. mobile terminal according to claim 7, is characterized in that, described indicator light circuit comprises resistance and indicator light, and the positive pole of described indicator light connects GPIO control module by resistance, minus earth.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210220126.0A CN102781141B (en) | 2012-06-29 | 2012-06-29 | Indication lamp control method in charging process of mobile terminal and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210220126.0A CN102781141B (en) | 2012-06-29 | 2012-06-29 | Indication lamp control method in charging process of mobile terminal and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102781141A CN102781141A (en) | 2012-11-14 |
CN102781141B true CN102781141B (en) | 2015-02-11 |
Family
ID=47125842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210220126.0A Expired - Fee Related CN102781141B (en) | 2012-06-29 | 2012-06-29 | Indication lamp control method in charging process of mobile terminal and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102781141B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103886697A (en) * | 2014-03-19 | 2014-06-25 | 深圳市中兴移动通信有限公司 | Reminding device and method of unread messages |
CN103825341A (en) * | 2014-03-21 | 2014-05-28 | 深圳天源中芯半导体有限公司 | Battery power indicating circuit for mobile power supply |
CN104967196A (en) * | 2015-06-19 | 2015-10-07 | 中山上铠精密电子有限公司 | Intelligent usb adapter |
CN105050287A (en) * | 2015-08-20 | 2015-11-11 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal indication lamp control method and system |
CN107509288B (en) * | 2017-08-17 | 2019-12-10 | 惠州Tcl移动通信有限公司 | Mobile terminal charging indicator lamp control method, storage device and mobile terminal |
CN107835298B (en) * | 2017-10-19 | 2020-08-28 | 维沃移动通信有限公司 | Control method of mobile terminal and mobile terminal |
CN114938551A (en) * | 2022-05-19 | 2022-08-23 | 苏州联讯仪器有限公司 | LED control method and related assembly |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101707827A (en) * | 2009-05-07 | 2010-05-12 | 海洋王照明科技股份有限公司 | Battery power supply control method of LED lamp and system |
CN201699795U (en) * | 2010-07-08 | 2011-01-05 | 广东欧珀移动通信有限公司 | Warning device of mobile phone |
-
2012
- 2012-06-29 CN CN201210220126.0A patent/CN102781141B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101707827A (en) * | 2009-05-07 | 2010-05-12 | 海洋王照明科技股份有限公司 | Battery power supply control method of LED lamp and system |
CN201699795U (en) * | 2010-07-08 | 2011-01-05 | 广东欧珀移动通信有限公司 | Warning device of mobile phone |
Also Published As
Publication number | Publication date |
---|---|
CN102781141A (en) | 2012-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102781141B (en) | Indication lamp control method in charging process of mobile terminal and mobile terminal | |
CN202797513U (en) | Cell phone charging socket | |
CN201191772Y (en) | Electric charger | |
CN202488535U (en) | Mobile terminal for displaying state of electric quantity in real time | |
CN105119349A (en) | General smart battery charger | |
CN201490901U (en) | Power supply adapter with display function | |
CN105244956A (en) | Intelligent management and monitoring system for lithium battery pack | |
CN204243849U (en) | A kind of DC charger of automatic control | |
CN205123301U (en) | General type intelligence battery charger | |
CN203026998U (en) | Novel solar mobile power supply | |
CN206559065U (en) | Condition prompting circuit and portable charged energy storage device are filled soon | |
CN201966669U (en) | Wireless charging system and wireless charger thereof | |
CN204696774U (en) | One is transferred the files charger | |
CN209119885U (en) | Solar energy movable power supply | |
CN103280850A (en) | Drive circuit with charger baby and multipurpose LED (light-emitting diode) functions | |
CN209375184U (en) | Earphone charging box | |
CN202014123U (en) | Intelligent repair charger | |
CN207652074U (en) | More power supply electronic alarm clocks | |
CN203522232U (en) | Portable power source | |
CN207835122U (en) | A kind of charge and discharge control plate of lithium-sulfur cell | |
CN202005027U (en) | Control circuit of charging indicating light | |
CN202142897U (en) | Intelligent charger for miner's lamps | |
CN205595833U (en) | New -type portable power source structure | |
CN104079012B (en) | Charging indication, charging circuit and electronic equipment | |
CN205960706U (en) | Mobile power supply for charging Bluetooth headset |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150211 Termination date: 20210629 |
|
CF01 | Termination of patent right due to non-payment of annual fee |