The present invention relates to the field of hand held device charger technologies, and in particular, to a hand held device, a USB charger, and a method for a hand held device to identify a USB charger.
With the extensive application of a USB (Universal Serial Bus, universal serial bus) interface, a USB charger becomes the trend for development. A USB charger includes a charging head and a power cable, where the charging head possesses a type A USB interface, and the power cable is a USB transmission line, and the type A USB interface includes four pins including VBUS, D+, D−, and GND, where the VBUS pin is configured as the positive pole of an output direct current power supply, and the GND is configured as the negative pole of the output direct current power supply, and the USB transmission line and the charging head of the USB charger involved in the present invention are an integrated and fixed connection structure.
Currently, a standard USB charger short-circuits the D+ pin and the D− pin inside the charging head at its charging head side and they are not connected to any other part of the charging head. The hand held device side identifies, by determining whether the D+ pin and the D− pin are short-circuited, a standard USB charger.
To make charging of a hand held device safer, it is required to use a USB charger that matches the hand held device to charge the hand held device, and the so-called USB charger that matches the hand held device is in compliance with the standard USB charger rule and the hand held device may only be charged by a USB charger that matches the hand held device. However, as short-circuiting the D+ pin and the D− pin at the charging head side of a USB charger is a connection character possessed by all the standard USB chargers, the hand held device may not identify, only by determining whether the D+ pin and the D− pin are short-circuited, the USB charger that matches the hand held device, thereby failing to ensure the charging safety of the hand held device.
To solve the foregoing technical problem, embodiments of the present invention provide a hand held device, a USB charger, and a method for the hand held device to identify the USB charger, so that the hand held device can exclusively identify its matching charger to ensure charging safety of the hand held device.
Based on one aspect of the present invention, a hand held device is provided, where a charging interface thereof is a universal serial bus USB interface, including 5 pins: VBUS, D+, D−, ID, and GND, where the VBUS pin is a positive pole of an input power supply and the GND is a negative pole of the input power supply, the hand held device further including: an identification information acquisition module and a charging control circuit, where
the identification information acquisition module, connected between the charging control circuit and a non-power pin of the hand held device charging interface, is configured to acquire the identification information of a USB charger, and the non-power pin is the D+ pin, the D− pin, or the ID pin; and
the charging control circuit is configured to receive the identification information of the USB charger provided by the identification information acquisition module and use the identification information to identify a USB charger that matches the hand held device.
Based on another aspect of the present invention, a universal serial bus charger is provided, including a universal serial bus interface at one end connected to a hand held device, the universal serial bus interface including 5 pins: VBUS, D+, D−, ID, and GND, where the VBUS pin is a positive pole of an output power supply and the GND pin is a negative pole of the output power supply, and a non-power pin is connected to an identification information module, configured to provide identification information of USB charger identity information, and the non-power pin is the ID pin, the D+ pin, or the D− pin.
Based on another aspect of the present invention, a method for a hand held device to identify a matching universal serial bus charger is provided, including:
acquiring, by the hand held device, identification information of a USB charger connected to the hand held device; and
comparing, by the hand held device, the received identification information with standard identification information, and if the identification information is the standard identification information, identifying that the USB charger is a matching USB charger of the hand held device; otherwise, identifying that the USB charger is not a matching USB charger of the hand held device.
To illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments recorded in the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
a is a schematic structural diagram of a USB charger charging interface according to an embodiment of the present invention;
b is a schematic structural diagram of a hand held device charging interface that matches the USB charger charging interface shown in
c is a schematic structural diagram of another hand held device charging interface that matches the USB charger charging interface shown in
a is a schematic structural diagram of another USB charger charging interface according to an embodiment of the present invention;
b is a schematic structural diagram of a hand held device charging interface that matches the USB charger charging interface shown in
c is a schematic structural diagram of another hand held device charging interface that matches the USB charger charging interface shown in
a is a schematic structural diagram of another USB charger charging interface according to an embodiment of the present invention;
b is a schematic structural diagram of a hand held device charging interface that matches the USB charger charging interface shown in
c is a schematic structural diagram of another hand held device charging interface that matches the USB charger charging interface shown in
a is a schematic structural diagram of another USB charger charging interface according to an embodiment of the present invention;
b is a schematic structural diagram of a hand held device charging interface that matches the USB charger charging interface shown in
a is a schematic structural diagram of another USB charger charging interface according to an embodiment of the present invention;
b is a schematic structural diagram of a hand held device charging interface that matches the USB charger charging interface shown in
a is a schematic structural diagram of another USB charger charging interface according to an embodiment of the present invention;
b is a schematic structural diagram of a hand held device charging interface that matches the USB charger charging interface shown in
A USB charger charging interface involved in embodiments of the present invention connected to a hand held device and a hand held device charging interface are both type B USB interfaces or Micro USB interfaces, including 5 pins: VBUS, D−, D+, ID, and GND, where the VBUS pin is a positive pole of an output power supply, the GND is a negative pole of the output power supply, and the other 3 pins are not used, and these 3 unused pins are non-power pins.
To make a person skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention are clearly described in the following with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
Please refer to
Specifically, the USB charger charging interface is a type B USB interface or a Micro USB interface, including 5 pins: VBUS, D−, D+, ID, and GND, where the VBUS pin is a positive pole of a power supply, and the GND pin is a negative pole of the power supply, and the 3 pins D−, D+, and ID are called non-power pins, and the identification information module 100 is connected to the ID pin.
It should be noted that,
Correspondingly, please refer to
Specifically, the hand held device charging interface is a type B USB interface or a Micro USB interface, including 5 pins: VBUS, D−, D+, ID, and GND, where the VBUS pin is the positive pole of a power supply, and the GND pin is the negative pole of the power supply, and the 3 pins D−, D+, and ID are called non-power pins, an input end of the identification information acquisition module 200 is connected to the ID pin, and an output end of the identification information acquisition module 200 is connected to the charging control circuit 300.
When the USB charger is inserted into the hand held device charging interface, the identification information acquisition module 200 is electrically connected to the identification information module 100, and the identification information acquisition module 200 acquires the identification information inside the identification information module 100 and identifying the USB charger, and provides it to the charging control circuit 300, and the charging control circuit 300 determines whether the identification information is standard identification information, and if yes, the hand held device identifies the USB charger and uses the USB charger for charging; otherwise, the hand held device cannot identify the USB charger and cannot use the USB charger for charging accordingly, thereby ensuring the charging safety of the hand held device.
It should be noted that,
In actual application, the identification information module in the embodiment corresponding to
(I) When the Identification Information Module is a Detecting Resistance
Please refer to
By detecting the voltage signal on the detecting resistance R, the hand held device identifies whether the USB charger is a matching USB charger of the hand held device.
When the identification information module inside the USB charger is a detecting resistance, two implementation manners are available for the identification information acquisition module inside the hand held device. One is implementation through an active analog to digital converter, and the other is implementation through a passive analog to digital converter and a direct current power supply.
The following respectively introduces the embodiments of the hand held device corresponding to the two implementation manners:
(1) The Identification Information Acquisition Module is an Active Analog to Digital Converter.
Please refer to
As shown in this figure, an input end of the active analog to digital converter 210 is connected to the ID pin of the hand held device charging interface, and an output end of the active analog to digital converter 210 is connected to a charging control circuit 300 inside the hand held device, and the active analog to digital converter 210 is capable of providing a power supply for a detecting resistance and is capable of acquiring the voltage drop on the detecting resistance R.
When the USB charger shown in
The output current of the active analog to digital converter 210 is fixed, and the resistance value of the detecting resistance R is fixed. The resistance value error of the detecting resistance is considered and a standard voltage range on the detecting resistance R is obtained through calculation according to the formula U=IR.
The charging control circuit 300 compares the acquired voltage drop on the detecting resistance R with a standard voltage range, and when the voltage drop on the detecting resistance R is within the standard voltage range, an identification signal is output to connect the charging loop of the hand held device and the USB charger, and the hand held device is capable of using the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device.
It should be noted that, the resistance values of detecting resistances connected in series in USB chargers of the same model may be the same, and the output current of active analog to digital converters 210 inside the hand held devices of the same model may be set to a same value. In this case, the hand held devices of the same model may identify and use the corresponding USB chargers of the same model, so that a certain hand held device may use one type of USB chargers corresponding to the hand held device model for charging. The following uses a specific application example to describe the identification process of a hand held device and a USB charger:
Assume that the output current I of the active analog to digital converter 210 added inside the hand held device is 10 uA, and the resistance value of the detecting resistance R connected in series between the ID pin and the GND pin inside the USB charger is 50KΩ±5%, a standard voltage range may be obtained through calculation: U=IR=10 uA×(50KΩ±5%)=0.5±0.025V.
After the USB charger is inserted into the hand held device, the output current I of the active analog to digital converter 210 flows through the detecting resistance R and generates a voltage drop on the detecting resistance R. Then, the active analog to digital converter 210 acquires the voltage drop UR on the detecting resistance R, converts the voltage signal UR to a digital signal and provides it to the charging control circuit 300.
When the charging control circuit 300 detects that the voltage UR of the detecting resistance R is within a range of [0.475V, 0.525V], the identification signal is output to connect the charging loop of the hand held device and the USB charger so that the hand held device uses the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device.
(2) The Identification Information Acquisition Module is a Passive Analog to Digital Converter and a Direct Current Power Supply.
Please refer to
Specifically, an input end of the passive analog to digital converter 220 is connected to the ID pin of the hand held device charging interface, and an output end of the passive analog to digital converter 220 is connected to the charging control circuit 300 inside the hand held device, and the direct current power supply VDD is connected to the ID pin of the hand held device charging interface through a pull-up resistance R1.
After the USB charger is inserted into the hand held device charging interface, the direct current power supply VDD, the pull-up resistance R1, and the detecting resistance R form a closed loop. Then, the current that flows through the detecting resistance R generates a voltage drop on the detecting resistance R, and the passive analog to digital converter 220 acquires the voltage drop on the detecting resistance R, converts it to a digital signal and provides it to the charging control circuit 300.
The charging control circuit 300 compares the acquired voltage drop on the detecting resistance R with the standard voltage range, and when the voltage drop on the detecting resistance R is within the standard voltage range, an identification signal is output to connect the charging loop of the hand held device and the USB charger, so that the hand held device uses the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device.
The standard voltage range is obtained through calculation according to the figure of the direct current power supply VDD, the resistance value of the pull-up resistance R1, and the resistance value of the detecting resistance R, and specifically, the standard voltage range is obtained through calculation according to the formula U=R×VDD/(R+R1) and by considering the error of the resistance.
The foregoing is the specific embodiment of the corresponding USB charger when the detecting resistance R is connected between the ID pin and the GND pin, and the following introduces, in detail, the specific embodiment of the USB charger when the detecting resistance R is connected to other pins.
When the detecting resistance R is connected in series to the D+ pin.
Please refer to
(1) Identification Information is an Active Analog to Digital Converter.
Refer to
After the USB charger is inserted into the hand held device charging interface, the power supply inside the active analog to digital converter 210 forms a closed loop with the detecting resistance R, and then, the current that flows through the detecting resistance R generates a voltage drop on the detecting resistance R, and the active analog to digital converter 210 acquires the voltage drop on the detecting resistance R, converts a voltage signal on the detecting resistance R to a digital signal and provides it to the charging control circuit 300.
The charging control circuit 300 compares the acquired voltage drop on the detecting resistance R with the standard voltage range, and when the charging control circuit 300 detects that the voltage drop on the detecting resistance R is within the standard voltage range, an identification signal is output to connect the charging loop of the hand held device and the USB charger, so that the hand held device uses the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device.
The output current of the active analog to digital converter 210 is fixed, and the resistance value of the detecting resistance R is fixed. The resistance value error of the detecting resistance is considered and the standard voltage range on the detecting resistance R is obtained through calculation according to the formula U=IR.
(2) The Identification Information Acquisition Module is a Passive Analog to Digital Converter and a Direct Current Power Supply.
Please refer to
Specifically, an input end of the passive analog to digital converter 220 is connected to the D+ pin inside the hand held device charging interface, and an output end of the passive analog to digital converter 220 is connected to the charging control circuit 300 inside the hand held device, and the direct current power supply VDD is connected to the D+ pin of the hand held device charging interface through a pull-up resistance R1.
After the USB charger is inserted into the hand held device charging interface, the direct current power supply VDD, the pull-up resistance R1, and the detecting resistance R form a closed loop. Then, the current that flows through the detecting resistance R generates a voltage drop on the detecting resistance R, and the passive analog to digital converter 220 acquires the voltage drop on the detecting resistance R, converts the voltage drop to a digital signal and provides it to the charging control circuit 300.
The charging control circuit 300 compares the acquired voltage drop on the detecting resistance R with the standard voltage range, and when the voltage drop on the detecting resistance R is within the standard voltage range, an identification signal is output to connect the charging loop of the hand held device and the USB charger, so that the hand held device uses the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device.
The figure of the direct current power supply VDD, the resistance value of the pull-up resistance R1, and the resistance value of the detecting resistance R are fixed. The error of the resistance is considered and the standard voltage range on the detecting resistance R is obtained through calculation according to the formula U=IR.
When the detecting resistance R is connected to the D− pin.
Please refer to
(1) The Identification Information Acquisition Module is an Active Analog to Digital Converter.
Refer to
In specific application, after the USB charger is inserted into the hand held device charging interface, the power supply inside the active analog to digital converter forms a closed loop with the detecting resistance R, and then, the current that flows through the detecting resistance R generates a voltage drop on the detecting resistance R, and the active analog to digital converter acquires the voltage drop on the detecting resistance R, converts it to a digital signal and provides it to the charging control circuit 300.
The charging control circuit 300 compares the acquired voltage drop on the detecting resistance R with a standard voltage range, and when the voltage drop on the detecting resistance R is within the standard voltage range, the hand held device is capable of identifying the USB charger and using the USB charger for charging; otherwise, the USB charger cannot be identified and the USB charger cannot be used for charging either, thereby ensuring the charging safety of the hand held device.
The output current of the active analog to digital converter 210 is fixed, and the resistance value of the detecting resistance R is fixed. The resistance value error of the detecting resistance is considered and the standard voltage range on the detecting resistance R is obtained through calculation according to the formula U=IR.
(2) The Identification Information Acquisition Module is a Passive Analog to Digital Converter and a Direct Current Power Supply.
Refer to
Specifically, an input end of the passive analog to digital converter 220 is connected to the D− pin inside the hand held device charging interface, and an output end of the passive analog to digital converter 220 is connected to the charging control circuit 300 inside the hand held device, and the direct current power supply VDD is connected to the D− pin of the hand held device charging interface through a pull-up resistance R1.
After the USB charger is inserted into the hand held device charging interface, the direct current power supply VDD, the pull-up resistance R1, and the detecting resistance R connected between the D− pin and the GND pin inside the USB charger form a closed loop. Then, the current that flows through the detecting resistance R generates a voltage drop on the detecting resistance R, and the passive analog to digital converter 220 acquires the voltage drop on the detecting resistance R, converts it to a digital signal and provides it to the charging control circuit 300.
The charging control circuit 300 compares the acquired voltage drop on the detecting resistance R with the standard voltage range, and when the voltage drop on the detecting resistance R is within the standard voltage range, an identification signal is output to connect the charging loop of the hand held device and the USB charger, so that the hand held device uses the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device.
The figure of the direct current power supply VDD, the resistance value of the pull-up resistance R1, and the resistance value of the detecting resistance R are fixed. The error of the resistance is considered and the standard voltage range on the detecting resistance R is obtained through calculation according to the formula U=IR. The foregoing is an exemplary embodiment when an identification information module is implemented through a detecting resistance R, and the following introduces a specific embodiment when the identification information module is implemented through a memory.
(II) the Identification Information Module is an Identification Information Memory.
When the identification information module is the identification information memory, the identification information memory may be connected to different non-power pins of the USB charger, which will be introduced in the following one by one:
(1) When the Identification Information Memory is Connected to the ID Pin.
Refer to
Specifically, the identification information memory 110 is connected to the ID pin, and is configured to store the identification information that identifies identity information of the USB charger, where the identification information may be an 8-bit binary code. The identification information memory may be an EPROM (Erasable Programmable ROM, erasable programmable ROM), and certainly it may be other read-write memories.
Correspondingly, refer to
Specifically, the serial data line is connected between the ID pin inside the hand held device and a charging control circuit 300. Specifically, one end of the serial data line is connected to the ID pin inside the hand held device, and the other end is connected to the charging control circuit 300, and is configured to transmit the identification information inside the USB charger into the charging control circuit 300.
After the USB charger is inserted into the hand held device charging interface, the charging control circuit 300 of the hand held device acquires the identification information inside the USB charger through the serial data line and compares the identification information with standard identification information, and if the identification information acquired from the USB charger is the same as the standard identification information, an identification signal is output to connect the charging loop of the hand held device and the USB charger, so that the hand held device uses the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device.
The identification code stored in the USB charger may be a code that is set at discretion, and specifically, it may be an 8-bit binary code, and at the same time, the code is stored inside the hand held device. Besides, the identification information of the USB chargers that matches the hand held devices of the same model may be the same. In this case, the hand held devices of the same model may use the corresponding USB chargers of the same model.
(2) When the Identification Information Memory is Connected to the D+ Pin
Please refer to
Correspondingly, please refer to
After the USB charger is inserted into the hand held device charging interface, the charging control circuit 300 of the hand held device acquires the identification information inside the USB charger through the serial data line and compares the identification information with standard identification information, and if the identification information acquired from the USB charger is the same as the standard identification information, an identification signal is output to connect the charging loop of the hand held device and the USB charger, so that the hand held device uses the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device.
(3) When the Identification Information Memory is Connected to the D− Pin
Please refer to
Correspondingly, refer to
After the USB charger is inserted into the hand held device charging interface, the charging control circuit 300 of the hand held device acquires the identification information inside the USB charger through the serial data line and compares the identification information with standard identification information, and if the identification information acquired from the USB charger is the same as the standard identification information, an identification signal is output to connect the charging loop of the hand held device and the USB charger, so that the hand held device uses the USB charger for charging; otherwise, the charging control circuit 300 outputs that the signal cannot be identified, and the charging loop of the hand held device and the USB charger cannot form a closed loop, that is, the hand held device cannot use the USB charger for charging, thereby ensuring the charging safety of the hand held device. It should be noted that, in the embodiments corresponding to
Referring to
S101: The hand held device acquires identification information inside the USB charger.
Specifically, the identification information may be voltage information on a detecting resistance connected in series inside a USB charger charging interface, and may also be code information.
S102: Determine whether the identification information is standard identification information. If yes, the hand held device is capable of identifying the USB charger and using the USB charger for charging; otherwise, the hand held device is not capable of identifying the USB charger.
In actual application, the identification information may be voltage information, and may also be identification code information, and the following introduces the foregoing two types of identification information in detail, respectively:
1. When the Identification Information is Voltage Information
Please refer to
S110: A hand held device acquires voltage information on the detecting resistance inside the USB charger connected to the hand held device.
Specifically, the detecting resistance may be connected in series between any non-power pin and a GND pin of the USB charger; an active analog to digital converter is, or a passive analog to digital converter and a direct current power supply are connected to the non-power pin of the hand held device charging interface, which is capable of providing power supply for the detecting resistance and acquiring a voltage drop on the detecting resistance R, and then the voltage drop signal is converted to a digital signal, which is provided to the charging control circuit inside the hand held device.
S120: The hand held device compares the received voltage information on the detecting resistance with a standard voltage range, and if the voltage information is within the standard voltage range, the hand held device is capable of using the USB charger for charging; otherwise, it is not capable of using the USB charger for charging.
The charging control circuit inside the hand held device compares the acquired voltage information on the detecting resistance R with the standard voltage range, and if the voltage information is within the standard voltage range, the charging control circuit is capable of using the USB charger for charging; otherwise, the charging control circuit is not capable of using the USB charger for charging. The standard voltage range is obtained through calculation through Ohm's law U=IR, which is not described herein again.
2. When the Identification Information is an Identification Code
Please refer to
S210: The hand held device acquires an identification code inside the USB charger connected to the hand held device.
Specifically, the identification code inside the USB charger may be an 8-bit binary code, and is configured to exclusively mark an identity of the USB charger.
The hand held device acquires the identification code through the internal serial data line and provides it to the charging control circuit inside the hand held device.
S220: The hand held device compares the received identification code with a standard code, and if the identification code is the same as the standard code, the hand held device is capable of using the USB charger for charging; otherwise, it is not capable of using the USB charger for charging.
The standard code is also an 8-bit binary code. During hand held device production, the identification code inside the USB charger that matches the hand held device is stored in the charging control circuit inside the hand held device to ensure that the standard code inside the hand held device is the same as the identification code inside the corresponding charger, thereby ensuring that the hand held device can only use its matching USB charger for charging.
It should be noted that, the hand held device mentioned in all embodiments of the present invention may be a cell phone.
The foregoing descriptions are merely specific implementation manners of the present invention. It should be noted that, a person of ordinary skill in the art may further make several improvements and modifications without departing from the principle of the present invention, and the improvements and modifications should also be construed as falling within the protection scope of the present invention.
This application is a continuation of International Patent Application No. PCT/CN2011/078722, filed on Aug. 22, 2011, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2011/078722 | Aug 2011 | US |
Child | 14133223 | US |