CN107180004A - It is a kind of at the same realize OTG communication and charging method and terminal - Google Patents
It is a kind of at the same realize OTG communication and charging method and terminal Download PDFInfo
- Publication number
- CN107180004A CN107180004A CN201710330715.7A CN201710330715A CN107180004A CN 107180004 A CN107180004 A CN 107180004A CN 201710330715 A CN201710330715 A CN 201710330715A CN 107180004 A CN107180004 A CN 107180004A
- Authority
- CN
- China
- Prior art keywords
- terminal
- otg
- power supply
- equipment
- communication interface
- 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.)
- Withdrawn
Links
- 238000004891 communication Methods 0.000 title claims abstract description 128
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000001514 detection method Methods 0.000 claims abstract description 21
- 230000005611 electricity Effects 0.000 claims description 12
- 238000003780 insertion Methods 0.000 claims description 6
- 230000037431 insertion Effects 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 24
- 230000015654 memory Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 238000012546 transfer Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000010168 coupling process Methods 0.000 description 5
- 238000005859 coupling reaction Methods 0.000 description 5
- 238000003860 storage Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 241001062009 Indigofera Species 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- 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/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4072—Drivers or receivers
- G06F13/4077—Precharging or discharging
-
- 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
-
- 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
- H02J2207/00—Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J2207/30—Charge provided using DC bus or data bus of a computer
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The present invention discloses a kind of while realizing the method and terminal of OTG communications and charging, and this method includes:Whether the communication interface of detection terminal inserts data wire, and the data wire includes the OTG interfaces being connected with OTG equipment, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface;If the communication interface inserts data wire, detect whether the OTG interfaces connect OTG equipment and whether the charging inlet connects power supply;If the OTG interfaces connection OTG equipment and charging inlet connection power supply, control the power supply to the terminal charge and are powered to the OTG equipment, and control the terminal to be connected by the communication interface with the OTG equipment communications.The present invention can be charged and be realized the communication between terminal and equipment with OTG technologies to terminal simultaneously by a data line.
Description
Technical field
The present invention relates to electronic technology field, more particularly to it is a kind of while realizing the method and terminal of OTG communications and charging.
Background technology
Many terminals have OTG (On The Go) function, you can USB flash disk or mouse to go identification insertion as main equipment
Mark, reads the information of slave unit, and principle is that terminal exports a 5V voltages and is given to slave unit and powers, after slave unit is powered, then
Communication interaction information is carried out with main equipment.Terminal is to realize OTG functions, it is necessary to special OTG lines, the one of ID of the OTG lines
Pin is dragged down, and the communication interface of terminal once detects OTG lines and is inserted into terminal, and terminal inner passes through battery and booster circuit
5V supply voltages are exported, powers, is connected with peripheral communication to peripheral hardware OTG equipment, realize OTG functions.Terminal is driven as main equipment
, there is the problem of power consumption is larger in dynamic larger USB flash disk or mouse etc., and terminal again must pull out OTG lines when need charging
Out, USB line is plugged again could very to bother to terminal charge, and not having can also support OTG and charging while depositing at present
Terminal.
The content of the invention
The embodiment provides it is a kind of and meanwhile realize OTG communication and charging method and terminal, can simultaneously it is right
The communication that terminal is charged and realized between terminal and equipment with OTG technologies.
In a first aspect, the embodiments of the invention provide a kind of while realizing the method for OTG communications and charging, this method bag
Include:
Whether the communication interface of detection terminal inserts data wire, and the OTG that the data wire includes being connected with OTG equipment connects
Mouth, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface;
If the communication interface inserts data wire, detect whether the OTG interfaces connect OTG equipment and the charging inlet
Whether power supply is connected;
If the OTG interfaces connection OTG equipment and charging inlet connection power supply, control the power supply to the terminal
Charge and powered to the OTG equipment, and control the terminal to pass through the communication interface and OTG equipment communications company
Connect.
Second aspect, the embodiment of the present invention additionally provides a kind of terminal, and the terminal includes:
First detection unit, for detecting whether the communication interface of terminal inserts data wire, the data wire includes and OTG
OTG interfaces, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface of equipment connection;
Second detection unit, if inserting data wire for the communication interface, detects whether the OTG interfaces connect OTG
Equipment and whether the charging inlet connects power supply;
Control unit, if connecting OTG equipment and charging inlet connection power supply for the OTG interfaces, control is described
Power supply to the terminal charge and being powered to the OTG equipment, and control the terminal by the communication interface with it is described
OTG equipment communications are connected.
The third aspect, the embodiment of the present invention also provides a kind of data wire, and the data wire includes what is be connected with OTG equipment
OTG interfaces, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface of terminal.
It is provided in an embodiment of the present invention a kind of at the same realize OTG communication and charging method and terminal, have by one
Connect OTG equipment OTG interfaces, connect terminal terminal interface and and connection power supply charging inlet data wire, when OTG connects
Mouth is connected to OTG equipment and when charging inlet is connected to power supply, and control power supply is powered to terminal charge and to OTG equipment, and
Control terminal is connected by the communication interface of terminal with OTG equipment communications, while realizing OTG communications and charging.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of method for realizing OTG communications and charging provided in an embodiment of the present invention;
Fig. 2 is provided in an embodiment of the present invention a kind of while realizing another exemplary flow of the method for OTG communications and charging
Figure;
Fig. 3 is a kind of structural schematic block diagram of terminal provided in an embodiment of the present invention;
A kind of another structural schematic block diagram of Fig. 4 terminals provided in an embodiment of the present invention;
A kind of structural schematic block diagram for data wire that Fig. 5 inventive embodiments are provided;
Fig. 6 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated
Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is provided in an embodiment of the present invention a kind of while realizing that the method for OTG communications and charging is shown
Meaning flow chart.This method can apply to intelligent terminal (such as Android terminal, IOS terminals), and this method comprises the following steps
S101~S103:
Whether S101, the communication interface of detection terminal insert data wire, and the data wire includes what is be connected with OTG equipment
OTG interfaces, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface.
The communication interface include USB interface, lighting interfaces and terminal it is other it is any can by data wire with it is outer
The interface of portion's equipment communication, realizes the connection of terminal and other equipment.
The embodiment of the present invention needs a data wire with three interfaces, and these three interfaces are respectively that can be set with OTG
OTG interfaces, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface of terminal of standby connection.
OTG equipment refers to that data transfer or the equipment of exchange can be realized by OTG technologies, and OTG interfaces are referred to can
To be connected the interface for realizing OTG functions with OTG equipment.
Data wire is improved to three interfaces, and OTG interfaces are dedicated for OTG equipment use, terminal interface and terminal coupling, are used for
OTG equipment and terminal are communicated;Charging inlet connects power supply, is dedicated for that OTG equipment is powered and terminal charge is used.
If S102, the communication interface insert data wire, detect whether the OTG interfaces connect OTG equipment and described fill
Whether electrical interface connects power supply.
If S103, the OTG interfaces connect OTG equipment and OTG interfaces connection OTG equipment, the power supply is controlled to give
The terminal charge and powered to the OTG equipment, and control the terminal to pass through the communication interface and the OTG equipment
Communication connection.
After data wire insertion terminal, if a terminal detects that OTG interfaces connect OTG equipment, charging inlet connects power supply, then
Illustrate to need to terminal charge, and terminal needs and OTG equipment carries out OTG communications, realizes data transfer, then controls power supply to give
OTG equipment is powered, and OTG equipment obtains above electricity, while controlling power supply to terminal charge.
If user is needed to terminal charge, and carries out data transfer with OTG equipment, then data wire is inserted into terminal simultaneously
It is that can be achieved to borrow corresponding equipment in other interfaces of data wire.
Further, the output voltage of the power supply is 5V.
Further, terminal includes booster circuit and charging circuit.
The control terminal is powered by the communication interface to the OTG equipment, is specially:Control the terminal
Booster circuit open, the booster circuit is powered by the communication interface to the OTG equipment.
The control power supply is powered to the terminal charge and to the OTG equipment, is specially:Control the end
The charging circuit at end is opened, and makes the power supply by the charging circuit to the terminal charge, and controls the power supply to institute
OTG equipment is stated to power.
When the charging inlet of data wire accesses power supply, this when, terminal closed booster circuit immediately, opened charging circuit.
On the one hand, power supply output 5V voltages are given to terminal by the terminal interface of data wire, and terminal is charged by charging circuit;Separately
On the one hand, power supply is powered by the OTG interfaces of data wire to OTG equipment, that is, charging and the power supply of OTG equipment all pass through
Power supply is completed, and so completes the digital independent function of OTG equipment and the charge function of terminal simultaneously.
It is provided in an embodiment of the present invention at the same realize OTG communication and charging method, by one have connection OTG equipment
OTG interfaces, connect terminal terminal interface and connect power supply charging inlet data wire, set when OTG interfaces are connected to OTG
When standby and charging inlet is connected to power supply, control power supply is powered to terminal charge and to OTG equipment, and control terminal passes through end
The communication interface at end is connected with OTG equipment communications, while realizing OTG communications and charging.
Referring to Fig. 2, Fig. 2 be it is provided in an embodiment of the present invention a kind of and meanwhile realize OTG communication and charging method it is another
One schematic flow diagram, this method comprises the following steps S201~S204.
Whether S201, the communication interface of detection terminal insert data wire, and the data wire includes what is be connected with OTG equipment
OTG interfaces, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface.
The data wire that the embodiment of the present invention needs is improved to three interfaces, and these three interfaces are respectively can be with OTG equipment
The OTG interfaces of connection, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface of terminal.
OTG interfaces are dedicated for OTG equipment use, terminal interface and terminal coupling, are communicated for OTG equipment and terminal;
Charging inlet connects power supply, is dedicated for that OTG equipment is powered and terminal charge is used.
If S202, the communication interface insert data wire, detect whether the OTG interfaces connect OTG equipment and described fill
Whether electrical interface connects power supply, if so, step S203 is carried out, if it is not, carrying out step S204.
S203, the control power supply are powered to the terminal charge and to the OTG equipment, and control the terminal to lead to
The communication interface is crossed to be connected with the OTG equipment communications.
After data wire insertion terminal, if a terminal detects that OTG interfaces connect OTG equipment, charging inlet connects power supply, then
Illustrate to need to terminal charge, and terminal needs and OTG equipment carries out OTG communications, realizes data transfer, then controls power supply to give
OTG equipment is powered, and OTG equipment obtains above electricity, while controlling power supply to terminal charge.
If user is needed to terminal charge, and carries out data transfer with OTG equipment, then data wire is inserted into terminal simultaneously
It is that can be achieved to borrow corresponding equipment in other interfaces of data wire.
Further, the output voltage of the power supply is 5V.
Further, terminal includes booster circuit and charging circuit.
The control terminal is powered by the communication interface to the OTG equipment, is specially:Control the terminal
Booster circuit open, the booster circuit is powered by the communication interface to the OTG equipment.
The control power supply is powered to the terminal charge and to the OTG equipment, is specially:Control the end
The charging circuit at end is opened, and makes the power supply by the charging circuit to the terminal charge, and controls the power supply to institute
OTG equipment is stated to power.
When the charging inlet of data wire accesses power supply, this when, terminal closed booster circuit immediately, opened charging circuit.
On the one hand, power supply output 5V voltages are given to terminal by the terminal interface of data wire, and terminal is charged by charging circuit;Separately
On the one hand, power supply is powered by the OTG interfaces of data wire to OTG equipment, that is, charging and the power supply of OTG equipment all pass through
Power supply is completed, and so completes the digital independent function of OTG equipment and the charge function of terminal simultaneously.
If S204, the OTG interfaces connect OTG equipment and the charging inlet is not connected with power supply, the terminal is controlled to lead to
The communication interface is crossed to power and be connected with the OTG equipment communications to the OTG equipment.
When the charging inlet of data wire does not access power supply, this when, terminal opened booster circuit, charge closing electricity immediately
Road, the battery of terminal exports 5V voltages, the communication interface output 5V voltages of terminal, by data wire to OTG by booster circuit
Equipment is powered;Mobile phone sends order simultaneously, and control OTG equipment is communicated with terminal, realizes OTG functions.
It is provided in an embodiment of the present invention at the same realize OTG communication and charging method, by being connect with OTG interfaces, terminal
The data wire of mouth and charging inlet realizes OTG communications and the charging to terminal simultaneously.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic block diagram of terminal 100 provided in an embodiment of the present invention, the terminal 100
Including the first detection unit 101, the second detection unit 102 and control unit 103.
First detection unit 101, for detecting whether the communication interface of terminal 100 inserts data wire, the data wire bag
Include the OTG interfaces being connected with OTG equipment, the charging inlet being connected with power supply and connect with the terminal that the communication interface is connected
Mouthful.
Wherein, OTG interfaces are dedicated for OTG equipment use, and terminal interface is matched with terminal 100, for OTG equipment and terminal
100 are communicated;Charging inlet connect power supply, be dedicated for OTG equipment power and terminal 100 charging use.
Second detection unit 102, if inserting data wire for the communication interface, detects whether the OTG interfaces connect
OTG equipment and whether the charging inlet connects power supply.
Control unit 103, if connecting OTG equipment and charging inlet connection power supply for the OTG interfaces, controls institute
State power supply to charge and power to the OTG equipment to the terminal 100, and control the terminal 100 to be connect by the communication
Mouth is connected with the OTG equipment communications.
After data wire insertion terminal 100, if the OTG interfaces of data wire are connected to OTG equipment, and the charging of data wire
Mouth is connected to power supply, then explanation needs to charge to terminal 100, and terminal 100 needs to carry out OTG communications with OTG equipment, realizes number
According to transmission, then power supply is controlled to be powered to OTG equipment, OTG equipment obtains above electricity and communicated with terminal 100, while controlling power supply
Charged to terminal 100.
If user needs to charge to terminal 100, and carries out data transfer with OTG equipment, then insert data wire eventually
End 100 and to borrow corresponding equipment be that can be achieved in other interfaces of data wire.
Terminal 100 provided in an embodiment of the present invention, passes through an OTG interface with connection OTG equipment, connection terminal
The data wire of 100 terminal interface and the charging inlet of connection power supply, when OTG interfaces are connected to OTG equipment and charging inlet company
When having connect power supply, control power supply charges to terminal 100 and powered to OTG equipment, and control terminal 100 passes through terminal 100
Communication interface is connected with OTG equipment communications, while realizing OTG communications and charging.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic block diagram of terminal 200 provided in an embodiment of the present invention, the terminal 200
Including the first detection unit 201, the second detection unit 202, control unit 203, booster circuit 204 and charging circuit 205.
First detection unit 201, for detecting whether the communication interface of terminal 200 inserts data wire, the data wire bag
Include the OTG interfaces being connected with OTG equipment, the charging inlet being connected with power supply and connect with the terminal that the communication interface is connected
Mouthful.
Wherein, OTG interfaces are dedicated for OTG equipment use, and terminal interface is matched with terminal 200, for OTG equipment and terminal
200 are communicated;Charging inlet connect power supply, be dedicated for OTG equipment power and terminal 200 charging use.
Second detection unit 202, if inserting data wire for the communication interface, detects whether the OTG interfaces connect
OTG equipment and whether the charging inlet connects power supply.
Control unit 203 is used for:If the OTG interfaces connection OTG equipment and charging inlet connection power supply, control institute
State power supply to charge and power to the OTG equipment to the terminal 200, and control the terminal 200 to be connect by the communication
Mouth is connected with the OTG equipment communications;If the OTG interfaces connection OTG equipment and the not connected power supply of the charging inlet, control
The terminal 200 is powered to the OTG equipment by the communication interface and is connected with the OTG equipment communications.
After data wire insertion terminal 200, if OTG interfaces are connected to OTG equipment, and charging inlet is connected to power supply, then
Illustrate to need to charge to terminal 200, and terminal 200 needs to carry out OTG communications with OTG equipment, realizes data transfer, then controls electricity
Source powers to OTG equipment, and OTG equipment obtains above electricity, while controlling power supply to be charged to terminal 200.
The control terminal 200 is powered by the communication interface to the OTG equipment, is specially:Control is described
The booster circuit 204 of terminal 200 is opened, and the booster circuit 204 is powered by the communication interface to the OTG equipment.
The control power supply charges to the terminal 200 and powered to the OTG equipment, is specially:Control institute
The charging circuit 205 for stating terminal 200 is opened, and the power supply is charged by the charging circuit 205 to the terminal 200, and
The power supply is controlled to be powered to the OTG equipment.
The voltage of power supply output is 5V.
When the charging inlet of data wire accesses power supply, this when, terminal 200 closed booster circuit 204 immediately, and unlatching is filled
Circuit 205, on the one hand, power supply output 5V voltages are given to terminal 200 by the terminal interface of data wire, and terminal 200 is by filling
Circuit 205 is charged, and on the other hand, power supply powered by the OTG interfaces of data wire to OTG equipment, that is, charging and
The power supply of OTG equipment is completed by power supply, and the digital independent function and terminal of OTG equipment are so completed simultaneously
200 charge function;When the charging inlet of data wire does not access power supply, this when, terminal 200 opened booster circuit immediately
204, charge closing circuit 205, the battery of terminal 200 exports 5V voltages, the communication interface of terminal 200 by booster circuit 204
5V voltages are exported, are powered by data wire to OTG equipment;Mobile phone sends order simultaneously, and control OTG equipment is carried out with terminal 200
Communication, realizes OTG functions.
Terminal 200 provided in an embodiment of the present invention, if user needs to charge to terminal 200 and enters line number with OTG equipment
According to transmission, then data wire is inserted into terminal 200 and to borrow corresponding equipment be that can be achieved in other interfaces of data wire.
As shown in figure 5, Fig. 5 is a kind of structural schematic block diagram of data wire 300 provided in an embodiment of the present invention.The data wire
300 communication interface including the OTG interfaces 301 being connected with OTG equipment, the charging inlet 302 being connected with power supply and with terminal
The terminal interface 303 of connection.
After data wire 300 inserts terminal, if a terminal detects that OTG interfaces 301 connect OTG equipment, charging inlet 302
Power supply is connected, then controls power supply to be powered to OTG equipment, OTG equipment obtains above electricity, is communicated with terminal, while controlling power supply
To terminal charge.
Data wire 300 provided in an embodiment of the present invention, can be such that terminal is realized while communication with OTG equipment to end
The charge function at end.
Referring to Fig. 6, Fig. 6 is a kind of schematic block diagram of the structure composition of terminal 400 provided in an embodiment of the present invention.Should
Terminal 400 can include input equipment 401, include one or more computer-readable recording mediums memory 402,
Output equipment 403, transceiver 404 and include the part such as one or the processor 405 of more than one processing core.
It will be understood by those skilled in the art that the restriction of the structure of terminal 400 shown in Fig. 6 not structure paired terminal 400, can include
Than illustrating more or less parts, some parts or different parts arrangement are either combined.
Input equipment 401 can be used for the numeral or character information for receiving input, and produce the key relevant with function control
Disk, mouse, action bars, optics or the input of trace ball signal.Specifically, in a specific embodiment, input equipment 401
It may include touch sensitive surface and other input units.Touch sensitive surface, also referred to as touch display screen or Trackpad, collect user
(such as user is using any suitable objects such as finger, stylus or annex in touch sensitive surface for touch operation on or near it
The upper or operation near touch sensitive surface), and corresponding attachment means are driven according to formula set in advance.Optionally, it is touch-sensitive
Surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects the touch side of user
Position, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch detecting apparatus
Touch information is received, and is converted into contact coordinate, then gives processor 405, and the order that energy reception processing device 405 is sent
And performed.Furthermore, it is possible to realize touch-sensitive table using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Face.Except touch sensitive surface, input equipment 401 can also include other input units.
Memory 402 can be used for storage application program and data.Include and can hold in the application program that memory 402 is stored
Line code.Application program can constitute various functions module.Processor 405 is stored in the application journey of memory 402 by operation
Sequence, so as to perform various function application and data processing.Memory 402 can mainly include storing program area and data storage
Area, wherein, application program that storing program area can be needed for storage program area, at least one function (such as sound-playing function,
Image player function etc.) etc.;Storage data field can store according to terminal 400 use created data (such as voice data,
Phone directory etc.) etc..In addition, memory 402 can include high-speed random access memory, non-volatile memories can also be included
Device, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory
402 can also include Memory Controller, to provide access of the processor 405 to memory 402.
Output equipment 403 is used for the output data of external output terminal 400, it may include display, loudspeaker etc..Further
, the display panel of display can cover touch sensitive surface, after touch sensitive surface detects the touch operation on or near it, pass
Processor 405 is given to determine the type of touch event, with preprocessor 405 according to the type of touch event on a display panel
Corresponding visual output is provided.
Transceiver 404, for sending data to other equipment or receiving data from other equipment.In general, receiving
Hair equipment 404 may include bluetooth, radio-frequency antenna, near-field communication module etc..
Processor 405 is the control centre of terminal 400, utilizes each of various interfaces and the whole terminal 400400 of connection
Individual part, by operation or performs and is stored in application program in memory 402, and calls and be stored in memory 402
Data, perform the various functions and processing data of terminal 400, so as to carry out integral monitoring to terminal 400.Optionally, processor
405 may include one or more processing cores;It is preferred that, processor 405 can integrated application processor and modem processor,
Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing
Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 405.
Although not shown in Fig. 6, it will be understood to those skilled in the art that terminal 400 can also include camera, indigo plant
Tooth, Wireless Fidelity etc., will not be repeated here.
Specifically in the present embodiment, the processor 405 of terminal 400 can be according to following instruction, by one or more
Application program the corresponding executable code of process or data be loaded into memory 402, run by processor 405 or grasped
The program code or data being stored in memory 402, and perform following operation:
Whether the communication interface of detection terminal inserts data wire, and the OTG that the data wire includes being connected with OTG equipment connects
Mouth, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface;If the communication interface inserts number
According to line, detect whether the OTG interfaces connect OTG equipment and whether the charging inlet connects power supply;If the OTG interfaces connect
OTG equipment and charging inlet connection power supply are connect, controls the power supply to be supplied to the terminal charge and to the OTG equipment
Electricity, and control the terminal to be connected by the communication interface with the OTG equipment communications.
Further, the processor 405 also performs following operation:
Whether the communication interface of detection terminal inserts data wire, and the OTG that the data wire includes being connected with OTG equipment connects
Mouth, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface;If the communication interface inserts number
According to line, detect whether the OTG interfaces connect OTG equipment and whether the charging inlet connects power supply;If the OTG interfaces connect
OTG equipment and charging inlet connection power supply are connect, controls the power supply to be supplied to the terminal charge and to the OTG equipment
Electricity, and control the terminal to be connected by the communication interface with the OTG equipment communications;If the OTG interfaces connection OTG is set
Standby and described charging inlet is not connected with power supply, control the terminal powered by the communication interface to the OTG equipment and with
The OTG equipment communications connection.
Further, the processor 405 also performs following operation:
Whether the communication interface of detection terminal inserts data wire, and the OTG that the data wire includes being connected with OTG equipment connects
Mouth, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface;If the communication interface inserts number
According to line, detect whether the OTG interfaces connect OTG equipment and whether the charging inlet connects power supply;If the OTG interfaces connect
OTG equipment and charging inlet connection power supply are connect, controls the charging circuit of the terminal to open, passes through the power supply described
Charging circuit gives the terminal charge, controls the power supply to be powered to the OTG equipment, and it is described logical to control the terminal to pass through
Letter interface is connected with the OTG equipment communications;If the OTG interfaces connection OTG equipment and the not connected power supply of the charging inlet,
Control the booster circuit of the terminal to open, make the booster circuit powered by the communication interface to the OTG equipment and
It is connected with the OTG equipment communications.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase
Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit
Connection or electricity, mechanical or other forms are connected.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
1. it is a kind of while realizing the method for OTG communications and charging, it is characterised in that including:
Whether the communication interface of detection terminal inserts data wire, the data wire include OTG interfaces be connected with OTG equipment and
The charging inlet of power supply connection and the terminal interface being connected with the communication interface;
If communication interface insertion data wire, detect whether whether the OTG interfaces connect OTG equipment and the charging inlet
Connect power supply;
If the OTG interfaces connection OTG equipment and charging inlet connection power supply, control the power supply to the terminal charge
And powered to the OTG equipment, and control the terminal to be connected by the communication interface with the OTG equipment communications.
2. according to the method described in claim 1, it is characterised in that the detection OTG interfaces whether connect OTG equipment and
Whether the charging inlet is connected after power supply, in addition to, if the OTG interfaces connection OTG equipment and the charging inlet not
Power supply is connected, controls the terminal to power and connect with the OTG equipment communications to the OTG equipment by the communication interface
Connect.
3. method according to claim 2, it is characterised in that the control terminal is by the communication interface to institute
OTG equipment is stated to power, including:
Control the booster circuit of the terminal to open, the booster circuit is supplied by the communication interface to the OTG equipment
Electricity.
4. according to the method described in claim 1, it is characterised in that the control power supply is to the terminal charge and gives
The OTG equipment is powered, including:
Control the charging circuit of the terminal to open, make the power supply by the charging circuit to the terminal charge, and control
The power supply is made to power to the OTG equipment.
5. according to the method described in claim 1, it is characterised in that the output voltage of the power supply is 5V.
6. a kind of terminal, it is characterised in that including:
First detection unit, for detecting whether the communication interface of terminal inserts data wire, the data wire includes and OTG equipment
The OTG interfaces of connection, the charging inlet being connected with power supply and the terminal interface being connected with the communication interface;
Second detection unit, if inserting data wire for the communication interface, detects whether the OTG interfaces connect OTG equipment
And whether the charging inlet connects power supply;
Control unit, if connecting OTG equipment and charging inlet connection power supply for the OTG interfaces, controls the power supply
Powered to the terminal charge and to the OTG equipment, and control the terminal to be set by the communication interface with the OTG
Standby communication connection.
7. terminal according to claim 6, it is characterised in that described control unit is additionally operable to:If the OTG interfaces connection
OTG equipment and the not connected power supply of the charging inlet, control the terminal to be powered by the communication interface to the OTG equipment
And be connected with the OTG equipment communications.
8. terminal according to claim 7, it is characterised in that the control terminal is by the communication interface to institute
OTG equipment is stated to power, including:
Control the booster circuit of the terminal to open, the booster circuit is supplied by the communication interface to the OTG equipment
Electricity.
9. terminal according to claim 6, it is characterised in that the control power supply is to the terminal charge and gives
The OTG equipment is powered, including:
Control the charging circuit of the terminal to open, make the power supply by the charging circuit to the terminal charge, and control
The power supply is made to power to the OTG equipment.
10. a kind of data wire, it is characterised in that including the OTG interfaces being connected with OTG equipment, the charging inlet being connected with power supply
And the terminal interface being connected with the communication interface of terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710330715.7A CN107180004A (en) | 2017-05-11 | 2017-05-11 | It is a kind of at the same realize OTG communication and charging method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710330715.7A CN107180004A (en) | 2017-05-11 | 2017-05-11 | It is a kind of at the same realize OTG communication and charging method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107180004A true CN107180004A (en) | 2017-09-19 |
Family
ID=59831108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710330715.7A Withdrawn CN107180004A (en) | 2017-05-11 | 2017-05-11 | It is a kind of at the same realize OTG communication and charging method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107180004A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108206444A (en) * | 2017-12-26 | 2018-06-26 | 努比亚技术有限公司 | Data line and data transmission method |
CN108874708A (en) * | 2018-06-28 | 2018-11-23 | 努比亚技术有限公司 | OTG equipment, terminal charging method, mobile terminal and computer readable storage medium |
CN109101447A (en) * | 2018-07-17 | 2018-12-28 | 努比亚技术有限公司 | A kind of method and terminal that OTG function executes parallel with charge function |
CN109726156A (en) * | 2018-12-24 | 2019-05-07 | 努比亚技术有限公司 | OTG equipment, charge control method, terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN205985628U (en) * | 2016-08-23 | 2017-02-22 | 东莞市江涵电子有限公司 | OTG Multifunction Integrator |
CN206099469U (en) * | 2016-10-26 | 2017-04-12 | 潍坊歌尔电子有限公司 | USB OTG mobile device reading and writing charging device |
CN106571657A (en) * | 2016-09-28 | 2017-04-19 | 上海创功通讯技术有限公司 | Terminal, converter and connection conversion system and method |
-
2017
- 2017-05-11 CN CN201710330715.7A patent/CN107180004A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN205985628U (en) * | 2016-08-23 | 2017-02-22 | 东莞市江涵电子有限公司 | OTG Multifunction Integrator |
CN106571657A (en) * | 2016-09-28 | 2017-04-19 | 上海创功通讯技术有限公司 | Terminal, converter and connection conversion system and method |
CN206099469U (en) * | 2016-10-26 | 2017-04-12 | 潍坊歌尔电子有限公司 | USB OTG mobile device reading and writing charging device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108206444A (en) * | 2017-12-26 | 2018-06-26 | 努比亚技术有限公司 | Data line and data transmission method |
CN108874708A (en) * | 2018-06-28 | 2018-11-23 | 努比亚技术有限公司 | OTG equipment, terminal charging method, mobile terminal and computer readable storage medium |
CN109101447A (en) * | 2018-07-17 | 2018-12-28 | 努比亚技术有限公司 | A kind of method and terminal that OTG function executes parallel with charge function |
CN109101447B (en) * | 2018-07-17 | 2021-09-14 | 努比亚技术有限公司 | Method and terminal for parallel execution of OTG function and charging function |
CN109726156A (en) * | 2018-12-24 | 2019-05-07 | 努比亚技术有限公司 | OTG equipment, charge control method, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105874682B (en) | Charging method for electronic equipment and charging unit | |
CN107180004A (en) | It is a kind of at the same realize OTG communication and charging method and terminal | |
CN105045414B (en) | A kind of stylus, implementation method and a kind of touch-control system | |
CN109149682A (en) | Control the method and its electronic equipment of multiple batteries | |
CN204243832U (en) | A multi-interface charging circuit compatible with charging and output | |
CN106571657A (en) | Terminal, converter and connection conversion system and method | |
CN206270930U (en) | A kind of data transfer and storage device, electronic system | |
CN107707000A (en) | A kind of OTG power supplies and wireless charging compatible circuit and correlation technique and terminal device | |
CN106596394A (en) | Hair detection method, terminal and comb | |
CN110675561A (en) | NFC card for IC card gas meter, gas payment system and gas payment method | |
CN103677480A (en) | Apparatus for measuring coordinates and control method thereof | |
CN106716764A (en) | A wearable device and a charging method thereof | |
CN106502558A (en) | Terminal device and its method of operating and operation device | |
CN203645373U (en) | Multifunctional mobile power supply | |
CN107612162A (en) | A kind of wireless charging method, terminal and computer-readable recording medium | |
CN107544019A (en) | Apparatus for testing chip and chip detecting method | |
CN107071704A (en) | The open method and device of the mode of operation of NFC chip | |
CN102867201A (en) | Super-high-frequency electronic tag reading-writing system based on tablet personal computer | |
CN205722146U (en) | A kind of vending machine circuit system and vending machine system thereof | |
CN103679101A (en) | Mobile phone audio frequency card reading device and system | |
CN204759506U (en) | Data interaction system | |
CN107147161A (en) | The charging method and terminal of a kind of terminal | |
CN106325453A (en) | Configuration method of output current and terminal | |
CN104905476B (en) | Based on the extendible intelligent shoe of NFC | |
CN204740621U (en) | data interaction system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170919 |
|
WW01 | Invention patent application withdrawn after publication |