CN105790356A - Data line having charging circuit - Google Patents
Data line having charging circuit Download PDFInfo
- Publication number
- CN105790356A CN105790356A CN201610211118.8A CN201610211118A CN105790356A CN 105790356 A CN105790356 A CN 105790356A CN 201610211118 A CN201610211118 A CN 201610211118A CN 105790356 A CN105790356 A CN 105790356A
- Authority
- CN
- China
- Prior art keywords
- interface
- circuit
- port
- connects
- voltage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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 data line having a charging circuit. The charging circuit is composed of a first interface, a second interface, a third interface, a control processing circuit, a first switch circuit and a second switch circuit. A voltage terminal of the first interface is connected with a voltage terminal of the second interface by the first switch circuit; and a voltage terminal of the second interface is connected with a voltage terminal of the third interface by the second switch circuit. The control processing circuit is used for configuring charging and discharging states of the second interface and the third interface according levels of the first interface voltage terminal, the second interface voltage terminal, and the third interface voltage terminal and controlling conduction of the first switch circuit and/or the second switch circuit, so that an external power supply of the first interface charges electronic equipment of the second interface and the third interface or mutual charging of the electronic equipment of the second interface and the electronic equipment of the third interface is carried out. According to the data line having a charging circuit, charging of multiple pieces of electronic equipment can be realized simultaneously and mutual charging between the electronic equipment also can be realized.
Description
Technical field
The present invention relates to electronic technology field, particularly to a kind of data wire with charging circuit.
Background technology
Along with the development of electronic technology, the range of application of portable electronic equipment is more and more extensive, and kind also gets more and more, for instance: mobile phone, bluetooth earphone, intelligent watch, Intelligent bracelet etc., become the requisite assembling of trip of people's daily life.And need a plurality of data lines to the charging of these electronic equipments, carry inconvenience.And generic USB cable only by the USB interface of adapter or PC to the charging of the peripheral hardware such as mobile phone, when being absent from adapter or PC, only mobile phone has during electricity when wanting to equipment charges such as other bluetooth earphones to also need to an OTG cable, and mobile phone can only give the equipment charge without OTG function can not to the equipment charge with OTG function such as mobile phone.There is not yet such a in the market and both simultaneously to multiple equipment charges, the Multifunctional data line of charging between mobile equipment can be may be used for again.
Summary of the invention
It is an object of the invention to provide a kind of data wire with charging circuit, this charging circuit is by detecting the voltage status of interface, the charging and discharging state of configuration the corresponding interface a, it is achieved data line gives the charging of multiple electronic equipments and the mutual charging between electronic equipment simultaneously.
The present invention provides technical scheme as follows:
A kind of data wire with charging circuit, described charging circuit includes: first interface, the second interface, the 3rd interface, control process circuit, the first on-off circuit and second switch circuit, described first interface voltage end connects the second interface voltage end through the first on-off circuit, and described second interface voltage end connects the 3rd interface voltage end through second switch circuit;
Described control process circuit for according to first interface voltage end, the second interface voltage end, the 3rd interface voltage end level, configure the second interface and the charging and discharging state of the 3rd interface, control the first on-off circuit and/or second switch circuit turn-on, make the external power source electronic equipment charging to the second interface and the 3rd interface of first interface, or make mutually to charge between the electronic equipment of the second interface and the electronic equipment of the 3rd interface;Wherein, first and second on-off circuit initial default is off-state.
The method have the advantages that
A kind of data wire with charging circuit of the present invention includes multiple interface, control processes circuit and multiple on-off circuit, control processes circuit can detect the voltage levels that multiple interface accesses automatically, control the turned on or off of multiple on-off circuit, the charging and discharging state of configuration the corresponding interface, the data wire that realizes of automated intelligent is simultaneously to the charging of multiple electronic equipments, or mutually charging and charging direction between electronic equipment.Its circuit structure of the data wire with charging circuit of the present invention is simple, control intelligence, decrease user and carry the quantity of data wire, and when being absent from adapter or PC, facilitate user with having the electronic equipment of OTG function to not having the equipment charge of OTG function, or realize having between the electronic equipment of OTG function and mutually charge, for instance: there is the mobile phone of OTG function to not having between charging bluetooth earphone or mobile phone and the mobile phone of OTG function and mutually charging.
Accompanying drawing explanation
Fig. 1 is the structural representation of an embodiment of a kind of data wire with charging circuit provided by the invention;
Fig. 2 is the circuit diagram of a specific embodiment of a kind of data wire with charging circuit provided by the invention.
Detailed description of the invention
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, it is described in detail below in conjunction with the accompanying drawings and the specific embodiments.
Refer to Fig. 1 and Fig. 2, the embodiment of the present invention provides a kind of data wire 100 with charging circuit, comprising: first interface the 10, second interface the 20, the 3rd interface 30, control process circuit the 40, first on-off circuit 50 and second switch circuit 60, wherein: first interface voltage end connects the second interface voltage end through the first on-off circuit, second interface voltage end connects the 3rd interface voltage end through second switch circuit, first, second and third interface, first and second on-off circuit is all connected with control and processes circuit.
Control process circuit for according to first interface voltage end, the second interface voltage end, the 3rd interface voltage end level, configure the second interface and the charging and discharging state of the 3rd interface, control the first on-off circuit and/or second switch circuit turn-on, make the external power source electronic equipment charging to the second interface and the 3rd interface of first interface, or make mutually to charge between the electronic equipment of the second interface and the electronic equipment of the 3rd interface;Wherein, first and second on-off circuit initial default is off-state, give tacit consent to first interface as main interface, access external power source, such as adapter or PC, first, second interface is as from interface, access the electronic equipment with OTG function, or access the electronic equipment without OTG function, electronic equipment with OTG function referred to herein refers to that have can the electronic equipment of external discharging function, such as: mobile phone, ipad etc., and the electronic equipment without OTG function refers to the electronic equipment without external discharging function, for instance: bluetooth earphone, USB flash disk etc..
A kind of data wire with charging circuit of above-described embodiment is with three interfaces, two on-off circuits and control process the charging circuit configuration of circuit and representatively set forth technical scheme, a kind of data wire with charging circuit of the present invention can include the interface of more than three, and corresponding two or more on-off circuit, it is connected in series multiple on-off circuit between the voltage end and the voltage end of last interface of first interface, the node that connects of each two on-off circuit connects the voltage end of another interface, wherein, first interface is main interface, other interfaces are from interface, because the principle of its charging circuit is identical, realize function also identical, no longer set forth one by one herein.
nullA kind of data wire with charging circuit of the embodiment of the present invention includes multiple interface、Control processes circuit and multiple on-off circuit,Control processes circuit can detect the voltage levels that multiple interface accesses automatically,Control the turned on or off of multiple on-off circuit,The charging and discharging state of configuration the corresponding interface,The data wire that realizes of automated intelligent is simultaneously to the charging of multiple electronic equipments,Or the charging mutually between electronic equipment and charging direction,Its charging circuit configuration is simple,Control intelligence,Decrease user and carry the quantity of data wire,And when being absent from adapter or PC,User is facilitated to charge to the electronic equipment without OTG function with the electronic equipment with OTG function,Or realize having between the electronic equipment of OTG function and mutually charge,Such as: there is the mobile phone of OTG function to not having between charging bluetooth earphone or mobile phone and the mobile phone of OTG function and mutually charging.
Further, when first interface voltage end is high level, control process circuit configures the second interface and the 3rd interface is charged state, and controls the first on-off circuit and second switch circuit turn-on, makes the external power source electronic equipment charging to the second interface and the 3rd interface of first interface.When control process electric circuit inspection to first interface voltage end is high level, it was shown that first interface accesses external power source, and no matter which kind of electronic equipment first, second interface accesses, all as being electrically charged equipment.A kind of data wire with charging circuit of the embodiment of the present invention can realize external power source and multiple electronic equipments be charged simultaneously.
Further, when first interface voltage end is low level, second interface voltage end is high level, when 3rd interface is low level, it is discharge condition that control process circuit configures the second interface, 3rd interface is charged state, and controls second switch circuit turn-on, makes the electronic equipment of the second interface charge to the electronic equipment of the 3rd interface;When first interface voltage end is low level, second interface voltage end is low level, when 3rd interface is high level, it is charged state that control process circuit configures the second interface, 3rd interface is discharge condition, and control second switch circuit turn-on, make the electronic equipment of the 3rd interface charge to the electronic equipment of the second interface.A kind of data wire with charging circuit of the embodiment of the present invention can realize the electronic equipment with OTG function to the electronic equipment charging without OTG function.
As an illustration, when first interface voltage end is low level, second interface voltage end is high level, when 3rd interface voltage end is high level, it be charged state, the second interface is discharge condition that control processes circuit configuration the 3rd interface, and control second switch circuit turn-on, make the electronic equipment of the second interface charge to the electronic equipment of the 3rd interface.A kind of data wire with charging circuit of the embodiment of the present invention can realize the mutual charging having between the electronic equipment of OTG function, it adopts the mode in default configuration charging direction, when being concurrently accessed the electronic equipment with OTG function, the electronic equipment giving tacit consent to the second interface charges to the electronic equipment of the 3rd interface.
As an illustration, a kind of data wire with charging circuit of the embodiment of the present invention also includes a switching switch 70, and switching switch connects control and processes circuit;
It is low level at first interface voltage end, second interface voltage end is high level, 3rd interface voltage end is high level, and switching switch is when being triggered, control process circuit be additionally operable to configuration the second interface be charged state, configuration the 3rd interface be discharge condition, and control second switch circuit turn-on, make the electronic equipment of the 3rd interface charge to the electronic equipment of the second interface.
Illustrate as another, when first interface voltage end is low level, second interface voltage end is high level, when 3rd interface voltage end is high level, it be discharge condition, the second interface is charged state that control processes circuit configuration the 3rd interface, and control second switch circuit turn-on, make the electronic equipment of the 3rd interface charge to the electronic equipment of the second interface.
Illustrate as another, it is low level at first interface voltage end, second interface voltage end is high level, 3rd interface voltage end is high level, and switching switch is when being triggered, control processes circuit, and to be additionally operable to configuration the second interface be discharge condition, configuration the 3rd interface be charged state, and controls second switch circuit turn-on, makes the electronic equipment of the second interface charge to the electronic equipment of the 3rd interface.
A kind of data wire with charging circuit of the embodiment of the present invention increases switching switch and realizes the switching in above-mentioned acquiescence charging direction, by the triggering switching switch that user is artificial, give to control processor switching signal, control processor by configuring the charging and discharging state of second, third interface, it is achieved the electronic equipment of the 3rd interface charges to the electronic equipment of the second interface or the electronic equipment of the second interface charges to the electronic equipment of the 3rd interface.The embodiment of the present invention is by increasing the control that switching switch realizes having the electric room charging direction of OTG function, compared to the mode in acquiescence charging direction and the mode being determined charging direction by relatively more mobile equipment voltage levels, user can determine charging direction according to wish, convenient, experience property is better.
nullFurther,A kind of its control of data wire with charging circuit of the embodiment of the present invention processes circuit and includes a control processor 41 and for configuring the second interface、First dispensing unit 42 and the second dispensing unit 43 of the 3rd interface charging and discharging state,Wherein: the input port controlling processor includes voltage port,With first interface voltage end、Second interface voltage end、The tertiary voltage detection port that 3rd interface voltage end connects respectively、Second voltage detecting port、First voltage detecting port,And grounding ports,Its output port includes the first configuration port being connected respectively with the input port of the first dispensing unit and the second dispensing unit、Second configuration port,And with the first on-off circuit、The first control port and second that second switch circuit connects respectively controls port,The delivery outlet of the first dispensing unit and the second dispensing unit connects the second interface and the state end of the 3rd interface respectively.
The physical circuit connection of embodiment of the present invention charging circuit see shown in Fig. 2, the control processor of the embodiment of the present invention can process chip for single-chip microcomputer, such as 51 single-chip microcomputers, the function of its concrete input/output end port can set as required, the control processor U1 consulted in Fig. 2 includes voltage port VCC, GPIO1-3 port is the first voltage detecting port respectively, second voltage detecting port, tertiary voltage detection port, GPIO4 and GPIO5 port respectively the first configuration port and the second configuration port, GPIO8 and GPIO9 port respectively the first control port and second controls port, 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 of a kind of data wire with charging circuit of the embodiment of the present invention connects the voltage port controlling processor through the first diode D1, and the tertiary voltage detection port controlling processor is connected through the 6th resistance R6, the voltage end VBUS1 of the second interface connects the voltage port controlling processor through the second diode D2, and the second voltage detecting port controlling processor is connected through the 3rd resistance R3, the voltage end VBUS2 of the 3rd interface connects the voltage port controlling processor through the 3rd diode D3, and the first voltage detecting port controlling processor is connected through the 4th resistance R4.
Wherein first interface can be USB public affairs mouth, the second interface and the 3rd interface can be miniature public mouth, including i Phone public affairs mouth, MiniUSB public affairs mouth and MicroUSB public affairs mouth etc., as shown in Figure 2, first interface J2 is USB public affairs mouth, and it includes four pins, respectively voltage end VBUS, data pin D+, D-and earth terminal GND, second interface J3 and the three interface J5 is MicroUSB public affairs mouth, and it includes five pins, respectively voltage end VBUS, data pin D+, D-, ID state end and earth terminal GND.
In order to stablize the voltage of first, second and third interface, connect the first decoupling capacitor C1 between first interface voltage end and earth terminal, between the second interface voltage end and earth terminal, connect connection the 3rd decoupling capacitor C3 between the second decoupling capacitor C2 and the second interface voltage end and earth terminal.
Preferably, first dispensing unit includes the first metal-oxide-semiconductor switch Q1, second dispensing unit includes the second metal-oxide-semiconductor switch Q4, first metal-oxide-semiconductor switch and the second metal-oxide-semiconductor switch are P type field effect transistor, the grid (1 foot) of the first metal-oxide-semiconductor switch connects the first configuration port controlling processor and through the second resistance R2 ground connection, source electrode (2 foot) connects the state end ID1 of the second interface and connects the voltage port controlling processor through the first resistance R1, drain electrode (3 foot) ground connection, the grid of the second metal-oxide-semiconductor switch connects the second configuration port controlling processor and through the tenth resistance R10 ground connection, source electrode connects the state end ID2 of the 3rd interface and connects the voltage port controlling processor through the 7th resistance R7, grounded drain.
Preferably, first on-off circuit includes the first relay switch J1, second switch circuit includes the second relay switch J4, first common port (com1) of the first relay switch J1 connects first interface voltage end, first coil end (L1) connects the voltage port controlling processor, normally opened end (NC) is unsettled, normal-closed end (NO) connects the second interface voltage end, second coil-end (L2) connects the first control port controlling processor, second common port (com2) is unsettled, first common port of the second relay switch J4 connects the second interface voltage end, first coil end connects the voltage port controlling processor, normally opened end is unsettled, normal-closed end connects the 3rd interface voltage end, second coil-end connects the second control port controlling processor, second common port is unsettled.
Preferably, first on-off circuit also includes being connected to first relay switch the second coil-end and controlling the 3rd metal-oxide-semiconductor switch Q2 that processor first controls between port, second switch circuit also includes being connected to second relay switch the second coil-end and controlling the 4th metal-oxide-semiconductor switch Q3 that processor second controls between port, 3rd metal-oxide-semiconductor switch and the 4th metal-oxide-semiconductor switch are N-type field effect transistor, the grid (1 foot) of the 3rd metal-oxide-semiconductor connects the first control port, source electrode (2 foot) ground connection, drain electrode (3 foot) connects first relay switch the second coil-end, the grid of the 4th metal-oxide-semiconductor switch connects the second control port, source ground, drain electrode connects first relay switch the second coil-end.
Further, a kind of data wire with charging circuit of the embodiment of the present invention also includes indicating member, is used for indicating charging direction, user-friendly.Indicating member includes the first light emitting diode D4 and the second light emitting diode D5, the positive pole of the first light emitting diode connects the input port GPIO11 controlling processor, minus earth, the positive pole of the second light emitting diode connects the input port GPIO12 controlling processor, minus earth, the color of the first light emitting diode and the second light emitting diode can be determined as required.
Functional realiey that the embodiment of the present invention have the data wire of charging circuit is described in detail with the physical circuit figure of Fig. 2:
(1) when first interface J2 connection adaptor or other power supplys (such as PCUSB socket), second interface J3 and the three interface J5 can be simultaneously connected with Bluetooth fingerprint, wrist-watch, bracelet, bluetooth earphone etc. or other move equipment (such as mobile phone, Pad etc.), it is also possible to individually connect one of them.
First interface J2 connection adaptor or other power supplys (such as PCUSB socket), the voltage end VBUS0 of J2 is connected on+5V power supply, first diode D1 conducting, is connected on the voltage port VCC controlling processor U1 by+5V voltage, now controls processor U1 and starts power up work.Control to first check for after processor U1 powers on the voltage status of the first to tertiary voltage detection port GPIO1-3, because first interface J2 has electricity, so GPIO3 level is high level, control processor and judge have external power source to insert, first and second configuration port GPIO4/5 and first will be configured, second controls port GPIO8/9 is output as high level, thus the second metal-oxide-semiconductor switch Q4 of the first metal-oxide-semiconductor switch Q1 of the first dispensing unit and the second dispensing unit is not turned on, the state end ID1 of the second interface and the 3rd interface, it is high level that ID2 connects the voltage end VBUS of network, therefore no matter which kind of equipment J3 and J5 inserts, second interface and the 3rd interface are each configured to charged state.Simultaneously, owing to first, second control port GPIO8/9 is high level, 3rd metal-oxide-semiconductor switch Q2 and the four metal-oxide-semiconductor switch Q3 conducting, thus triggering first, second relay switch J1 and J4 Guan Bi, i.e. the first on-off circuit and second switch circuit turn-on, thus the external power source realizing first interface J2 charges to the electronic equipment of the second interface J3 and the three interface J5.It addition, control processor U1 to export high level by programme-control display lamp port JPIO11 and JPIO12, light first and second light emitting diode D4/D5, indicate charging current direction.
(2) when first interface J2 unsettled (being not connected to any adapter or power supply), the second interface J3 connects the equipment without OTG function such as Bluetooth fingerprint, bluetooth earphone, and the 3rd interface J5 connects with equipment such as the mobile phone of OTG function, pad.
Owing to first interface J2 its voltage end unsettled VBUS0 is low level, now control processor not work on power, acquiescence first, second configuration port GPIO4, GPIO5 are output as low level, now metal-oxide-semiconductor switch Q1 and the Q4 of first, second dispensing unit is conducting, so the state end ID1 of the second interface J3 and the three interface J5 and ID2 ground connection, for low level.nullAnd the 3rd interface J5 connects the electronic equipment supporting OTG function,Its voltage end VBUS2 has voltage to be+5v,Therefore the 3rd diode D3 turns on and powers to control processor U1,Control processor U1 to work on power,First the voltage status of the first to tertiary voltage detection port GPIO1-3,Now only having the first voltage detecting port GPIO1 is high level,Judge that only the 3rd interface J5 has electricity,And although current second interface J3 does not have electricity but state end ID1 is pulled low,So controlling processor control the first control port GPIO8 is low level,Power1 network is pulled low,Second control port GPIO9 is high level,Power2 network is driven high,Therefore the 3rd metal-oxide-semiconductor switch Q2 is not turned on,First relay switch device J1 is failure to actuate and is off,Namely the first on-off circuit is not turned on,4th metal-oxide-semiconductor switch Q4 conducting,Second relay switch J4 Guan Bi,I.e. second switch circuit turn-on,1st foot of J4 connects the voltage end VBUS1 that the voltage end VBUS2 of the 3rd interface J5 is connected the second interface J3 by the 4th foot,The electronic equipment realizing the 3rd interface charges to the electronic equipment of the second interface.Additionally control processor U1 and export high level by programme-control display lamp port JPIO11, light the first light emitting diode D4, indicate charging current direction.
In like manner, if first interface J2 is unsettled, 3rd interface J5 connects the equipment without OTG function such as Bluetooth fingerprint, bluetooth earphone, second interface J3 connects with equipment such as the mobile phone of OTG function, pad, this charging circuit realizes the electronic equipment of the second interface and charges to the electronic equipment of the 3rd interface, second light emitting diode D5 lights, and indicates charging current direction.
(3) when first interface J2 unsettled (being not connected to any adapter or power supply), the second interface J3 and the three interface J5 is all connected with equipment such as the mobile phone of OTG function, pad.
First interface J2 is unsettled, and state end ID1 and the ID2 of the second interface J3 and the three interface J5 is defaulted as low level.Owing to the second interface J3 and the three interface J5 is band OTG function electronic equipment, its voltage end VBUS1 and VBUS2 all has electricity, therefore the second diode D2 and the three diode D3 conducting, controls processor U1 and works on power.Control processor U1 and detect the voltage status of the first to tertiary voltage detection port GPIO1-3, judge that the second interface J3 and the three interface J5 all supports OTG function, but it is presently required one another equipment is powered, control processor and perform default program configuration, configuration the second configuration port GPIO5 is output as high level, POWER_EN_2 network is drawn high, second metal-oxide-semiconductor switch Q4 is not turned on, the state end ID2 of the 3rd interface is connected to network voltage end, thus controlling the 3rd Interface status end ID2 is high level, 3rd interface J5 is configured to charged state, therefore the OTG function of the electronic equipment that the 3rd interface J5 connects is closed, can only be used as to be electrically charged equipment, and the electronic equipment that the second interface J3 connects is used as discharge equipment.Controlling processor control the first control port GPIO8 is low level, Power1 network is pulled low, second control port GPIO9 is high level, Power2 network is driven high, therefore the 3rd metal-oxide-semiconductor switch Q2 is not turned on, first relay switch device J1 is failure to actuate and is off, namely the first on-off circuit is not turned on, 4th metal-oxide-semiconductor switch Q4 conducting, second relay switch J4 Guan Bi, i.e. second switch circuit turn-on, 1st foot of J4 connects the voltage end that the voltage end J5 of the 3rd interface J5 is connected the second interface J3 by the 4th foot, the electronic equipment realizing the second interface charges to the electronic equipment of the 3rd interface.It addition, control processor U1 to export high level by programme-control display lamp port JPIO12, light the second light emitting diode D5, indicate charging current direction.
If default program configuration does not meet user requirement, user wants that the electronic equipment of the second interface J3 is charged by the electronic equipment by the 3rd interface J5, it is possible to switch by switching switch K1.Program acquiescence switching signal input port GPIO10 is high level, when switching switch K1 triggers, port GPIO10 is pulled low as low level, control to judge that switch K1 is triggered after processor U1 detects level change, control processor U1 control the second control port GPIO9 and be output as low level, POWER2 network is dragged down, thus the 4th metal-oxide-semiconductor switch is not turned on, second relay J 4 disconnects, and is initially switched off the charging to the 3rd interface of the secondth interface.Controlling processor U1 configuration the second configuration port GPIO5 afterwards is low level, POWER_EN_2 network is dragged down, making the 3rd interface J5 state end ID2 is low level, it is configured to discharge condition, the OTG function of the electronic equipment of the 3rd interface J5 is opened, then control processor U1 configuration the first configuration port GPIO4 and be output as high level, POWER_EN_1 network is drawn high, making the second Interface status end ID1 is high level, it is configured to charged state, the OTG function of the electronic equipment of the second interface J3 is closed, the electronic equipment realizing the 3rd interface charges to the electronic equipment of the second interface.It addition, control processor U1 to export high level by programme-control display lamp port JPIO11, light the first light emitting diode D4, indicate charging current direction.
The above is the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from principle of the present invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (10)
1. a data wire with charging circuit, it is characterized in that, described charging circuit includes: first interface, the second interface, the 3rd interface, control process circuit, the first on-off circuit and second switch circuit, described first interface voltage end connects the second interface voltage end through the first on-off circuit, and described second interface voltage end connects the 3rd interface voltage end through second switch circuit;
Described control process circuit for according to first interface voltage end, the second interface voltage end, the 3rd interface voltage end level, configure the second interface and the charging and discharging state of the 3rd interface, control the first on-off circuit and/or second switch circuit turn-on, make the external power source electronic equipment charging to the second interface and the 3rd interface of first interface, or make mutually to charge between the electronic equipment of the second interface and the electronic equipment of the 3rd interface;Wherein, first and second on-off circuit initial default is off-state.
2. the data wire with charging circuit according to claim 1, it is characterized in that, when first interface voltage end is high level, described control process circuit configures the second interface and the 3rd interface is charged state, and control the first on-off circuit and second switch circuit turn-on, make the external power source electronic equipment charging to the second interface and the 3rd interface of first interface.
3. the data wire with charging circuit according to claim 1, it is characterised in that
When first interface voltage end is low level, second interface voltage end is high level, when 3rd interface is low level, it is discharge condition that described control process circuit configures the second interface, 3rd interface is charged state, and control second switch circuit turn-on, make the electronic equipment of the second interface charge to the electronic equipment of the 3rd interface;
When first interface voltage end is low level, second interface voltage end is low level, when 3rd interface is high level, it is charged state that described control process circuit configures the second interface, 3rd interface is discharge condition, and control second switch circuit turn-on, make the electronic equipment of the 3rd interface charge to the electronic equipment of the second interface.
4. the data wire with charging circuit according to claim 1, it is characterised in that
When first interface voltage end is low level, second interface voltage end is high level, when 3rd interface voltage end is high level, it be charged state, the second interface is discharge condition that described control processes circuit configuration the 3rd interface, and control second switch circuit turn-on, make the electronic equipment of the second interface charge to the electronic equipment of the 3rd interface.
5. the data wire with charging circuit according to claim 4, it is characterised in that described charging circuit also includes a switching switch, and described switching switch connects control and processes circuit;
It is low level at first interface voltage end, second interface voltage end is high level, 3rd interface voltage end is high level, and switching switch is when being triggered, described control process circuit be additionally operable to configuration the second interface be charged state, configuration the 3rd interface be discharge condition, and control second switch circuit turn-on, make the electronic equipment of the 3rd interface charge to the electronic equipment of the second interface.
null6. according to the arbitrary described data wire with charging circuit of claim 1-5,It is characterized in that,Described control processes circuit and includes a control processor and for configuring the second interface、First dispensing unit of the 3rd interface charging and discharging state and the second dispensing unit,The input port of described control processor includes voltage port,With first interface voltage end、Second interface voltage end、The tertiary voltage detection port that 3rd interface voltage end connects respectively、Second voltage detecting port、First voltage detecting port,And grounding ports,Its output port includes the first configuration port being connected respectively with the input port of the first dispensing unit and the second dispensing unit、Second configuration port,And with the first on-off circuit、The first control port and second that second switch circuit connects respectively controls port,The delivery outlet of described first dispensing unit and the second dispensing unit connects the second interface and the state end of the 3rd interface respectively.
7. the data wire with charging circuit according to claim 6, it is characterized in that, described first interface voltage end connects the voltage port controlling processor through the first diode, and the tertiary voltage detection port controlling processor is connected through the 6th resistance, the voltage end of described second interface connects the voltage port controlling processor through the second diode, and the second voltage detecting port controlling processor is connected through the 3rd resistance, the voltage end of described 3rd interface connects the voltage port controlling processor through the 3rd diode, and the first voltage detecting port controlling processor is connected through the 4th resistance.
8. the data wire with charging circuit according to claim 6, it is characterized in that, described first dispensing unit includes the first metal-oxide-semiconductor switch, described second dispensing unit includes the second metal-oxide-semiconductor switch, first metal-oxide-semiconductor switch and the second metal-oxide-semiconductor switch are P type field effect transistor, the grid of described first metal-oxide-semiconductor switch connects the first configuration port controlling processor and through the second resistance eutral grounding, source electrode connects the state end of the second interface and connects the voltage port controlling processor through the first resistance, grounded drain, the grid of described second metal-oxide-semiconductor switch connects the second configuration port controlling processor and through the tenth resistance eutral grounding, source electrode connects the state end of the 3rd interface and connects the voltage port controlling processor through the 7th resistance, grounded drain.
9. the data wire with charging circuit according to claim 6, it is characterized in that, described first on-off circuit includes the first relay switch, described second switch circuit includes the second relay switch, first common port of described first relay switch connects first interface voltage end, first coil end connects the voltage port controlling processor, normally opened end is unsettled, normal-closed end connects the second interface voltage end, second coil-end connects the first control port controlling processor, second common port is unsettled, first common port of described second relay switch connects the second interface voltage end, first coil end connects the voltage port controlling processor, normally opened end is unsettled, normal-closed end connects the 3rd interface voltage end, second coil-end connects the second control port controlling processor, second common port is unsettled.
10. the data wire with charging circuit according to claim 9, it is characterized in that, described first on-off circuit also includes being connected to first relay switch the second coil-end and controlling the 3rd metal-oxide-semiconductor switch that processor first controls between port, described second switch circuit also includes being connected to second relay switch the second coil-end and controlling the 4th metal-oxide-semiconductor switch that processor second controls between port, 3rd metal-oxide-semiconductor switch and the 4th metal-oxide-semiconductor switch are N-type field effect transistor, the grid of described 3rd metal-oxide-semiconductor connects the first control port, source ground, drain electrode connects first relay switch the second coil-end, the grid of described 4th metal-oxide-semiconductor switch connects the second control port, source ground, drain electrode connects first relay switch the second coil-end.
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 true CN105790356A (en) | 2016-07-20 |
CN105790356B 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) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018045714A1 (en) * | 2016-09-12 | 2018-03-15 | 珠海格力电器股份有限公司 | Partner charging control method and system, and mobile device |
CN108206444A (en) * | 2017-12-26 | 2018-06-26 | 努比亚技术有限公司 | Data line and data transmission method |
WO2018137298A1 (en) * | 2017-01-24 | 2018-08-02 | 华为技术有限公司 | Charging cable |
CN108536627A (en) * | 2018-03-30 | 2018-09-14 | 联想(北京)有限公司 | The control method and electronic equipment of electronic equipment |
CN108631401A (en) * | 2018-05-23 | 2018-10-09 | 北京小米移动软件有限公司 | Charging circuit, method, electronic equipment and storage medium |
CN108696688A (en) * | 2018-07-13 | 2018-10-23 | 维沃移动通信有限公司 | A kind of camera, terminal and image pickup method |
CN108988629A (en) * | 2018-06-21 | 2018-12-11 | 上海艾为电子技术股份有限公司 | Detection circuit, increasing apparatus and DC/DC converter |
CN109388601A (en) * | 2017-08-10 | 2019-02-26 | 成都圣成通幽科技有限公司 | A kind of OTG power supply, charging automatic switching module and its control method |
CN109510045A (en) * | 2018-12-05 | 2019-03-22 | 北京阿法龙科技有限公司 | A kind of USB data line of auxiliary power supply |
CN110380469A (en) * | 2019-06-28 | 2019-10-25 | 联想(北京)有限公司 | Electronic equipment and method of supplying power to |
WO2019218854A1 (en) * | 2018-05-14 | 2019-11-21 | 维沃移动通信有限公司 | Data line and driving method thereof |
CN110518651A (en) * | 2019-06-25 | 2019-11-29 | 商洛市虎之翼科技有限公司 | A kind of portable charge and discharge electric appliance |
CN110880805A (en) * | 2019-12-19 | 2020-03-13 | 维沃移动通信有限公司 | Charging device and control method |
CN111146653A (en) * | 2019-12-12 | 2020-05-12 | 立讯精密工业股份有限公司 | Circuit and connector with same |
CN111509815A (en) * | 2020-05-29 | 2020-08-07 | 维沃移动通信有限公司 | Data line and charging equipment |
CN111890962A (en) * | 2020-08-25 | 2020-11-06 | 威海市泓淋电力技术股份有限公司 | Charging gun for electric vehicle and household load electric power interaction and control method thereof |
CN112086830A (en) * | 2020-07-23 | 2020-12-15 | 福建联迪商用设备有限公司 | Data line circuit communicating with Apple equipment |
CN113067390A (en) * | 2021-04-27 | 2021-07-02 | 维沃移动通信有限公司 | 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 |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018045714A1 (en) * | 2016-09-12 | 2018-03-15 | 珠海格力电器股份有限公司 | Partner charging control method and system, and mobile device |
WO2018137298A1 (en) * | 2017-01-24 | 2018-08-02 | 华为技术有限公司 | Charging cable |
CN108886225A (en) * | 2017-01-24 | 2018-11-23 | 华为技术有限公司 | A kind of charge cable |
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 |
CN109388601A (en) * | 2017-08-10 | 2019-02-26 | 成都圣成通幽科技有限公司 | A kind of OTG power supply, charging automatic switching module and its control method |
CN108206444A (en) * | 2017-12-26 | 2018-06-26 | 努比亚技术有限公司 | Data line and data transmission method |
CN108536627A (en) * | 2018-03-30 | 2018-09-14 | 联想(北京)有限公司 | The control method and electronic equipment of electronic equipment |
CN108536627B (en) * | 2018-03-30 | 2021-07-16 | 联想(北京)有限公司 | Control method of electronic equipment and electronic equipment |
WO2019218854A1 (en) * | 2018-05-14 | 2019-11-21 | 维沃移动通信有限公司 | Data line and driving method thereof |
CN108631401A (en) * | 2018-05-23 | 2018-10-09 | 北京小米移动软件有限公司 | Charging circuit, method, electronic equipment and storage medium |
CN108988629B (en) * | 2018-06-21 | 2020-12-11 | 上海艾为电子技术股份有限公司 | Detection circuit, boosting device, and DC/DC converter |
CN108988629A (en) * | 2018-06-21 | 2018-12-11 | 上海艾为电子技术股份有限公司 | Detection circuit, increasing apparatus 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 |
CN111146653A (en) * | 2019-12-12 | 2020-05-12 | 立讯精密工业股份有限公司 | Circuit and connector with same |
CN110880805B (en) * | 2019-12-19 | 2021-09-17 | 维沃移动通信有限公司 | Charging device and control method |
CN110880805A (en) * | 2019-12-19 | 2020-03-13 | 维沃移动通信有限公司 | Charging device and control method |
CN111509815A (en) * | 2020-05-29 | 2020-08-07 | 维沃移动通信有限公司 | Data line and charging equipment |
CN111509815B (en) * | 2020-05-29 | 2022-02-08 | 维沃移动通信有限公司 | Data line and charging equipment |
CN112086830A (en) * | 2020-07-23 | 2020-12-15 | 福建联迪商用设备有限公司 | Data line circuit communicating with Apple equipment |
CN111890962A (en) * | 2020-08-25 | 2020-11-06 | 威海市泓淋电力技术股份有限公司 | Charging gun for electric vehicle and household load electric power interaction and control method thereof |
CN113067390A (en) * | 2021-04-27 | 2021-07-02 | 维沃移动通信有限公司 | Interface circuit, electronic device, and communication signal transmission method |
CN113067390B (en) * | 2021-04-27 | 2024-04-26 | 维沃移动通信有限公司 | Interface circuit, electronic device, and communication signal transmission method |
Also Published As
Publication number | Publication date |
---|---|
CN105790356B (en) | 2018-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105790356A (en) | Data line having charging circuit | |
CN202872406U (en) | Interface multiplexing circuit and mobile terminal | |
CN108123519A (en) | Power supply transfer equipment and its control method, device and electric power system | |
CN104065125B (en) | A kind of charging system of electronic product | |
CN108173327B (en) | A kind of auto-power-off energy-saving protective device | |
CN104882926B (en) | A kind of charging indication and mobile terminal | |
CN205584005U (en) | Power switching circuit and power supply system | |
CN204883704U (en) | C type USB IC interface control circuit | |
CN106877078A (en) | Terminal connection circuit and its method for wearable device | |
CN107561991A (en) | A kind of switching on and shutting down management circuit and terminal | |
CN111711436A (en) | Power-off and reset circuit and intelligent central control | |
CN204651614U (en) | A kind of data wire with charging instruction | |
CN110518673B (en) | Wireless earphone charging circuit, wireless earphone and wireless earphone charging method | |
CN111537915A (en) | Broken string detection circuitry and treasured that charges of polymorphic type charging wire | |
CN204030149U (en) | A kind of remote control insert row | |
CN105207279A (en) | Charge and discharge circuit and mobile terminal | |
CN207424583U (en) | A kind of switching on and shutting down management circuit and terminal | |
CN103997101B (en) | A kind of charging circuit and a kind of electronic equipment | |
CN212965358U (en) | Broken line detection circuit with load access automatic wake-up function and power bank | |
CN203520299U (en) | Timer-power-on control circuit | |
CN207625314U (en) | A kind of double charging circuits compatible with DC USB | |
CN212413131U (en) | Power-off and reset circuit and intelligent central control | |
WO2018133409A1 (en) | Power management circuit, electronic device, and method for controlling electronic device | |
CN115954977A (en) | Dual-battery management circuit and method and electronic equipment | |
CN214755687U (en) | Charge and discharge management circuit and portable power source |
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 |