A kind of power-supplying circuit of peripheral equipment, method of supplying power to and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of power-supplying circuit of peripheral equipment, method of supplying power to and
Mobile terminal.
Background technology
With the development of intelligent terminal and universal, the peripheral equipment of mobile terminal is also more and more, such as most common OTG
(On-The-Go) function uses mobile terminal as main equipment, external from equipment, such as USB flash disk, keyboard, mouse by USB interface,
With the development of mobile terminal technology, the function of mobile terminal can be more and more abundant, with the matched peripheral equipment of mobile terminal
Can be more and more, different external equipments and mobile terminal attachment may outer power supply sources that require different voltages.
The present mobile terminal with OTG functions have to by the ID feet on USB interface go identification outside equipment,
To choose whether to power to external equipment on VBUS feet, the voltage that mobile terminal OTG patterns are powered to external equipment is usual
It is integrally fixed at 5V or so, if external equipment needs a higher or lower voltage, mobile terminal OTG mode powers output electricity
Pressure just cannot be satisfied requirements, for example need the LED light of an external 3V, or others input voltage demand external equipment, then
Mobile terminal can not provide corresponding voltage;OTG functions also need to that by the progress equipment identification of ID feet OTG moulds could be entered simultaneously
Formula also has certain dependence to the reliability and stability that OTG is used in this way.
Invention content
The embodiment of the present invention provides a kind of power-supplying circuit of peripheral equipment, method of supplying power to and mobile terminal, to solve
The problem of mobile terminal OTG mode powers output voltage cannot be satisfied peripheral equipment power demands in the prior art.
In a first aspect, the embodiment of the present invention provides a kind of power-supplying circuit of peripheral equipment, it is applied to mobile terminal, packet
It includes:
The supplying cell of adjustable DC power supply, adjustable DC power supply and mobile terminal connects;
The OTG power supply modules being connect with supplying cell;
Peripheral interface for connecting peripheral equipment;And
The first switch being separately connected with OTG power supply modules, adjustable DC power supply and peripheral interface, first switch are in the
Adjustable DC power supply and peripheral interface are connected to when one state, connection OTG power supply modules and peripheral interface when being in the second state;
Control module, control module are separately connected adjustable DC power supply and first switch, control the defeated of adjustable DC power supply
Go out voltage and controls the on off state of first switch.
Second aspect, the embodiment of the present invention provide it is a kind of use the power-supplying circuit of peripheral equipment for peripheral equipment power
Method, be applied to mobile terminal, this method includes:
According to the device identifying information of peripheral interface, judge whether peripheral equipment is OTG equipment;
When peripheral equipment is OTG equipment, control first switch connection OTG power supply modules and peripheral interface set for periphery
Available electricity;
When peripheral equipment is not OTG equipment, the first supply voltage input by user for peripheral equipment power supply, root are obtained
The output voltage values of adjustable DC power supply are adjusted according to the first supply voltage, and control first switch connection adjustable DC power supply and outer
Interface is enclosed, is powered for peripheral equipment.
The third aspect, the embodiment of the present invention also provide it is a kind of use the power-supplying circuit of peripheral equipment for peripheral equipment supply
The mobile terminal of electricity, including:
Judgment module judges whether peripheral equipment is OTG equipment for the device identifying information according to peripheral interface;
First processing module, for when peripheral equipment be OTG equipment when, control first switch connection OTG power supply modules and
Peripheral interface is powered for peripheral equipment;
Second processing module, it is input by user for peripheral equipment power supply for when peripheral equipment is not OTG equipment, obtaining
The first supply voltage, according to the first supply voltage adjust adjustable DC power supply output voltage values, and control first switch company
Logical adjustable DC power supply and peripheral interface, power for peripheral equipment.
The advantageous effect of technical solution of the embodiment of the present invention includes at least:
Technical solution of the present invention controls first when power-supplying circuit is that periphery OTG equipment is powered by control module
Switch connection OTG power supply modules and peripheral interface are supplied using the OTG power supply modules being connect with supplying cell for periphery OTG equipment
Electricity controls first switch by control module and is connected to straight-adjustable galvanic electricity when power-supplying circuit is that other peripheral equipments are powered
Source and peripheral interface are adjusted the voltage of supplying cell using adjustable DC power supply, export the required confession of peripheral equipment
Piezoelectric voltage realizes the power supply to peripheral equipment.The present invention can be to power with the matched OTG equipment of peripheral interface, can also root
Different voltage is provided according to the demand of peripheral equipment, while ensureing OTG function normal uses, effectively enriches peripheral equipment
Application.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention
Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without having to pay creative labor, it can also obtain according to these attached drawings
Obtain other attached drawings.
Power-supplying circuit Fig. 1 shows the peripheral equipment of the offer of the embodiment of the present invention one is peripheral equipment for electrical schematic
Figure;
Fig. 2 indicates provided by Embodiment 2 of the present invention and the power-supplying circuit of peripheral equipment is used to power for peripheral equipment
Method schematic diagram;
Fig. 3 indicates the mobile terminal schematic diagram that the embodiment of the present invention three provides;
Fig. 4 indicates the mobile terminal block diagram that the embodiment of the present invention four provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
As shown in Figure 1, the embodiment of the present invention provides a kind of power-supplying circuit of peripheral equipment, it is applied to mobile terminal 1,
Including:
Adjustable DC power supply 10, adjustable DC power supply 10 are connect with the supplying cell 11 of mobile terminal 1;With supplying cell 11
The OTG power supply modules 12 of connection;Peripheral interface 14 for connecting peripheral equipment 13;And with OTG power supply modules 12, straight-adjustable
The first switch 15 that galvanic electricity source 10 and peripheral interface 14 are separately connected, first switch 15 are connected to adjustable DC when being in first state
Power supply 10 and peripheral interface 14, connection OTG power supply modules 12 and peripheral interface 14 when being in the second state;
Control module 16, control module 16 are separately connected adjustable DC power supply 10 and first switch 15, control adjustable DC
The output voltage of power supply 10 and the on off state for controlling first switch 15.
Specifically, adjustable DC power supply 10 is connect with the supplying cell of mobile terminal 1 11 with OTG power supply modules 12, profit
It is powered with the supplying cell 11 of mobile terminal 1.Adjustable DC power supply 10 is connect by first switch 15 with peripheral interface 14,
OTG power supply modules 12 are connect by first switch 15 with peripheral interface 14.Control module 16 is connect with first switch 15, control the
The conversion of one switch, 15 state.
Peripheral interface 14 connects peripheral equipment 13, and when peripheral equipment 13 is OTG equipment, the control of control module 16 first is opened
It closes 15 and is in the second state, first switch 15 is connected to OTG power supply modules 12 and peripheral interface 14 at this time, and OTG power supply modules 12 are
Peripheral equipment 13 is powered.Wherein, the voltage of OTG power supply modules 12 is equal to the voltage of supplying cell 11, needed for corresponding OTG equipment
The voltage asked is equal to the voltage of OTG power supply modules 12.
When peripheral equipment 13 is not OTG equipment, control module 16 controls first switch 15 and is in first state, and at this time the
One switch 15 is connected to adjustable DC power supply 10 and peripheral interface 14, while control module 16 controls adjustable DC power supply 10 to power supply
The voltage of battery 11 is adjusted so that adjustable DC power supply 10 exports the supply voltage of 13 demand of peripheral equipment.Such as periphery
Equipment 13 is the LED light of a 3V, and the voltage of supplying cell 11 is 5V, and control module 16 needs to control adjustable DC power supply 10 at this time
The voltage of supplying cell 11 is adjusted so that adjustable DC power supply 10 exports the supply voltage of 3V, passes through the power supply electricity of 3V
Pressure is that LED light is powered.Wherein LED light is connect with peripheral interface 14 by a patchcord.
Further, peripheral interface 14 can be identified peripheral equipment 13 to judge whether peripheral equipment 13 is OTG
Equipment, control module 16 are connect with peripheral interface 14, and the shape of first switch 15 is controlled according to the identification information of peripheral interface 14
State.Wherein, peripheral interface 14 can go whether identification peripheral equipment 13 belongs to OTG equipment using ID feet.When peripheral equipment 13 not
When belonging to OTG equipment, control module 16 obtains the voltage needed for peripheral equipment 13 input by user, needed for peripheral equipment 13
Voltage, come control adjustable DC power supply 10 carry out voltage adjusting so that the output voltage of adjustable DC power supply 10 be equal to periphery
Voltage needed for equipment 13.
In embodiments of the present invention, the power-supplying circuit of peripheral equipment 13 further includes:Touch panel 17, touch panel 17
The operation interface of upper formation and 16 interactive information of control module.When control module 16 obtains the voltage needed for peripheral equipment 13,
The voltage needed for peripheral equipment 13 is obtained by receiving the information input by user that touch panel 17 is sent.
Specifically, when peripheral equipment 13 is not OTG equipment, user sets in the operation interface input periphery of touch panel 17
Standby 13 corresponding voltage values, touch panel 17 send it to control mould after obtaining 13 corresponding voltage value of peripheral equipment
Block 16, voltage of the control module 16 needed for peripheral equipment 13 carry out voltage adjusting to control adjustable DC power supply 10 so that
Adjustable DC power supply 10 exports corresponding voltage.
In embodiments of the present invention, first switch 15 be single-pole double-throw switch (SPDT), the first input end of single-pole double-throw switch (SPDT) with
OTG power supply modules 12 connect;Second input terminal of single-pole double-throw switch (SPDT) is connect with adjustable DC power supply 10;Single-pole double-throw switch (SPDT)
Output end is connect with peripheral interface 14.
Wherein first switch 15 is single-pole double-throw switch (SPDT), first input end and the OTG power supply modules 12 of single-pole double-throw switch (SPDT)
Connection, the output end of single-pole double-throw switch (SPDT) are connect with peripheral interface 14.First input end is moved end, is determined in control module 16 outer
After peripheral equipment 13 belongs to OTG equipment, control module 16 controls the first input end of first switch 15 and OTG power supply modules 12 connect
It connects, supplying cell 11, OTG power supply modules 12, first switch 15, peripheral interface 14 are connected at this time, form a supply access, are realized
OTG power supply modules 12 are the power supply of peripheral equipment 13.
Second input terminal of single-pole double-throw switch (SPDT) is connect with adjustable DC power supply 10, the output end of single-pole double-throw switch (SPDT) with it is outer
Enclose the connection of interface 14.Second input terminal is moved end, after control module 16 determines that peripheral equipment 13 is not belonging to OTG equipment, control
The second input terminal that module 16 controls first switch 15 is connect with adjustable DC power supply 10, at this time supplying cell 11, adjustable DC
Power supply 10, first switch 15, peripheral interface 14 are connected to, and form a supply access, control module 16 is according to the peripheral equipment of acquisition
Supply voltage needed for 13, control adjustable DC power supply 10 carry out voltage adjusting so that adjustable DC power supply 10 exports periphery and sets
Supply voltage needed for standby 13 realizes that adjustable DC power supply 10 is the power supply of peripheral equipment 13.
In embodiments of the present invention, control module 16 is connected by the control terminal of serial ports control line and adjustable DC power supply 10
It connects;Control module 16 is connect by general input/output port with the control terminal of first switch 15.During wherein control module 16 is
Central processor, peripheral interface 14 are USB interface.
Specifically, control module 16 can be central processing unit, central processing unit passes through serial ports control line and adjustable DC
Power supply 10 connects, specially:It connect with the control terminal of adjustable DC power supply 10, is obtained needed for peripheral equipment 13 in central processing unit
Supply voltage after, to the control terminal of adjustable DC power supply 10 send signal so that adjustable DC power supply 10 exports periphery and sets
Supply voltage needed for standby 13.Control module 16 controls first switch 15 and is in first state simultaneously.In adjustable DC power supply 10
After exporting the supply voltage needed for peripheral equipment 13, it is connected to peripheral interface 14 by first switch 15, and then set for periphery
Standby 13 power supply.
Central processing unit passes through the control of general input/output port and first switch 15 when being connect with first switch 15
The control terminal of end connection processed, first switch 15 receives the instruction that central processing unit is sent, according to the instruction received to determine
The state at place.
Wherein, peripheral interface 14 is USB interface, can be with the matched OTG equipment of USB interface accordingly:USB flash disk, movement
Hard disk, keyboard, mouse etc..
In embodiments of the present invention, the power input of adjustable DC power supply 10 is connect with supplying cell 11, adjustable DC
The power output end of power supply 10 is connect by first switch 15 with peripheral interface 14.
Specifically, the power input of adjustable DC power supply 10 is connect with supplying cell 11, to obtain supplying cell 11
Voltage, control module 16 are connect with the control terminal of adjustable DC power supply 10, control of the control module 16 to adjustable DC power supply 10
End sends the relevant information of voltage needed for peripheral equipment 13, and adjustable DC power supply 10 is after obtaining relevant information, to power supply electricity
The voltage in pond 11 is adjusted, the voltage needed for final output peripheral equipment 13.The power output end of adjustable DC power supply 10 is logical
First switch 15 is crossed to connect with peripheral interface 14, it, will by first switch 15 after the voltage needed for output peripheral equipment 13
Voltage needed for peripheral equipment 13 is transferred to peripheral interface 14, is powered for peripheral equipment 13 by peripheral interface 14.Wherein, here
Peripheral equipment 13 be not belonging to OTG equipment.
In embodiments of the present invention, the power input of OTG power supply modules 12 is connect with supplying cell 11, OTG power supply moulds
The power output end of block 12 is connect by first switch 15 with peripheral interface 14.
The power input of OTG power supply modules 12 is connect with supplying cell 11, to obtain the voltage of supplying cell 11, OTG
The power output end of power supply module 12 is connect by first switch 15 with peripheral interface 14, and first switch is controlled in control module 16
The voltage of OTG power supply modules 12 is transferred to after peripheral interface 14 by first switch 15 by 15 connection OTG power supply modules 12
Peripheral interface 14 is powered by peripheral interface 14 for peripheral equipment 13.Wherein, peripheral equipment 13 here belongs to OTG equipment.
The embodiment of the present invention one controls first when power-supplying circuit is that periphery OTG equipment is powered by control module
Switch connection OTG power supply modules and peripheral interface are supplied using the OTG power supply modules being connect with supplying cell for periphery OTG equipment
Electricity controls first switch by control module and is connected to straight-adjustable galvanic electricity when power-supplying circuit is that other peripheral equipments are powered
Source and peripheral interface are adjusted the voltage of supplying cell using adjustable DC power supply, export the required confession of peripheral equipment
Piezoelectric voltage realizes the power supply to peripheral equipment.The present invention can be to power with the matched OTG equipment of peripheral interface, can also root
Different voltage is provided according to the demand of peripheral equipment, while ensureing OTG function normal uses, effectively enriches peripheral equipment
Application.
Embodiment two
As shown in Fig. 2, the embodiment of the present invention provide it is a kind of use the power-supplying circuit of peripheral equipment for peripheral equipment supply
The method of electricity, is applied to mobile terminal, and this method includes:
Step 201, the device identifying information according to peripheral interface judge whether peripheral equipment is OTG equipment.
Peripheral equipment is identified by peripheral interface first, then control module is known according to the equipment that peripheral interface is sent
Other information judges whether the peripheral equipment being connect with peripheral interface belongs to OTG equipment.Wherein, control module connects with peripheral interface
It connects, peripheral interface is identified when peripheral equipment is identified using the ID feet of peripheral interface.Determining peripheral equipment
Belong to after OTG equipment, execute step 202, after determining that peripheral equipment is not belonging to OTG equipment, executes step 203.This
The method of supplying power to of inventive technique scheme is executed by the control module of mobile terminal, and control module can be central processing unit.
Step 202, when peripheral equipment is OTG equipment, control first switch connection OTG power supply modules and peripheral interface,
It powers for peripheral equipment.
When peripheral equipment belongs to OTG equipment, control module control first switch connection OTG power supply modules and periphery connect
Mouthful, due to the supplying cell of OTG power supply modules and mobile terminal connect, at this time supplying cell, OTG power supply modules, first switch,
Peripheral interface and peripheral equipment form a connecting path, realize power supply of the OTG power supply modules to peripheral equipment.
It should be noted that first switch is single-pole double-throw switch (SPDT), first input end and the OTG of single-pole double-throw switch (SPDT) power
Module connects, and the output end of single-pole double-throw switch (SPDT) is connect with peripheral interface;When peripheral equipment is OTG equipment, control first is opened
Connection leads to OTG power supply modules and peripheral interface, includes for the step of peripheral equipment power supply:First is sent to single-pole double-throw switch (SPDT) to close
Close instruction so that single-pole double-throw switch (SPDT) is connected to OTG power supply modules and peripheral interface, powers for peripheral equipment.
Specifically, the first input end of single-pole double-throw switch (SPDT) be moved end, single-pole double-throw switch (SPDT) output end be non-moving end, when
When peripheral equipment is OTG equipment, control module sends the first close command to the control terminal of single-pole double-throw switch (SPDT), and single-pole double throw is opened
It closes after receiving the first close command, first input end is connect with OTG power supply modules, at this time the first of single-pole double-throw switch (SPDT)
Input terminal is connected to OTG power supply modules and peripheral interface with output end, is embodied as the power supply of peripheral equipment.Wherein, OTG power supply modules
Power input connect with supplying cell, the power output end of OTG power supply modules is connect by first switch with peripheral interface.
Step 203, when peripheral equipment is not OTG equipment, obtain it is input by user for peripheral equipment power supply first supply
Piezoelectric voltage, the output voltage values of adjustable DC power supply are adjusted according to the first supply voltage, and control first switch connection straight-adjustable
Galvanic electricity source and peripheral interface are powered for peripheral equipment.
When peripheral equipment is not belonging to OTG equipment, control module needs to obtain the first supply voltage needed for peripheral equipment.
User is needed to carry out the first supply voltage needed for input peripheral at this time.The power-supplying circuit of its peripheral devices also wraps
It includes:Touch panel forms the operation interface with control module interactive information on touch panel;It is input by user for periphery obtaining
When the first supply voltage of equipment power supply, specially:The first confession that user inputs in operation interface is obtained by touch panel
Piezoelectric voltage;Receive the first supply voltage that touch panel is sent.
Specifically, formation operation interface on touch panel, user in operation interface needed for input peripheral first
Supply voltage, touch panel are sent to control module after receiving the first supply voltage, by the first supply voltage, control mould
For block after obtaining the first supply voltage, control adjustable DC power supply carries out voltage adjusting.And it is adjustable to control first switch connection
DC power supply and peripheral interface so that adjustable DC power supply according to the first supply voltage to the voltage of mobile terminal supplying cell into
Row is adjusted, and after exporting the first supply voltage, is powered for peripheral equipment using the first supply voltage.
Wherein, first switch is single-pole double-throw switch (SPDT), and the second input terminal and the adjustable DC power supply of single-pole double-throw switch (SPDT) connect
It connects, the output end of single-pole double-throw switch (SPDT) is connect with peripheral interface;It is connect in control first switch connection adjustable DC power supply and periphery
Mouthful, when powering for peripheral equipment, specially:The second close command is sent to single-pole double-throw switch (SPDT) so that single-pole double-throw switch (SPDT) connects
Logical adjustable DC power supply and peripheral interface, power for peripheral equipment.
Second input terminal of single-pole double-throw switch (SPDT) be moved end, single-pole double-throw switch (SPDT) output end be non-moving end, when periphery is set
For when being not belonging to OTG equipment, control module sends the second close command, single-pole double-throw switch (SPDT) to the control terminal of single-pole double-throw switch (SPDT)
After receiving the second close command, the second input terminal is connect with adjustable DC power supply, at this time the second of single-pole double-throw switch (SPDT)
Input terminal is connected to adjustable DC power supply and peripheral interface with output end, is embodied as the power supply of peripheral equipment.
Wherein, the power input of adjustable DC power supply is connect with supplying cell, the power output end of adjustable DC power supply
It is connect with peripheral interface by first switch.Control module is connect with the control terminal of adjustable DC power supply, to adjustable DC power supply
Send the first supply voltage so that adjustable DC power supply is adjusted according to the first supply voltage, and then output meets periphery and sets
First supply voltage of standby demand.
Adjustable DC power supply in the embodiment of the present invention can work independently with OTG power supply modules, pass through OTG power supply modules
It powers for OTG equipment;The voltage of supplying cell is adjusted by adjustable DC power supply, output meets the voltage of peripheral equipment demand,
Effectively enrich the application of peripheral equipment.
The embodiment of the present invention two controls first when power-supplying circuit is that periphery OTG equipment is powered by control module
Switch connection OTG power supply modules and peripheral interface are supplied using the OTG power supply modules being connect with supplying cell for periphery OTG equipment
Electricity controls first switch by control module and is connected to straight-adjustable galvanic electricity when power-supplying circuit is that other peripheral equipments are powered
Source and peripheral interface are adjusted the voltage of supplying cell using adjustable DC power supply, export the required confession of peripheral equipment
Piezoelectric voltage realizes the power supply to peripheral equipment.The present invention can be to power with the matched OTG equipment of peripheral interface, can also root
Different voltage is provided according to the demand of peripheral equipment, while ensureing OTG function normal uses, effectively enriches peripheral equipment
Application.
Embodiment three
The embodiment of the present invention three provides a kind of movement for using the power-supplying circuit of peripheral equipment to power for peripheral equipment
Terminal, as shown in figure 3, including:
Judgment module 301 judges whether peripheral equipment is OTG equipment for the device identifying information according to peripheral interface;
First processing module 302, for when peripheral equipment is OTG equipment, control first switch to be connected to OTG power supply modules
And peripheral interface, it powers for peripheral equipment;
Second processing module 303 is peripheral equipment for when peripheral equipment is not OTG equipment, obtaining input by user
First supply voltage of power supply adjusts the output voltage values of adjustable DC power supply according to the first supply voltage, and controls first and open
Connection leads to adjustable DC power supply and peripheral interface, powers for peripheral equipment.
Wherein, first switch is single-pole double-throw switch (SPDT), and first input end and the OTG power supply modules of single-pole double-throw switch (SPDT) connect
It connects, the output end of single-pole double-throw switch (SPDT) is connect with peripheral interface;First processing module 302 is further used for:
The first close command is sent to single-pole double-throw switch (SPDT) so that single-pole double-throw switch (SPDT) is connected to OTG power supply modules and periphery
Interface is powered for peripheral equipment.
Wherein, the power-supplying circuit of peripheral equipment further includes:Touch panel is formed on touch panel and is handed over control module
The operation interface of mutual information;Second processing module 303 includes:
Acquisition submodule 3031, for obtaining the first power supply electricity that user inputs in operation interface by touch panel
Pressure;
Receiving submodule 3032, the first supply voltage for receiving touch panel transmission.
Wherein, first switch is single-pole double-throw switch (SPDT), and the second input terminal and the adjustable DC power supply of single-pole double-throw switch (SPDT) connect
It connects, the output end of single-pole double-throw switch (SPDT) is connect with peripheral interface;Second processing module 303 is further used for:
The second close command is sent to single-pole double-throw switch (SPDT) so that single-pole double-throw switch (SPDT) is connected to adjustable DC power supply and periphery
Interface is powered for peripheral equipment.
The embodiment of the present invention three controls first when power-supplying circuit is that periphery OTG equipment is powered by control module
Switch connection OTG power supply modules and peripheral interface are supplied using the OTG power supply modules being connect with supplying cell for periphery OTG equipment
Electricity controls first switch by control module and is connected to straight-adjustable galvanic electricity when power-supplying circuit is that other peripheral equipments are powered
Source and peripheral interface are adjusted the voltage of supplying cell using adjustable DC power supply, export the required confession of peripheral equipment
Piezoelectric voltage realizes the power supply to peripheral equipment.The present invention can be to power with the matched OTG equipment of peripheral interface, can also root
Different voltage is provided according to the demand of peripheral equipment, while ensureing OTG function normal uses, effectively enriches peripheral equipment
Application.
Example IV
Fig. 4 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 4
400 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 400 in Fig. 4 includes radio frequency (Radio Frequency, RF) circuit 401, memory 402, input
Unit 403, display unit 404, adjustable DC power supply 405, processor 406, voicefrequency circuit 407, WiFi (Wireless
Fidelity) module 408, supplying cell 409, OTG power supply modules 410, peripheral interface 411, first switch 412, wherein handling
Device 406 is separately connected adjustable DC power supply 405 and first switch 412, the output voltage of control adjustable DC power supply 405 and control
The on off state of first switch 412 processed.Adjustable DC power supply 405 is connect with supplying cell 409;Supplying cell 409 and OTG powers
Module 410 connects;First switch 412 is connect with OTG power supply modules 410, adjustable DC power supply 405 and peripheral interface 411 respectively,
Connection adjustable DC power supply 405 and peripheral interface 411, are connected to when in the second state when first switch 412 is in first state
OTG power supply modules 410 and peripheral interface 411, supplying cell 409 are connect with processor 406 simultaneously.
Wherein, input unit 403 can be used for receiving number input by user or character information, and generation and mobile terminal
The 400 related signal input of user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 4031.Touch panel 4031, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses the operations of any suitable object or attachment on touch panel 4031 such as finger, stylus), and according to pre-
The formula first set drives corresponding attachment device.Optionally, touch panel 4031 may include touch detecting apparatus and touch to control
Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, it will
Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact
Coordinate, then give the processor 406, and order that processor 406 is sent can be received and executed.Furthermore, it is possible to using electricity
The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 4031, formed on touch panel 4031 with
The operation interface of 406 interactive information of processor.In addition to touch panel 4031, input unit 403 can also be set including other inputs
Standby 4032, other input equipments 4032 can include but is not limited to physical keyboard, function key (such as volume control button, switch
Button etc.), it is trace ball, mouse, one or more in operating lever etc..
Wherein, display unit 404 can be used for showing information input by user or be supplied to information and the movement of user
The various menu interfaces of terminal 400.Display unit 404 may include display panel 4041, optionally, LCD or organic may be used
The forms such as light emitting diode (Organic Light-Emitting Diode, OLED) configure display panel 4041.
It should be noted that touch panel 4031 can cover display panel 4041, touch display screen is formed, when the touch display screen
It detects and sends processor 406 on it or after neighbouring touch operation to determine the type of touch event, be followed by subsequent processing device
406 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
Including the interface elements such as icon and/or widget desktop controls of at least one application program.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 406 is the control centre of mobile terminal 400, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 4021, and calling storage
Data in second memory 4022 execute the various functions and processing data of mobile terminal 400, to mobile terminal
400 carry out integral monitoring.Optionally, processor 406 may include one or more processing units.
First switch 412 is single-pole double-throw switch (SPDT), and first input end and the OTG power supply modules 410 of single-pole double-throw switch (SPDT) connect
It connects;Second input terminal of single-pole double-throw switch (SPDT) is connect with adjustable DC power supply 405;The output end of single-pole double-throw switch (SPDT) connects with periphery
Mouth 411 connects.
Processor 406 is connect by serial ports control line with the control terminal of adjustable DC power supply 405;Processor 406 passes through logical
It is connect with the control terminal of first switch 412 with input/output end port.
The power input of adjustable DC power supply 405 is connect with supplying cell 409, and the power supply of adjustable DC power supply 405 is defeated
Outlet is connect by first switch 412 with peripheral interface 411.
The power input of OTG power supply modules 410 is connect with supplying cell 409, the power supply output of OTG power supply modules 410
End is connect by first switch 412 with peripheral interface 411.
Peripheral interface 411 can be USB interface, and peripheral interface 411 is wirelessly connected with processor 406.
In embodiments of the present invention, by calling store the first memory 4021 in software program and/or module and/
Or the data in the second memory 4022, processor 406 are used for:According to the device identifying information of peripheral interface 411, judge outer
Whether peripheral equipment is OTG equipment;When peripheral equipment is OTG equipment, control first switch 412 is connected to 410 He of OTG power supply modules
Peripheral interface 411 is powered for peripheral equipment;When peripheral equipment is not OTG equipment, obtain input by user for peripheral equipment confession
First supply voltage of electricity adjusts the output voltage values of adjustable DC power supply 405 according to the first supply voltage, and controls first and open
412 connection adjustable DC power supplys 405 and peripheral interface 411 are closed, is powered for peripheral equipment.
Optionally, when peripheral equipment is OTG equipment, processor 406 controls first switch 412 and is connected to OTG power supply modules
410 and peripheral interface 411, to be further used for when peripheral equipment power supply:The first close command is sent to single-pole double-throw switch (SPDT), is made
Single-pole double-throw switch (SPDT) connection OTG power supply modules 410 and peripheral interface 411 are obtained, is powered for peripheral equipment.
Optionally, processor 406 is also used when obtaining the first supply voltage input by user powered for peripheral equipment
In:The first supply voltage that user inputs in operation interface is obtained by touch panel 4031;Touch panel 4031 is received to send out
The first supply voltage sent.
Optionally, processor 406 is connected to adjustable DC power supply 405 and peripheral interface 411 in control first switch 412, is
When peripheral equipment is powered, it is additionally operable to:The second close command is sent to single-pole double-throw switch (SPDT) so that single-pole double-throw switch (SPDT) connection is adjustable
DC power supply 405 and peripheral interface 411 are powered for peripheral equipment.
As it can be seen that when power-supplying circuit is that periphery OTG equipment is powered, first switch is controlled by processor and is connected to OTG
Power supply module and peripheral interface are powered using the OTG power supply modules being connect with supplying cell for periphery OTG equipment, for automatically controlled
When circuit processed is that other peripheral equipments are powered, first switch is controlled by processor and is connected to adjustable DC power supply and peripheral interface,
The voltage of supplying cell is adjusted using adjustable DC power supply, exports the required supply voltage of peripheral equipment, realization pair
The power supply of peripheral equipment.The present invention can be to power with the matched OTG equipment of peripheral interface, can also be according to the need of peripheral equipment
It asks and different voltage is provided, while ensureing OTG function normal uses, the application of effective abundant peripheral equipment.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to store program code
Medium.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come
It says, can also make several improvements and retouch under the premise of not departing from principle of the present invention, these improvements and modifications also exist
In protection scope of the present invention.