CN108206444A - Data line and data transmission method - Google Patents
- ️Tue Jun 26 2018
CN108206444A - Data line and data transmission method - Google Patents
Data line and data transmission method Download PDFInfo
-
Publication number
- CN108206444A CN108206444A CN201711429413.1A CN201711429413A CN108206444A CN 108206444 A CN108206444 A CN 108206444A CN 201711429413 A CN201711429413 A CN 201711429413A CN 108206444 A CN108206444 A CN 108206444A Authority
- CN
- China Prior art keywords
- data
- interface
- mobile terminal
- unit
- control unit Prior art date
- 2017-12-26 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 115
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000007600 charging Methods 0.000 claims abstract description 154
- 238000004891 communication Methods 0.000 claims description 178
- 230000005611 electricity Effects 0.000 claims description 32
- 238000009434 installation Methods 0.000 claims description 4
- 102100023941 G-protein-signaling modulator 2 Human genes 0.000 description 85
- 101000904754 Homo sapiens G-protein-signaling modulator 2 Proteins 0.000 description 85
- 238000010586 diagram Methods 0.000 description 14
- 238000012544 monitoring process Methods 0.000 description 9
- 238000001514 detection method Methods 0.000 description 8
- 238000012790 confirmation Methods 0.000 description 5
- 230000007547 defect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R27/00—Coupling parts adapted for co-operation with two or more dissimilar counterparts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/124—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R13/00—Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
- H01R13/66—Structural association with built-in electrical component
- H01R13/665—Structural association with built-in electrical component with built-in electronic circuit
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R13/00—Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
- H01R13/66—Structural association with built-in electrical component
- H01R13/70—Structural association with built-in electrical component with built-in switch
- H01R13/703—Structural association with built-in electrical component with built-in switch operated by engagement or disengagement of coupling parts, e.g. dual-continuity coupling part
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R27/00—Coupling parts adapted for co-operation with two or more dissimilar counterparts
- H01R27/02—Coupling parts adapted for co-operation with two or more dissimilar counterparts for simultaneous co-operation with two or more dissimilar counterparts
-
- 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
- H01R31/065—Intermediate parts for linking two coupling parts, e.g. adapter with built-in electric apparatus
Landscapes
- Engineering & Computer Science (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention discloses a kind of data line, which includes:First data-interface, the second data-interface, third data-interface, switch unit and control unit.First data-interface is for accessing mobile terminal, and for accessing OTG device, third data-interface is used to access charging unit the second data-interface.Switch unit is electrically connected to the first data-interface, the second data-interface and third data-interface.Control unit, it is electrically connected to the first data-interface, the second data-interface, third data-interface and switch unit, for when the first data-interface accesses mobile terminal, being controlled according to the access state of the second data-interface and third data-interface, switch unit connects the first data-interface and the second data-interface or the first data-interface and third data-interface are connected in selection.The present invention also provides a kind of data transmission method, said program carries out data transmission while mobile terminal is allowd to select charging or data transmission or charging by the data line.
Description
Technical field
The present invention relates to charging and field of data transmission more particularly to a kind of data lines and data transmission method.
Background technology
With the development of science and technology, intelligent mobile terminal has become the vast necessity with work, amusement, and data line is Connect the bridge of intelligent mobile terminal charging and transmission data.But data line on the market is substantially simple function at present, It can only be the charging of connection intelligent mobile terminal or perform OTG (On The Go) function, i.e., mobile terminal is just in OTG functions (number According to transmission) in use, charge function or mobile terminal is not supported or not that (data pass OTG functions just in charging process It is defeated) it uses.
Invention content
In view of this, the present invention proposes a kind of data line and data transmission method, to solve above-mentioned technical problem.
First, to achieve the above object, the present invention proposes a kind of data line, for connecting external electronic device, feature It is, the data line includes:
First data-interface, for accessing mobile terminal;
Second data-interface, for accessing OTG device;
Third data-interface, for accessing charging unit;
Switch unit is electrically connected to first data-interface, second data-interface and the third data-interface;
Control unit, be electrically connected to first data-interface, second data-interface, the third data-interface and The switch unit, for when first data-interface accesses the mobile terminal, according to second data-interface and The access state of the third data-interface controls the switch unit to connect first data-interface and second data The first data-interface and the third data-interface are connected in interface or selection.
Optionally, the data line further includes:
First voltage module is electrically connected to first data-interface, described control unit and the switch unit, is used for It powers to described control unit and the switch unit;
First electronic switch is electrically connected to first data-interface, described control unit and second data-interface;
Second electronic switch is electrically connected to first data-interface, described control unit and the third data-interface;
Second voltage module is electrically connected to second electronic switch, described control unit and the third data-interface.
Optionally, when first data-interface is accessed described in the mobile terminal and second data-interface access During OTG device, the first voltage module for power supply is to described control unit and the switch unit, described control unit control institute It states switch unit and connects first data-interface and second data-interface, described control unit also controls first electricity Sub switch is connected, and second electronic switch disconnects, and the mobile terminal passes through first data-interface and second number It is communicated according to interface with the OTG device or data transmission.
Optionally, when first data-interface is accessed described in the mobile terminal and second data-interface access After OTG device, when the third data-interface accesses the charging unit, described control unit detects the mobile terminal and institute State whether OTG device carries out data transmission;
If the mobile terminal is carrying out data transmission with the OTG device, described control unit suspends the shifting The data transmission of dynamic terminal and the OTG device, control the switch unit selection connect first data-interface with it is described Third data-interface and control first electronic switch disconnect, the conducting of the second electronic switch, and control the second voltage mould After block supplies electricity to second data-interface, the mobile terminal carries out communication protocol communication with the charging unit;When described When communication protocol communication is completed, described control unit control switch unit selection connect first data-interface with it is described Second data-interface, and start the data transmission of the mobile terminal and the OTG device so that the mobile terminal is charging While carry out data transmission;
If the mobile terminal does not have data transmission with the OTG device, the described control unit control switching is single Member selection is connected first data-interface and is disconnected with the third data-interface and control first electronic switch, and described the Two electronic switches are connected, and control the second voltage module for power supply to second data-interface, the mobile terminal and institute It states charging unit and carries out communication protocol communication, when the communication protocol communication is completed, described control unit controls the switching Unit selection connects first data-interface and second data-interface, the mobile terminal charging.
Optionally, it is filled described in the mobile terminal and third data-interface access when first data-interface accesses During electric installation, the first voltage module for power supply is to described control unit and the switch unit, described control unit control institute It states switch unit and connects first data-interface and the third data-interface, described control unit also controls first electricity Sub switch disconnects, the second electronic switch conducting, after the mobile terminal completes communication protocol communication with the charging unit, The charging unit is charged by first data-interface and the third data-interface to the mobile terminal.
Optionally, it is filled described in the mobile terminal and third data-interface access when first data-interface accesses After electric installation, when second data-interface accesses the OTG device, described control unit detect the mobile terminal with it is described Whether charging unit carries out communication protocol communication;
If the mobile terminal is carrying out communication protocol communication with the charging unit, wait for communication protocol communication complete Into;
If the mobile terminal does not carry out communication protocol communication or has completed communication protocol with the charging unit During communication, described control unit controls the switch unit selection to connect first data-interface and is connect with second data Mouthful, the first electronic switch of control disconnects, the conducting of the second electronic switch, and controls the second voltage module for power supply to described second Data-interface so that the mobile terminal carries out data transmission while charging.
Optionally, when first data-interface is accessed described in the mobile terminal and second data-interface access When the third data-interface accesses the charging unit while OTG device, described control unit controls the switch unit First data-interface and the third data-interface are connected, first electronic switch is controlled to disconnect, second electronics Switch conduction, described control unit also controls the second voltage module for power supply to second data-interface, described mobile whole End carries out communication protocol communication with the charging unit;
After the completion of the communication protocol communication, described control unit controls the switch unit selection to connect described first Data-interface and second data-interface, the first electronic switch of control disconnect, the conducting of the second electronic switch, and control described the Two voltage modules supply electricity to second data-interface so that the mobile terminal carries out data transmission while charging.
In addition, to achieve the above object, the present invention also provides a kind of data transmission methods, described to be applied to data line Data line includes the first data-interface, the second data-interface, third data-interface, switch unit and control unit, the side Method includes the following steps:
When first data-interface accesses mobile terminal, monitor second data-interface and the third data connect The access state of mouth;
The switch unit is controlled to connect first data-interface according to the access state to connect with second data The first data-interface and the third data-interface are connected in mouth or selection.
Optionally, the data line further includes first voltage module, the first electronic switch, the second electronic switch and the second electricity Die block, it is described the switch unit to be controlled to connect first data-interface and second data according to the access state Interface or selection are connected the first data-interface and are specifically comprised the following steps with the step of third data-interface:
When first data-interface accesses the mobile terminal, second data-interface and the third number are detected Whether external device (ED) is accessed according to interface;
When only described second data-interface accesses the OTG device, the first voltage module for power supply gives the control Unit processed and the switch unit, described control unit control the switch unit to connect first data-interface and described the Two data-interfaces, described control unit also control first electronic switch to be connected, and second electronic switch disconnects, the shifting Dynamic terminal carries out data transmission with the OTG equipment;
After second data-interface accesses the OTG device, the third data-interface accesses the charging unit When, described control unit detects whether the mobile terminal carries out data transmission with the OTG device;
If carrying out data transmission, the number of mobile terminal and the OTG device is stated described in described control unit pause According to transmission, the switch unit selection is controlled to connect first data-interface and the third data-interface and control described the One electronic switch disconnects, the conducting of the second electronic switch, and controls the second voltage module for power supply to second data-interface Afterwards, the mobile terminal carries out communication protocol communication with the charging unit;
When the communication protocol communication is completed, described control unit controls the switch unit selection to connect described first Data-interface and second data-interface, and start the data transmission of the mobile terminal and the OTG device, the movement Terminal carries out data transmission while charging;
If do not have data transmission, described control unit controls the switch unit selection to connect first data-interface It is disconnected with the third data-interface and control first electronic switch, the second electronic switch conducting, and described in control Second voltage module for power supply gives second data-interface, and the mobile terminal carries out communication protocol with the charging unit and leads to Letter;
When the communication protocol communication is completed, described control unit controls the switch unit selection to connect described first Data-interface and second data-interface, the mobile terminal charging.
Optionally, when first data-interface accesses the mobile terminal, second data-interface and institute are detected State whether third data-interface accesses external device (ED);
When the only third data-interface access charging unit, described control unit controls the switch unit to connect First data-interface is disconnected with the third data-interface, first electronic switch, second electronic switch is connected, The mobile terminal charging;
When the second data-interface access OTG device after the third data-interface accesses charging unit, the control Unit processed detects whether the mobile terminal carries out communication protocol communication with the charging unit;
If the mobile terminal is carrying out communication protocol communication with the charging unit, wait for communication protocol communication complete Into;
If the mobile terminal does not carry out communication protocol communication or has completed communication protocol with the charging unit During communication, described control unit controls the switch unit selection to connect first data-interface and is connect with second data Mouthful, the first electronic switch of control disconnects, the conducting of the second electronic switch, and controls the second voltage module for power supply to described second Data-interface so that the mobile terminal carries out data transmission while charging.
Compared to the prior art, data line and data transmission method proposed in embodiment of the present invention are applied in number According to line, by monitoring the access state of the second data-interface and third data-interface, mobile terminal and OTG device are selected into line number Mobile terminal is filled with OTG while charging according to transmission or charging unit to mobile terminal charging or charging unit to mobile terminal It puts and carries out data transmission, solve mobile terminal in the prior art and can not achieve OTG functions (data transmission) when charging The defects of.
Description of the drawings
Fig. 1 is total schematic diagram of one embodiment of mobile terminal of the present invention;
Fig. 2 is the module diagram of data line first embodiment of the present invention;
Fig. 3 is the module diagram of data line second embodiment of the present invention;
Fig. 4 is the module diagram of data line third embodiment of the present invention;
Fig. 5 is the flow diagram of the first embodiment of data transmission method of the present invention;
Fig. 6 is the flow diagram of the second embodiment of data transmission method of the present invention;
Fig. 7 is the flow diagram of the third embodiment of data transmission method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Mobile terminal and OTG device can be implemented in a variety of manners.For example, mobile terminal described in the present invention and OTG device can include such as mobile phone, tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device Deng.
Charging unit can be implemented in a variety of manners.For example, charging unit described in the present invention can include it is portable Formula charger baby, power supply adaptor etc. can provide the device of electric power for mobile terminal.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special For moving except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, it is total schematic diagram of 10 1 embodiment of data line of the present invention.Those skilled in the art can manage Solution, the restriction of the data line structure shown in Fig. 1 not structure paired data line, data line can include more more or less than illustrating Component either combine certain components or different components arrangement.
Data line 10 includes the first data-interface 101, the second data-interface 102 and third data-interface 103.First data Interface 101, for accessing mobile terminal 20.Second data-interface 102, for accessing OTG (On The Go) device 30.Third Data-interface 103, for accessing charging unit 40.When the first data-interface 101 accesses mobile terminal 20,10 basis of data line The selection of the access state of second data-interface 102 and third data-interface 103 is connected the first data-interface 101 and is connect with the second data The first data-interface 101 and third data-interface 103, the i.e. selection of data line 10 connection mobile terminal 20 are connected in mouth 102 or selection With the communication path of OTG device 30 to carry out data transmission or select to connect mobile terminal 10 with charging unit 40 with to movement Terminal 20 charges.
Fig. 2 is the module diagram of data line 10a first embodiments of the present invention.In first embodiment of the invention, Data line 10a includes the first data-interface 101a, the second data-interface 102a, third data-interface 103a, switch unit 104a And control unit 105a.
In the first embodiment of the present invention, the first data-interface 101a, for accessing mobile terminal 20a.Second data Interface 102a is for accessing OTG device 30A, so that mobile terminal 20a can be counted by the first data-interface 101a and second Output transmission is carried out according to interface 102a and OTG device 30A.Second data-interface 102a, for accessing charging unit 40a, so that Charging unit 40a is obtained to charge to mobile terminal 20a by the first data-interface 101a and third data-interface 103a.Switching Unit 104a is electrically connected to the first data-interface 101a, the second data-interface 102a and third data-interface 103a.Control unit 105a is electrically connected to the first data-interface 101a, the second data-interface 102a, third data-interface 103a and switch unit 104a, for when the first data-interface 101a accesses mobile terminal 20a, being connect according to the second data-interface 102a and third data The access state control switch unit 104a of mouth 103a connects the first data-interface 101a and the second data-interface 102a or connection The first data-interface 101a and third data-interface 103a.
In the first embodiment of the present invention, when the first data are connected in control unit 105a control switch unit 104a selections Interface 101a and the second data-interface 102a, that is, when connecting the communication path of mobile terminal 20a and OTG device 30A, mobile terminal 20a can carry out data transmission with OTG device 30A.
When the first data-interface 101a and third data-interface are connected in control unit 105a control switch unit 104a selections 103a, that is, when connecting the communication path of mobile terminal 20a and charging unit 40a, charging unit 40a can give mobile terminal 20a Charging.
Fig. 3 is the module diagram of data line 10b second embodiments of the present invention.
In second embodiment of the invention, data line 10b includes the first data-interface 101b, the second data-interface 102b, third data-interface 103b, switch unit 104b, control unit 105b, first voltage module 106b, second voltage module 107b, the first electronic switch 108b and the second electronic switch 109b.
In the second embodiment of the present invention, the first data-interface 101b, for accessing mobile terminal 20b.Second data Interface 102b is for accessing OTG device 30b, so that mobile terminal 20b can be counted by the first data-interface 101b and second Output transmission is carried out according to interface 102b and OTG device 30b.Second data-interface 102b, for accessing charging unit 40b, so that Charging unit 40b is obtained to charge to mobile terminal 20b by the first data-interface 101b and third data-interface 103b.Switching Unit 104b is electrically connected to the first data-interface 101b, the second data-interface 102b and third data-interface 103b.Control unit 105b is electrically connected to the first data-interface 101b, the second data-interface 102b, third data-interface 103b and switch unit 104b, for when the first data-interface 101b accesses mobile terminal 20b, being connect according to the second data-interface 102b and third data The access state control switch unit 104b of mouth 103b connects the first data-interface 101b and the second data-interface 102b or connection The first data-interface 101b and third data-interface 103b.First voltage module 106b, is electrically connected to the first data-interface 101b, control unit 105b and switch unit 104b, for giving control unit 105b and switch unit 104b power supplies.First electronics 108b is switched, is electrically connected to the first data-interface 101b, control unit 105b and the second data-interface 102b.Second electronic switch 109b is electrically connected to the first data-interface 101b, control unit 105b and third data-interface 103b.Second voltage module 107b is electrically connected to the second electronic switch 109b, control unit 105b and third data-interface 103b.
In a specific embodiment of the invention, when the first data-interface 101b accesses mobile terminal 20b, the first data connect The voltage change that mouth 101b monitors the first data-interface 101b by mobile terminal 20b judges the second data-interface 102b and third The access state of data-interface 103b.As the first data-interface 101b access mobile terminal 20b and the second data-interface 102b connects When entering OTG device 30B, first voltage module 106b supplies electricity to control unit 105b and switch unit 104b.Control unit 105b Switch unit 104b is controlled to connect the first data-interface 101b and the second data-interface 102b, that is, connects mobile terminal 20b and OTG The communication path of device 30B.Control unit 105b also controls the first electronic switch 108b to be connected, and the second electronic switch 109b breaks It opens so that the voltage of the first data-interface 101b is exported by the first electronic switch 108b to the second data-interface 102b.It is mobile Terminal 20b is by the first data-interface 101b and the second data-interface 102b is communicated with OTG device 30B or data transmission.
After the first data-interface 101b accesses mobile terminal 20b and the second data-interface 102b access OTG device 30B, When third data-interface 103b accesses charging unit 40b, whether control unit 105b detection mobile terminal 20b and OTG device 30B Carry out data transmission.
If mobile terminal 20b and OTG device 30B is carrying out data transmission, control unit 105b pause mobile terminals The data transmission of 20b and OTG device 30B.In the present embodiment, control unit 105b sends pause instruction to mobile terminal 20b, The voltage output of the first data-interface 101b is closed after the pause instruction and suspend mobile terminal when mobile terminal 20b is received The data transmission of 20b and OTG device 30B, while feedback acknowledgment instructs to control unit 105b, control unit 105b and receives this Confirm after instruction that the first data-interface 101b and third data-interface 103b and control the is connected in control switch unit 104b selection One electronic switch 108b is disconnected, the second electronic switch 109b conductings, that is, connects the communication of mobile terminal 20b and charging unit 40b Path, and after second voltage module 107b is controlled to supply electricity to the second data-interface 102b, and then mobile terminal 20b and charging unit 40b carries out communication protocol communication.After the completion of communication protocol communication, control unit 105b control switch unit 104b selections are connected First data-interface 101b and the second data-interface 102b, and start the data transmission of mobile terminal 20b and OTG device 30B, make Mobile terminal 20b is obtained while charging to carry out data transmission.
If mobile terminal 20b and OTG device 30B does not carry out data transmission, control unit 105b sends out closing first The instruction of data-interface 101b voltages closes the first data-interface to mobile terminal 20b, mobile terminal 20b when receiving the instruction The voltage output and feedback acknowledgment of 101b is instructed to control unit 105b.When control unit 105b receives confirmation instruction, control Switch unit 104b selections processed connect the first data-interface 101b and third data-interface 103b, while control the first electronic switch 108b is disconnected, the second electronic switch 109b conductings, and second voltage module 107b is controlled to supply electricity to the second data-interface 102b, into And mobile terminal 20b and charging unit 40b carries out communication protocol communication, and when communication protocol communication is completed, control unit 105b Switch unit 104b selections is controlled to connect the first data-interface 101b and the second data-interface 102b, mobile terminal 20b charging.
When the first data-interface 101b accesses mobile terminal 20b and third data-interface 103b access charging unit 40b, First voltage module 106b supplies electricity to control unit 105b and switch unit 104b, control unit 105b control switch units 104b Connect the first data-interface 101b also controls the first electronic switch 108b to break with third data-interface 103b, control unit 105b It opens, the second electronic switch 109b conductings, after mobile terminal 20b and charging unit 40b completes communication protocol communication, charging unit 40b is charged by the first data-interface 101b and third data-interface 103b to mobile terminal 20b, i.e. the electricity of charging unit 40b Pressure is transmitted to mobile terminal 20b by the second electronic switch 109b.
After the first data-interface 101b accesses mobile terminal 20b and third data-interface 103b access charging unit 40b, When second data-interface 102b accesses OTG device 30B, whether control unit 105b detection mobile terminal 20b and charging unit 40b Carry out communication protocol communication.
If mobile terminal 20b and charging unit 40b is carrying out communication protocol communication, wait for communication protocol communication complete Into.
If mobile terminal 20b and charging unit 40b does not carry out communication protocol communication or has completed communication protocol leading to During letter, the first data-interface 101b and the second data-interface 102b is connected in control unit 105b control switch unit 104b selections, The first electronic switch 108b is controlled to disconnect, the second electronic switch 109b conductings, and second voltage module 107b is controlled to supply electricity to the Two data-interface 102b so that mobile terminal 20b carries out data transmission while charging.
As the first data-interface 101b access mobile terminal 20b and the second data-interface 102b accesses the same of OTG device 30B When third data-interface 103b access charging unit 40b when, control unit 105b control switch units 104b connects the first data Interface 101b and third data-interface 103b, the first electronic switch 108b of control are disconnected, the second electronic switch 109b conductings, control Unit 105b also controls second voltage module 107b to supply electricity to the second data-interface 102b, mobile terminal 20b and charging unit 40b Carry out communication protocol communication;
After the completion of communication protocol communication, the first data-interface is connected in control unit 105b control switch unit 104b selections 101b and the second data-interface 102b, the first electronic switch 108b of control are disconnected, the second electronic switch 109b conductings, and control the Two voltage module 107b supply electricity to the second data-interface 102b so that mobile terminal 20b carries out data transmission while charging.
Fig. 4 is the module diagram of data line 10c third embodiments of the present invention.
In third embodiment of the invention, in the third embodiment of the present invention, data line 10c connects including the first data Mouth 101c, the second data-interface 102c, third data-interface 103c, switch unit 104c, control unit 105c, first voltage mould Block 106c, second voltage module 107c, the first electronic switch 108c and the second electronic switch 109c.In the present embodiment, first Data-interface 101cc includes USB_ID pins, DP pins, DM pins, Vbus pins and GND pin for Micro USB interfaces.The Two data-interface 102c are Type A USB interfaces, are drawn including OTG_ID pins, DP_OTG pins, DP_OTG pins, DM_OTG Foot, Vbus_OTG pins and GND pin.Third data-interface 103c is Type A USB male seat interfaces, including DP_charger Pin, DM_charger pins, Vbus_charger pins and GND pin.Switch unit 104c is high speed electronic switch, including D1 pins, D2 pins, VCC pin, SEL pins, D1_A pins, D1_B pins, D2_A pins and D2_B pins.Control unit 105c include INT pins, SEL pins, DP pins, DM pins, VCC pin, Q1_En pins, Q2_EN pins, DC_EN pins and Vbus_in pins.First electronic switch 108c is N-type metal-oxide-semiconductor, including grid, source electrode and drain electrode.Second electronic switch 109c is P-type metal-oxide-semiconductor, including grid, source electrode and drain electrode.
In the third embodiment of the present invention, the USB_ID pins of the first data-interface 101c are electrically connected to the second data and connect The OTG_ID pins and the INT pins of control unit 105c, the DP pins of the first data-interface 101c of mouth 102c is electrically connected to and cuts It changes the D1 pins of unit 104c and the DP pins of control unit 105c, the DM pins of the first data-interface 101c is electrically connected to switching The D2 pins of unit 104c and the DM pins of control unit 105c, the Vbus pins of the first data-interface 101c are electrically connected to first Voltage module 106c, the source electrode of the source electrode of the first electronic switch 108c and the second electronic switch 109c, the first data-interface 101c GND pin electrical connection with the GND pin of the second data-interface 102c and the GND pin of third data-interface 103c.Switching is single The VCC pin of first 104c is electrically connected to the VCC pin of control unit 105c and first voltage module 106c, switch unit 104c SEL pins are electrically connected to the SEL pins of control unit 105c, the D1_A pins of switch unit 104c are electrically connected to the second data and connect The DM_OTG that the mouth DP_OTG pins of 102c, the D1_B pins of switch unit 104c are electrically connected to the second data-interface 102c draws Foot, switch unit 104c D2_A pins be electrically connected to DP_charger pins, the switch unit of third data-interface 103c The D2_B pins of 104c are electrically connected to the DM_charger pins of third data-interface 103c.The Q1_EN of control unit 105c draws Foot is electrically connected to the grid of the first electronic switch 108c, the Q2_EN pins of control unit 105c are electrically connected to the second electronic switch The grid of 109c, the DC_EN pins of control unit 105c are electrically connected to second voltage module 107c.First electronic switch 108c's Drain electrode is electrically connected to the Vbus_OTG pins of the second data-interface 102c and second voltage module 107c.Second electronic switch 109c Drain electrode be electrically connected to second voltage module 107c, the Vbus_charger pins of the second data-interface 102c and control unit The Vbus_in pins of 105c.
In a specific embodiment of the invention, when the first data-interface 101c accesses mobile terminal 20c, the first data connect The voltage change that mouth 101c monitors the first data-interface 101c by mobile terminal 20c judges the second data-interface 102c and third The access state of data-interface 103c.Mobile terminal 20c monitors the Vbus pins and USC_ID of the first data-interface 101c in real time The voltage of pin, if monitoring that the USB_ID pins of the first data-interface 101c become low level and Vbus pins from high level Voltage less than 4.2V, then judge only have OTG device to be connected to mobile terminal 20c.
When the first data-interface 101c accesses mobile terminal 20c and the second data-interface 102c access OTG device 30C, Mobile terminal 20c controls the Vcus pins output 5V voltages of the first data-interface, first voltage module 106c output 1.8V voltages To control unit 105c and switch unit 104c.The SEL pins of control unit 105c export high level to control switch unit The D1/D2 of 104c is respectively connected to D1_A/D1_B, that is, connects the communication path of mobile terminal 20c and OTG device 30c.Control is single Q1_EN, Q2_EN pin output high level of first 105b is to control the first electronic switch 108c to be connected, the second electronic switch 109c It disconnects so that the voltage of the Vbus of the first data-interface 101c is exported by the first electronic switch 108c to the second data-interface The Vbus_OTG pins of 102c.Mobile terminal 20b passes through the first data-interface 101c and the second data-interface 102c and OTG device 30c is communicated or data transmission.
When the voltage range that the Vbus_in pins of control unit monitor is between 4.2V-10V, then third data are judged Interface 101c access charging units 40c.As the first data-interface 101c access mobile terminal 20c and the second data-interface 102c connects After entering OTG device 30C, when third data-interface 103c accesses charging unit 40c, control unit 105c is drawn by DP pins and DM Whether foot detection mobile terminal 20c and OTG device 30C carries out data transmission.
If mobile terminal 20c and OTG device 30C is carrying out data transmission, control unit 105c pause mobile terminals The data transmission of 20c and OTG device 30C.In the present embodiment, control unit 105c sends pause instruction and closes the first data The Vbus voltage outputs of interface are instructed to mobile terminal 20c, when mobile terminal 20c receives the pause instruction and closes the first number According to interface Vbus voltage outputs instruction after close the voltage output of the first data-interface 101c and suspend mobile terminal 20c with The data transmission of OTG device 30C, while feedback acknowledgment instructs to control unit 105c, control unit 105c and receives the confirmation The SEL pins output low level of switch unit 104c is controlled to connect the D1/D2 pins of switch unit 104c respectively after instruction To D2_A/D2_B, i.e. the first data-interface 101c and third data-interface 103c is connected in selection.The Q1_EN of control unit 105c And Q2_EN pins output low level, the first electronic switch 108c to be controlled to disconnect, the second electronic switch 109c conductings are connected The communication path of mobile terminal 20c and charging unit 40c.The DC_EN pins output high level of control unit 105c is to control the Two voltage module 107c export 5V voltages to the Vbus_OTG pins of the second data-interface 102c.And then mobile terminal 20c is with filling Electric installation 40c carries out communication protocol communication.After the completion of communication protocol communication, the high electricity of SEL pins output of control unit 105c It puts down so that the D1/D2 pins of switch unit 104c to be controlled to be respectively connected to D1_A/D1_B pins, i.e. the first data-interface is connected in selection 101c and the second data-interface 102c.Control unit 105c sends communication start instruction to mobile terminal 20c simultaneously.Mobile terminal 20c receives communication start instruction and starts the data transmission of mobile terminal 20c and OTG device 30C so that mobile terminal 20c Carry out data transmission while charging.
If mobile terminal 20c and OTG device 30C does not carry out data transmission, control unit 105c sends out closing first The instruction of the Vbus pin voltages of data-interface 101c closes first to mobile terminal 20c, mobile terminal 20c when receiving the instruction Simultaneously feedback acknowledgment is instructed to control unit 105c for the Vbus pin voltages output of data-interface 101c.Control unit 105c is received When the confirmation instructs, the SEL pins of control switch unit 105c export low level to control the D1/D2 pins of switch unit 104c D2_A/D2_B pins are respectively connected to, i.e. the first data-interface 101c and third data-interface 103c is connected in selection, is controlled simultaneously Q1_EN the and Q2_EN pins output low level of unit 105c is to control the first electronic switch 108c to disconnect, the second electronic switch 109c is connected.The DC_EN pins of control unit 105c export high level to control second voltage module 107c output 5V voltages extremely The Vbus pins of second data-interface 102c, and then mobile terminal 20c and charging unit 40c carries out communication protocol communication, when logical When believing that protocol communication is completed, Q1_EN the and Q2_EN pins of control unit 105c export high level so that switch unit 104c to be controlled to select It selects the first data-interface 101c of connection and the second data-interface 102c, mobile terminal 20c is in charged state.
When the first data-interface 101c accesses mobile terminal 20c, and monitor that the USB_ID of the first data-interface 101c draws When foot is more than 4.2V for the output voltage of high level and Vbus pins, judge there was only third data-interface 103c access charging units 40c.First voltage module 106c exports 1.8V voltages to control unit 105c and switch unit 104c, control unit 105c's SEL pins export low level so that the D1/D2 pins of switch unit 104c to be controlled to be respectively connected to D2_A/D2_B pins, that is, select Q1_EN the and Q2_EN pins for connecting the first data-interface 101c and third data-interface 103c, control unit 105c export low electricity Flat to be disconnected with the first electronic switch 108c of control, the second electronic switch 109c conductings, mobile terminal 20c and charging unit 40c are complete Into after communication protocol communication, charging unit 40c is by the first data-interface 101c and third data-interface 103c to mobile terminal 20c charges, i.e., the voltage of charging unit 40c is transmitted to mobile terminal 20c by the second electronic switch 109c.
After the first data-interface 101c accesses mobile terminal 20c and third data-interface 103c access charging unit 40c, When second data-interface 102c accesses OTG device 30C, whether control unit 105c detection mobile terminal 20c and charging unit 40c Carry out communication protocol communication;
If mobile terminal 20c and charging unit 40c is carrying out communication protocol communication, wait for communication protocol communication complete Into;
If mobile terminal 20c and charging unit 40c does not carry out communication protocol communication or has completed communication protocol leading to During letter, the SEL pins of control unit 105c export high level so that the D1/D2 of switch unit 104c to be controlled to be respectively connected to D1_A/ D1_B is connected mobile whole so that switch unit 104c selections is controlled to connect the first data-interface 101c and the second data-interface 102c Hold the communication path of 20c and OTG device 30c.Q1_EN, Q2_EN pin of control unit 105b exports low level to control first Electronic switch 108c is disconnected, the second electronic switch 109c conductings, and second voltage module 107c is controlled to supply electricity to the second data and is connect Mouth 102c so that mobile terminal 20c carries out data transmission while charging.
When the USB_ID that the first data-interface 101c accesses mobile terminal 20c and monitors the first data-interface 101c is low When the output voltage of level and Vbus pins is more than 4.2V, judge the while the second data-interface 102c access OTG device 30C Three data-interface 103c access charging units 40c.The SEL pins of control unit 105c export low level to control switch unit The D1/D2 pins of 104c are respectively connected to D2_A/D2_B pins so that switch unit 104c to be controlled to connect the first data-interface 101c With third data-interface 103c.Q1_EN the and Q2_EN pins of control unit 105c export low level to control the first electronic switch 108c is disconnected, the second electronic switch 109c conductings.The DC_EN pins of control unit 105c export high level to control second voltage Module 107c exports 5v voltages to the Vbus_OTG pins of the second data-interface 102c, mobile terminal 20c and charging unit 40c into Row communication protocol communication;
After the completion of communication protocol communication, control unit 105cQ1_EN and Q2_EN pin export high level to control switching Unit 104c selections connect the first data-interface 101c and the second data-interface 102c so that switch unit 104c selections to be controlled to connect First data-interface 101c and the second data-interface 102c, while control unit 105 sends communication start instruction to mobile terminal 20c, mobile terminal 20c receive the data transmission of startup mobile terminal 20c and OTG device after the instruction so that mobile terminal 20c carries out data transmission while charging.
In addition, the present invention also provides a kind of data transmission methods.
Fig. 5 is the flow diagram of data transmission method first embodiment of the present invention.
In the first embodiment of the present invention, which is applied to above-mentioned data line 10a, wherein, data line 10a includes data line 10a, and data line 10a includes the first data-interface 101a, the second data-interface 102a, third data-interface 103a, switch unit 104a and control unit 105a.
In the first embodiment of the present invention, this method comprises the following steps:
Step S501, when the first data-interface 101a accesses mobile terminal 20a, the second data-interface 102a of monitoring and third The access state of data-interface 103a.
Specifically, the first data-interface 101a, for accessing mobile terminal 20a.Second data-interface 102a is used to access OTG device 30A, so that mobile terminal 20a can be filled by the first data-interface 101a and the second data-interface 102a and OTG It puts 30A and carries out output transmission.Second data-interface 102a, for accessing charging unit 40a, so that charging unit 40a can It is charged by the first data-interface 101a and third data-interface 103a to mobile terminal 20a.When the first data-interface 101a connects When entering mobile terminal 20a, the second data of monitoring monitoring in real time connect the access state of 102a mouthfuls and third data-interface 103a.
Step S502 controls switch unit 104a to connect the first data-interface 101a and is connect with the second data according to access state Mouth 102a connects the first data-interface 101a and third data-interface 103a.
Specifically, when the first data-interface 101a accesses mobile terminal 20a, according to the second data-interface 102a and third The access state control switch unit 104a of data-interface 103a connects the first data-interface 101a and the second data-interface 102a Or connect the first data-interface 101a and third data-interface 103a.
In the first embodiment of the present invention, when the first data are connected in control unit 105a control switch unit 104a selections Interface 101a and the second data-interface 102a, that is, when connecting the communication path of mobile terminal 20a and OTG device 30A, mobile terminal 20a can carry out data transmission with OTG device 30A.
When the first data-interface 101a and third data-interface are connected in control unit 105a control switch unit 104a selections 103a, that is, when connecting the communication path of mobile terminal 20a and charging unit 40a, charging unit 40a can give mobile terminal 20a Charging.
In the present embodiment, by monitoring the access state of the second data-interface 102a and third data-interface 103a, choosing Select mobile terminal 20a carry out data transmission with OTG device 30a or charging unit 40a to mobile terminal 20a charge or charge fill Mobile terminal 20a and OTG device 30a while 40a charges to mobile terminal 20a is put to carry out data transmission.
Fig. 6 is the flow diagram of data transmission method second embodiment of the present invention.
In the second embodiment of the present invention, this method applies above-mentioned data line 10b, wherein, data line 10b includes the One data-interface 101b, the second data-interface 102b, third data-interface 103b, switch unit 104b, control unit 105b, One voltage module 106b, second voltage module 107b, the first electronic switch 108b and the second electronic switch 109b.
In the second embodiment of the present invention, step S601 and the step in first embodiment of the data transmission method S501 is similar, and difference lies in the step S502 in first embodiment to specifically include step S602-S608.
Step S601, when the first data-interface 101b accesses mobile terminal 20b, the second data-interface 102b of monitoring and third The access state of data-interface 103b.
Step S602, if only the second data-interface 102b access OTG device 30b, if step S603 is performed, if not It is to be adjusted to step S604;
Step S603, control switch unit 104b connect the first data-interface 101b and the second data-interface 102b, control First electronic switch 108b is connected, and the second electronic switch 109b is disconnected, and mobile terminal 20b is communicated or counted with OTG device 30B According to transmission.
Specifically, when the first data-interface 101b accesses mobile terminal 20b, the first data-interface 101b passes through mobile whole The voltage change that end 20b monitors the first data-interface 101b judges connecing for the second data-interface 102b and third data-interface 103b Enter state.When the first data-interface 101b accesses mobile terminal 20b and the second data-interface 102b access OTG device 30B, the One voltage module 106b supplies electricity to control unit 105b and switch unit 104b.Control unit 105b controls switch unit 104b connects Logical first data-interface 101b and the second data-interface 102b connects the communication path of mobile terminal 20b and OTG device 30B. Control unit 105b also controls the first electronic switch 108b to be connected, and the second electronic switch 109b is disconnected so that the first data-interface The voltage of 101b is exported by the first electronic switch 108b to the second data-interface 102b.Mobile terminal 20b passes through the first data Interface 101b and the second data-interface 102b is communicated with OTG device 30B or data transmission.
Step S604, whether detection mobile terminal 20b and OTG device 30b carries out data transmission, if carrying out data transmission, Step S605 is performed, if not carrying out data transmission, performs step S607.
Specifically, when the first data-interface 101b accesses mobile terminal 20b and the second data-interface 102b access OTG device After 30B, when third data-interface 103b accesses charging unit 40b, control unit 105b detection mobile terminal 20b and OTG device Whether 30B carries out data transmission.
Step S605, the data transmission of pause mobile terminal 20b and OTG device 30b, the 104b selections of control switch unit connect Logical first data-interface 101b and third data-interface 103b and the first electronic switch 108b of control are disconnected, the second electronic switch 109b is connected, and after second voltage module 107b is controlled to supply electricity to the second data-interface 102b, mobile terminal 20b and charging unit 30b carries out communication protocol communication.
Specifically, if mobile terminal 20b and OTG device 30B is carrying out data transmission, control unit 105b pauses move The data transmission of dynamic terminal 20b and OTG device 30B.In the present embodiment, it is whole to movement to send pause instruction by control unit 105b 20b is held, the voltage output of the first data-interface 101b is closed after the pause instruction and suspends movement when mobile terminal 20b is received The data transmission of terminal 20b and OTG device 30B, while feedback acknowledgment is instructed to control unit 105b, control unit 105b and is received The first data-interface 101b and third data-interface 103b and control are connected in control switch unit 104b selections after being instructed to the confirmation The first electronic switch 108b disconnections are made, the second electronic switch 109b conductings connect mobile terminal 20b and charging unit 40b's Communication path, and after second voltage module 107b is controlled to supply electricity to the second data-interface 102b, and then mobile terminal 20b and charging Device 40b carries out communication protocol communication.
Step S606, when communication protocol communication is completed, the first data-interface is connected in the 104b selections of control switch unit 101b and the second data-interface 102b, and start the data transmission of the mobile terminal 20b and OTG device 30b.
Specifically, after the completion of communication protocol communication, control unit 105b control switch unit 104b selections connect first Data-interface 101b and the second data-interface 102b, and start the data transmission of mobile terminal 20b and OTG device 30B so that it moves Dynamic terminal 20b carries out data transmission while charging.
Step S607, control switch unit 104b selection connect the first data-interface 101b and third data-interface 103b and The first electronic switch 108b is controlled to disconnect, the second electronic switch 109b conductings, and second voltage module 107b is controlled to supply electricity to the Two data-interface 102b, mobile terminal 20b carry out communication protocol communication with charging unit 40b.
Specifically, if mobile terminal 20b and OTG device 30B does not carry out data transmission, control unit 105b sends out pass It closes the instructions of the first data-interface 101b voltages and the first data is closed when receiving the instruction to mobile terminal 20b, mobile terminal 20b The voltage output and feedback acknowledgment of interface 101b is instructed to control unit 105b.Control unit 105b receives confirmation instruction When, the first data-interface 101b and third data-interface 103b is connected in the 104b selections of control switch unit, while controls the first electricity Sub switch 108b is disconnected, the second electronic switch 109b conductings, and second voltage module 107b is controlled to supply electricity to the second data-interface 102b, and then mobile terminal 20b and charging unit 40b carries out communication protocol communication.
Step S608, when communication protocol communication is completed, control unit 105b control switch unit 104b selections connect the One data-interface 101b and the second data-interface 102b, mobile terminal 20b charge.
Specifically, when communication protocol communication is completed, control unit 105b control switch unit 104b selections connect first Data-interface 101b and the second data-interface 102b, mobile terminal 20b charge.
In the present embodiment, when the first data-interface 101b accesses mobile terminal 20b and the second data-interface 102b is accessed During OTG device 30b, mobile terminal 20b and OTG device 30b is selected into line number according to the access state of third data-interface 103b It is moved while charging according to transmission or charging unit 40b to mobile terminal 20b chargings or charging unit 40b to mobile terminal 20b Dynamic terminal 20b and OTG device 30b carries out data transmission, and solving mobile terminal in the prior art cannot be real when charging The defects of existing OTG function (data transmissions).
Fig. 7 is the flow diagram of data transmission method 3rd embodiment of the present invention.
In the second embodiment of the present invention, this method applies above-mentioned data line 10b, wherein, data line 10b includes the One data-interface 101b, the second data-interface 102b, third data-interface 103b, switch unit 104b, control unit 105b, One voltage module 106b, second voltage module 107b, the first electronic switch 108b and the second electronic switch 109b.
In the second embodiment of the present invention, step S701 and the step in first embodiment of the data transmission method S701 is similar, and difference lies in the step S502 in first embodiment to specifically include step S703-S706.
Step S701, when the first data-interface 101b accesses mobile terminal 20b, the second data-interface 102b of monitoring and third The access state of data-interface 103b.
Step S702, if only third data-interface accesses the charging unit, if performing step S703, if not Then it is adjusted to step S704.
Step S703, control switch unit 104b connect the first data-interface 101b and third data-interface 103b, first Electronic switch 108b is disconnected, the second electronic switch 109b conductings, mobile terminal 20b chargings.
Specifically, when the first data-interface 101b accesses mobile terminal 20b and third data-interface 103b access charging dresses When putting 40b, first voltage module 106b supplies electricity to control unit 105b and switch unit 104b, control unit 105b control switchings Unit 104b connects the first data-interface 101b and also controls the first electronic switch with third data-interface 103b, control unit 105b 108b is disconnected, the second electronic switch 109b conductings, after mobile terminal 20b and charging unit 40b completes communication protocol communication, charging Device 40b is charged by the first data-interface 101b and third data-interface 103b to mobile terminal 20b, i.e. charging unit 40b Voltage mobile terminal 20b is transmitted to by the second electronic switch 109b.
Step S704, whether detection mobile terminal 20b and charging unit 40b carries out communication protocol communication, if so, performing step Rapid S705, if it is not, performing step S706.
Specifically, when the first data-interface 101b accesses mobile terminal 20b and third data-interface 103b access charging dresses After putting 40b, when the second data-interface 102b accesses OTG device 30B, control unit 105b detection mobile terminal 20b are filled with charging Put whether 40b carries out communication protocol communication.
Step S705 waits for communication protocol communication to complete.
Specifically, if mobile terminal 20b and charging unit 40b is carrying out communication protocol communication, communication protocol is waited for Communication is completed.
The first data-interface 101b and the second data-interface 102b is connected in step S706, the 104b selections of control switch unit, The first electronic switch 108b is controlled to disconnect, the second electronic switch 109b conductings, and second voltage module 107b is controlled to supply electricity to the Two data-interface 102b.
Specifically, if mobile terminal 20b does not carry out communication protocol communication with charging unit 40b or completed to communicate During protocol communication, the first data-interface 101b and the second data-interface are connected in control unit 105b control switch unit 104b selections 102b, the first electronic switch 108b of control are disconnected, the second electronic switch 109b conductings, and second voltage module 107b is controlled to power To the second data-interface 102b so that mobile terminal 20b carries out data transmission while charging.
In other embodiments of the invention, when the first data-interface 101b accesses mobile terminal 20b and the second data connect While mouth 102b access OTG device 30B during third data-interface 103b access charging unit 40b, control unit 105b controls Switch unit 104b connects the first data-interface 101b and third data-interface 103b, and the first electronic switch 108b of control is disconnected, Second electronic switch 109b is connected, and control unit 105b also controls second voltage module 107b to supply electricity to the second data-interface 102b, mobile terminal 20b and charging unit 40b carry out communication protocol communication;
After the completion of communication protocol communication, the first data-interface is connected in control unit 105b control switch unit 104b selections 101b and the second data-interface 102b, the first electronic switch 108b of control are disconnected, the second electronic switch 109b conductings, and control the Two voltage module 107b supply electricity to the second data-interface 102b so that mobile terminal 20b carries out data transmission while charging.
In the present embodiment, when the first data-interface 101b accesses mobile terminal 20b and third data-interface 103b is accessed During charging unit 40b, mobile terminal 20b and OTG device 30b is selected into line number according to the access state of the second data-interface 102b It is moved while charging according to transmission or charging unit 40b to mobile terminal 20b chargings or charging unit 40b to mobile terminal 20b Dynamic terminal 20b and OTG device 30b carries out data transmission, and solving mobile terminal in the prior art cannot be real when charging The defects of existing OTG function (data transmissions).
Compared to the prior art, data line and data transmission method proposed in embodiment of the present invention are applied in number According to line, by monitoring the access state of the second data-interface and third data-interface, mobile terminal and OTG device are selected into line number Charge according to transmission or charging unit to mobile terminal 20a or while charging unit charge to mobile terminal mobile terminal and OTG device carries out data transmission, and solves mobile terminal in the prior art and can not achieve OTG function (data when charging Transmission) the defects of.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that article or device including a series of elements not only include those elements, but also including not having There is the other element being expressly recited or further include as this article or the intrinsic element of device.Do not limiting more In the case of system, the element that is limited by sentence "including a ...", it is not excluded that in article or device including the element In also there are other identical elements.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of data line, for connecting external electronic device, which is characterized in that the data line includes:
First data-interface, for accessing mobile terminal;
Second data-interface, for accessing OTG device;
Third data-interface, for accessing charging unit;
Switch unit is electrically connected to first data-interface, second data-interface and the third data-interface;
Control unit is electrically connected to first data-interface, second data-interface, the third data-interface and described Switch unit, for when first data-interface accesses the mobile terminal, according to second data-interface and described The access state of third data-interface controls the switch unit to connect first data-interface and second data-interface Or the first data-interface and the third data-interface are connected in selection.
2. data line as described in claim 1, which is characterized in that further include:
First voltage module is electrically connected to first data-interface, described control unit and the switch unit, for institute State control unit and switch unit power supply;
First electronic switch is electrically connected to first data-interface, described control unit and second data-interface;
Second electronic switch is electrically connected to first data-interface, described control unit and the third data-interface;
Second voltage module is electrically connected to second electronic switch, described control unit and the third data-interface.
3. data line as claimed in claim 2, it is characterised in that:
When first data-interface accesses the mobile terminal and second data-interface accesses the OTG device, institute First voltage module for power supply is stated to described control unit and the switch unit, described control unit controls the switch unit to connect Lead to first data-interface and second data-interface, described control unit also controls first electronic switch to be connected, Second electronic switch disconnects, the mobile terminal by first data-interface and second data-interface with it is described OTG device is communicated or data transmission.
4. data line as claimed in claim 3, it is characterised in that:
After first data-interface accesses the mobile terminal and second data-interface accesses the OTG device, institute When stating the third data-interface access charging unit, described control unit detects the mobile terminal is with the OTG device It is no to carry out data transmission;
If the mobile terminal is carrying out data transmission with the OTG device, described control unit pause is described mobile whole End and the data transmission of the OTG device control the switch unit selection to connect first data-interface and the third Data-interface and control first electronic switch disconnect, the conducting of the second electronic switch, and the second voltage module is controlled to supply After supplying electricity to second data-interface, the mobile terminal carries out communication protocol communication with the charging unit;When the communication When protocol communication is completed, described control unit controls the switch unit selection to connect first data-interface and described second Data-interface, and start the data transmission of the mobile terminal and the OTG device so that the mobile terminal is in the same of charging When carry out data transmission;
If the mobile terminal does not have data transmission with the OTG device, described control unit controls the switch unit choosing It selects and connects first data-interface and the third data-interface and control the first electronic switch disconnection, second electricity Sub switch is connected, and controls the second voltage module for power supply to second data-interface, and the mobile terminal is filled with described Electric installation carries out communication protocol communication, and when the communication protocol communication is completed, described control unit controls the switch unit First data-interface and second data-interface, the mobile terminal charging are connected in selection.
5. data line as claimed in claim 2, it is characterised in that:
When first data-interface accesses the mobile terminal and the third data-interface accesses the charging unit, institute First voltage module for power supply is stated to described control unit and the switch unit, described control unit controls the switch unit to connect Lead to first data-interface and the third data-interface, described control unit also controls first electronic switch to disconnect, The second electronic switch conducting, after the mobile terminal completes communication protocol communication with the charging unit, the charging dress It puts and is charged by first data-interface and the third data-interface to the mobile terminal.
6. data line as claimed in claim 5, it is characterised in that:
After first data-interface accesses the mobile terminal and the third data-interface accesses the charging unit, institute When stating the second data-interface access OTG device, described control unit detects the mobile terminal is with the charging unit No carry out communication protocol communication;
If the mobile terminal is carrying out communication protocol communication with the charging unit, communication protocol communication is waited for complete;
If the mobile terminal does not carry out communication protocol communication or has completed communication protocol communication with the charging unit When, described control unit controls the switch unit selection to connect first data-interface and second data-interface, control The disconnection of the first electronic switch, the conducting of the second electronic switch are made, and controls the second voltage module for power supply to second data Interface so that the mobile terminal carries out data transmission while charging.
7. data line as claimed in claim 2, it is characterised in that:
While first data-interface accesses the mobile terminal and second data-interface accesses the OTG device When the third data-interface accesses the charging unit, described control unit controls the switch unit to connect first number According to interface and the third data-interface, first electronic switch is controlled to disconnect, the second electronic switch conducting, the control Unit processed also controls the second voltage module for power supply to second data-interface, the mobile terminal and the charging unit Carry out communication protocol communication;
After the completion of the communication protocol communication, described control unit controls the switch unit selection to connect first data Interface and second data-interface, the first electronic switch of control disconnect, the conducting of the second electronic switch, and control second electricity Die block supplies electricity to second data-interface so that the mobile terminal carries out data transmission while charging.
8. a kind of data transmission method, applied to data line, described is that data line includes the first data-interface, the second data connect Mouth, third data-interface, switch unit and control unit, described method includes following steps:
When first data-interface accesses mobile terminal, second data-interface and the third data-interface are monitored Access state;
According to the access state control the switch unit connect first data-interface and second data-interface or The first data-interface and the third data-interface are connected in selection.
9. data transmission method as claimed in claim 8, which is characterized in that the data line further include first voltage module, First electronic switch, the second electronic switch and second voltage module, it is described that the switch unit is controlled according to the access state First data-interface is connected to connect with the third data with second data-interface or selection the first data-interface of connection The step of mouth, specifically comprises the following steps:
When first data-interface accesses the mobile terminal, detect second data-interface and the third data connect Whether mouth accesses external device (ED);
When only described second data-interface accesses the OTG device, the first voltage module for power supply is single to the control First and described switch unit, described control unit control the switch unit to connect first data-interface and the described second number According to interface, described control unit also controls first electronic switch to be connected, and second electronic switch disconnects, described mobile whole End carries out data transmission with the OTG equipment;
After second data-interface accesses the OTG device, when the third data-interface accesses the charging unit, institute It states control unit and detects whether the mobile terminal carries out data transmission with the OTG device;
If carrying out data transmission, mobile terminal is stated described in described control unit pause and the data of the OTG device pass It is defeated, the switch unit selection is controlled to connect first data-interface and the third data-interface and control first electricity Sub switch disconnects, the conducting of the second electronic switch, and controls the second voltage module for power supply to after second data-interface, institute It states mobile terminal and carries out communication protocol communication with the charging unit;
When the communication protocol communication is completed, described control unit controls the switch unit selection to connect first data Interface and second data-interface, and start the data transmission of the mobile terminal and the OTG device, the mobile terminal Carry out data transmission while charging;
If do not have data transmission, described control unit controls the switch unit selection to connect first data-interface and institute It states third data-interface and control first electronic switch disconnects, the second electronic switch conducting, and control described second Voltage module supplies electricity to second data-interface, and the mobile terminal carries out communication protocol communication with the charging unit;
When the communication protocol communication is completed, described control unit controls the switch unit selection to connect first data Interface and second data-interface, the mobile terminal charging.
10. data transmission method as claimed in claim 9, which is characterized in that
When first data-interface accesses the mobile terminal, detect second data-interface and the third data connect Whether mouth accesses external device (ED);
When the only third data-interface access charging unit, described control unit is controlled described in the switch unit connection First data-interface is disconnected with the third data-interface, first electronic switch, second electronic switch is connected, described Mobile terminal charges;
When the second data-interface access OTG device after the third data-interface accesses charging unit, the control is single Member detects whether the mobile terminal carries out communication protocol communication with the charging unit;
If the mobile terminal is carrying out communication protocol communication with the charging unit, communication protocol communication is waited for complete;
If the mobile terminal does not carry out communication protocol communication or has completed communication protocol communication with the charging unit When, described control unit controls the switch unit selection to connect first data-interface and second data-interface, control The disconnection of the first electronic switch, the conducting of the second electronic switch are made, and controls the second voltage module for power supply to second data Interface so that the mobile terminal carries out data transmission while charging.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711429413.1A CN108206444B (en) | 2017-12-26 | 2017-12-26 | Data line and data transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711429413.1A CN108206444B (en) | 2017-12-26 | 2017-12-26 | Data line and data transmission method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108206444A true CN108206444A (en) | 2018-06-26 |
CN108206444B CN108206444B (en) | 2021-01-26 |
Family
ID=62605863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711429413.1A Active CN108206444B (en) | 2017-12-26 | 2017-12-26 | Data line and data transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108206444B (en) |
Cited By (7)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110224477A (en) * | 2019-05-23 | 2019-09-10 | 苏州蓝沛无线通信科技有限公司 | A kind of external wireless charging receiver and working method |
CN110247264A (en) * | 2019-06-21 | 2019-09-17 | 优奈柯恩(北京)科技有限公司 | Connector and the method for carrying out charge control using connector |
WO2020019332A1 (en) * | 2018-07-27 | 2020-01-30 | 华为技术有限公司 | Mobile terminal |
CN111061667A (en) * | 2019-12-31 | 2020-04-24 | 深圳市倍行科技有限公司 | Wire rod for realizing data transmission of any one way by one dragging of multiple wires |
CN111509815A (en) * | 2020-05-29 | 2020-08-07 | 维沃移动通信有限公司 | Data line and charging equipment |
CN111509814A (en) * | 2020-05-29 | 2020-08-07 | 维沃移动通信有限公司 | Data line and charging equipment |
CN112086830A (en) * | 2020-07-23 | 2020-12-15 | 福建联迪商用设备有限公司 | Data line circuit communicating with Apple equipment |
Citations (13)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060076977A1 (en) * | 2004-09-20 | 2006-04-13 | Xiaoming Zhu | USB 1.1 for USB OTG implementation |
CN201075214Y (en) * | 2007-09-13 | 2008-06-18 | 深圳华为通信技术有限公司 | USB general-purpose data line |
CN101266588A (en) * | 2008-03-26 | 2008-09-17 | 北京中星微电子有限公司 | Data line and data-transmission system |
CN201188444Y (en) * | 2008-04-24 | 2009-01-28 | 中兴通讯股份有限公司 | Data line capable of implementing electrification and earphone function |
CN103151658A (en) * | 2013-02-22 | 2013-06-12 | 北京小米科技有限责任公司 | Data link line as well as method and device for controlling data link line |
CN103545678A (en) * | 2013-11-01 | 2014-01-29 | 乐志峰 | Three-in-one data line with functions of USB OTG, charging and data transmission |
CN203707522U (en) * | 2014-01-14 | 2014-07-09 | 姜红军 | Portable OTG data line with storage and mobile power source functions |
CN105183678A (en) * | 2015-08-25 | 2015-12-23 | 广东欧珀移动通信有限公司 | Communication method and device for terminal interface |
CN105790356A (en) * | 2016-04-06 | 2016-07-20 | 北京天诚盛业科技有限公司 | Data line having charging circuit |
CN105868139A (en) * | 2015-12-31 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | USB data line containing extension interface and control method therefor |
CN105914547A (en) * | 2016-05-25 | 2016-08-31 | 广东欧珀移动通信有限公司 | A data line, charging device and method for intelligently identifying and switching OTG |
CN206116826U (en) * | 2016-10-12 | 2017-04-19 | 重庆蓝岸通讯技术有限公司 | USB data line of compatible OTG function |
CN107180004A (en) * | 2017-05-11 | 2017-09-19 | 深圳市金立通信设备有限公司 | It is a kind of at the same realize OTG communication and charging method and terminal |
-
2017
- 2017-12-26 CN CN201711429413.1A patent/CN108206444B/en active Active
Patent Citations (13)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060076977A1 (en) * | 2004-09-20 | 2006-04-13 | Xiaoming Zhu | USB 1.1 for USB OTG implementation |
CN201075214Y (en) * | 2007-09-13 | 2008-06-18 | 深圳华为通信技术有限公司 | USB general-purpose data line |
CN101266588A (en) * | 2008-03-26 | 2008-09-17 | 北京中星微电子有限公司 | Data line and data-transmission system |
CN201188444Y (en) * | 2008-04-24 | 2009-01-28 | 中兴通讯股份有限公司 | Data line capable of implementing electrification and earphone function |
CN103151658A (en) * | 2013-02-22 | 2013-06-12 | 北京小米科技有限责任公司 | Data link line as well as method and device for controlling data link line |
CN103545678A (en) * | 2013-11-01 | 2014-01-29 | 乐志峰 | Three-in-one data line with functions of USB OTG, charging and data transmission |
CN203707522U (en) * | 2014-01-14 | 2014-07-09 | 姜红军 | Portable OTG data line with storage and mobile power source functions |
CN105183678A (en) * | 2015-08-25 | 2015-12-23 | 广东欧珀移动通信有限公司 | Communication method and device for terminal interface |
CN105868139A (en) * | 2015-12-31 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | USB data line containing extension interface and control method therefor |
CN105790356A (en) * | 2016-04-06 | 2016-07-20 | 北京天诚盛业科技有限公司 | Data line having charging circuit |
CN105914547A (en) * | 2016-05-25 | 2016-08-31 | 广东欧珀移动通信有限公司 | A data line, charging device and method for intelligently identifying and switching OTG |
CN206116826U (en) * | 2016-10-12 | 2017-04-19 | 重庆蓝岸通讯技术有限公司 | USB data line of compatible OTG function |
CN107180004A (en) * | 2017-05-11 | 2017-09-19 | 深圳市金立通信设备有限公司 | It is a kind of at the same realize OTG communication and charging method and terminal |
Cited By (14)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112166422A (en) * | 2018-07-27 | 2021-01-01 | 华为技术有限公司 | Mobile terminal |
WO2020019332A1 (en) * | 2018-07-27 | 2020-01-30 | 华为技术有限公司 | Mobile terminal |
CN112166422B (en) * | 2018-07-27 | 2022-04-26 | 华为技术有限公司 | Mobile terminal |
CN110224477A (en) * | 2019-05-23 | 2019-09-10 | 苏州蓝沛无线通信科技有限公司 | A kind of external wireless charging receiver and working method |
CN110247264A (en) * | 2019-06-21 | 2019-09-17 | 优奈柯恩(北京)科技有限公司 | Connector and the method for carrying out charge control using connector |
CN114041249A (en) * | 2019-06-21 | 2022-02-11 | 闪耀现实(无锡)科技有限公司 | Connector and method for controlling charging by using connector |
CN110247264B (en) * | 2019-06-21 | 2020-09-25 | 闪耀现实(无锡)科技有限公司 | Connector and method for controlling charging by using connector |
EP3796484A4 (en) * | 2019-06-21 | 2021-11-17 | Matrixed Reality Technology Co., Ltd. | Connector, and charging control method using connector |
CN111061667A (en) * | 2019-12-31 | 2020-04-24 | 深圳市倍行科技有限公司 | Wire rod for realizing data transmission of any one way by one dragging of multiple wires |
CN111509814B (en) * | 2020-05-29 | 2021-10-12 | 维沃移动通信有限公司 | Data cables and charging equipment |
CN111509815B (en) * | 2020-05-29 | 2022-02-08 | 维沃移动通信有限公司 | Data line and charging equipment |
CN111509814A (en) * | 2020-05-29 | 2020-08-07 | 维沃移动通信有限公司 | Data line and charging equipment |
CN111509815A (en) * | 2020-05-29 | 2020-08-07 | 维沃移动通信有限公司 | Data line and charging equipment |
CN112086830A (en) * | 2020-07-23 | 2020-12-15 | 福建联迪商用设备有限公司 | Data line circuit communicating with Apple equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108206444B (en) | 2021-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108206444A (en) | 2018-06-26 | Data line and data transmission method |
CN106301342B (en) | 2019-02-05 | Interface circuit and terminal equipment |
CN101674366B (en) | 2012-03-28 | Mobile terminal USB, or charger inserting identification method and identification device thereof |
CN111817380B (en) | 2023-02-21 | Charger, data line, charging equipment and electronic equipment |
CN103106167B (en) | 2015-12-02 | A kind of USB device and control method thereof |
CN100444497C (en) | 2008-12-17 | Dedicated power supply apparatus, terminal. power supply system, and power supply method |
CN105740194B (en) | 2019-03-26 | The system and method for electric power are provided for connecting by reversed local data transfer |
CN101355259B (en) | 2011-12-28 | Portable communication device and method for charging through discernment of charging cable |
CN104242390B (en) | 2016-12-07 | A kind of charging method, charging circuit and mobile terminal |
CN107742912A (en) | 2018-02-27 | Charging method, fast fill device and computer-readable recording medium |
CN106502939B (en) | 2020-01-10 | USB adapter and data transmission equipment |
CN102820682A (en) | 2012-12-12 | Device and method for communicating through universal serial bus (USB) interface and charging external device |
CN106537719A (en) | 2017-03-22 | Electronic device, charger, charging system, and charging method |
CN101383627A (en) | 2009-03-11 | Device and method for terminal charger charging, USB charging and data communication |
CN110829523A (en) | 2020-02-21 | Electronic equipment and reverse charging method |
CN107968469A (en) | 2018-04-27 | Charging system, mobile terminal and charger |
CN106549463A (en) | 2017-03-29 | A kind of USB TYPE C PD bypass charging circuit |
CN105068959A (en) | 2015-11-18 | A charging method and device for a terminal and a terminal with a data exchange function |
CN107516919A (en) | 2017-12-26 | A kind of charging method and charger |
CN105048018B (en) | 2017-07-21 | The charging method and device of a kind of terminal with data exchanging function |
CN106329654A (en) | 2017-01-11 | Electronic device and charging method thereof |
CN109861038B (en) | 2021-08-20 | USB connection port capable of automatically switching connection mode and control method thereof |
CN205911544U (en) | 2017-01-25 | Portable removal charger data line |
CN106300549A (en) | 2017-01-04 | Electronic installation and charging method thereof |
CN207967976U (en) | 2018-10-12 | Charging system, charging module and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
2018-06-26 | PB01 | Publication | |
2018-06-26 | PB01 | Publication | |
2019-11-15 | SE01 | Entry into force of request for substantive examination | |
2019-11-15 | SE01 | Entry into force of request for substantive examination | |
2021-01-26 | GR01 | Patent grant | |
2021-01-26 | GR01 | Patent grant |