A kind of power-supplying circuit of ancillary equipment, method of supplying power to and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of power-supplying circuit of ancillary equipment, method of supplying power to and
Mobile terminal.
Background technology
With the development and popularization of intelligent terminal, the ancillary equipment of mobile terminal is also more and more, such as modal OTG
(On-The-Go) function, it is external from equipment, such as USB flash disk, keyboard, mouse by USB interface with mobile terminal as main equipment,
With the development of mobile terminal technology, the function of mobile terminal can increasingly be enriched, the ancillary equipment matched with mobile terminal
Can be more and more, different external equipments and mobile terminal adnexa may may require that the outer power supply source of different voltages.
The present mobile terminal with OTG functions has to the equipment gone outside identification by the ID feet in USB interface,
So as to choose whether to be powered to external equipment on VBUS feet, mobile terminal OTG patterns are usual to the voltage that external equipment is powered
5V or so is integrally fixed at, if external equipment needs a higher or lower voltage, mobile terminal OTG mode powers output electricity
Pressure cannot just meet requirement, than if desired for the LED of an external 3V, or the external equipment of other input voltage demands, then
Mobile terminal cannot provide corresponding voltage;Simultaneously OTG functions also need to carry out equipment identification by ID feet that OTG moulds could be entered
Formula, the reliability and stability for so using OTG also have certain dependence.
The content of the invention
The embodiment of the present invention provides a kind of power-supplying circuit of ancillary equipment, method of supplying power to and mobile terminal, to solve
Mobile terminal OTG mode powers output voltage cannot meet the problem of ancillary equipment power demands in prior art.
In a first aspect, the embodiment of the present invention provides a kind of power-supplying circuit of ancillary equipment, mobile terminal is applied to, is wrapped
Include:
Adjustable DC power supply, adjustable DC power supply is connected with the supplying cell of mobile terminal;
The OTG supply modules being connected with supplying cell;
For connecting the peripheral interface of ancillary equipment;And
The first switch being connected respectively with OTG supply modules, adjustable DC power supply and peripheral interface, first switch is in the
Adjustable DC power supply and peripheral interface are connected during one state, in the second state when connection OTG supply modules and peripheral interface;
Control module, control module connects respectively adjustable DC power supply and first switch, controls the defeated of adjustable DC power supply
Go out the on off state of voltage and control first switch.
Second aspect, embodiment of the present invention offer is a kind of to adopt the power-supplying circuit of ancillary equipment to power for ancillary equipment
Method, be applied to mobile terminal, the method includes:
According to the device identifying information of peripheral interface, judge whether ancillary equipment is OTG equipment;
When ancillary equipment is OTG equipment, control first switch connects OTG supply modules and peripheral interface, is that periphery sets
Available electricity;
When ancillary equipment is not OTG equipment, first supply voltage powered for ancillary equipment of user input, 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 that ancillary equipment is powered.
The third aspect, the embodiment of the present invention also provides a kind of power-supplying circuit for adopting ancillary equipment for ancillary equipment confession
The mobile terminal of electricity, including:
Judge module, for according to the device identifying information of peripheral interface, judging whether ancillary equipment is OTG equipment;
First processing module, for when ancillary equipment be OTG equipment when, control first switch connection OTG supply modules and
Peripheral interface, is that ancillary equipment is powered;
Second processing module, for when ancillary equipment is not OTG equipment, obtaining powering for ancillary equipment for user input
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, are that ancillary equipment is powered.
The beneficial effect of embodiment of the present invention technical scheme at least includes:
Technical solution of the present invention, when power-supplying circuit is powered for periphery OTG equipment, by control module first is controlled
Switch connection OTG supply modules and peripheral interface, are that periphery OTG equipment is supplied using the OTG supply modules being connected with supplying cell
Electricity, when power-supplying circuit is powered for other ancillary equipment, controls first switch and connects adjustable DC electricity by control module
Source and peripheral interface, are adjusted using adjustable DC power supply to the voltage of supplying cell, the required confession of output ancillary equipment
Piezoelectric voltage, realizes the power supply to ancillary equipment.The present invention can be that the OTG equipment matched with peripheral interface is powered, it is also possible to root
Different voltages are provided according to the demand of ancillary equipment, while ensureing that OTG functions are normally used, ancillary equipment is effectively enriched
Application.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to needed for embodiment of the present invention description
The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention,
For those of ordinary skill in the art, without having to pay creative labor, can be being obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 represents that the power-supplying circuit of the ancillary equipment that the embodiment of the present invention one is provided supplies electrical schematic for ancillary equipment
Figure;
Fig. 2 represents that what the embodiment of the present invention two provided adopts what the power-supplying circuit of ancillary equipment was powered for ancillary equipment
Method schematic diagram;
Fig. 3 represents the mobile terminal schematic diagram that the embodiment of the present invention three is provided;
Fig. 4 represents the mobile terminal block diagram that the embodiment of the present invention four is provided.
Specific 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 the embodiment of whole.Based on this
Embodiment in bright, the every other enforcement 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.
Embodiment one
As shown in figure 1, the embodiment of the present invention provides a kind of power-supplying circuit of ancillary equipment, mobile terminal 1 is applied to,
Including:
Adjustable DC power supply 10, adjustable DC power supply 10 is connected with the supplying cell 11 of mobile terminal 1;With supplying cell 11
The OTG supply modules 12 of connection;For connecting the peripheral interface 14 of ancillary equipment 13;And with OTG supply modules 12, straight-adjustable
The first switch 15 that stream power supply 10 and peripheral interface 14 connect respectively, first switch 15 connects adjustable DC when being in first state
Power supply 10 and peripheral interface 14, in the second state when connection OTG supply modules 12 and peripheral interface 14;
Control module 16, control module 16 connects respectively adjustable DC power supply 10 and first switch 15, controls adjustable DC
The output voltage of power supply 10 and the on off state of control first switch 15.
Specifically, adjustable DC power supply 10 is connected with OTG supply modules 12 with the supplying cell 11 of mobile terminal 1, profit
It is powered with the supplying cell 11 of mobile terminal 1.Adjustable DC power supply 10 is connected by first switch 15 with peripheral interface 14,
OTG supply modules 12 are connected by first switch 15 with peripheral interface 14.Control module 16 is connected with first switch 15, control the
The conversion of one 15 states of switch.
Peripheral interface 14 connects ancillary equipment 13, and when ancillary equipment 13 is OTG equipment, the control of control module 16 first is opened
Close 15 and be in the second state, now the connection OTG of first switch 15 supply modules 12 and peripheral interface 14, OTG supply modules 12 are
Ancillary equipment 13 is powered.Wherein, the voltage of OTG 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 supply modules 12.
When ancillary equipment 13 is not OTG equipment, the control first switch 15 of control module 16 is in first state, and now the
One switch 15 connects adjustable DC power supply 10 and peripheral interface 14, while the 10 pairs of power supplies of power supply of the control adjustable DC of control module 16
The voltage of battery 11 is adjusted so that adjustable DC power supply 10 exports the supply voltage of the demand of ancillary equipment 13.Such as periphery
Equipment 13 is the LED of a 3V, and the voltage of supplying cell 11 is 5V, and now control module 16 needs to control adjustable DC power supply 10
The voltage of supplying cell 11 is adjusted so that adjustable DC power supply 10 exports the supply voltage of 3V, by the power supply electricity of 3V
Press and powered for LED.Wherein LED is connected with peripheral interface 14 by a patchcord.
Further, peripheral interface 14 can be identified judging whether ancillary equipment 13 is OTG to ancillary equipment 13
Equipment, control module 16 is connected 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 to recognize whether ancillary equipment 13 belongs to OTG equipment using ID feet.When ancillary equipment 13 not
When belonging to OTG equipment, control module 16 obtains the voltage needed for the ancillary equipment 13 of user input, according to needed for ancillary equipment 13
Voltage carry out voltage-regulation controlling adjustable DC power supply 10 so that the output voltage of adjustable DC power supply 10 is equal to periphery
Voltage needed for equipment 13.
In embodiments of the present invention, the power-supplying circuit of ancillary equipment 13 also includes:Contact panel 17, contact panel 17
Upper formation and the operation interface of the interactive information of control module 16.In the voltage needed for control module 16 obtains ancillary equipment 13,
Voltage of the information of the user input sent by reception contact panel 17 needed for obtain ancillary equipment 13.
Specifically, when ancillary equipment 13 is not OTG equipment, user sets in the operation interface input periphery of contact panel 17
Standby 13 corresponding magnitudes of voltage, contact panel 17 sends it to control mould after the corresponding magnitude of voltage of ancillary equipment 13 is obtained
Block 16, voltage of the control module 16 according to needed for ancillary equipment 13 carries out voltage-regulation controlling 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 supply modules 12 connect;Second input of single-pole double-throw switch (SPDT) is connected with adjustable DC power supply 10;Single-pole double-throw switch (SPDT)
Outfan is connected with peripheral interface 14.
Wherein first switch 15 is single-pole double-throw switch (SPDT), the first input end of single-pole double-throw switch (SPDT) and OTG supply modules 12
Connection, the outfan of single-pole double-throw switch (SPDT) is connected with peripheral interface 14.First input end is moved end, is determined in control module 16 outer
Peripheral equipment 13 belongs to after OTG equipment, and the first input end of the control first switch 15 of control module 16 connects with OTG supply modules 12
Connect, now supplying cell 11, OTG supply modules 12, first switch 15, peripheral interface 14 are connected, form a supply access, realize
OTG supply modules 12 are the power supply of ancillary equipment 13.
Second input of single-pole double-throw switch (SPDT) is connected with adjustable DC power supply 10, the outfan of single-pole double-throw switch (SPDT) with it is outer
Enclose interface 14 to connect.Second input is moved end, after control module 16 determines that ancillary equipment 13 is not belonging to OTG equipment, control
Second input of the control first switch 15 of module 16 is connected with adjustable DC power supply 10, now supplying cell 11, adjustable DC
Power supply 10, first switch 15, peripheral interface 14 are connected, and form a supply access, and control module 16 is according to the ancillary equipment for obtaining
Supply voltage needed for 13, control adjustable DC power supply 10 carries out voltage-regulation so that adjustable DC power supply 10 exports periphery and sets
Supply voltage needed for standby 13, realizes the power supply that adjustable DC power supply 10 is ancillary equipment 13.
In embodiments of the present invention, control module 16 is connected by serial ports control line with the control end of adjustable DC power supply 10
Connect;Control module 16 is connected by general input/output port with the control end of first switch 15.During wherein control module 16 is
Central processor, peripheral interface 14 is USB interface.
Specifically, control module 16 can be central processing unit, and central processing unit is by serial ports control line and adjustable DC
Power supply 10 connects, specially:It is connected with the control end of adjustable DC power supply 10, needed for central processing unit obtains ancillary equipment 13
Supply voltage after, to the control end sending signal of adjustable DC power supply 10 so that adjustable DC power supply 10 exports periphery and sets
Supply voltage needed for standby 13.The first switch 15 of the control of control module 16 simultaneously is in first state.In adjustable DC power supply 10
After supply voltage needed for output ancillary equipment 13, connected with peripheral interface 14 by first switch 15, and then set for periphery
Standby 13 power supply.
Central processing unit when being connected with first switch 15, by the control of general input/output port and first switch 15
End connection processed, the control end of first switch 15 receives the instruction that central processing unit sends, according to the instruction for receiving to determine
The state at place.
Wherein, peripheral interface 14 is USB interface, and the OTG equipment for matching with USB interface accordingly can be: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 connected with supplying cell 11, adjustable DC
The power output end of power supply 10 is connected by first switch 15 with peripheral interface 14.
Specifically, the power input of adjustable DC power supply 10 is connected to obtain supplying cell 11 with supplying cell 11
Voltage, control module 16 is connected with the control end of adjustable DC power supply 10, control of the control module 16 to adjustable DC power supply 10
End sends the relevant information of the required voltage of ancillary equipment 13, and adjustable DC power supply 10 is electric to power supply after relevant information is obtained
The voltage in pond 11 is adjusted, the voltage needed for final output ancillary equipment 13.The power output end of adjustable DC power supply 10 leads to
Cross first switch 15 to be connected with peripheral interface 14, after the voltage needed for output ancillary equipment 13, will by first switch 15
Voltage needed for ancillary equipment 13 is transferred to peripheral interface 14, is powered for ancillary equipment 13 by peripheral interface 14.Wherein, here
Ancillary equipment 13 be not belonging to OTG equipment.
In embodiments of the present invention, the power input of OTG supply modules 12 is connected with supplying cell 11, and OTG powers mould
The power output end of block 12 is connected by first switch 15 with peripheral interface 14.
The power input of OTG supply modules 12 is connected to obtain the voltage of supplying cell 11, OTG with supplying cell 11
The power output end of supply module 12 is connected by first switch 15 with peripheral interface 14, and in control module 16 first switch is controlled
After 15 connection OTG supply modules 12 and peripheral interface 14, the voltage of OTG supply modules 12 is transferred to by first switch 15
Peripheral interface 14, is powered by peripheral interface 14 for ancillary equipment 13.Wherein, ancillary equipment 13 here belongs to OTG equipment.
The embodiment of the present invention one, when power-supplying circuit is powered for periphery OTG equipment, by control module first is controlled
Switch connection OTG supply modules and peripheral interface, are that periphery OTG equipment is supplied using the OTG supply modules being connected with supplying cell
Electricity, when power-supplying circuit is powered for other ancillary equipment, controls first switch and connects adjustable DC electricity by control module
Source and peripheral interface, are adjusted using adjustable DC power supply to the voltage of supplying cell, the required confession of output ancillary equipment
Piezoelectric voltage, realizes the power supply to ancillary equipment.The present invention can be that the OTG equipment matched with peripheral interface is powered, it is also possible to root
Different voltages are provided according to the demand of ancillary equipment, while ensureing that OTG functions are normally used, ancillary equipment is effectively enriched
Application.
Embodiment two
As shown in Fig. 2 the embodiment of the present invention provides a kind of power-supplying circuit for adopting ancillary equipment for ancillary equipment confession
The method of electricity, is applied to mobile terminal, and the method includes:
Step 201, according to the device identifying information of peripheral interface, judge whether ancillary equipment is OTG equipment.
First ancillary equipment is identified by peripheral interface, then control module is known according to the equipment that peripheral interface sends
Other information is judging whether the ancillary equipment being connected with peripheral interface belongs to OTG equipment.Wherein, control module connects with peripheral interface
Connect, peripheral interface is identified when being identified to ancillary equipment using the ID feet of peripheral interface.Determining ancillary equipment
After belonging to OTG equipment, execution step 202, after determining that ancillary equipment is not belonging to OTG equipment, execution step 203.This
The method of supplying power to of inventive technique scheme is performed by the control module of mobile terminal, and control module can be central processing unit.
Step 202, when ancillary equipment is OTG equipment, control first switch connection OTG supply modules and peripheral interface,
Power for ancillary equipment.
When ancillary equipment belongs to OTG equipment, control module control first switch connection OTG supply modules and periphery connect
Mouthful, because OTG supply modules are connected with the supplying cell of mobile terminal, now supplying cell, OTG supply modules, first switch,
Peripheral interface and ancillary equipment form a connecting path, realize power supply of the OTG supply modules to ancillary 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 outfan of single-pole double-throw switch (SPDT) is connected with peripheral interface;When ancillary equipment is OTG equipment, control first is opened
The logical OTG supply modules of connection and peripheral interface, are that the step of ancillary equipment is powered includes:First is sent to single-pole double-throw switch (SPDT) to close
Close instruction so that single-pole double-throw switch (SPDT) connects OTG supply modules and peripheral interface, is that ancillary equipment is powered.
Specifically, the first input end of single-pole double-throw switch (SPDT) be moved end, the outfan of single-pole double-throw switch (SPDT) be not moved end, when
When ancillary equipment is OTG equipment, control module to the control end of single-pole double-throw switch (SPDT) sends the first close command, and single-pole double throw is opened
Close after the first close command is received, first input end is connected with OTG supply modules, now the first of single-pole double-throw switch (SPDT)
Input connects OTG supply modules and peripheral interface with outfan, is embodied as the power supply of ancillary equipment.Wherein, OTG supply modules
Power input be connected with supplying cell, the power output end of OTG supply modules is connected by first switch with peripheral interface.
Step 203, when ancillary equipment is not OTG equipment, obtain user input for ancillary equipment power first supply
Piezoelectric voltage, according to the first supply voltage the output voltage values of adjustable DC power supply are adjusted, and control first switch connection straight-adjustable
Stream power supply and peripheral interface, are that ancillary equipment is powered.
When ancillary equipment is not belonging to OTG equipment, control module needs to obtain the first supply voltage needed for ancillary equipment.
Now need the first supply voltage that user comes needed for input peripheral.The power-supplying circuit of its peripheral devices is also wrapped
Include:Contact panel, forms the operation interface with control module interactive information on contact panel;It is periphery in acquisition user input
During the first supply voltage that equipment is powered, specially:The first confession that user is input in operation interface is obtained by contact panel
Piezoelectric voltage;Receive the first supply voltage that contact panel sends.
Specifically, operation interface is formed on contact panel, user is in first needed for input peripheral in operation interface
Supply voltage, contact panel sends the first supply voltage to control module after the first supply voltage is received, and controls mould
After the first supply voltage is obtained, control adjustable DC power supply carries out voltage-regulation to block.And it is adjustable to control first switch connection
DC source and peripheral interface so that adjustable DC power supply enters according to the first supply voltage to the voltage of mobile terminal supplying cell
Row is adjusted, and after the first supply voltage of output, is powered for ancillary equipment using the first supply voltage.
Wherein, first switch is single-pole double-throw switch (SPDT), and the second input and the adjustable DC power supply of single-pole double-throw switch (SPDT) connect
Connect, the outfan of single-pole double-throw switch (SPDT) is connected with peripheral interface;Connect in control first switch connection adjustable DC power supply and periphery
Mouthful, when being that ancillary equipment is powered, 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, are that ancillary equipment is powered.
Second input of single-pole double-throw switch (SPDT) is moved end, the outfan of single-pole double-throw switch (SPDT) is not moved end, when periphery sets
For when being not belonging to OTG equipment, control module to the control end of single-pole double-throw switch (SPDT) sends the second close command, single-pole double-throw switch (SPDT)
After the second close command is received, the second input is connected with adjustable DC power supply, now the second of single-pole double-throw switch (SPDT)
Input connects adjustable DC power supply and peripheral interface with outfan, is embodied as the power supply of ancillary equipment.
Wherein, the power input of adjustable DC power supply is connected with supplying cell, the power output end of adjustable DC power supply
It is connected with peripheral interface by first switch.Control module is connected with the control end 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 supply modules, by OTG supply modules
Power for OTG equipment;The voltage of supplying cell is adjusted by adjustable DC power supply, output meets the voltage of ancillary equipment demand,
Effectively enrich the application of ancillary equipment.
The embodiment of the present invention two, when power-supplying circuit is powered for periphery OTG equipment, by control module first is controlled
Switch connection OTG supply modules and peripheral interface, are that periphery OTG equipment is supplied using the OTG supply modules being connected with supplying cell
Electricity, when power-supplying circuit is powered for other ancillary equipment, controls first switch and connects adjustable DC electricity by control module
Source and peripheral interface, are adjusted using adjustable DC power supply to the voltage of supplying cell, the required confession of output ancillary equipment
Piezoelectric voltage, realizes the power supply to ancillary equipment.The present invention can be that the OTG equipment matched with peripheral interface is powered, it is also possible to root
Different voltages are provided according to the demand of ancillary equipment, while ensureing that OTG functions are normally used, ancillary equipment is effectively enriched
Application.
Embodiment three
The embodiment of the present invention three provides the movement that a kind of power-supplying circuit for adopting ancillary equipment is powered for ancillary equipment
Terminal, as shown in figure 3, including:
Judge module 301, for according to the device identifying information of peripheral interface, judging whether ancillary equipment is OTG equipment;
First processing module 302, for when ancillary equipment is OTG equipment, control first switch to connect OTG supply modules
And peripheral interface, it is that ancillary equipment is powered;
Second processing module 303, for when ancillary equipment is not OTG equipment, obtain user input for ancillary equipment
First supply voltage of power supply, adjusts the output voltage values of adjustable DC power supply, and controls first and open according to the first supply voltage
The logical adjustable DC power supply of connection and peripheral interface, are that ancillary equipment is powered.
Wherein, first switch is single-pole double-throw switch (SPDT), and first input end and the OTG supply modules of single-pole double-throw switch (SPDT) connect
Connect, the outfan of single-pole double-throw switch (SPDT) is connected 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) connects OTG supply modules and periphery
Interface, is that ancillary equipment is powered.
Wherein, the power-supplying circuit of ancillary equipment also includes:Contact panel, forms on contact 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 is input in operation interface by contact panel
Pressure;
Receiving submodule 3032, for receiving the first supply voltage of contact panel transmission.
Wherein, first switch is single-pole double-throw switch (SPDT), and the second input and the adjustable DC power supply of single-pole double-throw switch (SPDT) connect
Connect, the outfan of single-pole double-throw switch (SPDT) is connected 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) connects adjustable DC power supply and periphery
Interface, is that ancillary equipment is powered.
The embodiment of the present invention three, when power-supplying circuit is powered for periphery OTG equipment, by control module first is controlled
Switch connection OTG supply modules and peripheral interface, are that periphery OTG equipment is supplied using the OTG supply modules being connected with supplying cell
Electricity, when power-supplying circuit is powered for other ancillary equipment, controls first switch and connects adjustable DC electricity by control module
Source and peripheral interface, are adjusted using adjustable DC power supply to the voltage of supplying cell, the required confession of output ancillary equipment
Piezoelectric voltage, realizes the power supply to ancillary equipment.The present invention can be that the OTG equipment matched with peripheral interface is powered, it is also possible to root
Different voltages are provided according to the demand of ancillary equipment, while ensureing that OTG functions are normally used, ancillary equipment is effectively enriched
Application.
Example IV
Fig. 4 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 4
400 can be mobile phone, panel 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, memorizer 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 supply modules 410, peripheral interface 411, first switch 412, wherein processing
Device 406 connects respectively adjustable DC power supply 405 and first switch 412, controls output voltage and the control of adjustable DC power supply 405
The on off state of first switch processed 412.Adjustable DC power supply 405 is connected with supplying cell 409;Supplying cell 409 is powered with OTG
Module 410 connects;First switch 412 is connected respectively with OTG supply modules 410, adjustable DC power supply 405 and peripheral interface 411,
Connection adjustable DC power supply 405 and peripheral interface 411 when first switch 412 is in first state, in the second state when connect
OTG supply modules 410 and peripheral interface 411, supplying cell 409 is connected with processor 406 simultaneously.
Wherein, input block 403 can be used for the numeral or character information of receiving user's input, and produce and mobile terminal
The signal input that 400 user is arranged and function control is relevant.Specifically, in the embodiment of the present invention, the input block 403 can
With including contact panel 4031.Contact panel 4031, also referred to as touch screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or adnexa on contact panel 4031 such as finger, stylus), and according to pre-
The formula for first setting drives corresponding attachment means.Optionally, contact panel 4031 may include touch detecting apparatus and touch control
Two parts of device processed.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, 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 the order sent of receiving processor 406 and can be performed.Furthermore, it is possible to using electricity
The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize contact panel 4031, on contact panel 4031 formed with
The operation interface of the interactive information of processor 406.Except contact panel 4031, input block 403 can also 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.), trace ball, mouse, one or more in action bars etc..
Wherein, display unit 404 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 400.Display unit 404 may include display floater 4041, optionally, can adopt LCD or organic
The forms such as light emitting diode (Organic Light-Emitting Diode, OLED) are configuring display floater 4041.
It should be noted that contact panel 4031 can cover display floater 4041, touch display screen is formed, when the touch display screen
Detect thereon or after neighbouring touch operation, processor 406 is sent to determine the type of touch event, with preprocessor
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 conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
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
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 406 is the control centre of mobile terminal 400, using various interfaces and connection whole mobile phone
Various pieces, the software program and/or module being stored in by operation or execution in first memory 4021, and call storage
Data in second memory 4022, perform the various functions and processing data of mobile terminal 400, so as 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 supply modules 410 of single-pole double-throw switch (SPDT) connect
Connect;Second input of single-pole double-throw switch (SPDT) is connected with adjustable DC power supply 405;The outfan of single-pole double-throw switch (SPDT) connects with periphery
Mouth 411 connects.
Processor 406 is connected by serial ports control line with the control end of adjustable DC power supply 405;Processor 406 is by logical
It is connected with the control end of first switch 412 with input/output end port.
The power input of adjustable DC power supply 405 is connected with supplying cell 409, and the power supply of adjustable DC power supply 405 is defeated
Go out end to be connected with peripheral interface 411 by first switch 412.
The power input of OTG supply modules 410 is connected with supplying cell 409, the power supply output of OTG supply modules 410
End is connected 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 call store the first memory 4021 in software program and/or module and/
Or the data in the second memory 4022, processor 406 is used for:According to the device identifying information of peripheral interface 411, judge outer
Whether peripheral equipment is OTG equipment;When ancillary equipment is OTG equipment, the He of the control connection OTG of first switch 412 supply modules 410
Peripheral interface 411, is that ancillary equipment is powered;When ancillary equipment is not OTG equipment, supplying for ancillary equipment for user input is obtained
First supply voltage of electricity, adjusts the output voltage values of adjustable DC power supply 405, and controls first and open according to the first supply voltage
Close 412 and connect adjustable DC power supply 405 and peripheral interface 411, be that ancillary equipment is powered.
Optionally, when ancillary equipment is OTG equipment, the control connection OTG supply modules of first switch 412 of processor 406
410 and peripheral interface 411, it is to be further used for when ancillary equipment is powered:The first close command is sent to single-pole double-throw switch (SPDT), is made
Single-pole double-throw switch (SPDT) connection OTG supply modules 410 and peripheral interface 411 are obtained, is that ancillary equipment is powered.
Optionally, processor 406 obtain user input power for ancillary equipment the first supply voltage when, also use
In:The first supply voltage that user is input in operation interface is obtained by contact panel 4031;Receive contact panel 4031
The first supply voltage for sending.
Optionally, processor 406 is in the control connection adjustable DC of first switch 412 power supply 405 and peripheral interface 411
When ancillary 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 source 405 and peripheral interface 411, are that ancillary equipment is powered.
It can be seen that, when power-supplying circuit is powered for periphery OTG equipment, first switch is controlled by processor and connects OTG
Supply module and peripheral interface, are powered, for automatically controlled using the OTG supply modules being connected with supplying cell for periphery OTG equipment
When circuit processed is powered for other ancillary equipment, first switch is controlled by processor and connects adjustable DC power supply and peripheral interface,
The voltage of supplying cell is adjusted using adjustable DC power supply, the required supply voltage of output ancillary equipment, it is right to realize
The power supply of ancillary equipment.The present invention can be that the OTG equipment matched with peripheral interface is powered, it is also possible to according to the need of ancillary equipment
Ask and different voltages are provided, while ensureing that OTG functions are normally used, the effectively application of abundant ancillary equipment.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description
Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Each specific application can be used different methods to realize described function, but this realization it is not considered that exceeding
The scope of the present invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can pass through other
Mode is realized.For example, device embodiment described above is only schematic, and for example, the division of the unit is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can with reference to or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing 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 according to the actual needs be selected to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is realized and as independent production marketing or when using using in the form of SFU software functional unit, can be with
In being stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And aforesaid storage medium includes:USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to
Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that a series of process, method, article or terminal unit including key elements is not only wrapped
Those key elements are included, but also including other key elements being not expressly set out, or also include for this process, method, article
Or the key element that terminal unit is intrinsic.In the absence of more restrictions, by wanting that sentence "including a ..." is limited
Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal unit.
Above-described is the preferred embodiment of the present invention, it should be pointed out that for the ordinary person of the art comes
Say, some improvements and modifications can also be made under the premise of without departing from principle of the present invention, and these improvements and modifications also exist
In protection scope of the present invention.