CN101383627A - Device and method for terminal charger charging, USB charging and data communication - Google Patents

Device and method for terminal charger charging, USB charging and data communication Download PDF

Info

Publication number
CN101383627A
CN101383627A CNA2007101213467A CN200710121346A CN101383627A CN 101383627 A CN101383627 A CN 101383627A CN A2007101213467 A CNA2007101213467 A CN A2007101213467A CN 200710121346 A CN200710121346 A CN 200710121346A CN 101383627 A CN101383627 A CN 101383627A
Authority
CN
China
Prior art keywords
interface
usb
interruption
charger
switch
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.)
Granted
Application number
CNA2007101213467A
Other languages
Chinese (zh)
Other versions
CN101383627B (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.)
Leadcore Technology Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN2007101213467A priority Critical patent/CN101383627B/en
Publication of CN101383627A publication Critical patent/CN101383627A/en
Application granted granted Critical
Publication of CN101383627B publication Critical patent/CN101383627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a method for terminal charger charge, USB charge and data communication. The method includes the steps that a processor detects the triggering condition that the USB insertion interrupts and the charger insertion interrupts, if both interrupts are triggered, a charger is confirmed to be inserted in the terminal, and the charger charge process starts; if the condition that only the USB insertion interrupts is triggered, the condition that a USB data wire is inserted in the terminal is confirmed, the USB charge process starts, and USB data transmission is carried out. Meanwhile, the invention discloses a device for terminal charger charge, USB charge and data communication, which comprises a processor, a USB interface module and a selecting module, wherein the selecting module comprises a selecting end and two single input and double output switches. The invention provides users with a solution proposal that has the advantages of simple circuit structure, small resource occupation and great improvements of signal quality and data transmission reliability and integrates the functions of terminal charger charge, USB charge and data communication into a whole.

Description

The device and method of terminal charger charging, USB charging and data communication
Technical field
The present invention relates generally to the communication electronic applications, relates in particular to the device and method of a kind of terminal charger charging, USB charging and data communication.
Background technology
Country had issued " mobile phone charger and interfacing require and method of testing " in 2007, the cable and the interface between the plug of clear and definite prescribed terminal charger need adopt USB interface, and with the pin D+ and the D-short circuit of USB interface inside in the charger, and stube cable between charger and the terminal and interface are designed voluntarily by the designer.
Fig. 1 is the schematic diagram of terminal charger 101USB interface under the existing standard, and among Fig. 1, two pins in terminal charger 101 left sides are power input, and four pins in the right are respectively V Bus, D+, D-and GND, wherein pin D+ is connected by inner lead with D-and by short circuit.
The scheme that existing employing USB interface is charged to terminal is to utilize to comprise general input and output (GPIO mostly, General Purpose Input Output) circuit of interface, logic controller or triode is realized detection and the differentiation to charger and usb data line, and is aided with corresponding method and realizes terminal is carried out charger charging or USB charging.
Fig. 2 is circuit theory diagrams of realizing terminal USB charging in the prior art by the GPIO interface, comprises among the figure:
Terminal inner charging module 201, charging inlet 202, outer computer 203, external charger 204 and rechargeable battery 205.Terminal inner charging module 201 comprises controller logic module 2011, and controller logic module 2011 comprises pin GPIO1, GPIO2, CHGDET, VCHG etc.
In terminal inner charging module 201, resistance R 6 is the pull-up resistor on the data wire of pin USB_DP place, the charge mode testing circuit comprises resistance R 2, R3, R4 and R5, wherein resistance R 2, R4 are the data wire formation dividing potential drop at USB_DM pin place, be input to pin GPIO1 through after the dividing potential drop, and resistance R 3, R5 to be the data wire at pin USB_DP place constitute dividing potential drop, be input to pin GPIO2 through after the dividing potential drop.Controller logic module 2011 is used for identification and carries out the full speed usb data communication with outer computer 203.
The entire circuit design principle is: controller logic module 2011 is according to the operating state of the voltage signal condition judgement terminal on pin GPIO1 and the GPIO2, thereby realization is charged and data communication to terminal by USB interface.
When charging inlet 202 inserts the usb data line interface of external charger 204 and outer computer 203 simultaneously, the pin USB_DP of usb data line interface and USB_DM are by short circuit, it all is high that the while circuit makes pin GPIO1 and GPIO2 go up voltage, so controller logic module 2011 judges that current states are charged state;
When charging inlet 202 only inserted the usb data line interface of outer computer 203, the pin USB_DP of usb data line interface and USB_DM be by short circuit, this moment circuit to make the voltage on the pin GPIO1 be low for the voltage on high, the pin GPIO2.Therefore controller logic module 2011 judges that current state is the data communication state.
At present because terminal charger standard YD/T1591-2006 the release time of " mobile phone charger and interfacing require and method of testing " also not long, that is that all right is ripe for existing technical scheme, has a lot of deficiencies, specific as follows:
Under the little situation of the volume of transmitted data of present terminal and external equipment, most of manufacturer terminals can only provide the USB1.1 interface used for terminal and PERCOM peripheral communication, the message transmission rate of USB1.1 interface is up to 12Mbps, carry out transfer of data in this speed, requirement to signal quality is not very harsh, yet along with the multimedia function of terminal and the increase day by day of data processing function, raising day by day to the requirement of data throughput, USB interface on the terminal must turn to supports the USB2.0 interface of transmission rate up to 480Mbps, because the USB2.0 interface will improve greatly to the requirement of circuit signal quality, thereby to guaranteeing in the USB circuit design that signal integrity proposes higher requirement, and the prior USB circuit design is directly at the pin D+ that participates in usb communication, increase parallel resistor on the data wire at D-place, inductance and electric capacity even load, cause the destruction of transmission rate, the reliability of USB2.0 interface communication is reduced greatly up to the signal integrity of 480Mbps.
Summary of the invention
In view of this, the object of the present invention is to provide the device and method of terminal charger charging, USB charging and data communication, be reached for the user provide circuit kit simple in structure, take that resource is few, terminal charger charging, USB charging and the three-in-one solution of data communication that signal quality and data transmission credibility are improved greatly.
The invention provides the device of terminal charger charging, USB charging and data communication, comprising:
Processor: comprise data-interface, first interface, second interface and the 3rd interface;
Usb interface module: comprise FPDP and power interface; Wherein, power interface is connected with second interface;
It is characterized in that, also comprise:
Select module: comprise selecting side, first switch and second switch, first switch and second switch comprise input, first output and second output respectively; Wherein, the selecting side is connected with the 3rd interface, is used to control the input of first, second switch and being connected of output; First output of first, second switch is connected with the data-interface of processor; Second output of first switch is connected with first interface, is used to trigger processor and produces the terminal charger insertion or extract interruption; Second output of second switch is connected with second interface, is used to trigger processor and produces the USB insertion or extract interruption; The input of first, second switch is connected with the FPDP of usb interface module.
This installs in the described selection module,
If the selecting side is a high level, then the input of first, second switch is connected with first output corresponding to this input;
If the selecting side is a low level, then the input of first, second switch is connected with second output corresponding to this input.
This installs described processor and comprises digital baseband block and Analog Baseband module, wherein,
Digital baseband block comprises usb interface unit, and this unit comprises first data-interface and second data-interface;
The Analog Baseband module comprises first interface, second interface and the 3rd interface.
This installs described Analog Baseband module and comprises the interruption controls unit, wherein,
First interface is connected with the interruption controls unit, is used to control the interruption controls unit and produces terminal charger insertion interruption;
Second interface is connected with the interruption controls unit, is used to control the interruption controls unit and produces terminal usb data interface insertion interruption.
This installs described Analog Baseband module and comprises power control unit, wherein,
Second interface is connected with power control unit, and for power control unit provides input voltage, power control unit is output voltage signal under digital baseband block control, and this voltage signal is by the output of the 3rd interface.
The present invention also provides the method for terminal charger charging, USB charging and data communication, comprising:
A. processor detects the triggering situation that USB inserts interruption and charger insertion interruption according to interrupt flag bit;
If B. USB insertion interruption and charger insert and interrupt all being triggered, determine that then terminal is in charger insertion state, startup charger charging flow; In this step,
After the usb interface module of charger and terminal connects, FPDP short circuit with usb interface module, power interface is accepted the charger power supply, make the signal on second interface be changed to high level, because the signal on the selecting side of selection module is a low level, the input of first, second switch is connected with second output corresponding to this input, and second input of first switch is connected with first interface, second input of second switch is connected with second interface, therefore, make the signal on first interface also be changed to high level;
High level signal on first interface triggers processor and produces USB insertion interruption;
High level signal on second interface triggers processor and produces terminal charger insertion interruption;
Interrupt being triggered if C. only there is USB to insert, then determine to be in the usb data line and insert state, start the USB charging flow, and carry out the usb data transmission; In this step,
After computer usb data interface and usb interface module connect, power interface is accepted the power supply of computer usb data interface, make the signal on second interface be changed to high level, high level signal on second interface triggers processor and produces terminal charger insertion interruption, and provide input voltage for power control unit, power control unit is output voltage signal under digital baseband block control, this voltage signal is by the output of the 3rd interface, select the signal of the selecting side of module to be changed to high level, first, the input of second switch is connected with first output corresponding to this input; The data-interface that makes digital baseband block connects by the FPDP and the computer usb data interface of usb interface module, carries out the usb data transmission;
After the signal of the selecting side of selection module is changed to high level, the input disconnection of first, second switch is connected with second output corresponding to this input, make the signal on first interface be changed to low level, produce terminal charger insertion interruption thereby can not trigger processor.
The described step B of this method also comprises:
The charger disconnection is connected with usb interface module, make the signal on first interface and second interface all be changed to low level, this low level signal triggering processor generation USB extracts interruption and terminal charger is extracted interruption, processor detects USB according to interrupt flag bit and extracts and interrupt and charger is extracted after interruption all is triggered charge closing device charging flow.
The described step C of this method also comprises:
The disconnection of usb data interface is connected with usb interface module, make the signal on second interface be changed to low level, this low level signal triggers processor and produces USB and extract interruption, processor according to interrupt flag bit detect USB extract interrupt being triggered after, close the USB charging flow.
The described processor of this method step B and C is the interrupt control unit in the Analog Baseband module.
Terminal charger charging of the present invention, the device and method of USB charging and data communication, realize the identification of terminal by a plurality of control units that on hardware circuit, increase in binary channels analog switch and Analog Baseband module that cooperates with this hardware circuit and the digital baseband block to charger and usb data line, to realize the charger charging or can carry out the USB charging of usb data communication simultaneously, avoided increasing extra circuit load on D+ and D-data wire, being reached for the user provides circuit kit simple in structure, it is few to take resource, the terminal charger charging that signal quality and data transmission credibility are improved greatly, the beneficial effect of the solution that USB charging and data communication are three-in-one.
Description of drawings
Fig. 1 is the schematic diagram of terminal charger USB interface under the existing standard;
Fig. 2 is circuit theory diagrams of realizing terminal USB charging in the prior art by the GPIO interface;
Fig. 3 is terminal charger charging among the present invention, USB charging and the three-in-one structure drawing of device of data communication;
Fig. 4 realizes the structure drawing of device of terminal charger charging when inserting for charger among the present invention;
Fig. 5 realizes the structure drawing of device of terminal USB charging and data communication when inserting for usb data interface among the present invention;
Fig. 6 is terminal charger charging among the present invention, USB charging and the three-in-one method flow diagram of data communication.
Embodiment
Fig. 3 is terminal charger charging among the present invention, USB charging and the three-in-one structure drawing of device of data communication, comprising:
Digital baseband block 301, usb interface module 3011 in this module comprises pin USB_D+ and USB_D-, pin USB_D+ is connected with No. 1 output of first switch of analog switch 303, and pin USB_D-is connected with No. 1 output of the second switch of analog switch 303.
Analog Baseband module 302, this module comprises pin VCHG_DET, VUSB_IN and VUSB, wherein, pin VCHG_DET is connected with No. 0 output of first switch of analog switch 303, and pin VUSB_IN is connected with No. 0 output of the second switch of analog switch 303.
This module also comprises interruption controls unit 3021, power control unit 3022 and charging control unit 3023, wherein,
Pin VCHG_DET is connected with interruption controls unit 3021, is used for the triggering terminal charger and inserts or extract interruption.
Pin VUSB_IN is connected with interruption controls unit 3021, is used to trigger USB and inserts or extract interruption.
Pin VUSB_IN also is connected with power control unit 3022, is used to power control unit 3022 that input voltage is provided, digital baseband block 301 control power control units 3022 output+3V voltage signal VUSB, and this voltage signal VUSB is by pin VUSB output.
Charging circuit module 305 is connected with the end of current-limiting resistance R3, and the other end of current-limiting resistance R3 is connected with No. 0 output of the second switch of analog switch 303, and charging circuit module 305 is charged to battery 306 under charging control unit 3023 controls.
Analog switch 303 comprises channel selecting pin S, and first switch and second switch, first switch and second switch comprise an input, No. 0 output and No. 1 output respectively.Wherein, channel selecting pin S is used to control the input of first, second switch and being connected of output.
USB socket 304 comprises slot GND, D+, D-and Power, and wherein, slot D+ is connected with the input of first switch of analog switch 303, and slot D-is connected with the input of the second switch of analog switch 303.
Slot Power is connected with the pin VUSB_IN of Analog Baseband module 302.
Fig. 4 realizes the structure drawing of device of terminal charger charging when inserting for charger among the present invention, among Fig. 4, standard charging device 401 inserts USB socket 304, the pin GND of standard charging device 401 is connected with the slot GND of USB socket 304, the pin D+ of standard charging device 401 is connected with the slot D+ of USB socket 304, the pin D-of standard charging device 401 is connected with the slot D-of USB socket 304, and the pin VCHG of standard charging device 401 is connected with the slot Power of USB socket 304.In addition, two pins of the right-hand member of standard charging device 401 are the external power source input.
The course of work of device shown in Figure 4 is as follows:
The standard charging device inserts the USB socket of terminal, the slot Power of the pin VCHG of standard charging device by USB socket makes the signal on the pin VUSB_IN of Analog Baseband module be changed to high level, because pin D+ in the standard charging device and D-are by short circuit, and the analog switch of this moment is in the passage conducting state No. 0, therefore, signal on the pin VCHG_DET of Analog Baseband module also is changed to high level, the interrupt control unit that high level signal on the pin VUSB_IN will trigger in the simulation baseband module produces USB insertion interruption, the interrupt control unit that high level signal on the pin VCHG_DET will trigger in the simulation baseband module produces terminal charger insertion interruption, the Analog Baseband module detects according to interrupt flag bit that USB insert to interrupt and charger inserts after interruption all is triggered, determine that terminal is in charger and inserts state, start the charger charging flow.
After the standard charging device is extracted from the USB socket of terminal, the pin VCHG of standard charging device will disconnect and being connected of the slot Power of USB socket, make the signal on pin VUSB_IN and the VCHG_DET be changed to low level, the interrupt control unit generation USB that simulates in the baseband module extracts interruption and charger is extracted interruption thereby trigger, the Analog Baseband module detects USB according to interrupt flag bit and extracts and interrupt and charger is extracted after interruption all is triggered charge closing device charging flow.
Fig. 5 realizes the structure drawing of device of terminal USB charging and data communication when inserting for usb data interface among the present invention, among Fig. 5, computer usb data interface 501 inserts USB socket 304, the pin GND of computer usb data interface 501 is connected with the slot GND of USB socket 304, the pin D+ of computer usb data interface 501 is connected with the slot D+ of USB socket 304, the pin D-of computer usb data interface 501 is connected with the slot D-of USB socket 304, and the pin VBUS of computer usb data interface 501 is connected with the slot Power of USB socket 304.
The course of work of device shown in Figure 5 is as follows:
After computer usb data interface inserts the USB socket of terminal, the pin VBUS of computer usb data interface will make the signal of the pin VUSB_IN of Analog Baseband module be changed to high level by the slot Power of USB socket, the interrupt control unit that this high level signal triggers in the simulation baseband module produces USB insertion interruption, high level signal on the pin VUSB_IN also will provide input voltage for power control unit, digital baseband block control power control unit output+3V voltage VUSB, should+the VUSB interface output of 3V voltage VUSB by the Analog Baseband module, process pull-up resistor R1 is to analog switch channel selecting pin S, make pin S go up voltage signal and be changed to high level, thereby make No. 1 passage conducting of analog switch, No. 0 pathway closure.
No. 1 passage conducting of analog switch is connected pin D+, the D-of computer usb data interface respectively with pin USB_D+, the USB_D-of digital baseband block, carry out the usb data transmission thereby computer usb data interface is connected with the usb interface module of digital baseband block.
No. 0 pathway closure of analog switch is isolated from the outside the signal on the pin VCHG_DET of Analog Baseband module, therefore, the interruption controls module can only produce USB and insert interruption, determining to have only USB to insert according to interrupt flag bit interrupts, thereby determine that terminal is in the usb data line and inserts state, start the USB charging flow.
After computer usb data interface is extracted from the USB socket of terminal, the pin VUSB of computer usb data interface will disconnect and being connected of the slot Power of USB socket, make the signal on the pin VUSB_IN no longer be high level, thereby the interruption controls unit generation USB that triggers in the simulation baseband module extracts interruption, the Analog Baseband module according to interrupt flag bit detect USB extract interrupt being triggered after, close the USB charging flow.
Fig. 6 is terminal charger charging among the present invention, USB charging and the three-in-one method flow diagram of data communication, and concrete steps are as follows:
When step 601, terminal find to have charger or USB interface of computer to insert, enter operating state from default conditions, the terminal inner circuit is started working.
When the terminal inner circuit has just been started working, the analog switch control end by pull down resistor R2 drop-down be low level, this moment analog switch No. 0 passage conducting, No. 1 pathway closure.
Step 602, the Analog Baseband module detects the triggering situation that USB inserts interruption and charger insertion interruption according to interrupt flag bit.
Step 603 if USB inserts interruption and the charger insertion is interrupted all being triggered, determines that then terminal is in charger and inserts state, startup charger charging flow.
In this step, the standard charging device inserts the USB socket of terminal, the slot Power of the pin VCHG of standard charging device by USB socket makes the signal on the pin VUSB_IN of Analog Baseband module be changed to high level, because pin D+ in the standard charging device and D-are by short circuit, and the analog switch of this moment is in the passage conducting state No. 0, therefore, signal on the pin VCHG_DET of Analog Baseband module also is changed to high level, the interrupt control unit that high level signal on the pin VUSB_IN will trigger in the simulation baseband module produces USB insertion interruption, the interrupt control unit that high level signal on the pin VCHG_DET will trigger in the simulation baseband module produces terminal charger insertion interruption, the Analog Baseband module detects according to interrupt flag bit that USB insert to interrupt and charger inserts after interruption all is triggered, determine that terminal is in charger and inserts state, start the charger charging flow.
In addition, after the standard charging device is extracted from the USB socket of terminal, the pin VCHG of standard charging device will disconnect and being connected of the slot Power of USB socket, make the signal on pin VUSB_IN and the VCHG_DET be changed to low level, the interrupt control unit generation USB that simulates in the baseband module extracts interruption and charger is extracted interruption thereby trigger, the Analog Baseband module detects USB according to interrupt flag bit and extracts and interrupt and charger is extracted after interruption all is triggered charge closing device charging flow.
Step 604 interrupts being triggered if only there is USB to insert, and then determines to be in the usb data line and inserts state, starts the USB charging flow, and can carry out the usb data transmission simultaneously.
In this step, after computer usb data interface inserts the USB socket of terminal, the pin VBUS of computer usb data interface will make the signal of the pin VUSB_IN of Analog Baseband module be changed to high level by the slot Power of USB socket, the interrupt control unit that this high level signal triggers in the simulation baseband module produces USB insertion interruption, high level signal on the pin VUSB_IN also will provide input voltage for power control unit, digital baseband block control power control unit output+3V voltage VUSB, should+the VUSB interface output of 3V voltage VUSB by the Analog Baseband module, process pull-up resistor R1 is to analog switch channel selecting pin S, make pin S go up voltage signal and be changed to high level, thereby make No. 1 passage conducting of analog switch, No. 0 pathway closure.
No. 1 passage conducting of analog switch is connected pin D+, the D-of computer usb data interface respectively with pin USB_D+, the USB_D-of digital baseband block, carry out the usb data transmission thereby computer usb data interface is connected with the usb interface module of digital baseband block.
No. 0 pathway closure of analog switch is isolated from the outside the signal on the pin VCHG_DET of Analog Baseband module, therefore, the interruption controls module can only produce USB and insert interruption, determining to have only USB to insert according to interrupt flag bit interrupts, thereby determine that terminal is in the usb data line and inserts state, start the USB charging flow.
In addition, after computer usb data interface is extracted from the USB socket of terminal, the pin VUSB of computer usb data interface will disconnect and being connected of the slot Power of USB socket, make the signal on the pin VUSB_IN no longer be high level, thereby the interruption controls unit generation USB that triggers in the simulation baseband module extracts interruption, the Analog Baseband module according to interrupt flag bit detect USB extract interrupt being triggered after, close the USB charging flow.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the device of terminal charger charging, USB charging and data communication comprises:
Processor: comprise data-interface, first interface, second interface and the 3rd interface;
Usb interface module: comprise FPDP and power interface; Wherein, power interface is connected with second interface;
It is characterized in that, also comprise:
Select module: comprise selecting side, first switch and second switch, first switch and second switch comprise input, first output and second output respectively; Wherein, the selecting side is connected with the 3rd interface, is used to control the input of first, second switch and being connected of output; First output of first, second switch is connected with the data-interface of processor; Second output of first switch is connected with first interface, is used to trigger processor and produces the terminal charger insertion or extract interruption; Second output of second switch is connected with second interface, is used to trigger processor and produces the USB insertion or extract interruption; The input of first, second switch is connected with the FPDP of usb interface module.
2. device according to claim 1 is characterized in that, in the described selection module,
If the selecting side is a high level, then the input of first, second switch is connected with first output corresponding to this input;
If the selecting side is a low level, then the input of first, second switch is connected with second output corresponding to this input.
3. device according to claim 1 and 2 is characterized in that, described processor comprises digital baseband block and Analog Baseband module, wherein,
Digital baseband block comprises usb interface unit, and this unit comprises first data-interface and second data-interface;
The Analog Baseband module comprises first interface, second interface and the 3rd interface.
4. device according to claim 3 is characterized in that, described Analog Baseband module comprises the interruption controls unit, wherein,
First interface is connected with the interruption controls unit, is used to control the interruption controls unit and produces terminal charger insertion interruption;
Second interface is connected with the interruption controls unit, is used to control the interruption controls unit and produces terminal usb data interface insertion interruption.
5. device according to claim 3 is characterized in that, described Analog Baseband module comprises power control unit, wherein,
Second interface is connected with power control unit, and for power control unit provides input voltage, power control unit is output voltage signal under digital baseband block control, and this voltage signal is by the output of the 3rd interface.
6. the method for a terminal charger charging, USB charging and data communication is characterized in that, comprising:
A. processor detects the triggering situation that USB inserts interruption and charger insertion interruption according to interrupt flag bit;
If B. USB insertion interruption and charger insert and interrupt all being triggered, determine that then terminal is in charger insertion state, startup charger charging flow; In this step,
After the usb interface module of charger and terminal connects, FPDP short circuit with usb interface module, power interface is accepted the charger power supply, make the signal on second interface be changed to high level, because the signal on the selecting side of selection module is a low level, the input of first, second switch is connected with second output corresponding to this input, and second input of first switch is connected with first interface, second input of second switch is connected with second interface, therefore, make the signal on first interface also be changed to high level;
High level signal on first interface triggers processor and produces USB insertion interruption;
High level signal on second interface triggers processor and produces terminal charger insertion interruption;
Interrupt being triggered if C. only there is USB to insert, then determine to be in the usb data line and insert state, start the USB charging flow, and carry out the usb data transmission; In this step,
After computer usb data interface and usb interface module connect, power interface is accepted the power supply of computer usb data interface, make the signal on second interface be changed to high level, high level signal on second interface triggers processor and produces terminal charger insertion interruption, and provide input voltage for power control unit, power control unit is output voltage signal under digital baseband block control, this voltage signal is by the output of the 3rd interface, select the signal of the selecting side of module to be changed to high level, first, the input of second switch is connected with first output corresponding to this input; The data-interface that makes digital baseband block connects by the FPDP and the computer usb data interface of usb interface module, carries out the usb data transmission;
After the signal of the selecting side of selection module is changed to high level, the input disconnection of first, second switch is connected with second output corresponding to this input, make the signal on first interface be changed to low level, produce terminal charger insertion interruption thereby can not trigger processor.
7. method according to claim 6 is characterized in that, described step B also comprises:
The charger disconnection is connected with usb interface module, make the signal on first interface and second interface all be changed to low level, this low level signal triggering processor generation USB extracts interruption and terminal charger is extracted interruption, processor detects USB according to interrupt flag bit and extracts and interrupt and charger is extracted after interruption all is triggered charge closing device charging flow.
8. according to claim 6 or 7 described methods, it is characterized in that described step C also comprises:
The disconnection of usb data interface is connected with usb interface module, make the signal on second interface be changed to low level, this low level signal triggers processor and produces USB and extract interruption, processor according to interrupt flag bit detect USB extract interrupt being triggered after, close the USB charging flow.
9. method according to claim 6 is characterized in that, the described processor of step B and C is the interrupt control unit in the Analog Baseband module.
CN2007101213467A 2007-09-04 2007-09-04 Device and method for terminal charger charging, USB charging and data communication Active CN101383627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101213467A CN101383627B (en) 2007-09-04 2007-09-04 Device and method for terminal charger charging, USB charging and data communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101213467A CN101383627B (en) 2007-09-04 2007-09-04 Device and method for terminal charger charging, USB charging and data communication

Publications (2)

Publication Number Publication Date
CN101383627A true CN101383627A (en) 2009-03-11
CN101383627B CN101383627B (en) 2012-12-26

Family

ID=40463280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101213467A Active CN101383627B (en) 2007-09-04 2007-09-04 Device and method for terminal charger charging, USB charging and data communication

Country Status (1)

Country Link
CN (1) CN101383627B (en)

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702146A (en) * 2009-11-02 2010-05-05 北京中星微电子有限公司 Method and unit for distinguishing charger and data line of universal serial bus
WO2011029220A1 (en) * 2009-09-11 2011-03-17 纽福克斯光电科技(上海)有限公司 Usb charger and switch control system and method thereof
WO2011032410A1 (en) * 2009-09-19 2011-03-24 惠州Tcl移动通信有限公司 Method and device for identifying universal serial bus (usb) insertion or charger insertion of mobile terminal
CN102223439A (en) * 2011-04-29 2011-10-19 中兴通讯股份有限公司 Electronic equipment with USB interface and USB communication starting method thereof
CN102231543A (en) * 2011-06-28 2011-11-02 惠州Tcl移动通信有限公司 System capable of identifying charging capability of charger and charging method thereof
CN101882736B (en) * 2009-05-08 2012-05-23 英华达(上海)电子有限公司 Data transmission switching device for mobile terminal
WO2012071837A1 (en) * 2010-11-30 2012-06-07 中兴通讯股份有限公司 Method and terminal for starting universal serial bus state machine
WO2012167677A1 (en) * 2011-06-09 2012-12-13 中兴通讯股份有限公司 Device and method for communication and charging for external device via usb interface
CN103024195A (en) * 2012-12-27 2013-04-03 青岛海信移动通信技术股份有限公司 Smart mobile terminal and implementation method of charging of smart mobile terminal
CN103107575A (en) * 2013-01-18 2013-05-15 华为终端有限公司 Charging method, mobile equipment, charging equipment and charging system
CN103186483A (en) * 2011-12-27 2013-07-03 比亚迪股份有限公司 Terminal, and OTG (On-The-Go) function-charging function paralleled execution method used for same
CN103219770A (en) * 2013-04-24 2013-07-24 惠州Tcl移动通信有限公司 Mobile terminal with multi-port charging control function
CN103259300A (en) * 2012-02-15 2013-08-21 宏达国际电子股份有限公司 Portable electronic devices and charging method thereof
CN103309834A (en) * 2012-03-15 2013-09-18 中兴通讯股份有限公司 Control method, control device and electronic device
CN103838343A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Data interface, electronic device and method for expanding current output quantity of data interface
CN103999066A (en) * 2011-12-16 2014-08-20 英特尔公司 Automatic downstream to upstream mode switching at a universal serial bus physical layer
CN104852412A (en) * 2014-02-18 2015-08-19 联想(北京)有限公司 Charging current control method and electronic device
CN105224876A (en) * 2015-09-21 2016-01-06 山东超越数控电子有限公司 The equipment of the guard method of USB interface data and device, band USB interface
CN105373509A (en) * 2015-11-09 2016-03-02 合肥宝龙达光电技术有限公司 Tablet computer USB port expanding structure
CN105573879A (en) * 2016-01-04 2016-05-11 浙江德景电子科技有限公司 Method and device for separated detection of intelligent terminal USB and charger interface
CN105701049A (en) * 2016-03-23 2016-06-22 广东欧珀移动通信有限公司 System, method and device for writing in charging zone bit and mobile terminal
CN105893304A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Terminal supporting dual network data transmission and realization method thereof
CN106019170A (en) * 2016-05-18 2016-10-12 广东欧珀移动通信有限公司 Power adapter detecting device
WO2017041461A1 (en) * 2015-09-10 2017-03-16 深圳市中兴微电子技术有限公司 Efficient universal serial bus utilization method and universal serial bus device
CN106792131A (en) * 2016-12-23 2017-05-31 东软集团股份有限公司 Data transmission method and device
US9899854B2 (en) 2012-09-19 2018-02-20 Zte Corporation Mobile terminal, master data communication device and mobile terminal charging system and method
CN104077193B (en) * 2013-03-25 2018-08-31 联想(北京)有限公司 A kind of control method and a kind of electronic equipment
CN109950939A (en) * 2017-12-20 2019-06-28 炬芯(珠海)科技有限公司 Charger states detection circuit, circuitry and charger states detection method
US10571508B2 (en) 2016-05-12 2020-02-25 Google Llc Systems and methods of detecting cable connectivity in a smart home environment
CN110970970A (en) * 2015-03-27 2020-04-07 青岛海信移动通信技术股份有限公司 Processing method and device of terminal charger
CN111969686A (en) * 2020-08-18 2020-11-20 上海乐今通信技术有限公司 Mobile terminal for concurrent USB OTG and charging and implementation method
CN114297116A (en) * 2021-12-28 2022-04-08 合肥移瑞通信技术有限公司 First terminal, second terminal and USB switching system
CN116755375A (en) * 2023-08-14 2023-09-15 江苏东成工具科技有限公司 Switch integrated control method, tool and computer readable medium
WO2024001105A1 (en) * 2022-06-27 2024-01-04 Oppo广东移动通信有限公司 Communication detection method and apparatus, device, system, and storage medium

Cited By (58)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882736B (en) * 2009-05-08 2012-05-23 英华达(上海)电子有限公司 Data transmission switching device for mobile terminal
WO2011029220A1 (en) * 2009-09-11 2011-03-17 纽福克斯光电科技(上海)有限公司 Usb charger and switch control system and method thereof
WO2011032410A1 (en) * 2009-09-19 2011-03-24 惠州Tcl移动通信有限公司 Method and device for identifying universal serial bus (usb) insertion or charger insertion of mobile terminal
CN101702146A (en) * 2009-11-02 2010-05-05 北京中星微电子有限公司 Method and unit for distinguishing charger and data line of universal serial bus
CN101702146B (en) * 2009-11-02 2016-01-20 北京中星微电子有限公司 The method of distinguishing charger and data line of universal serial bus and unit
WO2012071837A1 (en) * 2010-11-30 2012-06-07 中兴通讯股份有限公司 Method and terminal for starting universal serial bus state machine
US9529756B2 (en) 2010-11-30 2016-12-27 Zte Corporation Method and terminal for starting universal serial USB state machine
WO2012146024A1 (en) * 2011-04-29 2012-11-01 中兴通讯股份有限公司 Electronic device with usb interface and usb communication starting method thereof
CN102223439A (en) * 2011-04-29 2011-10-19 中兴通讯股份有限公司 Electronic equipment with USB interface and USB communication starting method thereof
US9110650B2 (en) 2011-04-29 2015-08-18 Zte Corporation Electronic device having USB interface and method for starting USB communication with such device
CN102223439B (en) * 2011-04-29 2014-09-17 中兴通讯股份有限公司 Electronic equipment with USB interface and USB communication starting method thereof
WO2012167677A1 (en) * 2011-06-09 2012-12-13 中兴通讯股份有限公司 Device and method for communication and charging for external device via usb interface
CN102231543A (en) * 2011-06-28 2011-11-02 惠州Tcl移动通信有限公司 System capable of identifying charging capability of charger and charging method thereof
CN102231543B (en) * 2011-06-28 2014-09-17 惠州Tcl移动通信有限公司 System capable of identifying charging capability of charger and charging method thereof
CN103999066A (en) * 2011-12-16 2014-08-20 英特尔公司 Automatic downstream to upstream mode switching at a universal serial bus physical layer
CN103999066B (en) * 2011-12-16 2018-04-06 英特尔公司 Method and apparatus for swimming over to upstream mode switching under automatic in universal serial bus physical layer
CN103186483B (en) * 2011-12-27 2016-08-17 比亚迪股份有限公司 Terminal, for its OTG function and the executed in parallel method of charge function
CN103186483A (en) * 2011-12-27 2013-07-03 比亚迪股份有限公司 Terminal, and OTG (On-The-Go) function-charging function paralleled execution method used for same
CN103259300B (en) * 2012-02-15 2016-01-20 宏达国际电子股份有限公司 Portable electron device and its charging method
CN103259300A (en) * 2012-02-15 2013-08-21 宏达国际电子股份有限公司 Portable electronic devices and charging method thereof
US9312576B2 (en) 2012-02-15 2016-04-12 Htc Corporation Portable electronic devices capable of obtaining charging current value of charger and charging method thereof
CN103309834A (en) * 2012-03-15 2013-09-18 中兴通讯股份有限公司 Control method, control device and electronic device
US9899854B2 (en) 2012-09-19 2018-02-20 Zte Corporation Mobile terminal, master data communication device and mobile terminal charging system and method
CN103838343A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Data interface, electronic device and method for expanding current output quantity of data interface
CN103838343B (en) * 2012-11-27 2017-04-19 联想(北京)有限公司 Data interface, electronic device and method for expanding current output quantity of data interface
CN103024195B (en) * 2012-12-27 2014-10-29 青岛海信移动通信技术股份有限公司 Smart mobile terminal and implementation method of charging of smart mobile terminal
CN103024195A (en) * 2012-12-27 2013-04-03 青岛海信移动通信技术股份有限公司 Smart mobile terminal and implementation method of charging of smart mobile terminal
US9991725B2 (en) 2013-01-18 2018-06-05 Huawei Device (Dongguan) Co., Ltd. Charging method, mobile device, charging device, and charging system
CN103107575A (en) * 2013-01-18 2013-05-15 华为终端有限公司 Charging method, mobile equipment, charging equipment and charging system
CN103107575B (en) * 2013-01-18 2015-07-29 华为终端有限公司 Charging method, mobile device, charging device and charging system
US10236701B2 (en) 2013-01-18 2019-03-19 Huawei Device (Dongguan) Co., Ltd. System, mobile device, and charging device
US10256647B2 (en) 2013-01-18 2019-04-09 Huawei Device (Dongguan) Co., Ltd. Method for charging a mobile device, mobile device, and charging system
CN104077193B (en) * 2013-03-25 2018-08-31 联想(北京)有限公司 A kind of control method and a kind of electronic equipment
CN103219770A (en) * 2013-04-24 2013-07-24 惠州Tcl移动通信有限公司 Mobile terminal with multi-port charging control function
CN103219770B (en) * 2013-04-24 2015-07-15 惠州Tcl移动通信有限公司 Mobile terminal with multi-port charging control function
CN104852412B (en) * 2014-02-18 2017-03-01 联想(北京)有限公司 A kind of charging current control method and electronic equipment
CN104852412A (en) * 2014-02-18 2015-08-19 联想(北京)有限公司 Charging current control method and electronic device
CN110970970A (en) * 2015-03-27 2020-04-07 青岛海信移动通信技术股份有限公司 Processing method and device of terminal charger
WO2017041461A1 (en) * 2015-09-10 2017-03-16 深圳市中兴微电子技术有限公司 Efficient universal serial bus utilization method and universal serial bus device
CN105224876A (en) * 2015-09-21 2016-01-06 山东超越数控电子有限公司 The equipment of the guard method of USB interface data and device, band USB interface
CN105373509A (en) * 2015-11-09 2016-03-02 合肥宝龙达光电技术有限公司 Tablet computer USB port expanding structure
CN105573879A (en) * 2016-01-04 2016-05-11 浙江德景电子科技有限公司 Method and device for separated detection of intelligent terminal USB and charger interface
CN105573879B (en) * 2016-01-04 2019-06-25 浙江德景电子科技有限公司 A kind of method and apparatus of intelligent terminal USB, charger interface separation detection
CN105701049B (en) * 2016-03-23 2019-03-01 Oppo广东移动通信有限公司 System, method, apparatus and the mobile terminal of charge flag position is written
CN105701049A (en) * 2016-03-23 2016-06-22 广东欧珀移动通信有限公司 System, method and device for writing in charging zone bit and mobile terminal
CN105893304B (en) * 2016-03-28 2019-02-15 努比亚技术有限公司 A kind of terminal and its implementation for supporting double network data transmission
CN105893304A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Terminal supporting dual network data transmission and realization method thereof
US10571508B2 (en) 2016-05-12 2020-02-25 Google Llc Systems and methods of detecting cable connectivity in a smart home environment
CN106019170A (en) * 2016-05-18 2016-10-12 广东欧珀移动通信有限公司 Power adapter detecting device
CN106019170B (en) * 2016-05-18 2019-04-09 Oppo广东移动通信有限公司 A kind of power supply adaptor detection device
CN106792131B (en) * 2016-12-23 2019-08-02 东软集团股份有限公司 Data transmission method and device
CN106792131A (en) * 2016-12-23 2017-05-31 东软集团股份有限公司 Data transmission method and device
CN109950939A (en) * 2017-12-20 2019-06-28 炬芯(珠海)科技有限公司 Charger states detection circuit, circuitry and charger states detection method
CN109950939B (en) * 2017-12-20 2021-09-24 炬芯科技股份有限公司 Charger state detection circuit, device circuit, and charger state detection method
CN111969686A (en) * 2020-08-18 2020-11-20 上海乐今通信技术有限公司 Mobile terminal for concurrent USB OTG and charging and implementation method
CN114297116A (en) * 2021-12-28 2022-04-08 合肥移瑞通信技术有限公司 First terminal, second terminal and USB switching system
WO2024001105A1 (en) * 2022-06-27 2024-01-04 Oppo广东移动通信有限公司 Communication detection method and apparatus, device, system, and storage medium
CN116755375A (en) * 2023-08-14 2023-09-15 江苏东成工具科技有限公司 Switch integrated control method, tool and computer readable medium

Also Published As

Publication number Publication date
CN101383627B (en) 2012-12-26

Similar Documents

Publication Publication Date Title
CN101383627B (en) Device and method for terminal charger charging, USB charging and data communication
CN103064489B (en) A kind of method and terminal of carrying out internal circuit selection according to USB interface state
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
CN101674366B (en) Mobile terminal USB, or charger inserting identification method and identification device thereof
CN102694400B (en) Imput output circuit
CN101232196B (en) Control circuit of charging mode in USB charging stand and method thereof
CN106716389B (en) Method for fast USB charging, electronic device and charger device
CN202308695U (en) Cable device
CN106356918B (en) A kind of quick charge recognition methods and terminal device
CN102692570B (en) Imput output circuit
CN104272216A (en) Electronic device and control method therefor
CN102055223A (en) USB special charger recognition circuit
CN207021723U (en) A kind of multi-cell electric power management circuit and a kind of virtual reality helmet
CN104796011A (en) Charging method, AC adapter, charging managing device and terminal
CN101702146A (en) Method and unit for distinguishing charger and data line of universal serial bus
CN105024683A (en) Input-output circuit
CN107658916A (en) Cue circuit and electronic equipment
CN103403643A (en) Charging and discharging management device and mobile terminal
CN201563242U (en) Identifier for mobile communication terminal chargers
CN106451628A (en) OTG charging control circuit and charging control method
CN105824732A (en) USB detection method and detection system
CN201307924Y (en) Earphone detecting circuit and terminal device using earphone detecting device
CN205863955U (en) A kind of USB fast charging device of main frame front interface
CN101359836B (en) Self-switching charging circuit
CN212965358U (en) Broken line detection circuit with load access automatic wake-up function and power bank

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: LIANXIN SCIENCE CO., LTD.

Free format text: FORMER OWNER: DATANG MOBILE COMMUNICATION APPARATUS CO., LTD.

Effective date: 20090508

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20090508

Address after: Zip code, 4 building, 41 333 Qinjiang Road, Shanghai, China: 200233

Applicant after: Lian core technology Co., Ltd.

Co-applicant after: Datang Mobile Communication Equipment Co., Ltd.

Co-applicant after: Datang Mobile Communication Equipment Co., Ltd., Shanghai

Address before: Postal code 29, Haidian District, Beijing, Xueyuan Road: 100083

Applicant before: Datang Mobile Communications Equipment Co

Co-applicant before: Datang Mobile Communication Equipment Co., Ltd., Shanghai

ASS Succession or assignment of patent right

Free format text: FORMER OWNER: DATANG MOBILE COMMUNICATION EQUIPMENT CO., LTD. DATANG MOBILE COMMUNICATION EQUIPMENT CO., LTD., SHANGHAI

Effective date: 20120129

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20120129

Address after: 201206 Pudong New Area Mingyue Road, Shanghai, No. 1258

Applicant after: Leadcore Technology Co., Ltd.

Address before: 201206 Pudong New Area Mingyue Road, Shanghai, No. 1258

Applicant before: Leadcore Technology Co., Ltd.

Co-applicant before: Datang Mobile Communication Equipment Co., Ltd.

Co-applicant before: Datang Mobile Communication Equipment Co., Ltd., Shanghai

C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20090311

Assignee: Shanghai Li Ke Semiconductor Technology Co., Ltd.

Assignor: Leadcore Technology Co., Ltd.

Contract record no.: 2018990000159

Denomination of invention: Device and method for terminal charger charging, USB charging and data communication

Granted publication date: 20121226

License type: Common License

Record date: 20180615

EE01 Entry into force of recordation of patent licensing contract