CN105790356B - A kind of data line with charging circuit - Google Patents
A kind of data line with charging circuit Download PDFInfo
- Publication number
- CN105790356B CN105790356B CN201610211118.8A CN201610211118A CN105790356B CN 105790356 B CN105790356 B CN 105790356B CN 201610211118 A CN201610211118 A CN 201610211118A CN 105790356 B CN105790356 B CN 105790356B
- Authority
- CN
- China
- Prior art keywords
- interface
- port
- switch
- voltage
- circuit
- 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
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/0036—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R31/00—Coupling parts supported only by co-operation with counterpart
- H01R31/06—Intermediate parts for linking two coupling parts, e.g. adapter
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention discloses a kind of data line with charging circuit, which includes:First interface, second interface, third interface, control process circuit, first switch circuit and second switch circuit, wherein first interface voltage end connects second interface voltage end through first switch circuit, and second interface voltage end is through second switch circuit connection third interface voltage end;Control process circuit be used for according to first interface voltage end, second interface voltage end, third interface voltage end level, the charging and discharging state of second interface and third interface is configured, control first switch circuit and/or second switch circuit turn-on, the external power supply of first interface is made to charge to the electronic equipment of second interface and third interface or make mutually to charge between the electronic equipment of second interface and the electronic equipment of third interface.The data line with charging circuit of the present invention can be realized while to the mutual charging between the charging of multiple electronic equipments and electronic equipment.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of data line with charging circuit.
Background technology
With the development of electronic technology, the application range of portable electronic equipment is more and more extensive, and type is also more and more,
Such as:Mobile phone, bluetooth headset, smartwatch, Intelligent bracelet etc. become the essential assembling of people's daily life trip.
And multiple data lines are needed to the charging of these electronic equipments, it is inconvenient to carry.And generic USB cable can only by adapter or
The USB interface of PC gives the charging of the peripheral hardwares such as mobile phone, when there is no when adapter or PC, to other blue when only mobile phone has electricity
Tooth earphone also needs to an OTG cable when equipment charges, and mobile phone can only give the equipment charge without OTG functions that cannot give hand
The equipment charge with OTG functions such as machine.There is not yet currently on the market it is such a not only can simultaneously to multiple equipment charge, but also
It can be used for the Multifunctional data line to charge between mobile equipment.
Invention content
The purpose of the present invention is to provide a kind of data lines with charging circuit, and the charging circuit is by detecting interface
The charging and discharging state of the corresponding interface is configured in voltage status, realizes that a data line charges simultaneously to multiple electronic equipments, Yi Ji electricity
Mutual charging between sub- equipment.
It is as follows that the present invention provides technical solution:
A kind of data line with charging circuit, the charging circuit include:First interface, second interface, third interface,
Control process circuit, first switch circuit and second switch circuit, the first interface voltage end are connected through first switch circuit
Second interface voltage end, the second interface voltage end is through second switch circuit connection third interface voltage end;
The control process circuit is used for according to first interface voltage end, second interface voltage end, third interface voltage end
Level, the charging and discharging state of second interface and third interface is configured, first switch circuit and/or second switch circuit is controlled to lead
It is logical, make the external power supply of first interface to the charging of the electronic equipment of second interface and third interface or make the electricity of second interface
It mutually charges between the electronic equipment of sub- equipment and third interface;Wherein, first and second switching circuit initial default is disconnects shape
State.
The invention has the advantages that:
A kind of data line with charging circuit of the present invention includes multiple interfaces, control process circuit and multiple switch electricity
Road, control process circuit can detect the voltage levels of multiple interface accesses automatically, control the on and off of multiple switch circuit
The charging and discharging state of the corresponding interface is configured in state, and the realization data line of automated intelligent is to charge simultaneously to multiple electronic equipments, also
It is the mutual charging between electronic equipment and charging direction.Its circuit structure letter of the data line with charging circuit of the present invention
Single, control intelligence reduces the quantity that user carries data line, and when there is no when adapter or PC, facilitate user with having
The electronic equipment of OTG functions has the function of to the equipment charge without OTG functions or realization between the electronic equipment of OTG
Mutually charging, such as:Have the function of the mobile phone of OTG to the charging bluetooth earphone without OTG functions or mobile phone and mobile phone it
Between mutually charge.
Description of the drawings
Fig. 1 is a kind of structure diagram of one embodiment of the data line with charging circuit provided by the invention;
Fig. 2 is a kind of circuit diagram of a specific embodiment of the data line with charging circuit provided by the invention.
Specific embodiment
To make the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool
Body embodiment is described in detail.
It please refers to Fig.1 and Fig. 2, the embodiment of the present invention provides a kind of data line 100 with charging circuit, including:The
One interface 10, second interface 20, third interface 30, control process circuit 40, first switch circuit 50 and second switch circuit 60,
Wherein:First interface voltage end connects second interface voltage end through first switch circuit, and second interface voltage end is through second switch
Circuit connection third interface voltage end, first, second and third interface, first and second switching circuit are all connected with control process electricity
Road.
Control process circuit be used for according to first interface voltage end, second interface voltage end, third interface voltage end electricity
It is flat, the charging and discharging state of second interface and third interface is configured, controls first switch circuit and/or second switch circuit turn-on,
The external power supply of first interface is made to charge to the electronic equipment of second interface and third interface or set the electronics of second interface
It is standby mutually to charge between the electronic equipment of third interface;Wherein, first and second switching circuit initial default is off-state, is write from memory
Recognize using first interface as main interface, access external power supply, such as adapter or PC, first, second interface is used as from interface, access
There is the electronic equipment of the electronic equipment of OTG or access without OTG functions, the electronics of band OTG functions referred to herein
Equipment refer to can external discharging function electronic equipment, such as:Mobile phone, ipad etc., and without the electronic equipment of OTG functions
Refer to the electronic equipment without external discharging function, such as:Bluetooth headset, USB flash disk etc..
A kind of data line with charging circuit of above-described embodiment is at three interfaces, two switching circuits and control
The charging circuit configuration for managing circuit illustrates technical scheme of the present invention, a kind of number with charging circuit of the invention as representative
It may include the interface of three or more and corresponding more than two switching circuits according to line, in the voltage end of first interface and last
Multiple switch circuit is connected in series between the voltage end of one interface, the connecting node of each two switching circuit connects another and connects
The voltage end of mouth, wherein, first interface is main interface, other interfaces are from interface, because the principle of its charging circuit is identical, reality
Existing function is also identical, no longer illustrates one by one herein.
A kind of data line with charging circuit of the embodiment of the present invention includes multiple interfaces, control process circuit and multiple
Switching circuit, control process circuit can detect the voltage levels of multiple interface accesses, control the conducting of multiple switch circuit automatically
Or closed state, the charging and discharging state of the corresponding interface is configured, the realization data line of automated intelligent is simultaneously to multiple electronic equipments
Mutual charging and charging direction between charging or electronic equipment, charging circuit configuration is simple, and control intelligence is reduced
User carries the quantity of data line, and when there is no user when adapter or PC, is facilitated to use the electronic equipment with OTG
Have the function of mutually to charge between the electronic equipment of OTG to the electronic equipment charging without OTG functions or realization, such as:
Have the function of OTG mobile phone give do not have mutually charge between the charging bluetooth earphone of OTG functions or mobile phone and mobile phone.
Further, when first interface voltage end is high level, control process circuit configuration second interface and third connect
Mouth is charged state, and controls first switch circuit and second switch circuit turn-on, makes the external power supply of first interface to second
The electronic equipment of interface and third interface charges.When it is high level that control process circuit, which detects first interface voltage end, table
Bright first interface accesses external power supply, and no matter which kind of electronic equipment first, second interface accesses, and is used as and is electrically charged equipment.This
A kind of data line with charging circuit of inventive embodiments can realize that external power supply simultaneously charges to multiple electronic equipments.
Further, when first interface voltage end is low level, second interface voltage end is high level, and third interface is
During low level, control process circuit configuration second interface is discharge condition, and third interface is charged state, and controls second switch
Circuit turn-on makes the electronic equipment of second interface charge to the electronic equipment of third interface;When first interface voltage end is low electricity
Flat, second interface voltage end is low level, and when third interface is high level, control process circuit configuration second interface is charging shape
State, third interface is discharge condition, and controls second switch circuit turn-on, makes the electronic equipment of third interface to second interface
Electronic equipment charges.A kind of data line with charging circuit of the embodiment of the present invention can realize that the electronics with OTG is set
It is standby that the electronic equipment without OTG functions is given to charge.
As one for example, when first interface voltage end be low level, second interface voltage end be high level, third
When interface voltage end is high level, control process circuit configuration third interface is charged state, second interface is discharge condition, and
Second switch circuit turn-on is controlled, the electronic equipment of second interface is made to charge to the electronic equipment of third interface.The present invention is implemented
A kind of data line with charging circuit of example can realize the mutual charging between the electronic equipment with OTG, use
The mode in default configuration charging direction, when access has the function of the electronic equipment of OTG simultaneously, the electronics for giving tacit consent to second interface is set
The standby electronic equipment to third interface charges.
As one for example, a kind of data line with charging circuit of the embodiment of the present invention further includes a switching and opens
70 are closed, switching switch connection control process circuit;
It is low level in first interface voltage end, second interface voltage end is high level, and third interface voltage end is high electricity
Flat, and when switching switch is triggered, control process circuit is additionally operable to that configuration second interface is charged state, configuration third interface is
Discharge condition, and second switch circuit turn-on is controlled, the electronic equipment of third interface is made to charge to the electronic equipment of second interface.
As another for example, when first interface voltage end is low level, second interface voltage end is high level, the
When three interface voltage ends are high level, control process circuit configuration third interface is discharge condition, second interface is charged state,
And second switch circuit turn-on is controlled, the electronic equipment of third interface is made to charge to the electronic equipment of second interface.
As another for example, being low level in first interface voltage end, second interface voltage end is high level, the
Three interface voltage ends are high level, and when switching switch is triggered, and control process circuit is additionally operable to configuration second interface as electric discharge
State, configuration third interface are charged state, and control second switch circuit turn-on, make the electronic equipment of second interface to third
The electronic equipment charging of interface.
A kind of data line with charging circuit of the embodiment of the present invention increases switching switch and realizes above-mentioned acquiescence charging side
To switching, by the artificial triggering switching switch of user, give control processor switching signal, control processor, which passes through, to be configured
The charging and discharging state of second, third interface, realize third interface electronic equipment from electronic equipment to second interface charging or
The electronic equipment of second interface charges to the electronic equipment of third interface.The embodiment of the present invention realizes tool by increasing switching switch
There is the control in the electric room charging direction of OTG functions, compared to the mode in acquiescence charging direction and by comparing mobile
For equipment voltage levels determine the mode in charging direction, user can determine charging direction, more convenient, experience property according to wish
More preferably.
Further, a kind of its control process circuit of data line with charging circuit of the embodiment of the present invention includes a control
Processor 41 processed and for the first dispensing unit 42 of second interface, third interface charging and discharging state and the second dispensing unit to be configured
43, wherein:The input port of control processor includes voltage port, with first interface voltage end, second interface voltage end, third
The tertiary voltage that interface voltage end connects respectively detects port, second voltage detection port, first voltage detection port, Yi Jijie
Ground port, output port include the first configuration end being connect respectively with the input port of the first dispensing unit and the second dispensing unit
Mouth, second are configured port and are controlled with the first control port and second that first switch circuit, second switch circuit are connect respectively
The delivery outlet of port processed, the first dispensing unit and the second dispensing unit connects the state end of second interface and third interface respectively.
The physical circuit connection of charging circuit of the embodiment of the present invention is seen shown in Fig. 2, at the control of the embodiment of the present invention
It can be microcontroller processing chip to manage device, and such as 51 microcontrollers, the function of specific input/output end port can be set as needed,
Refering to the control processor U1 in Fig. 2 including voltage port VCC, GPIO1-3 ports be respectively first voltage detection port, second
Voltage detecting port, tertiary voltage detection port, GPIO4 and GPIO5 ports are respectively the first configuration port and the second configuration end
Mouthful, GPIO8 and GPIO9 ports are respectively the first control port and the second control port, and GPIO10 can be used for accessing switching switch
Input signal, grounding ports GND and other standby ports GPIO11 and GPIO12 etc..
Preferably, the first interface voltage end VBUS0 warps of a kind of data line with charging circuit of the embodiment of the present invention
The voltage port of first diode D1 connection control processors, and the inspection of the tertiary voltage through the 6th resistance R6 connection control processors
Survey port, voltage ports of the voltage end VBUS1 of second interface through the second diode D2 connection control processors, and through third electricity
The second voltage detection port of R3 connection control processors is hindered, the voltage end VBUS2 of third interface is through the D3 connections of third diode
The voltage port of control processor, and the detection of the first voltage through the 4th resistance R4 connection control processors port.
Wherein first interface can be USB public affairs mouths, and second interface and third interface can be miniature public mouth, including iPhone public affairs
Mouth, Mini USB public affairs mouths and Micro USB public affairs mouths etc., as shown in Figure 2, first interface J2 are USB public affairs mouths, are drawn including four
Foot, respectively voltage end VBUS, data pin D+, D- and ground terminal GND, second interface J3 and third interface J5 are Micro
USB public affairs mouths, including five pins, respectively voltage end VBUS, data pin D+, D-, ID states end and ground terminal GND.
In order to stablize the voltage of first, second and third interface, first is connected between first interface voltage end and ground terminal
The second decoupling capacitor C2 and second interface voltage end are connected between decoupling capacitor C1, second interface voltage end and ground terminal and is connect
Third decoupling capacitor C3 is connected between ground terminal.
Preferably, the first dispensing unit includes the first metal-oxide-semiconductor switch Q1, and the second dispensing unit includes the second metal-oxide-semiconductor and switchs
Q4, the first metal-oxide-semiconductor switch and the second metal-oxide-semiconductor switch are p-type field-effect tube, and the grid (1 foot) of the first metal-oxide-semiconductor switch connects control
First configuration port of processor processed is simultaneously grounded through second resistance R2, and the state end ID1 of source electrode (2 foot) connection second interface is simultaneously passed through
The voltage port of first resistor R1 connection control processors, drain electrode (3 foot) ground connection, the grid connection control of the second metal-oxide-semiconductor switch
Second configuration port of processor is simultaneously grounded through the tenth resistance R10, and the state end ID2 of source electrode connection third interface is simultaneously electric through the 7th
Hinder the voltage port of R7 connection control processors, grounded drain.
Preferably, first switch circuit includes the first relay switch J1, and second switch circuit is opened including the second relay
Close J4, the first common end (com1) connection first interface voltage end of the first relay switch J1, first coil end (L1) connection
The voltage port of control processor, normally open end (NC) vacantly, normal-closed end (NO) connects second interface voltage end, the second coil-end
(L2) connect control processor the first control port, the second common end (com2) vacantly, the first of the second relay switch J4
Common end connects second interface voltage end, and first coil end connects the voltage port of control processor, and normally open end is hanging, normal-closed end
Third interface voltage end is connected, the second coil-end connects the second control port of control processor, and the second common end is hanging.
Preferably, first switch circuit, which further includes, is connected to first the second coil-end of relay switch and control processor the
Third metal-oxide-semiconductor switch Q2 between one control port, second switch circuit, which further includes, is connected to second the second line of relay switch
The 4th metal-oxide-semiconductor switch Q3 between the second control port of end and control processor is enclosed, third metal-oxide-semiconductor switch and the 4th metal-oxide-semiconductor are opened
Pass is N-type field-effect tube, and the grid (1 foot) of third metal-oxide-semiconductor connects the first control port, source electrode (2 foot) ground connection, drain electrode (3
Foot) first the second coil-end of relay switch of connection, grid the second control port of connection of the 4th metal-oxide-semiconductor switch, source electrode ground connection,
Drain electrode first the second coil-end of relay switch of connection.
Further, a kind of data line with charging circuit of the embodiment of the present invention further includes indicating unit, for referring to
Show charging direction, it is user-friendly.Indicating unit includes the first light emitting diode D4 and the second light emitting diode D5, and first
The input port GPIO11 of the anode connection control processor of light emitting diode, cathode ground connection, the anode of the second light emitting diode
The input port GPIO12 of control processor is connected, cathode is grounded, the color of the first light emitting diode and the second light emitting diode
It can determine as needed.
Have the function of that the data line of charging circuit is real with the physical circuit figure of Fig. 2 the embodiment of the present invention is described in detail
It is existing:
(1) when first interface J2 connection adapters or other power supplys (such as PC USB jacks), second interface J3 and third
Interface J5 can connect Bluetooth fingerprint, wrist-watch, bracelet, bluetooth headset etc. or other movement equipment (such as mobile phone, Pad simultaneously
Deng), it can also individually connect one of those.
First interface J2 connection adapters or other power supplys (such as PC USB jacks), the voltage end VBUS0 of J2 are connected
Onto+5V power supplys ,+5V voltages are connected on the voltage port VCC of control processor U1, at this time by the first diode D1 conductings
Control processor U1 starts power up work.Control processor U1 first checks for first to tertiary voltage detection port after the power is turned on
The voltage status of GPIO1-3, because first interface J2 has electricity, GPIO3 level is high level, and control processor judgement has outer
Portion's power supply is inserted into, the output of first and second configuration port GPIO4/5 and first, second control port GPIO8/9 will be configured
For high level, so as to which the first metal-oxide-semiconductor switch Q1 of the first dispensing unit and the second metal-oxide-semiconductor switch Q4 of the second dispensing unit are not led
Logical, the voltage end VBUS that second interface connect network with state end ID1, ID2 of third interface is high level, thus no matter J3 with
Which kind of equipment J5 is inserted into, and second interface and third interface are each configured to charged state.Simultaneously as first, second control port
GPIO8/9 is high level, third metal-oxide-semiconductor switch Q2 and the switch Q3 conductings of the 4th metal-oxide-semiconductor, so as to trigger first, second relay
It switchs J1 and J4 to be closed, i.e. first switch circuit and second switch circuit turn-on, so as to fulfill the external power supply of first interface J2
It charges to the electronic equipment of second interface J3 and third interface J5.In addition, control processor U1 controls indicator light end by program
Mouth JPIO11 and JPIO12 output high level lights first and second light emitting diode D4/D5, instruction charging current direction.
(2) when first interface J2 hanging (being not connected to any adapter or power supply), second interface J3 connections Bluetooth fingerprint,
Bluetooth headset etc. is without the equipment of OTG functions, the equipment such as mobile phone, the pad of third interface J5 connect band OTG functions.
Since hanging its voltage end VBUS0 of first interface J2 are low level, control processor does not work on power at this time, gives tacit consent to
First, second configuration port GPIO4, GPIO5 output for low level, at this time the metal-oxide-semiconductor switch Q1 of first, second dispensing unit and
Q4 is conducting, so state end ID1 and the ID2 ground connection of second interface J3 and third interface J5, is low level.And third interface
The electronic equipment of OTG functions is supported in J5 connections, and voltage end VBUS2 has voltage for+5v, therefore third diode D3 is connected to control
Processor U1 power supplies processed, control processor U1 work on power, first first to tertiary voltage detection port GPIO1-3 voltage shape
State, only first voltage detection port GPIO1 is high level at this time, judges only have third interface J5 to have electricity, and current second connects
Although mouthful J3 has been pulled low without electricity but state end ID1, so it is low electricity that control processor, which controls the first control port GPIO8,
Flat, Power1 networks are pulled low, and the second control port GPIO9 is high level, and Power2 networks are raised, therefore third metal-oxide-semiconductor
Switch Q2 is not turned on, and the first relay switch device J1, which is failure to actuate, to be off, i.e. first switch circuit is not turned on, the 4th MOS
Pipe switch Q4 conductings, the second relay switch J4 are closed, i.e. second switch circuit turn-on, and the 1st foot of J4 connects the 4th foot by the
The voltage end VBUS1 of the voltage end VBUS2 connection second interfaces J3 of three interface J5 realizes the electronic equipment of third interface to second
The electronic equipment charging of interface.In addition control processor U1 controls indicator light port JPIO11 to export high level, point by program
Bright first light emitting diode D4, instruction charging current direction.
Similarly, if first interface J2 is hanging, third interface J5 connections Bluetooth fingerprint, bluetooth headset etc. are without OTG functions
Equipment, the equipment such as mobile phone, the pad of second interface J3 connect band OTG functions, which realizes that the electronics of second interface is set
The standby electronic equipment to third interface charges, and the second light emitting diode D5 is lighted, instruction charging current direction.
(3) when first interface J2 is hanging (being not connected to any adapter or power supply), second interface J3 and third interface J5 are equal
The equipment such as mobile phone, the pad of connect band OTG functions.
First interface J2 is hanging, and the state end ID1 and ID2 of second interface J3 and third interface J5 are defaulted as low level.By
It is band OTG function electronic equipments in second interface J3 and third interface J5, voltage end VBUS1 and VBUS2 have electricity, therefore
Second diode D2 and third diode D3 conductings, control processor U1 work on power.Control processor U1 detections first to the
The voltage status of three voltage detecting port GPIO1-3 judges that second interface J3 and third interface J5 support OTG functions, but mesh
Preceding to need one to power another equipment, control processor performs default program configuration, and the second configuration of configuration port GPIO5 is defeated
Go out for high level, POWER_EN_2 networks are drawn high, the second metal-oxide-semiconductor switch Q4 is not turned on, and the state end ID2 of third interface is connected
Network voltage end is connected to, so as to control third Interface status end ID2, for high level, third interface J5 is configured to charged state, because
The OTG functions of the electronic equipment of this third interface J5 connections are closed, and can only be used as being electrically charged equipment, and second interface J3 connections
Electronic equipment be used as discharge equipment.It is low level that control processor, which controls the first control port GPIO8, and Power1 networks are drawn
Low, the second control port GPIO9 is high level, and Power2 networks are raised, therefore third metal-oxide-semiconductor switch Q2 is not turned on, first
Relay switch device J1, which is failure to actuate, to be off, i.e. first switch circuit is not turned on, the switch Q4 conductings of the 4th metal-oxide-semiconductor, and second
Relay switch J4 is closed, i.e. second switch circuit turn-on, and the 1st foot of J4 connects the 4th foot by the voltage end J5 of third interface J5
The voltage end of second interface J3 is connected, realizes that the electronic equipment of second interface charges to the electronic equipment of third interface.In addition, control
Processor U1 processed controls indicator light port JPIO12 to export high level by program, lights the second light emitting diode D5, instruction is filled
Electric current direction.
If default program configuration does not meet user's requirement, user wants the electronic equipment by third interface J5 to second
The electronic equipment charging of interface J3, can be switched by switching switch K1.Program acquiescence switching signal input port GPIO10
It is high level, when switching switch K1 is triggered, port GPIO10 is pulled low as low level, and control processor U1 detects that level becomes
Judge that switch K1 is triggered after change, it is low level that control processor U1, which controls the second control port GPIO9 outputs, by POWER2 nets
Network drags down, and so as to which the 4th metal-oxide-semiconductor switch is not turned on, the second relay J4 is disconnected, and is initially switched off second interface to third interface
Charging.The second configuration of control processor U1 configurations later port GPIO5 is low level, and POWER_EN_2 networks are dragged down so that
Third interface J5 states end ID2 is low level, is configured to discharge condition, the OTG functions of the electronic equipment of third interface J5 are beaten
It opens, then the first configuration of control processor U1 configurations port GPIO4 outputs are high level, and POWER_EN_1 networks are drawn high, are made
It is high level to obtain second interface state end ID1, is configured to charged state, the OTG functions of the electronic equipment of second interface J3 are closed
It closes, realizes that the electronic equipment of third interface charges to the electronic equipment of second interface.In addition, control processor U1 passes through program control
Indicator light port JPIO11 processed exports high level, lights the first light emitting diode D4, instruction charging current direction.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, several improvements and modifications can also be made, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (8)
1. a kind of data line with charging circuit, which is characterized in that the charging circuit includes:First interface, second interface,
Third interface, control process circuit, first switch circuit and second switch circuit, the first interface voltage end is through first switch
Circuit connects second interface voltage end, and the second interface voltage end is through second switch circuit connection third interface voltage end;
The control process circuit be used for according to first interface voltage end, second interface voltage end, third interface voltage end electricity
It is flat, the charging and discharging state of second interface and third interface is configured, controls first switch circuit and/or second switch circuit turn-on,
The external power supply of first interface is made to charge to the electronic equipment of second interface and third interface or set the electronics of second interface
It is standby mutually to charge between the electronic equipment of third interface;Wherein, first and second switching circuit initial default is off-state;
The control process circuit include a control processor and for second interface, third interface charging and discharging state is configured the
One dispensing unit and the second dispensing unit, the input port of the control processor includes voltage port, with first interface voltage
The tertiary voltage that end, second interface voltage end, third interface voltage end connect respectively detects port, second voltage detects port,
First voltage detects port and grounding ports, and output port includes defeated with the first dispensing unit and the second dispensing unit
The first configuration port that entrance connects respectively, the second configuration and connect port respectively with first switch circuit, second switch circuit
The delivery outlet of the first control port and the second control port connect, first dispensing unit and the second dispensing unit connects respectively
The state end of second interface and third interface;
Voltage port of the first interface voltage end through the first diode connection control processor, and connect and control through the 6th resistance
The tertiary voltage detection port of processor processed, electricity of the voltage end of the second interface through the second diode connection control processor
Pressure side mouth, and the second voltage through 3rd resistor connection control processor detects port, the voltage end of the third interface is through the
Three diodes connect the voltage port of control processor, and through the first voltage test side of the 4th resistance connection control processor
Mouthful.
2. the data line according to claim 1 with charging circuit, which is characterized in that when first interface voltage end is height
During level, the control process circuit configuration second interface and third interface are charged state, and control first switch circuit and
Second switch circuit turn-on makes the external power supply of first interface charge to the electronic equipment of second interface and third interface.
3. the data line according to claim 1 with charging circuit, which is characterized in that
When first interface voltage end is low level, second interface voltage end is high level, when third interface is low level, the control
Processing circuit configuration second interface processed is discharge condition, and third interface is charged state, and controls second switch circuit turn-on, is made
The electronic equipment of second interface charges to the electronic equipment of third interface;
When first interface voltage end is low level, second interface voltage end is low level, when third interface is high level, the control
Processing circuit configuration second interface processed is charged state, and third interface is discharge condition, and controls second switch circuit turn-on, is made
The electronic equipment of third interface charges to the electronic equipment of second interface.
4. the data line according to claim 1 with charging circuit, which is characterized in that
When first interface voltage end is low level, second interface voltage end is high level, when third interface voltage end is high level,
The control process circuit configuration third interface is charged state, second interface is discharge condition, and controls second switch circuit
Conducting makes the electronic equipment of second interface charge to the electronic equipment of third interface.
5. the data line according to claim 4 with charging circuit, which is characterized in that the charging circuit further includes one
Switching switch, the switching switch connect control process circuit;
It is low level in first interface voltage end, second interface voltage end is high level, and third interface voltage end is high level, and
When switching switch is triggered, the control process circuit be additionally operable to configuration second interface be charged state, configuration third interface be
Discharge condition, and second switch circuit turn-on is controlled, the electronic equipment of third interface is made to charge to the electronic equipment of second interface.
6. the data line according to claim 1 with charging circuit, which is characterized in that first dispensing unit includes
First metal-oxide-semiconductor switchs, and second dispensing unit is switched including the second metal-oxide-semiconductor, the first metal-oxide-semiconductor switch and the second metal-oxide-semiconductor switch
It is p-type field-effect tube, the first configuration port of the grid connection control processor of the first metal-oxide-semiconductor switch is simultaneously electric through second
Resistance ground connection, the state end of source electrode connection second interface and the voltage port that control processor is connected through first resistor, grounded drain,
The second of the grid connection control processor of the second metal-oxide-semiconductor switch is configured port and through the tenth resistance eutral grounding, source electrode connection
The state end of third interface and the voltage port that control processor is connected through the 7th resistance, grounded drain.
7. the data line according to claim 1 with charging circuit, which is characterized in that the first switch circuit includes
First relay switch, the second switch circuit include the second relay switch, and the first of first relay switch is public
End connection first interface voltage end, first coil end connect the voltage port of control processor altogether, and normally open end is hanging, and normal-closed end connects
Connecing second interface voltage end, the second coil-end connects the first control port of control processor, and the second common end is hanging, and described the
The first common end connection second interface voltage end of two relay switches, first coil end connects the voltage end of control processor
Mouthful, normally open end is hanging, and normal-closed end connection third interface voltage end, the second coil-end connects the second control terminal of control processor
Mouthful, the second common end is hanging.
8. the data line according to claim 7 with charging circuit, which is characterized in that the first switch circuit also wraps
The third metal-oxide-semiconductor switch being connected between first the second coil-end of relay switch and the first control port of control processor is included,
The second switch circuit, which further includes, is connected to second the second coil-end of relay switch and the second control port of control processor
Between the 4th metal-oxide-semiconductor switch, third metal-oxide-semiconductor switch and the 4th metal-oxide-semiconductor switch be N-type field-effect tube, the third metal-oxide-semiconductor
Grid connect the first control port, source electrode ground connection, drain electrode connection first the second coil-end of relay switch, the 4th MOS
The grid of pipe switch connects the second control port, source electrode ground connection, drain electrode first the second coil-end of relay switch of connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610211118.8A CN105790356B (en) | 2016-04-06 | 2016-04-06 | A kind of data line with charging circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610211118.8A CN105790356B (en) | 2016-04-06 | 2016-04-06 | A kind of data line with charging circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105790356A CN105790356A (en) | 2016-07-20 |
CN105790356B true CN105790356B (en) | 2018-07-03 |
Family
ID=56395782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610211118.8A Active CN105790356B (en) | 2016-04-06 | 2016-04-06 | A kind of data line with charging circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105790356B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106329642A (en) * | 2016-09-12 | 2017-01-11 | 珠海格力电器股份有限公司 | Partner charging control method, partner charging control system, and mobile device |
CN108886225B (en) * | 2017-01-24 | 2020-06-02 | 华为技术有限公司 | Charging cable |
CN109388601B (en) * | 2017-08-10 | 2023-07-18 | 成都圣成通幽科技有限公司 | Control method of OTG power supply and charging automatic switching module |
CN108206444B (en) * | 2017-12-26 | 2021-01-26 | 努比亚技术有限公司 | Data line and data transmission method |
CN108536627B (en) * | 2018-03-30 | 2021-07-16 | 联想(北京)有限公司 | Control method of electronic equipment and electronic equipment |
CN108493731B (en) * | 2018-05-14 | 2019-11-26 | 维沃移动通信有限公司 | A kind of data line and its driving method |
CN108631401B (en) * | 2018-05-23 | 2020-07-28 | 北京小米移动软件有限公司 | Charging circuit, method, electronic device, and storage medium |
CN108988629B (en) * | 2018-06-21 | 2020-12-11 | 上海艾为电子技术股份有限公司 | Detection circuit, boosting device, and DC/DC converter |
CN108696688A (en) * | 2018-07-13 | 2018-10-23 | 维沃移动通信有限公司 | A kind of camera, terminal and image pickup method |
CN109510045A (en) * | 2018-12-05 | 2019-03-22 | 北京阿法龙科技有限公司 | A kind of USB data line of auxiliary power supply |
CN110518651A (en) * | 2019-06-25 | 2019-11-29 | 商洛市虎之翼科技有限公司 | A kind of portable charge and discharge electric appliance |
CN110380469A (en) * | 2019-06-28 | 2019-10-25 | 联想(北京)有限公司 | Electronic equipment and method of supplying power to |
CN111146653B (en) * | 2019-12-12 | 2022-06-17 | 立讯精密工业股份有限公司 | Circuit and connector with same |
CN110880805B (en) * | 2019-12-19 | 2021-09-17 | 维沃移动通信有限公司 | Charging device and control method |
CN111509815B (en) * | 2020-05-29 | 2022-02-08 | 维沃移动通信有限公司 | Data line and charging equipment |
CN112086830B (en) * | 2020-07-23 | 2022-12-06 | 福建联迪商用设备有限公司 | Data line circuit communicating with iOS device |
CN113067390B (en) * | 2021-04-27 | 2024-04-26 | 维沃移动通信有限公司 | Interface circuit, electronic device, and communication signal transmission method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1742140A2 (en) * | 2005-07-05 | 2007-01-10 | High Tech Computer Corp. | Cradle for connecting to portable electronic apparatus |
CN202957436U (en) * | 2012-12-11 | 2013-05-29 | 詹昌漫 | Multifunctional mobile terminal data line |
CN104953406A (en) * | 2015-06-30 | 2015-09-30 | 努比亚技术有限公司 | Data line |
-
2016
- 2016-04-06 CN CN201610211118.8A patent/CN105790356B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1742140A2 (en) * | 2005-07-05 | 2007-01-10 | High Tech Computer Corp. | Cradle for connecting to portable electronic apparatus |
CN202957436U (en) * | 2012-12-11 | 2013-05-29 | 詹昌漫 | Multifunctional mobile terminal data line |
CN104953406A (en) * | 2015-06-30 | 2015-09-30 | 努比亚技术有限公司 | Data line |
Also Published As
Publication number | Publication date |
---|---|
CN105790356A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105790356B (en) | A kind of data line with charging circuit | |
CN106301342B (en) | Interface circuit and terminal device | |
CN108123519A (en) | Power supply transfer equipment and its control method, device and electric power system | |
CN104037884A (en) | Charging method and device integrating quick-charging rules and USB charging rules | |
CN107658920B (en) | OTG is realized based on external charging and the difunctional system that charges | |
CN207320876U (en) | A kind of charging circuit and charger | |
CN204361767U (en) | Charger and charging control circuit thereof | |
CN107643998A (en) | OTG and the difunctional system that charges are realized based on intelligent object | |
CN109413532A (en) | A kind of charging bluetooth earphone circuit and bluetooth headset | |
CN207765577U (en) | Battery capacity manages circuit | |
CN104882926B (en) | A kind of charging indication and mobile terminal | |
CN106877078A (en) | Terminal connection circuit and its method for wearable device | |
CN204651614U (en) | A kind of data wire with charging instruction | |
CN106774596B (en) | A kind of electric power management circuit, electronic equipment and control method of electronic device | |
CN212965358U (en) | Broken line detection circuit with load access automatic wake-up function and power bank | |
CN206650453U (en) | Multiplex roles quick charge cable | |
CN111537915A (en) | Broken string detection circuitry and treasured that charges of polymorphic type charging wire | |
CN211264156U (en) | Master-slave mode automatic switching device for electronic equipment | |
CN110096382A (en) | The electronic device of mainboard and the application mainboard | |
CN206432513U (en) | The terminal connection circuit of wearable device | |
CN207320875U (en) | A kind of charging detecting circuit and charger | |
CN207302113U (en) | Chargeable smart card charging system, smart card and card reader | |
CN107733025B (en) | USB and DC compatible double-charging circuit and operation method thereof | |
CN205790822U (en) | A kind of charging wire | |
CN105403756A (en) | Circuit device having ground wire live detection function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |