CN100574041C - Charger type distinguishing system, terminal charging method, terminal and charger - Google Patents

Charger type distinguishing system, terminal charging method, terminal and charger Download PDF

Info

Publication number
CN100574041C
CN100574041C CNB2007100912604A CN200710091260A CN100574041C CN 100574041 C CN100574041 C CN 100574041C CN B2007100912604 A CNB2007100912604 A CN B2007100912604A CN 200710091260 A CN200710091260 A CN 200710091260A CN 100574041 C CN100574041 C CN 100574041C
Authority
CN
China
Prior art keywords
charger
terminal
detection pin
type
level
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
Application number
CNB2007100912604A
Other languages
Chinese (zh)
Other versions
CN101079550A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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
Priority claimed from CNA2006101634989A external-priority patent/CN1976163A/en
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2007100912604A priority Critical patent/CN100574041C/en
Publication of CN101079550A publication Critical patent/CN101079550A/en
Application granted granted Critical
Publication of CN100574041C publication Critical patent/CN100574041C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present invention relates to electronic device field, disclose a kind of charger type distinguishing system, terminal charging method, terminal and charger.Among the present invention, terminal is connected with various chargers by unified hardware interface, in this hardware interface, comprise the detection pin, and the detection pin of dissimilar chargers carried out different settings, have different level when making the detection pin of detection pin and terminal of different types of charger connect, terminal is carried out the charging of corresponding discharge by measuring the type that it detects the electrical level judging charger of pin, thereby has reduced the probability of terminal erroneous judgement charger type.

Description

Charger type distinguishing system, terminal charging method, terminal and charger
Technical field
The present invention relates to electronic device field, particularly terminal and charging technique thereof.
Background technology
Undoubtedly, be the epoch of hand-held device now, wherein just belong to market maximum, the consumption maximum of mobile phone, also therefore the progress of mobile phone technique also especially rapidly, this point can be found out from its relevant interface technology.For example, for the wafer electricity consumption in the more accurate control hand-held device, thereby the power management interface (be called for short PWI) etc. of PowerWise has been proposed.
Because it is quite general that mobile phone possesses USB interface, USB interface is to be used for and PC (Personal Computer at first, be called for short " PC ") connect, so that the up-downgoing of information transmission and synchronous, yet the USB interface that mobile phone is used has 2 development trends in recent years again, the one, seeing through USB interface is cell-phone charging, and another then is the upgrading of transmission rate, is promoted to USB 2.0 from USB 1.1.
Why to see through the USB interface charging, mainly be because the application function of mobile phone is more and more many, electricity consumption is also more and more quick, stand-by time is shortened, therefore must strive for the charger meeting as far as possible, and mobile phone is when being connected with main equipment such as PC, the more stable 5.0V voltage from computer power that can utilize that USB interface possesses is as charge voltage source, be aided with relevant circuit equally again and constitute the USB charger for mobile phone, mobile phone is charged, thereby can not influence the relevant use of mobile phone, and not consume under the situation of extra time, finish charging.Even if but can utilize the USB charging, can therefore not abrogate original charging modes usually yet, reason is that the power supply effect of USB has the restriction (5V, 500mA) on the characteristic, makes the USB interface charging only be regarded as selecting for use.Current many power management chips that proposes at handheld apparatus, DC-DC conversion wafer have the USB interface charge function more, as the MAX1874 of Maxim, or the bq2501x of TI (x=0,1,2, be derived from Benchmarq).In present mobile phone/terminal equipment Charge Management, generally Charger (mains charger) charging and USB charging are separated, use different hardware circuits.Perhaps, only support wherein a kind of charging modes.
The title and the function of several pins that USB interface is main are as follows:
1, GND (): the USB earth signal
2, USB D+:USB data wire+line
3, USB D-:USB data wire-line
4, USB VBUS: built-in power ,+5V
In the prior art, mainly utilize the D+/D-data wire of USB whether to be in short-circuit condition and judge whether to be that non-USB charger inserts, during the D+/D-data wire short circuit of USB, be defined as by the mains charger charging, the relevant Charge Management flow process of mobile phone/starting terminal external charge device is charged; The D+/D-data wire of USB is defined as USB charging, the Charge Management flow process that mobile phone/starting terminal USB charger is relevant when opening circuit.
In actual applications, there is following problem in prior art: mobile phone/terminal is the identification charger type correctly, causes a hidden trouble when charging.
Cause the main cause of this situation to be, be connected on the main equipment in mobile phone/terminal, and the main equipment USB interface is when unusual, mobile phone/terminal is the identification charger type correctly.Be connected on the PC as mobile phone, and the USB of PC hinders for some reason and formed short circuit, and when the D+/D-data wire can't be in off state, mobile phone/terminal will be thought the USB charger by mistake mains charger, charging current is excessive, and main equipment is brought reliability hidden danger even fail safe hidden danger.
Summary of the invention
The technical problem underlying that each execution mode of the present invention will solve provides a kind of charger type distinguishing system, terminal charging method, terminal and charger, makes the probability of terminal erroneous judgement charger type be minimized.
For solving the problems of the technologies described above, embodiments of the present invention provide a kind of charger type distinguishing system, comprise terminal and at least two kinds of chargers, this terminal is connected with various chargers by unified hardware interface, comprise the detection pin in this hardware interface, the detection pin of different types of charger has different level when connecting with the detection pin of terminal;
Terminal also comprises the unit by the type of measuring the electrical level judging charger that detects pin, and this unit is judged charger type in the following manner:
Be defaulted as the charger type of charging current minimum, when the fluctuation of the level that detects pin surpasses predetermined threshold less than duration of predetermine amplitude, be judged to be the corresponding charger type of this level.
Embodiments of the present invention also provide a kind of terminal charging method, comprise following steps:
Terminal is measured the level of the detection pin that is connected with charger;
Judge the type of charger according to the level that measures;
Use corresponding charging flow to charge according to the charger type of judging;
Wherein, when judging charger type, be defaulted as the charger type of charging current minimum, when the fluctuation of the level that measures surpasses predetermined threshold less than duration of predetermine amplitude, be judged to be the corresponding charger type of this level according to the level that measures.
Embodiments of the present invention also provide a kind of terminal, are connected with various chargers by unified hardware interface, comprise the detection pin in this hardware interface, and the detection pin of different types of charger has different level when connecting with the detection pin of terminal;
Terminal also comprises the unit by the type of measuring the electrical level judging charger that detects pin, and this unit is judged charger type in the following manner:
Be defaulted as the charger type of charging current minimum, when the fluctuation of the level that detects pin surpasses predetermined threshold less than duration of predetermine amplitude, be judged to be the corresponding charger type of this level.
Each execution mode of the present invention compared with prior art, the main distinction and effect thereof are:
Terminal is connected with various chargers by unified hardware interface, in this hardware interface, comprise the detection pin, and the detection pin of dissimilar chargers carried out different settings, have different level when making the detection pin of detection pin and terminal of different types of charger connect, terminal is carried out the charging of corresponding discharge by measuring the type that it detects the electrical level judging charger of pin.Because this determination methods need not the D+/D-data wire by hardware interface, unusual even the D+/D-data wire occurs, also can not influence the judgement of charger type, reduce the probability of terminal erroneous judgement charger type.
When dissimilar chargers is connected with terminal, detect pin and have different level, can carry out following setting: the detection pin of terminal is connected with high level by resistance; The detection pin of the charger of the first kind is connected with ground; The detection pin of the charger of second type is unsettled.Be provided with by this, when making the charger of the first kind be connected with terminal, detection pin level is zero, and the charger of second type is when being connected with terminal, detecting the pin level is high level, thereby terminal can be known the charger that resolution connects, and carries out corresponding charging.And this method is minimum to the change of existing first charger and second charger, has only increased by one and has detected pin, can not consume unnecessary resource, and is comparatively practical.
When charger type surpasses two kinds, in the charger of the 3rd type, between high level and ground, be connected in series two divider resistances, the detection pin is connected with the tie point of two divider resistances.According to varying in size of two resistance, have different level on the detection pin.By regulating two divider resistances, make the detection pin have the level that varies in size, can distinguish a plurality of charger types, the development form after adapting to.And because the resistance of two divider resistances is bigger usually, shunting is few, can ignore, and can not impact normal charging.
Terminal is carrying out giving tacit consent to the charger type that this charger is the charging current minimum before charger type judges, when the fluctuation of the level that detects pin surpasses predetermined threshold less than duration of predetermine amplitude, is judged to be the corresponding charger type of this level.Thereby avoid causing erroneous judgement, improved the judgement quality, and when charging, can not cause damage to terminal or charger because charging current is excessive because level is unstable.
Description of drawings
Fig. 1 is the structural representation according to terminal in the charger type distinguishing system of first embodiment of the invention and first kind charger;
Fig. 2 is the structural representation according to the terminal in the charger type distinguishing system of first embodiment of the invention and the second type of charge device;
Fig. 3 is the structural representation according to terminal in the charger type distinguishing system of second embodiment of the invention and first kind charger;
Fig. 4 is the structural representation according to the terminal in the charger type distinguishing system of second embodiment of the invention and the second type of charge device;
Fig. 5 is the structural representation according to terminal in the charger type distinguishing system of second embodiment of the invention and the 3rd type of charge device;
Fig. 6 is the terminal charging method flow chart according to third embodiment of the invention;
Fig. 7 is the structural representation according to terminal and earphone interface in the charger type distinguishing system of four embodiment of the invention;
Fig. 8 is the terminal charging method flow chart according to fifth embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Terminal is connected with various chargers by unified hardware interface, in this hardware interface, comprise the detection pin in the specific embodiment of the invention, and the detection pin of dissimilar chargers carried out different settings, have different level when making the detection pin of detection pin and terminal of different types of charger connect, terminal is carried out the charging of corresponding discharge by measuring the type that it detects the electrical level judging charger of pin.Because this determination methods need not the D+/D-data wire by hardware interface, unusual even the D+/D-data wire occurs, also can not influence the judgement of charger type, reduce the probability of terminal erroneous judgement charger type.
Below first embodiment of the invention is described, first execution mode relates to a kind of charger type distinguishing system, comprises terminal and two kinds of chargers.Wherein, terminal connects with different chargers by unified hardware interface, comprises the detection pin in this hardware interface, and the detection pin of variety classes charger has different level when connecting with the detection pin of terminal.Also comprise a recognition unit in the terminal, detect the type of charger of the current connection of electrical level judging of pin by measuring terminals.
When dissimilar chargers is connected with terminal, detect pin and have different level, can carry out following setting to terminal and first, second type of charge device:
The setting of terminal as shown in Figure 1, detection pin one end in the hardware interface of terminal is connected with the interior power supply Vdd of terminal by resistance R, the other end links to each other with the detection pin of charger when terminal charge; Recognition unit detects pin with terminal and links to each other, so that measuring terminals detects the level of pin.The setting of first kind charger as shown in Figure 1, it detects pin one end and is connected with the ground pin of charger, the other end links to each other with the detection pin of terminal when terminal charge.When the charger of this first kind was connected with terminal, terminal detection pin linked to each other with ground wire with ground pin by the detection pin of first kind charger, and it is zero that terminal detects the pin level.
The setting of the second type of charge device as shown in Figure 2, detection pin one end of the second type of charge device is unsettled, the other end links to each other with the detection pin of terminal when terminal charge.When terminal was connected with the type charger, detection pin unsettled in the detection pin of terminal and the charger linked to each other, and terminal detects that pin is unsettled equally, and its level is identical with the interior power supply of the other end, the formation high level.
As seen terminal can be carried out the charging of corresponding types according to the clear charger that is connected of differentiating of the level that detects pin.And this method is minimum to the change of first charger and second charger physically, has only increased by one and has detected pin, can not consume unnecessary resource, and is comparatively practical.
In addition, because after present embodiment just requires the second type of charge device and terminal is connected, the detection pin of terminal can be unsettled, with the generation high level, so also can not comprise the detection pin in this second type of charge device, when being connected with terminal, it is vacant directly to allow terminal detect pin, can reach the desirable effect of present embodiment equally, and need not to change the setting of the second type of charge device, more convenient.
Wherein, this first kind charger and the second type of charge device can be following any two kinds: mains charger, USB charger or 1394 interface chargers.
In order to protect terminal and charger; when terminal is connected with charger; the charger that the recognition unit acquiescence of this terminal is connected is the charger type of charging current minimum; when the fluctuation of the level that detects pin surpasses predetermined threshold less than duration of predetermine amplitude; be judged to be the charger type of this level correspondence; thereby improve the quality of judging, guarantee the accuracy of judging.
With USB charger and mains charger is example, and wherein, the USB charger is a first kind charger, and mains charger is the second type of charge device, and the terminal recognition unit is given tacit consent to charger type and is set to USB charger (charging current of USB charger is less).When charging, when this recognition unit detects and detects pin and be high level, do not determine that it is the second type of charge device at once, but continue to detect, in that to detect pin be high level and its fluctuation less than duration of predetermine amplitude when surpassing predetermined threshold, determine that just this charger is the second type of charge device, promptly mains charger carries out the power source charges flow process; Otherwise determine that this charger is a first kind charger, promptly the USB charger carries out the USB charging flow.Protected circuit better by this method, avoided causing erroneous judgement, improved the judgement quality, and when charging, can not cause damage to terminal or charger because charging current is excessive because level is unstable.
Second embodiment of the invention relates to the judgement system of charger, and second execution mode is the expansion of first execution mode, and in the first embodiment, the detection pin of charger has two kinds of connected modes, can differentiate two kinds of different chargers; In the present embodiment, the one the second connected mode and first execution mode are roughly the same, its difference is, for the development after adapting to, also increased by three kinds of connected modes, between the high level of charger and ground, be connected in series two divider resistances, be connected with the tie point of two divider resistances detecting pin, make to detect on the pin and carry different level, thereby can distinguish the third or charger more than three kinds according to entrained level.
The structure of first kind charger as shown in Figure 3, the detection pin of first kind charger directly is connected with ground pin.Comprise one in the terminal equally and detect pin, this detection pin only links to each other with recognition unit, is convenient to recognition unit it is detected.When terminal was connected with first kind charger, the detection pin of terminal detected pin by charger and links to each other with ground wire with ground pin, and the detected level of recognition unit is a low level 0.
The structure of the second type of charge device as shown in Figure 4, the detection pin of the second type of charge device directly links to each other with the high level pin.Identical among the structure of terminal and Fig. 3.When terminal was connected with the second type of charge device, the detection pin of terminal detected pin by charger and links to each other with Vcc with the high level pin, and the detected level in terminal recognition unit is high level Vcc.
The structure of the 3rd type of charge device is connected in series two divider resistance R1 and R2 between the high level pin of the 3rd type of charge device and the ground pin as shown in Figure 5, links to each other with tie point between two divider resistances detecting pin.The setting of terminal is identical with Fig. 3.When terminal was connected with charger, the level size that detects pin was Vcc * R1/ (R1+R2), and when R1 equaled R2, detecting the pin level was Vcc/2.
By measuring the level that detects pin, recognition unit can clearly be distinguished the type of three kinds of chargers.And, few because R1 and R2 are the bigger resistance of resistance to the shunting of electric current, can ignore, can not impact normal charging.
In addition, when more than three kinds of the type of charger, only need to adjust the resistance of R1 and R2, make its corresponding different level, can carry out polymorphic type and differentiate.As when four kinds of chargers are arranged, R1=2R2 in the 3rd type of charge device, the level that detects pin when charging is 2Vcc/3, in the 4th type of charge device, R1=R2/2, the level that detects pin when charging is Vcc/3.Recognition unit is according to the definite charger type that is connected of the varying level that detects pin.Can adapt to development afterwards better by this mode.
When terminal is connected with charger, it is the charger type of charging current minimum that the recognition unit of terminal can be given tacit consent to the charger that is connected equally, when the fluctuation of the level that detects pin surpasses predetermined threshold less than duration of predetermine amplitude, be judged to be the corresponding charger type of this level, thereby improve the quality of judging, guarantee the accuracy of judging.
Third embodiment of the invention relates to terminal charging method, as shown in Figure 6.
Terminal enters step 601 when having charger to insert, give tacit consent to the charger type that this charger is the charging current minimum, and acquiescence adopts corresponding charging flow.Charger as this charging current minimum is the USB charger, and then acquiescence adopts the USB charging flow.Because the charger of acquiescence is the charger type of charging current minimum, so when unpredictable fault takes place, can reduce erroneous judgement for terminal there being possibility than the major injury charger type.
Then enter step 602; terminal is measured the level that detects pin; if the fluctuation of the level that measures surpasses predetermined threshold less than the duration of predetermine amplitude; that is to say current detection to level be stable level; then enter step 603; if instead the level fluctuation that current detection arrives is bigger; show that then this charger is current very unstable; can't determine corresponding charger type according to this level; and charger has the possibility that has fault, and return step 601 this moment, still gives tacit consent to the charger type that this charger is the charging current minimum; continue the charging flow of the charger of this charging current minimum of employing, with the protection terminal.
In step 603, terminal is carried out the charger type coupling according to detected level, determines the charger type of this detection level correspondence.As when detecting level and being low level, corresponding USB charger, when detecting level and being high level, the corresponding power charger.Because this detection level is the stable level in a period of time, thereby can effectively avoid causing the charger type matching error because of the level shakiness, improved the judgement quality of terminal, and when charging, can not cause damage to terminal or charger because charging current is excessive.
Then enter step 604, terminal adopts the charging flow of current definite charger type correspondence to charge.
Then enter step 605, whether its electric weight of terminal judges is full of, if process ends then, otherwise then return step 602, terminal continues to detect the level that it detects pin, prevents in charging process, charger generation abnormal conditions cause damage to terminal.
Four embodiment of the invention relates to a kind of charger type distinguishing system equally, roughly the same with the one the second execution modes, in the hardware interface (being socket) of terminal, comprise the detection pin equally, and the detection pin of dissimilar chargers has different level when connecting with the detection pin of terminal, terminal is according to the type of measuring the charger that its electrical level judging that detects pin is connected with this terminal, its difference is, in the one the second execution modes, detection pin in this terminal is pin independently, and in the present embodiment, this detection pin is existing headset detection pin Plug_In_Detect, the headset detection pin of this terminal this terminal when detection pin in this earphone interface links to each other does not have the voltage input, and this terminal had voltage input when the headset detection pin of this terminal was connected with the detection pin of different types of charger.This terminal also comprises terminal power management chip (PMIC), by what detect whether this terminal have voltage input to judge to be connected with this terminal is charger or earphone, what detect that the voltage input time judges current connection is charger, otherwise what judge current connection is earphone.This terminal power management chip can detect whether this terminal is current a voltage input by its respective pin that comprises.
In the present embodiment each charger be provided with can with first or second execution mode in identical, the setting of terminal hardware interface and the one the second execution mode parts omitted are had any different, be that mainly this terminal hardware interface also comprises and is used for the Spk+ and the Spk-line that are connected with earphone in the present embodiment; The setting of earphone interface as shown in Figure 7, detection pin one end of this earphone interface is connected with ground, when the other end is connected with terminal at this earphone, links to each other with the headset detection pin of terminal; Comprise Spk+ and Spk-line in this earphone interface equally, link to each other with the Spk-line with the Spk+ of terminal.Thereby as seen, when earphone linked to each other with terminal, the headset detection pin of terminal linked to each other with ground indirectly, formed low level.In the time of can learning that according to first or second execution mode first kind charger is connected with the hardware interface of terminal, the headset detection pin of terminal also is in low level, in this case, can carry out voltage detecting by PMIC, if current terminal has the voltage input, what then judge the current connection of this terminal is first kind charger, adopts corresponding charging flow; If there is not the voltage input, what then judge the current connection of this terminal is earphone.By using existing headset detection pin to carry out the judgement of charger type, in the probability that reduces terminal erroneous judgement charger type, saved the limited I/O pin resource of hardware interface.
In the present embodiment; in order to protect terminal and charger; the charger that the same acquiescence of the recognition unit of this terminal is connected is the charger type of charging current minimum; when the fluctuation of the level of headset detection pin surpasses predetermined threshold less than duration of predetermine amplitude; be judged to be the charger type of this level correspondence; thereby improve the quality of judging, guarantee the accuracy of judging.
Fifth embodiment of the invention relates to a kind of terminal charging method, in the present embodiment, terminal by original headset detection pin detect current connected be earphone or charger, and the charger type that connects.Specifically, terminal can detect the current voltage input that whether has by the respective pin of PMIC, and what judge current connection is earphone or charger; And determine the charger type of current connection by the level of measuring the headset detection pin.Reasonably make up by voltage and headset detection pin level, reliably distinguishing terminal connects earphone, terminal connects mains charger and terminal connects situations such as USB charger.
For example, can be as shown in table 1, be that low level (promptly being connected with ground) and PMIC have not detected voltage when input measuring the headset detection pin, show that terminal is connected with earphone; Measuring the headset detection pin is that low level and PMIC have detected voltage when input, shows that terminal is connected with mains charger; Measuring the headset detection pin is that high level and PMIC have detected voltage when input, shows that terminal is connected with the USB charger.Certainly, other compound mode can also be arranged, as mains charger and the situation exchange that is connected the USB charger etc. will be connected in the table 1.
Headset detection pin Plug_In_Detect (acquiescence high level) PMIC detects whether the voltage input is arranged (input of acquiescence no-voltage)
Earphone inserts Low level The no-voltage input
Mains charger inserts Low level The voltage input is arranged
The USB charger inserts High level The voltage input is arranged
Table 1
Idiographic flow as shown in Figure 8.Terminal enters step 801 when having charger or earphone to insert, the level of the headset detection pin of measuring terminals, and detect and currently whether have voltage to import this terminal.If detecting currently has voltage to import this terminal, then enter step 802; If measure the level of this headset detection pin is low level (being that the headset detection pin is connected with ground), then enters step 805.
In step 802, terminal is carried out the charger type coupling according to detected level, determines the charger type of this detection level correspondence.As when detecting level and being high level, corresponding USB charger, when detecting level and being low level, the corresponding power charger.This detection level can be the stable level in a period of time, thereby can effectively avoid causing the charger type matching error because of the level shakiness, improved the judgement quality of terminal, and when charging, can not cause damage to terminal or charger because charging current is excessive.Can whether surpass predetermined threshold less than duration of predetermine amplitude according to the fluctuation of the level that measures, judge current detection to level whether be stable level.
Then enter step 803, terminal adopts the charging flow of current definite charger type correspondence to charge.
Then enter step 804, whether its electric weight of terminal judges is full of, if process ends then, otherwise then return step 802, terminal again according to current detection to level determine charger type, the charging flow according to the charger type correspondence that redefines charges afterwards, prevents in charging process, charger generation abnormal conditions cause damage to terminal.
If it is low level (being that the headset detection pin is connected with ground) that terminal measures the level of its headset detection pin, then enter step 805.In step 805, whether terminal detects by PMIC currently has voltage to import this terminal, if having then enter step 802, terminal is carried out the charger type coupling according to detected low level, determines the charger type of this detection level correspondence; Do not have voltage to import this terminal if detect, show that then current what be connected with this terminal is earphone, enter step 806, open the earphone control circuit.In the present embodiment, distinguish earphone and dissimilar chargers simultaneously owing to use existing headset detection pin, thereby need not a newly-increased detection pin and be specifically designed to the detection charger type, in the probability that reduces terminal erroneous judgement charger type, saved the limited I/O pin resource of hardware interface.
In addition, in the present embodiment, can give tacit consent to the charger type that this charger is the charging current minimum detecting voltage when input when being charger (determine connect) equally, acquiescence adopts corresponding charging flow.Charger as this charging current minimum is the USB charger, and then acquiescence adopts the USB charging flow.Be decided to be the charger type of charging current minimum by charger, thereby when unpredictable fault takes place, can reduce erroneous judgement for terminal there being possibility than the major injury charger type with acquiescence.As in above-mentioned flow process; when terminal is measured the level that detects pin; if the fluctuation of the level that measures is bigger; or fluctuation does not reach predetermined threshold less than duration of predetermine amplitude; that is to say current detection to level be not stable level, charger has the possibility that has fault, in this case; can adopt the USB charging flow of acquiescence, with the protection terminal.
In sum, in one or more execution modes of the present invention, terminal is connected with various chargers by unified hardware interface, in this hardware interface, comprise the detection pin, and the detection pin of dissimilar chargers carried out different settings, have different level when making the detection pin of detection pin and terminal of different types of charger connect, terminal is carried out the charging of corresponding discharge by measuring the type that it detects the electrical level judging charger of pin.Because this determination methods need not the D+/D-data wire by hardware interface, unusual even the D+/D-data wire occurs, also can not influence the judgement of charger type, reduce the probability of terminal erroneous judgement charger type.
When dissimilar chargers is connected with terminal, detect pin and have different level, can carry out following setting: the detection pin of terminal is connected with high level by resistance; The detection pin of the charger of the first kind is connected with ground; The detection pin of the charger of second type is unsettled.Be provided with by this, when making the charger of the first kind be connected with terminal, detection pin level is zero, and the charger of second type is when being connected with terminal, detecting the pin level is high level, thereby terminal can be known the charger that resolution connects, and carries out corresponding charging.And this method is minimum to the change of existing first charger and second charger, has only increased by one and has detected pin, can not consume unnecessary resource, and is comparatively practical.
When charger type surpasses two kinds, in the charger of the 3rd type, between high level and ground, be connected in series two divider resistances, the detection pin is connected with the tie point of two divider resistances.According to varying in size of two resistance, have different level on the detection pin.By regulating two divider resistances, make the detection pin have the level that varies in size, can distinguish a plurality of charger types, the development form after adapting to.And because the resistance of two divider resistances is bigger usually, shunting is few, can ignore, and can not impact normal charging.
By embodiments of the invention as can be known, detection pin in this terminal hardware interface can be the headset detection pin, this headset detection pin does not have voltage to import this terminal when detection pin in this earphone interface links to each other, and this headset detection pin has voltage to import this terminal when being connected with the detection pin of dissimilar charger.This terminal also comprises PMIC, by the detected terminal of PMIC whether the result of voltage input is arranged, and judges that what be connected with this terminal is charger or earphone.By using existing headset detection pin to carry out the judgement of earphone and charger type, in the probability that reduces terminal erroneous judgement charger type, saved the limited I/O pin resource of hardware interface.
Terminal is carrying out giving tacit consent to the charger type that this charger is the charging current minimum before charger type judges, when the fluctuation of the level that detects pin surpasses predetermined threshold less than duration of predetermine amplitude, is judged to be the corresponding charger type of this level.Thereby avoid causing erroneous judgement, improved the judgement quality, and when charging, can not cause damage to terminal or charger because charging current is excessive because level is unstable.
Though pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (10)

1. charger type distinguishing system, it is characterized in that, comprise terminal and at least two kinds of chargers, this terminal is connected with various chargers by unified hardware interface, comprise the detection pin in this hardware interface, the detection pin of different types of charger has different level when connecting with the detection pin of terminal;
Described terminal also comprises the unit by the type of the electrical level judging charger of measuring described detection pin, and this unit is judged charger type in the following manner:
Be defaulted as the charger type of charging current minimum, when the fluctuation of the level that detects pin surpasses predetermined threshold less than duration of predetermine amplitude, be judged to be the corresponding charger type of this level.
2. charger type distinguishing system according to claim 1 is characterized in that, the detection pin that makes different types of charger in the following manner has different level when connecting with the detection pin of terminal:
The detection pin of described terminal is connected with high level by resistance;
The detection pin of the charger of the first kind is connected with ground;
The detection pin of the charger of second type is unsettled.
3. charger type distinguishing system according to claim 1 is characterized in that, the detection pin that makes different types of charger in the following manner has different level when connecting with the detection pin of terminal:
The detection pin of the charger of the first kind is connected with ground;
The detection pin of the charger of second type is connected with high level;
Between high level and ground, be connected in series two divider resistances in the charger of the 3rd type, detect pin and be connected with the tie point of two divider resistances.
4. according to claim 2 or 3 described charger type distinguishing systems, it is characterized in that, the pin that is used to detect earphone in the detection pin of described terminal and this terminal is same physical pins, this detection pin this terminal when detection pin in the earphone interface links to each other does not have the voltage input, and this terminal had voltage input when this detections pin was connected with the detection pin of different types of charger;
It is the unit of charger or earphone that described terminal also comprises by what detect whether described terminal have voltage input to judge to be connected with this terminal.
5. charger type distinguishing system according to claim 4 is characterized in that, the detection pin in the described earphone interface is connected with ground.
6. according to each described charger type distinguishing system in the claim 1 to 3, it is characterized in that described charger comprises mains charger, universal serial bus (USB) charger or 1394 interface chargers.
7. a terminal charging method is characterized in that, comprises following steps:
Terminal is measured the level of the detection pin that is connected with charger;
Judge the type of charger according to the level that measures;
Use corresponding charging flow to charge according to the charger type of judging;
Wherein, when judging charger type, be defaulted as the charger type of charging current minimum, when the fluctuation of the level that measures surpasses predetermined threshold less than duration of predetermine amplitude, be judged to be the corresponding charger type of this level according to the level that measures.
8. terminal charging method according to claim 7, it is characterized in that, the pin that is used to detect earphone in described detection pin that is connected with charger and the described terminal is same physical pins, and this terminal is charger or earphone by what detect whether this terminal have the voltage input to judge to be connected with this detection pin; If detect voltage input then judge that what connect is charger, then use corresponding charging flow to charge according to the charger type of judging; If detecting does not have voltage input then judge that what connect is earphone, open the earphone control circuit.
9. a terminal is characterized in that, is connected with various chargers by unified hardware interface, comprises the detection pin in this hardware interface, and the detection pin of different types of charger has different level when connecting with the detection pin of terminal;
Described terminal also comprises the unit by the type of the electrical level judging charger of measuring described detection pin, and this unit is judged charger type in the following manner:
Be defaulted as the charger type of charging current minimum, when the fluctuation of the level that detects pin surpasses predetermined threshold less than duration of predetermine amplitude, be judged to be the corresponding charger type of this level.
10. terminal according to claim 9, it is characterized in that, the pin that is used to detect earphone in the detection pin of this terminal and this terminal is same physical pins, this terminal did not have the voltage input when detection pin in the interface of this detection pin and this earphone linked to each other, and this terminal had voltage input when this detections pin was connected with the detection pin of described different types of charger;
It is the unit of charger or earphone that described terminal also comprises by what detect whether this terminal have voltage input to judge to be connected with this terminal.
CNB2007100912604A 2006-12-06 2007-03-28 Charger type distinguishing system, terminal charging method, terminal and charger Active CN100574041C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100912604A CN100574041C (en) 2006-12-06 2007-03-28 Charger type distinguishing system, terminal charging method, terminal and charger

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CNA2006101634989A CN1976163A (en) 2006-12-06 2006-12-06 Charger type distinguishing system, terminal charging method, terminal and charger
CN200610163498.9 2006-12-06
CNB2007100912604A CN100574041C (en) 2006-12-06 2007-03-28 Charger type distinguishing system, terminal charging method, terminal and charger

Publications (2)

Publication Number Publication Date
CN101079550A CN101079550A (en) 2007-11-28
CN100574041C true CN100574041C (en) 2009-12-23

Family

ID=38906845

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100912604A Active CN100574041C (en) 2006-12-06 2007-03-28 Charger type distinguishing system, terminal charging method, terminal and charger

Country Status (1)

Country Link
CN (1) CN100574041C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694889B (en) * 2009-10-20 2015-06-03 中兴通讯股份有限公司 Intelligent charging method and device
CN102403892A (en) * 2010-09-14 2012-04-04 鸿富锦精密工业(深圳)有限公司 Power switching circuit and network camera using same
CN102479110B (en) * 2010-11-23 2014-04-02 联想(北京)有限公司 Electronic equipment and power supply control method
CN103760451B (en) * 2014-01-28 2016-08-17 天地融科技股份有限公司 The interface access module detection method of a kind of intelligent cipher key equipment and equipment
CN104767241B (en) * 2015-03-27 2017-09-29 青岛海信移动通信技术股份有限公司 A kind for the treatment of method and apparatus of terminal charger
CN110970970A (en) * 2015-03-27 2020-04-07 青岛海信移动通信技术股份有限公司 Processing method and device of terminal charger
CN106026228B (en) * 2016-05-26 2019-02-15 维沃移动通信有限公司 A kind of charging USB line, adapter and mobile terminal
CN107768755A (en) * 2016-08-17 2018-03-06 中兴通讯股份有限公司 Charging method and device
CN109494822B (en) * 2017-09-13 2024-05-24 西安中兴新软件有限责任公司 Terminal equipment, charger, charging system and charging method
CN108695935A (en) * 2018-06-06 2018-10-23 Oppo(重庆)智能科技有限公司 The electronic equipment of charging management method, device, medium and application the method
CN116054304B (en) * 2022-07-14 2023-11-21 荣耀终端有限公司 Method, device and tablet computer for determining charging path

Also Published As

Publication number Publication date
CN101079550A (en) 2007-11-28

Similar Documents

Publication Publication Date Title
CN100574041C (en) Charger type distinguishing system, terminal charging method, terminal and charger
CN102694400B (en) Imput output circuit
US10983152B2 (en) USB data pin impedance detection
CN101674366B (en) Mobile terminal USB, or charger inserting identification method and identification device thereof
JP5388484B2 (en) Apparatus and method for detecting power supply
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
CN105182154B (en) A kind of USB detection circuit and method
CN101989749B (en) Charging device and charging method
EP2584471A1 (en) Method and terminal for selecting internal circuit according to USB interface status
CN201550170U (en) USB/charger insert recognition device of mobile terminal
CN103024195B (en) Smart mobile terminal and implementation method of charging of smart mobile terminal
US20140340026A1 (en) Input-output circuit
US20130335010A1 (en) Connector and control chip
US20070075680A1 (en) Charging mode control circuit
TWI700498B (en) High contact resistance detection
CN106340932B (en) Connection detection method and system of mobile terminal based on USB interface charger
CN104978300A (en) Mobile terminal as well as detecting method and device for connection of mobile terminal and external equipment
CN203242716U (en) Battery, battery type detection circuit and mobile terminal
CN101771178A (en) Charging method adopting USB interfaces
CN106026006A (en) USB Type-C interface female head intelligent detection and protection circuit
WO2023134458A1 (en) Electronic device
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN104919388A (en) Charging an electrical device via a data interface
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN112463686A (en) Board card hot-plug device and method

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