CN101383627B - 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
CN101383627B
CN101383627B CN2007101213467A CN200710121346A CN101383627B CN 101383627 B CN101383627 B CN 101383627B CN 2007101213467 A CN2007101213467 A CN 2007101213467A CN 200710121346 A CN200710121346 A CN 200710121346A CN 101383627 B CN101383627 B CN 101383627B
Authority
CN
China
Prior art keywords
interface
usb
switch
output
module
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
CN2007101213467A
Other languages
Chinese (zh)
Other versions
CN101383627A (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
Leadcore Technology 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 Leadcore Technology Co Ltd filed Critical Leadcore Technology 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 " GSM CDMA 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 pin D+ and D-short circuit that USB interface in the charger is inner, and stube cable between charger and the terminal and interface are designed by the designer voluntarily.
Fig. 1 is the sketch map 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 through inner lead with D-and by short circuit.
The scheme that existing employing USB interface charges to the 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 differentiation to charger and usb data line, and is aided with corresponding method and realizes charger charging or USB charging are carried out in the terminal.
Fig. 2 realizes the circuit theory diagrams that terminal USB charges through the GPIO interface in the prior art, 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, and wherein resistance R 2, R4 are input to pin GPIO1 for the data wire at USB_DM pin place constitutes dividing potential drop through after the dividing potential drop; And resistance R 3, R5 constitute dividing potential drop for the data wire at pin USB_DP place, are 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 at the voltage signal condition judgement terminal on pin GPIO1 and the GPIO2, thereby realization is charged and data communication to the terminal through 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 " GSM CDMA 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 to supply terminal and PERCOM peripheral communication used; The message transmission rate of USB1.1 interface is up to 12Mbps, carries out transfer of data in this speed, is not very harsh to the requirement of signal quality; Yet along with the multimedia function at terminal and the increase day by day of data processing function; To the raising day by day that the data throughput requires, the USB interface on the terminal must turn to supports the USB2.0 interface of transmission rate up to 480Mbps, owing to the requirement of USB2.0 interface to the circuit signal quality will improve greatly; Thereby to guaranteeing in the USB circuit design that signal integrity proposes higher requirement; And the prior USB circuit design directly increases parallel resistor, inductance and electric capacity even load on the data wire at the pin D+ that participates in usb communication, D-place, causes the destruction of transmission rate up to the signal integrity of 480Mbps, and the reliability of USB2.0 interface communication is reduced greatly.
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 said 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 said processor and comprises digital baseband block and ABB module, wherein,
Digital baseband block comprises usb interface unit, and this unit comprises first data-interface and second data-interface;
The ABB module comprises first interface, second interface and the 3rd interface.
This installs said ABB 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 said ABB 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 through 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, confirm that then the terminal is in charger insertion state, startup charger charging flow; In this step,
After the usb interface module at charger and terminal connects; With the FPDP short circuit of usb interface module, power interface is accepted the charger power supply, makes 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 confirm 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 and insert and interrupt, and input voltage is provided for power control unit; Power control unit is output voltage signal under digital baseband block control; This voltage signal selects the signal of the selecting side of module to be changed to high level through the 3rd interface output, and the input of first, second switch is connected with first output corresponding to this input; The data-interface that makes digital baseband block connects through 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 said 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 said 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 ABB module.
The device and method of terminal charger charging of the present invention, USB charging and data communication; A plurality of control units through on hardware circuit, increasing in binary channels analog switch and ABB module that cooperates with this hardware circuit and the digital baseband block are realized the identification of terminal to charger and usb data line; To realize the charger charging or can carry out the USB charging of usb data communication simultaneously; Avoided on D+ and D-data wire increasing extra circuit load, be reached for the user provide circuit kit simple in structure, take that resource is few, the beneficial effect of solution that terminal charger charging, USB charging and data communication that signal quality and data transmission credibility are improved greatly are three-in-one.
Description of drawings
Fig. 1 is the sketch map of terminal charger USB interface under the existing standard;
Fig. 2 realizes the circuit theory diagrams that terminal USB charges through the GPIO interface in the prior art;
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.
ABB 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, and be used to power control unit 3022 input voltage is provided, digital baseband block 301 control power control units 3022 output+3V voltage signal VUSB, this voltage signal VUSB is through 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 ABB 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, and the pin GND of standard charging device 401 is connected with the slot GND of USB socket 304, and 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 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 following:
The standard charging device inserts the USB socket at terminal; The slot Power of the pin VCHG of standard charging device through USB socket makes the signal on the pin VUSB_IN of ABB 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, the signal on the pin VCHG_DET of ABB module also is changed to high level, and the interrupt control unit that the 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 ABB module according to interrupt flag bit detect USB insert to interrupt with charger insert interrupt all being triggered after, confirm that the terminal is in charger and inserts state, startup charger charging flow.
After the standard charging device is extracted from the USB socket at terminal; The pin VCHG of standard charging device will break off 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; Produce USB and extract and interrupt extracting interruption with charger thereby trigger interrupt control unit in the simulation baseband module, the ABB module detects USB according to interrupt flag bit and extracts interruption and charger and extract 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, and 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 following:
After computer usb data interface inserts the USB socket at terminal; The pin VBUS of computer usb data interface will make the signal of the pin VUSB_IN of ABB module be changed to high level through 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 be for power control unit provides input voltage, digital baseband block control power control unit output+3V voltage VUSB, should+3V voltage VUSB exports through the VUSB interface of ABB 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 the pin D+ of computer usb data interface, D-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 ABB module; Therefore; The interruption controls module can only produce USB and insert interruption; Confirm to have only USB to insert according to interrupt flag bit and interrupt, thereby confirm that the 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 at terminal; The pin VUSB of computer usb data interface will break off and being connected of the slot Power of USB socket; Make the signal on the pin VUSB_IN no longer be high level; Produce USB and extract interruption thereby trigger interruption controls unit in the simulation baseband module, the ABB 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 following:
When step 601, terminal find to have charger or USB interface of computer to insert, get into 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 ABB 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, confirms that then the terminal is in charger and inserts state, startup charger charging flow.
In this step; The standard charging device inserts the USB socket at terminal; The slot Power of the pin VCHG of standard charging device through USB socket makes the signal on the pin VUSB_IN of ABB module be changed to high level; Because the pin D+ in the standard charging device and D-be by short circuit, and analog switch at this moment is in the passage conducting state No. 0, therefore; Signal on the pin VCHG_DET of ABB module also is changed to high level; High level signal on the pin VUSB_IN will trigger the interrupt control unit of simulation in the baseband module and produce USB and insert and interrupt, and the high level signal on the pin VCHG_DET will trigger interrupt control unit in the simulation baseband module and produce terminal charger and insert and interrupt, the ABB module according to interrupt flag bit detect USB insert interrupt all being triggered with charger insertion interruption after; Confirm that the 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 at terminal; The pin VCHG of standard charging device will break off and being connected of the slot Power of USB socket, and make the signal on pin VUSB_IN and the VCHG_DET be changed to low level, produce USB and will extract and interrupt and charger is extracted interruption thereby trigger interrupt control unit in the simulation baseband module; The ABB 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 confirms 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 at terminal; The pin VBUS of computer usb data interface will make the signal of the pin VUSB_IN of ABB module be changed to high level through 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, and the 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 through the ABB module,, make pin S go up voltage signal and be changed to high level to analog switch channel selecting pin S through pull-up resistor R1; Thereby make No. 1 passage conducting of analog switch, No. 0 pathway closure.
No. 1 passage conducting of analog switch is connected the pin D+ of computer usb data interface, D-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 ABB module; Therefore; The interruption controls module can only produce USB and insert interruption; Confirm to have only USB to insert according to interrupt flag bit and interrupt, thereby confirm that the 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 at terminal; The pin VUSB of computer usb data interface will break off and being connected of the slot Power of USB socket, and make the signal on the pin VUSB_IN no longer be high level, produce USB and will extract interruption thereby trigger interruption controls unit in the simulation baseband module; The ABB module according to interrupt flag bit detect USB extract interrupt being triggered after, close the USB charging flow.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. the device of terminal charger charging, USB charging and data communication comprises:
Processor comprises digital baseband block and ABB mould certainly,
This digital baseband block comprises usb interface unit, and this usb interface unit comprises first data-interface and second data-interface;
This ABB module has first interface, second interface and the 3rd interface, and comprises interruption controls unit and power control unit, and this first interface is connected with this interruption controls unit; This second interface is connected with this interruption controls unit; And this second interface is connected with this power control unit, and for this power control unit provides input voltage, this power control unit is output voltage signal under this digital baseband block control, and this voltage signal is through the output of the 3rd interface;
Usb interface module: comprise FPDP and power interface; Wherein, this power interface is connected with second interface of this ABB module;
Select module, comprise selecting side, first switch and second switch, this first switch comprises input, first output and second output, and this second switch comprises input, first output and second output; Wherein, This selecting side is connected with the 3rd interface of this ABB module; Be used to control the input and first output of first switch or being connected of second output of first switch, and the input of second switch and first output of second switch or being connected of second output; First output of first switch is connected with this first data-interface, and first output of second switch is connected with this second data-interface; Second output of first switch is connected with first interface of this ABB module, is used to trigger this interruption controls unit and produces the terminal charger insertion or extract interruption; Second output of second switch is connected with second interface of this ABB module, is used to trigger this interruption controls unit and produces the USB insertion or extract interruption; The input of first, second switch all is connected with the FPDP of this usb interface module.
2. device according to claim 1 is characterized in that, in the said 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. the method for terminal charger charging, USB charging and data communication; In the terminal that comprises processor, selection module, usb interface module, carry out; This processor comprises digital baseband block and ABB module; This digital baseband block comprises usb interface unit, and this usb interface unit comprises first data-interface and second data-interface; This ABB module has first interface, second interface and the 3rd interface, and comprises interruption controls unit and power control unit, and this first interface is connected with this interruption controls unit; This second interface is connected with this interruption controls unit; And this second interface is connected with this power control unit; This selection module has selecting side, first switch and second switch; This first switch has input, first output and second output; This second switch has input, first output and second output, and this usb interface module comprises FPDP and power interface; This power interface is connected with this second interface, and the input of this first, second switch of FPDP and this is connected, and first output of this first switch is connected with this first data-interface, and first output of this second switch is connected with this second data-interface; Second output of this first switch is connected with this first interface, and second output of this second switch is connected with this second interface, and this selecting side is connected with the 3rd interface, it is characterized in that, this method comprises:
A. this ABB module 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, confirm that then the terminal is in charger insertion state, startup charger charging flow; In this step,
After the usb interface module at charger and terminal connects; FPDP short circuit with this usb interface module; Power interface is accepted the charger power supply, makes the signal on this second interface be changed to high level, because the signal on the selecting side of this selection module is a low level; The input of this first, second switch is connected with the second corresponding output respectively, make the signal on first interface also be changed to high level;
High level signal on second interface triggers this interruption controls unit and produces USB insertion interruption;
High level signal on first interface triggers this interruption controls unit and produces terminal charger insertion interruption;
Interrupt being triggered if C. only there is USB to insert, then confirm 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 this interruption controls unit and produces USB and insert and interrupt, and input voltage is provided for this power control unit; This power control unit is output voltage signal under digital baseband block control; This voltage signal is through the output of the 3rd interface, and the signal of the selecting side of this selection module is changed to high level, and the input of first, second switch connects with the first corresponding output respectively; First, second data-interface that makes this digital baseband block connects through the FPDP and the computer usb data interface of this 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 of this first, second switch breaks off the connection with the second corresponding output; Make the signal on this first interface be changed to low level, produce terminal charger insertion interruption thereby can not trigger this interruption controls unit.
4. method according to claim 3 is characterized in that, said 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 interruption controls unit of this low level signal triggering generation USB extracts interruption and terminal charger is extracted interruption; This ABB 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.
5. according to claim 3 or 4 described methods, it is characterized in that said 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 this interruption controls unit generation USB and extracts interruption; This ABB module according to interrupt flag bit detect USB extract interrupt being triggered after, close the USB charging flow.
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 CN101383627A (en) 2009-03-11
CN101383627B true 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)

Families Citing this family (34)

* 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
CN102025169B (en) * 2009-09-11 2013-03-20 纽福克斯光电科技(上海)有限公司 USB charger and on-off control system and method thereof
CN101674366B (en) * 2009-09-19 2012-03-28 惠州Tcl移动通信有限公司 Mobile terminal USB, or charger inserting identification method and identification device thereof
CN101702146B (en) * 2009-11-02 2016-01-20 北京中星微电子有限公司 The method of distinguishing charger and data line of universal serial bus and unit
CN102087639B (en) * 2010-11-30 2015-05-20 中兴通讯股份有限公司 Method for starting USB (Universal Serial Bus) state machine as well as terminal
CN102223439B (en) * 2011-04-29 2014-09-17 中兴通讯股份有限公司 Electronic equipment with USB interface and USB communication starting method thereof
CN102820682B (en) * 2011-06-09 2016-01-20 中兴通讯股份有限公司 A kind of communicated by USB interface and be external equipment charging device and method
CN102231543B (en) * 2011-06-28 2014-09-17 惠州Tcl移动通信有限公司 System capable of identifying charging capability of charger and charging method thereof
US9864711B2 (en) * 2011-12-16 2018-01-09 Intel Corporation Automatic downstream to upstream mode switching at a 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
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
CN102868820A (en) 2012-09-19 2013-01-09 中兴通讯股份有限公司 Mobile terminal, primary data communication device and mobile terminal charging system and method
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
CN103107575B (en) * 2013-01-18 2015-07-29 华为终端有限公司 Charging method, mobile device, charging device and charging system
CN104077193B (en) * 2013-03-25 2018-08-31 联想(北京)有限公司 A kind of control method and a kind of electronic equipment
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
CN110970970A (en) * 2015-03-27 2020-04-07 青岛海信移动通信技术股份有限公司 Processing method and device of terminal charger
CN106528472A (en) * 2015-09-10 2017-03-22 深圳市中兴微电子技术有限公司 Efficient utilization method for USB (Universal Serial Bus), and USB
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
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
CN105893304B (en) * 2016-03-28 2019-02-15 努比亚技术有限公司 A kind of terminal and its implementation for supporting double network data transmission
US10571508B2 (en) 2016-05-12 2020-02-25 Google Llc Systems and methods of detecting cable connectivity in a smart home environment
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
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
CN117335510A (en) * 2022-06-27 2024-01-02 Oppo广东移动通信有限公司 Communication detection method, device, equipment, 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
CN101383627A (en) 2009-03-11

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
CN101674366B (en) Mobile terminal USB, or charger inserting identification method and identification device thereof
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
CN106716389B (en) Method for fast USB charging, electronic device and charger device
CN101232196B (en) Control circuit of charging mode in USB charging stand and method thereof
CN102694400B (en) Imput output circuit
CN202308695U (en) Cable device
CN101102119B (en) A charging detection circuit of appliance device and charging detection method
CN104272216A (en) Electronic device and control method therefor
CN108988431B (en) Multi-protocol charging device and multi-protocol charging method
CN102055223A (en) USB special charger recognition circuit
CN104796011A (en) Charging method, AC adapter, charging managing device and terminal
CN101702146B (en) The method of distinguishing charger and data line of universal serial bus and unit
WO2012142119A2 (en) Mobile device auto detection apparatus and method
CN207021723U (en) A kind of multi-cell electric power management circuit and a kind of virtual reality helmet
CN102692570A (en) Input-output circuit
CN204304549U (en) Charger and charge management circuit
CN106374581A (en) Voltage output method for charger and charger
CN105162213A (en) USB controller, and device
CN105426332A (en) Communication interface circuit, portable electronic device and electronic system
CN201075704Y (en) Detection circuit of electrical equipment and mobile phone having the circuit
CN208571664U (en) A kind of charge control system of built-in terminal
CN103403643A (en) Charging and discharging management device and mobile terminal
CN201563242U (en) Identifier for mobile communication terminal chargers

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