[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101702146B - The method of distinguishing charger and data line of universal serial bus and unit - Google Patents

The method of distinguishing charger and data line of universal serial bus and unit Download PDF

Info

Publication number
CN101702146B
CN101702146B CN200910237033.7A CN200910237033A CN101702146B CN 101702146 B CN101702146 B CN 101702146B CN 200910237033 A CN200910237033 A CN 200910237033A CN 101702146 B CN101702146 B CN 101702146B
Authority
CN
China
Prior art keywords
charger
usb interface
resistance
usb
data line
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
CN200910237033.7A
Other languages
Chinese (zh)
Other versions
CN101702146A (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.)
Beijing Zhongxingtianshi Technology Co ltd
Original Assignee
Vimicro Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vimicro Corp filed Critical Vimicro Corp
Priority to CN200910237033.7A priority Critical patent/CN101702146B/en
Publication of CN101702146A publication Critical patent/CN101702146A/en
Application granted granted Critical
Publication of CN101702146B publication Critical patent/CN101702146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses method and the unit of distinguishing charger and data line of universal serial bus.The interface that mobile terminal is connected with charger and the interface be connected with USB data line are all USB interface, by D+ and the D-pin short circuit of the USB interface of charger.Method comprises: mobile terminal detects that USB interface has device to insert, then detect the voltage on the D-pin of USB interface, if high level, then what determine insertion is charger, otherwise what determine insertion is USB data line.Invention increases mobile terminal, to distinguish what insert USB interface be the accuracy of charger or USB data line.

Description

The method of distinguishing charger and data line of universal serial bus and unit
Technical field
The present invention relates to mobile communication interface technical field, be specifically related to method and the unit of distinguishing charger and data line of universal serial bus.
Background technology
The Ministry of Information Industry has promulgated new communication industry standard: YD/T1591-2006 " GSM CDMA charger and interfacing require and method of testing " in 2006, propose specific requirement to the standardization of Mobile terminal charger technical indicator and interface.According to this requirement, the interface that mobile terminal is connected with charger and the interface be connected with USB (universal serial bus) (USB, UniversalSerialBUS) data line can not separate again and designs, and both must unify.At present, interface mobile terminal is connected with USB data line with charger is all USB interface.
The USB interface that charger is connected with mobile terminal has 4 pins, as follows respectively:
V charge: charging pin, for connecing the Vin pin of the USB interface of mobile terminal;
D+: correction data pin, for connecing the D+ pin of the USB interface of mobile terminal;
D-: negative data pin, for connecing the D-pin of the USB interface of mobile terminal;
GND: ground pin.
Same with the USB interface that mobile terminal is connected in USB data line have 4 pins, as follows respectively:
V bus: bus pin, for meeting the V of the USB interface of mobile terminal inpin;
D+: correction data pin, for connecing the D+ pin of the USB interface of mobile terminal;
D-: negative data pin, for connecing the D-pin of the USB interface of mobile terminal;
GND: ground pin.
Electric current required for charging is transmitted from data is different, the former is generally 1 peace, and the latter is generally 0.5 peace, therefore, what mobile terminal must can distinguish insertion USB interface is charger or USB data line, to select different access resistance to obtain different electric currents.
Fig. 1 is the structural drawing of existing mobile terminal, wherein, and V infor the input pin of USB interface, for meeting the V of charger chargeor the V of USB data line bus; R is adjustable resistance, wherein, and the corresponding charger of the first resistance, the corresponding USB data line of the second resistance.
Work as V inwhen becoming high level from low level, mobile terminal defines device and inserts USB interface, and what insert if determine is charger, then R is adjusted to the first resistance, start charging; What insert if determine is USB data line, then R is adjusted to the second resistance, start to transmit data.
At present, what the mode that some manufacturers use USB to shake hands judged insertion USB interface is charger or USB data line, and detailed process is: V detected inbecome high level, then send USB handshake information by USB interface to insertion person, if receive feedback message, then what think insertion is USB data line; Otherwise what think insertion is charger.The shortcoming of this method is: as the personal computer (PC be connected with mobile terminal by USB data line, when PersonalComputer) crashing, if what insert is USB data line, then do not feed back equally, what now mobile terminal can think insertion by mistake is charger, thus select the resistance of mistake, cause producing big current, thus the USB interface of PC can be burnt.
Summary of the invention
The invention provides method and the unit of a kind of distinguishing charger and USB data line, with when charger and USB data line are all by USB interface access mobile terminal, improve that to distinguish what insert USB interface be the accuracy of charger or USB data line.
Technical scheme of the present invention is achieved in that
A method for distinguishing charger and USB data line, the interface that mobile terminal is connected with charger and the interface be connected with USB data line are all USB interface, and by D+ and the D-pin short circuit of the USB interface of charger, the method comprises:
Mobile terminal detects that USB interface has device to insert, then detect the voltage on the D-pin of USB interface, if high level, then what determine insertion is charger, otherwise what determine insertion is USB data line.
Described method comprises further:
The D-pin of the USB interface of mobile terminal connects a resistance, this resistance other end ground connection.
The resistance of described resistance is: 10k ~ 100k ohm.
When determine to insert for charger time, described method comprises further: adjustable resistance is adjusted to the first resistance corresponding to charging by mobile terminal, starts charging;
When determine to insert for USB data line time, described method comprises further: adjustable resistance is adjusted to the second resistance corresponding to data transmission by mobile terminal, starts to transmit data.
A unit for distinguishing charger and USB data line, this unit is connected with the USB interface of mobile terminal, comprising:
USB interface inserts detection module, detects that USB interface has device to insert, and sends trigger pip to voltage detection module;
Voltage detection module, receives trigger pip, detects the voltage on the D-pin of USB interface, if high level, then what determine insertion is charger, otherwise what determine insertion is USB data line.
Described voltage detection module determine to insert for after charger, sending charging instruction; Determine to insert for after USB data line, send data transmission instruction; And,
Described device comprises further:
Resistance adjusting module, receives charging instruction, then adjustable resistance is adjusted to the first resistance that charging is corresponding; Receive data transmission instruction, then adjustable resistance is adjusted to the second resistance that data transmission is corresponding.
Described voltage detection module is positioned at the baseband chip of mobile terminal.
Described voltage detection module exports GPIO pin by the universal input of baseband chip and is connected with the D-pin of the USB interface of mobile terminal.
The D-pin of described USB interface is connected to a resistance, this resistance other end ground connection.
Compared with prior art, in the present invention, by D+ and the D-pin short circuit of the USB interface of charger, when mobile terminal detects that USB interface has device to insert, then detect the voltage on the D-pin of USB interface, if high level, then what determine insertion is charger, otherwise what determine insertion is USB data line.Invention increases and distinguishing what insert USB interface is the accuracy of charger or USB data line.
Accompanying drawing explanation
Fig. 1 is the structural drawing of existing mobile terminal;
The structural representation of the mobile terminal of the distinguishing charger that Fig. 2 provides for the embodiment of the present invention and USB data line;
The method flow diagram of the mobile terminal distinguishing charger that Fig. 3 provides for the embodiment of the present invention and USB data line.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
The structural representation of the mobile terminal of the distinguishing charger that Fig. 2 provides for the embodiment of the present invention and USB data line, as shown in Figure 2:
The USB interface of mobile terminal has 4 pins, wherein:
V in: input pin, for the V with charger chargeor the V of USB data line busbe connected;
D+: correction data pin, for being connected with the D+ of charger or the D+ of USB data line;
D-: negative data pin, for being connected with the D-of charger or the D-of USB data line;
GND: ground pin.
In the embodiment of the present invention, connected by D+ and the D-of charger pin, like this, after the D+ of charger meets power vd D, the voltage of D-and D+ pin is identical, is high level.
Meanwhile, as shown in Figure 2, in the embodiment of the present invention, mobile terminal comprises: USB interface inserts detection module 20 and voltage detection module 21, and USB interface inserts the V of detection module 20 and USB interface inpin is connected, and voltage detection module 21 is connected with the D-pin of USB interface, wherein:
USB interface inserts detection module 20: V USB interface being detected inwhen becoming high level from low level, define device and insert USB interface, then send a trigger pip to voltage detection module 21.
Voltage detection module 21: receive the trigger pip that USB interface insertion detection module 20 is sent, then detect the voltage on the D-pin of USB interface, if this voltage is high level, then what determine insertion USB interface is charger; Otherwise what determine insertion USB interface is USB data line.
Voltage detection module 21 can be positioned at the baseband chip of mobile terminal.Now, voltage detection module 21 exports (GPIO, GeneralPurposeInputOutput) pin by the universal input of baseband chip and is connected with the D-pin of USB interface.Wherein, if baseband chip is inner without feedback resistance, then can on D-pin a resistance R1 in parallel, its resistance is 10k ~ 100k ohm, to play dividing potential drop effect.
Voltage detection module 21 determine to insert USB interface for after charger, charging instruction can be sent to the resistance adjusting module that mobile terminal is intrinsic; Determine to insert USB interface for after USB data line, data transmission instruction can be sent to resistance adjusting module.Adjustable resistance is adjusted to the first resistance that charging is corresponding after receiving charging instruction by resistance adjusting module; After receiving data transmission instruction, adjustable resistance is adjusted to the second resistance that data transmission is corresponding.
Wherein, USB interface inserts detection module 20 and voltage detection module 21 can form an independently unit, and this unit can be positioned at the baseband chip of mobile terminal.
The method flow diagram of the mobile terminal distinguishing charger that Fig. 3 provides for the embodiment of the present invention and USB data line, as shown in Figure 3, its concrete steps are as follows:
Step 301: by D+ and the D-pin short circuit of charger.
Step 302: the baseband chip of mobile terminal detects that the Vin of USB interface becomes high level from low level, then define device and insert USB interface, detect the voltage on the D-pin of USB interface.
Step 303: baseband chip judges that the voltage of D-pin is high level or low level, if the former, then performs step 304; Otherwise, step 305.
Step 304: what baseband chip determined insertion USB interface is charger, adjustable resistance R is adjusted to the first resistance, starts charging.
Step 305: what baseband chip determined insertion USB interface is USB data line, R is adjusted to the second resistance, starts to transmit data.
As can be seen from flow process shown in Fig. 3, when USB data line inserts the USB interface of mobile terminal, if PC crashes, then the D-pin of USB data line be still low level, thus mobile terminal still can think insertion is USB data line, can not produce erroneous judgement situation.
The foregoing is only process of the present invention and embodiment of the method, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the method for a distinguishing charger and general-purpose serial bus USB data line, the interface that mobile terminal is connected with charger and the interface be connected with USB data line are all USB interface, it is characterized in that, by D+ and the D-pin short circuit of the USB interface of charger, the method comprises:
Mobile terminal detects that USB interface has device to insert, then detect the voltage on the D-pin of USB interface, if high level, then what determine insertion is charger, otherwise what determine insertion is USB data line.
2. the method for claim 1, is characterized in that, described method comprises further:
The D-pin of the USB interface of mobile terminal connects a resistance, this resistance other end ground connection.
3. method as claimed in claim 2, it is characterized in that, the resistance of described resistance is: 10k ~ 100k ohm.
4. the method as described in as arbitrary in claims 1 to 3, is characterized in that, when determine to insert for charger time, described method comprises further: adjustable resistance is adjusted to the first resistance corresponding to charging by mobile terminal, starts charging;
When determine to insert for USB data line time, described method comprises further: adjustable resistance is adjusted to the second resistance corresponding to data transmission by mobile terminal, starts to transmit data.
5. a unit for distinguishing charger and USB data line, this unit is connected with the USB interface of mobile terminal, and D+ and the D-pin short circuit of the USB interface of described charger, it is characterized in that, this unit comprises:
USB interface inserts detection module, detects that USB interface has device to insert, and sends trigger pip to voltage detection module;
Voltage detection module, receives trigger pip, detects the voltage on the D-pin of USB interface, if high level, then what determine insertion is charger, otherwise what determine insertion is USB data line.
6. unit as claimed in claim 5, is characterized in that, described voltage detection module determine to insert for after charger, sending charging instruction; Determine to insert for after USB data line, send data transmission instruction; And,
Described unit comprises further:
Resistance adjusting module, receives charging instruction, then adjustable resistance is adjusted to the first resistance that charging is corresponding; Receive data transmission instruction, then adjustable resistance is adjusted to the second resistance that data transmission is corresponding.
7. the unit as described in claim 5 or 6, is characterized in that, described voltage detection module is positioned at the baseband chip of mobile terminal.
8. unit as claimed in claim 7, is characterized in that, described voltage detection module exports GPIO pin by the universal input of baseband chip and is connected with the D-pin of the USB interface of mobile terminal.
9. the unit as described in claim 5 or 6, is characterized in that, the D-pin of described USB interface is connected to a resistance, this resistance other end ground connection.
CN200910237033.7A 2009-11-02 2009-11-02 The method of distinguishing charger and data line of universal serial bus and unit Active CN101702146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910237033.7A CN101702146B (en) 2009-11-02 2009-11-02 The method of distinguishing charger and data line of universal serial bus and unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910237033.7A CN101702146B (en) 2009-11-02 2009-11-02 The method of distinguishing charger and data line of universal serial bus and unit

Publications (2)

Publication Number Publication Date
CN101702146A CN101702146A (en) 2010-05-05
CN101702146B true CN101702146B (en) 2016-01-20

Family

ID=42157062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910237033.7A Active CN101702146B (en) 2009-11-02 2009-11-02 The method of distinguishing charger and data line of universal serial bus and unit

Country Status (1)

Country Link
CN (1) CN101702146B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087639B (en) 2010-11-30 2015-05-20 中兴通讯股份有限公司 Method for starting USB (Universal Serial Bus) state machine as well as terminal
CN102255153A (en) * 2011-03-25 2011-11-23 苏州佳世达电通有限公司 Universal serial bus connector and charging adapter with same
CN103064489B (en) 2011-10-21 2016-03-30 华为终端有限公司 A kind of method and terminal of carrying out internal circuit selection according to USB interface state
CN102799554A (en) * 2012-07-23 2012-11-28 天津三星电子有限公司 Data transmission method, apparatus thereof and display terminal applied thereto
CN103760451B (en) * 2014-01-28 2016-08-17 天地融科技股份有限公司 The interface access module detection method of a kind of intelligent cipher key equipment and equipment
CN104101808B (en) * 2014-07-23 2017-08-08 Tcl通讯(宁波)有限公司 Charger detection system and its detection method and mobile terminal
CN104411003A (en) * 2014-11-06 2015-03-11 深圳市广和通无线通信软件有限公司 Dormancy wakeup control method and system of wireless communication equipment
CN104408015B (en) * 2014-11-06 2017-11-03 深圳市广和通无线通信软件有限公司 The USB mode adaptive approach of communication module
CN104539318B (en) * 2014-12-11 2017-06-06 飞天诚信科技股份有限公司 Bluetooth switching device and its method of work
CN105071489B (en) * 2015-08-25 2018-03-02 广东欧珀移动通信有限公司 A kind of charging method and device of the terminal with data exchanging function
CN106528472A (en) * 2015-09-10 2017-03-22 深圳市中兴微电子技术有限公司 Efficient utilization method for USB (Universal Serial Bus), and USB
CN105573879B (en) * 2016-01-04 2019-06-25 浙江德景电子科技有限公司 A kind of method and apparatus of intelligent terminal USB, charger interface separation detection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502949B2 (en) * 2003-08-01 2009-03-10 Pn Telecom Co., Ltd. Data cable for automatically detecting power source with charger integrated circuit
CN101383627A (en) * 2007-09-04 2009-03-11 大唐移动通信设备有限公司 Device and method for terminal charger charging, USB charging and data communication
CN101398459A (en) * 2008-10-28 2009-04-01 深圳华为通信技术有限公司 Method and device for identifying charger type

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502949B2 (en) * 2003-08-01 2009-03-10 Pn Telecom Co., Ltd. Data cable for automatically detecting power source with charger integrated circuit
CN101383627A (en) * 2007-09-04 2009-03-11 大唐移动通信设备有限公司 Device and method for terminal charger charging, USB charging and data communication
CN101398459A (en) * 2008-10-28 2009-04-01 深圳华为通信技术有限公司 Method and device for identifying charger type

Also Published As

Publication number Publication date
CN101702146A (en) 2010-05-05

Similar Documents

Publication Publication Date Title
CN101702146B (en) The method of distinguishing charger and data line of universal serial bus and unit
CN102231543B (en) System capable of identifying charging capability of charger and charging method thereof
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
CN103064489B (en) A kind of method and terminal of carrying out internal circuit selection according to USB interface state
US8683087B2 (en) Mobile device auto detection apparatus and method
TWI398759B (en) Power supply device, portable electronic apparatus and related method for determining types of a power supply device
EP2480043A1 (en) Method and device for identifying universal serial bus (usb) insertion or charger insertion of mobile terminal
US8796988B2 (en) Input-output circuit
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
CN101102119B (en) A charging detection circuit of appliance device and charging detection method
CN101383627B (en) Device and method for terminal charger charging, USB charging and data communication
CN102393837B (en) USB charger recognition device and method
US9223727B2 (en) Input-output circuit
US20120256596A1 (en) Input-output circuit
CN103208822A (en) Universal serial bus (USB) charging control circuit
CN101901201A (en) Method and device for realizing USB OTG function on electronic equipment
CN101267120B (en) Method for identifying power device and its circuit
CN103019991A (en) Interface system, switching method, USB key and UART terminal
CN102736995B (en) Electronic equipment and control method for USB communication module of electronics equipment
CN101179199A (en) Terminal and charging method thereof
CN102156681A (en) Mobile terminal and USB interface connection control device thereof
CN101989751B (en) Power supply device, portable electronic device and related judgment method
CN201323446Y (en) Static-free handheld mobile device with soft USB function
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN106797414A (en) The leakage current detection circuit and terminal of a kind of terminal

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
TR01 Transfer of patent right

Effective date of registration: 20201204

Address after: No.602, 6 / F, shining building, 35 Xueyuan Road, Haidian District, Beijing 100191

Patentee after: BEIJING ZHONGXINGTIANSHI TECHNOLOGY Co.,Ltd.

Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee before: Vimicro Corp.

TR01 Transfer of patent right