CN106527639B - OTG connection control method, main equipment and terminal device - Google Patents
OTG connection control method, main equipment and terminal device Download PDFInfo
- Publication number
- CN106527639B CN106527639B CN201610841110.XA CN201610841110A CN106527639B CN 106527639 B CN106527639 B CN 106527639B CN 201610841110 A CN201610841110 A CN 201610841110A CN 106527639 B CN106527639 B CN 106527639B
- Authority
- CN
- China
- Prior art keywords
- current limit
- equipment
- main equipment
- user
- limit mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/266—Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3212—Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3296—Power saving characterised by the action undertaken by lowering the supply or operating voltage
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Mobile Radio Communication Systems (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
Present invention discloses a kind of OTG connection control method, main equipment and terminal device, the method includes the steps: when carrying out OTG connection, main equipment judges whether meet preset current limit condition from equipment;When it is described meet the current limit condition from equipment when, the main equipment will export current limit in predeterminated level.A kind of OTG connection control method provided by the present invention, by the way that current limit condition is arranged to OTG connection, when main equipment by OTG connection from equipment when, main equipment first determines whether meet current limit condition from equipment, when meeting current limit condition from equipment, main equipment then limits output electric current, by output current limit in predeterminated level.To reduce electricity waste of the main equipment in OTG connection, the cruise duration of main equipment is extended.
Description
Technical field
The present invention relates to electronic technology fields, especially relate to OTG connection control method, main equipment and terminal and set
It is standby.
Background technique
Currently, many mobile terminals all have the function of OTG (On-The-Go), mobile terminal can be external by OTG connection
Equipment, when mobile terminal as main equipment by OTG connection from equipment when, default is to from equipment charge.However, in certain applications
It in scene, does not need to charge from equipment, but only that carrying out data transmission, such as mobile terminal is included by OTG connection
USB flash disk, mobile hard disk or other mobile terminals of power supply etc. are watched movie for a long time.In this case, externally charging is aobvious again for main equipment
So improper, the electricity that will lead to main equipment is wasted, and the electricity of main equipment is natively limited, especially works as main equipment
When in low battery state, the cruise duration of main equipment can be greatly shortened.
Summary of the invention
The main object of the present invention is to provide a kind of OTG connection control method, main equipment and terminal device, it is intended to reduce and lead
Electricity waste of the equipment in OTG connection, extends the cruise duration of main equipment.
In view of this, the present invention proposes a kind of OTG connection control method, the method includes the steps:
When carrying out OTG connection, main equipment judges whether meet preset current limit condition from equipment;
When it is described meet the current limit condition from equipment when, the main equipment will export current limit in predetermined water
It is flat.
Further, the main equipment judgement is described includes: from whether equipment meets preset current limit condition
The main equipment identification type from equipment, whether judgement is described belongs to specified type from equipment;
When it is described belong to the specified type from equipment when, judgement is described to meet the current limit condition from equipment.
Further, include: from whether equipment belongs to specified type described in the judgement
Judging whether can be by described from equipment pull-up electric current, and whether can obtain data from equipment by described;
If cannot be by described from equipment pull-up electric current, and data can be obtained from equipment by described, then judge institute
It states from equipment and belongs to specified type.
Further, before the main equipment will export current limit the predeterminated level the step of further include:
When it is described meet the current limit condition from equipment when, the main equipment judges whether current limit mode is chosen
In;
When the current limit mode is selected, the main equipment is performed the next step suddenly: by output current limit pre-
Fixed level.
Further, before the main equipment will export current limit the predeterminated level the step of further include:
When it is described meet the current limit condition from equipment when, the main equipment judges whether to receive preset operation
Instruction;
When receiving the operational order, the main equipment is performed the next step suddenly: by output current limit in predetermined water
It is flat.
Further, before the main equipment will export current limit the predeterminated level the step of further include:
When it is described meet the current limit condition from equipment when, the main equipment obtains the battery capacity, judges institute
State whether battery capacity is less than threshold value;
When the battery capacity is less than the threshold value, the main equipment is performed the next step suddenly: output current limit is existed
Predeterminated level.
Further, the method also includes: the main equipment provides the option of current limit mode in set interface,
Setting information is updated to the operation of the option according to user;
It includes: to meet the current limit from equipment when described that the main equipment, which judges whether current limit mode is selected,
When condition, the main equipment reads the setting information, according to the setting information judge the current limit mode whether by
It chooses.
Further, the main equipment judges whether current limit mode is selected and includes:
When it is described meet the current limit condition from equipment when, the main equipment provides the option of current limit mode,
Judge whether the current limit mode is selected according to user's selection.
Further, the main equipment provides the option of current limit mode, judges that the electric current limits according to user's selection
Whether molding formula is selected, comprising:
The main equipment shows that at least two modes including current limit mode are selected for user in the display interface
It selects, when the user clicks or choosing current limit mode, judges that current limit mode is selected.
Further, the main equipment provides the option of current limit mode, judges that the electric current limits according to user's selection
Whether molding formula is selected, comprising:
The main equipment asks the user whether to enter current limit mode in the display interface, when user's selection enters electric current
When unrestricted model, judge that current limit mode is selected.
Further, the main equipment provides the option of current limit mode, judges that the electric current limits according to user's selection
Whether molding formula is selected, comprising:
At least two modes of the main equipment voice broadcast including current limit mode are selected for user, work as user
When voice selecting current limit mode, judge that current limit mode is selected.
Further, the main equipment provides the option of current limit mode, judges that the electric current limits according to user's selection
Whether molding formula is selected, comprising:
Whether the main equipment voice prompting user enters current limit mode, when user speech selection enters current limit
When mode, judge that current limit mode is selected.
Further, the operational order is touch control operation, button operation, gesture motion, the shaking to main equipment high up in the air
Movement, one of voice command or at least two combination.
Further, the main equipment is mobile terminal.
The present invention proposes that a kind of main equipment, the main equipment include: simultaneously
First judgment module, for when main equipment by OTG connection from equipment when, judge described in from equipment whether meets electricity
Flow restrictive condition;
Control module, for when it is described meet the current limit condition from equipment when, will output current limit predetermined
It is horizontal.
Further, the first judgment module is used for: the identification type from equipment, judgement it is described from equipment whether
Belong to specified type;When it is described belong to the specified type from equipment when, judgement meet the current limit condition.
Further, the first judgment module is used for:
Judging whether can be by described from equipment pull-up electric current, and whether can obtain data from equipment by described;Such as
Fruit cannot be by described from equipment pull-up electric current, and can obtain data from equipment by described, then judgement is described from equipment category
In specified type.
It further, further include the second judgment module, second judgment module is used for: when described from described in equipment satisfaction
When current limit condition, judge whether current limit mode is selected;The control module is used for: meeting institute from equipment when described
State current limit condition, and when the current limit mode is selected, will output current limit in predeterminated level.
It further, further include the second judgment module, second judgment module is used for: when described from described in equipment satisfaction
When current limit condition, judge whether to receive preset operational order;The control module is used for: being met when described from equipment
The current limit condition, and when receiving the operational order, will output current limit in predeterminated level.
It further, further include the second judgment module, second judgment module is used for: when described from described in equipment satisfaction
When current limit condition, the battery capacity of the main equipment is obtained, judges whether the battery capacity is less than threshold value;The control
Module is used for: meet the current limit condition from equipment when described, and the battery capacity is less than the threshold value constantly, it will be defeated
Current limit is in predeterminated level out.
Further, second judgment module is used for: when it is described meet the current limit condition from equipment when, read
The setting information of current limit mode judges whether the current limit mode is selected according to the setting information.
Further, second judgment module is used for: when it is described meet the current limit condition from equipment when, provide
The option of current limit mode judges whether the current limit mode is selected according to user's selection.
Further, second judgment module is used for: when it is described meet the current limit condition from equipment when, aobvious
Show on interface that at least two modes of the display including current limit mode including for user's selection, when the user clicks or choose electric current
When unrestricted model, judge that current limit mode is selected.
Further, second judgment module is used for: when it is described meet the current limit condition from equipment when, aobvious
Show and ask the user whether to enter current limit mode on interface, when user's selection enters current limit mode, judges that electric current limits
Molding formula is selected.
Further, second judgment module is used for: when it is described meet the current limit condition from equipment when, voice
It broadcasts at least two modes including current limit mode to select for user, when user speech selects current limit mode
When, judge that current limit mode is selected.
Further, second judgment module is used for: when it is described meet the current limit condition from equipment when, voice
It prompts the user whether to enter current limit mode, when user speech selection enters current limit mode, judges current limit mould
Formula is selected.
The present invention also proposes that a kind of terminal device, the terminal device include:
Touch-sensitive display;
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and quilt
It is configured to be executed by one or more of processors, one or more of programs are configurable for executing above-mentioned OTG company
Connect control method.
A kind of OTG connection control method provided by the present invention works as master by the way that current limit condition is arranged to OTG connection
Equipment by OTG connection from equipment when, main equipment first determines whether meet current limit condition from equipment, meets when from equipment
When current limit condition, main equipment then limits output electric current, by output current limit in predeterminated level.To reduce
Electricity waste of the main equipment in OTG connection, extends the cruise duration of main equipment.
Detailed description of the invention
Fig. 1 is the flow chart of OTG connection control method first embodiment of the invention;
Fig. 2 is the flow chart of OTG connection control method second embodiment of the invention;
Fig. 3 is the flow chart of OTG connection control method 3rd embodiment of the invention;
Fig. 4 is the flow chart of OTG connection control method fourth embodiment of the invention;
Fig. 5 is the module diagram of main equipment first embodiment of the invention;
Fig. 6 is the module diagram of main equipment second embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Those skilled in the art of the present technique are appreciated that " mobile terminal " used herein above, " terminal device " both include nothing
The equipment of line signal receiver only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting
The equipment of hardware has the reception that on bidirectional communication link, can execute two-way communication and emits the equipment of hardware.It is this
Equipment may include: honeycomb or other communication equipments, with single line display or multi-line display or no multi-line
The honeycomb of display or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System),
It can be with combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant,
Personal digital assistant), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, account
Originally, calendar and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or
Palmtop computer or other equipment, have and/or conventional laptop and/or palmtop computer including radio frequency receiver
Or other equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (boat
Empty, sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in
The operation of any other of the earth and/or space position." terminal " used herein above, " terminal device " can also be communication eventually
End, access terminals, music/video playback terminal, for example, can be PDA, MID (Mobile Internet Device, it is mobile mutual
Networked devices) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
In the embodiment of the present invention, when two equipment are by OTG connection, the side for exporting electric current outward is main equipment, separately
One Fang Weicong equipment.Current limit condition, i.e., from equipment do not need receive electric current and can be by the output current limit of main equipment
In the condition of a lower level;When meeting current limit condition, then can the output electric current to main equipment limit;
When being unsatisfactory for current limit condition, then the output electric current of main equipment is not limited, electric current is normally exported as the prior art.
Referring to Fig.1, it proposes OTG connection control method first embodiment of the invention, the described method comprises the following steps:
S11, OTG connection is carried out.
In the embodiment of the present invention, for main equipment by OTG connection from equipment, it is mobile eventually that main equipment can be mobile phone, plate etc.
End, is also possible to other terminal devices.It can be any electronic equipment, including terminal device and storage equipment etc. from equipment.
S12, main equipment judge whether meet preset current limit condition from equipment.When meeting current limit item from equipment
When part, step S13 is executed;When being unsatisfactory for current limit condition from equipment, terminate process, main equipment does not carry out output electric current
Limitation, exports electric current by normal level outward.
In the embodiment of the present invention, current limit condition has been preset.When meeting current limit condition from equipment, master is set
It is standby then to output electric current limit;When being unsatisfactory for current limit condition from equipment, main equipment is not carried out output electric current then
Limitation, exports electric current by normal level as the prior art outward.
For whether meeting the judgement of current limit condition from equipment, main equipment can be using the type from equipment as foundation.
Specifically, main equipment identification judges whether belong to specified type from equipment from the type of equipment;When belonging to specified type from equipment
When, judge to meet current limit condition from equipment;When being not belonging to specified type from equipment, then judge to be unsatisfactory for electric current from equipment
Restrictive condition.Wherein, meet the type of the slave equipment of current limit condition, it is possible to specify for the storage equipment class for not needing power supply
Type, such as self-powered USB flash disk, hard disk etc. store equipment.It is of course also possible to be appointed as other equipment type as needed, herein
With no restrictions.
Optionally, main equipment can identify the type from equipment in the following manner: main equipment is attempted by drawing from equipment
Play electric current and by obtaining data from equipment;Whether judging whether can be by from equipment pull-up electric current, and can be by from setting
It is standby to obtain data;If cannot be by from equipment pull-up electric current, and can then be judged by obtaining data from equipment from equipment category
In specified type;If can be by from equipment pull-up electric current, or cannot then be judged by obtaining data from equipment from equipment
It is not belonging to specified type.
It will be understood by those skilled in the art that the characteristics of according to specified device type, can also take other modes to know
Not from the type of equipment, it will not enumerate repeat herein.
S13, main equipment will export current limit in predeterminated level.
In the embodiment of the present invention, when judging to meet current limit condition from equipment, main equipment then controls current output terminal
Output electric current, will output current limit in predeterminated level, i.e., as far as possible reduce output electric current, only keep connecting interface VBUS
On voltage signal to show USB connection status, to reduce the loss of main equipment electricity.The predeterminated level of output electric current can be set
For 100mA, it is of course also possible to be set as needed as other values.
The OTG connection control method of the embodiment of the present invention works as main equipment by the way that current limit condition is arranged to OTG connection
When by OTG connection from equipment, main equipment first determines whether meet current limit condition from equipment, when meeting electric current from equipment
When restrictive condition, main equipment then limits output electric current, by output current limit in predeterminated level.It is set to reduce master
The standby electricity waste in OTG connection, extends the cruise duration of main equipment.
Referring to Fig. 2, proposes OTG connection control method second embodiment of the invention, the described method comprises the following steps:
S21, OTG connection is carried out.
S22, main equipment judge whether meet preset current limit condition from equipment.When meeting current limit item from equipment
When part, step S23 is executed;When being unsatisfactory for current limit condition from equipment, terminate process, main equipment does not carry out output electric current
Limitation, exports electric current by normal level outward.
In the present embodiment, step S21 and step S22 respectively in first embodiment step S11 and step S12 it is identical,
Details are not described herein.
S23, main equipment judge whether current limit mode is selected.When current limit mode is selected, step is executed
S24;When current limit mode is not selected, terminate process, main equipment does not limit output electric current, by normal level
Output electric current outward.
In the present embodiment, it is additionally arranged a current limit mode in the host.When meeting current limit condition from equipment,
Main equipment further judges whether current limit mode is selected.
Optionally, main equipment can by read setting information, according to setting information judge current limit mode whether by
It chooses.Such as: main equipment can provide the option of current limit mode in set interface, and user can enter set interface,
Current limit mode option is operated, such as choose or not chooses current limit mode, main equipment is according to user to option
Operation update setting information.When meeting current limit condition from equipment, main equipment then reads setting information, judges that user is
It is no to have chosen current limit mode.When having chosen current limit mode, then illustrate that current limit mode is selected;When not hooking
When selecting current limit mode, then illustrate that current limit mode is not selected.
Optionally, when meeting current limit condition from equipment, main equipment passes through the side such as display interface, voice prompting immediately
Formula provides the option of current limit mode, judges whether current limit mode is selected according to user's selection.
For example, main equipment pop-up display interface, shows at least two including current limit mode in the display interface
Kind of mode (such as display current limit mode and normal charge mode both of which) is selected for user, when the user clicks or chooses electricity
When flowing unrestricted model, then illustrate that current limit mode is selected.
For another example, main equipment pop-up display interface, ask the user whether in the display interface enter current limit mode, when with
(as clicked "Yes" or " entrance ") when family selection enters current limit mode, then illustrate that current limit mode is selected.
For another example, at least two modes of the main equipment voice broadcast including current limit mode for user select, when with
(the option serial number of current limit mode is such as said) when the voice selecting current limit mode of family, then illustrates that current limit mode is selected
In.
For another example, whether main equipment voice prompting user enters current limit mode, limits when user speech selection enters electric current
("Yes" or " entrance " are such as said) when molding formula, then illustrate that current limit mode is selected.
S24, main equipment will export current limit in predeterminated level.
When meeting current limit condition from equipment, and when current limit mode is selected, main equipment then controls electric current output
The output electric current at end reduces output electric current as far as possible, only keeps connecting interface by output current limit in predeterminated level
Voltage signal on VBUS is to show USB connection status, to reduce the loss of main equipment electricity.
To when meeting current limit condition from equipment, use using the OTG connection control method of the embodiment of the present invention
Family, which can according to need, independently to be chosen whether to need to limit output electric current, and the user experience is improved.
Referring to Fig. 3, proposes OTG connection control method 3rd embodiment of the invention, the described method comprises the following steps:
S31, OTG connection is carried out.
S32, main equipment judge whether meet preset current limit condition from equipment.When meeting current limit item from equipment
When part, step S33 is executed;When being unsatisfactory for current limit condition from equipment, terminate process, main equipment does not carry out output electric current
Limitation, exports electric current by normal level outward.
In the present embodiment, step S31 and step S32 respectively in first embodiment step S11 and step S12 it is identical,
Details are not described herein.
S33, main equipment judge whether to receive preset operational order.When receiving preset operational order, execute
Step S34;When being not received by preset operational order, terminate process, main equipment does not limit output electric current, by just
Electric current is often exported horizontally outward.
Specifically, main equipment receives the operational order of user, by what is received when meeting current limit condition from equipment
Operational order is compared with preset operational order, judges whether the two matches.When the two matching, then explanation has received
Preset operational order;When the two mismatches, then explanation is not received by preset operational order.
The operational order can be touch control operation, button operation, gesture motion, the shaking motion to main equipment, language high up in the air
One kind of the operational motions such as sound order or at least two combination.Wherein, touch control operation includes executing click, length on a display screen
One of operation or at least two combination such as press, slide any position or specific position, it is specific that button operation presses one
Key simultaneously or successively presses at least two keys, and gesture motion, that is, main equipment high up in the air is caught by capture devices such as cameras
The specific action that the manpower grasped is made specifically shakes shaking motion, that is, main equipment of main equipment by what sensor detected
Rolling movement (such as left and right or preset times of rocking back and forth), voice command, that is, main equipment is acquired by voice collection device (such as MIC)
Special sound.
S34, main equipment will export current limit in predeterminated level.
When meeting current limit condition from equipment, and receiving preset operational order, it is defeated that main equipment then controls electric current
The output electric current of outlet reduces output electric current as far as possible, only keeps connecting interface by output current limit in predeterminated level
Voltage signal on VBUS is to show USB connection status, to reduce the loss of mobile terminal electricity.
To when meeting current limit condition from equipment, use using the OTG connection control method of the embodiment of the present invention
Family conveniently can limit output electric current by operational order, and the user experience is improved.
Referring to Fig. 4, proposes OTG connection control method fourth embodiment of the invention, the described method comprises the following steps:
S41, OTG connection is carried out.
S42, main equipment judge whether meet preset current limit condition from equipment.When meeting current limit item from equipment
When part, step S43 is executed;When being unsatisfactory for current limit condition from equipment, terminate process, main equipment does not carry out output electric current
Limitation, exports electric current by normal level outward.
In the present embodiment, step S41 and step S42 respectively in first embodiment step S11 and step S12 it is identical,
Details are not described herein.
S43, main equipment obtain battery capacity, judge whether battery capacity is less than threshold value.When battery capacity is less than threshold value,
Execute step S44;When battery capacity is not less than threshold value, terminate process, main equipment does not limit output electric current, by normal
Electric current is exported horizontally outward.
Specifically, main equipment detects the current battery capacity of the machine immediately when meeting current limit condition from equipment, or
Person directly reads the current battery capacity of the machine from battery management application.The size for comparing current battery capacity and threshold value, sentences
Whether disconnected battery capacity is less than threshold value.Threshold value can be set as needed, and can such as set in the range of 50%~10%.
S44, main equipment will export current limit in predeterminated level.
When meeting current limit condition from equipment, and when battery capacity is less than threshold value, main equipment then controls current output terminal
Output electric current, will output current limit in predeterminated level, i.e., as far as possible reduce output electric current, only keep connecting interface VBUS
On voltage signal to show USB connection status, to reduce the loss of mobile terminal electricity.
To using the OTG connection control method of the embodiment of the present invention, when meeting current limit condition, and inspection from equipment
Measure battery capacity it is lower when, main equipment automatically limits output electric current, to protect the electricity of main equipment, when extending continuation of the journey
Between.
Referring to Fig. 5, main equipment first embodiment of the invention is proposed, the main equipment includes the first judgement interconnected
Module and control module, in which:
First judgment module: for when main equipment by OTG connection from equipment when, judge whether to meet from equipment electric current and limit
Condition processed.And judging result is sent to control module.
Specifically, for the judgement for whether meeting current limit condition from equipment, first judgment module can be with from equipment
Type be foundation.Specifically, first judgment module identification judges whether belong to specified type from equipment from the type of equipment;
When belonging to specified type from equipment, judge to meet current limit condition from equipment;When being not belonging to specified type from equipment, then
Judge to be unsatisfactory for current limit condition from equipment.Wherein, meet the type of the slave equipment of current limit condition, it is possible to specify for not
The storage device type for needing to power, such as self-powered USB flash disk, hard disk etc. store equipment.It is of course also possible to specify as needed
For other equipment type, herein with no restrictions.
Optionally, first judgment module can identify the type from equipment in the following manner: attempt by drawing from equipment
Play electric current and by obtaining data from equipment;Whether judging whether can be by from equipment pull-up electric current, and can be by from setting
It is standby to obtain data;If cannot be by from equipment pull-up electric current, and can then be judged by obtaining data from equipment from equipment category
In specified type;If can be by from equipment pull-up electric current, or cannot then be judged by obtaining data from equipment from equipment
It is not belonging to specified type.
It will be understood by those skilled in the art that the characteristics of according to specified device type, can also take other modes to know
Not from the type of equipment, it will not enumerate repeat herein.
Control module: for current limit when meeting current limit condition from equipment, will to be exported in predeterminated level.
Specifically, control module obtains the judging result of first judgment module, when judgment result displays are unsatisfactory for from equipment
It when restrictive condition, then does nothing, i.e., the output electric current of main equipment current output terminal is not limited, so that electric current
Output end keeps normal level to export electric current outward.When judgment result displays meet current limit condition from equipment, mould is controlled
Block then controls the output electric current of current output terminal, by output current limit in predeterminated level, minimizes output electric current, only keeps
Voltage signal on the VBUS of connecting interface is to show USB connection status, to reduce the loss of main equipment electricity.Export the pre- of electric current
Determining level can be set as 100mA, it is of course also possible to be set as needed as other values.
The main equipment of the embodiment of the present invention, by the way that current limit condition is arranged to OTG connection, when by OTG connection from setting
When standby, first determine whether meet current limit condition from equipment, when meeting current limit condition from equipment, then to output electricity
Stream is limited, by output current limit in predeterminated level.To reduce electricity waste of the main equipment in OTG connection, prolong
The cruise duration of main equipment is grown.
Referring to Fig. 6, main equipment second embodiment of the invention is proposed, the present embodiment increases on the basis of first embodiment
One second judgment module, the second judgment module are connect with first judgment module and control module respectively, control module comprehensive the
The judging result of one judgment module and the second judgment module exports electric current to determine whether to limit.
In one embodiment, the second judgment module is used for: when meeting current limit condition from equipment, judging current limit
Whether mode is selected;Control module is used for: when meeting current limit condition from equipment, and when current limit mode is selected,
Current limit will be exported in predeterminated level, conversely, then not limitation exports electric current.
Optionally, the second judgment module can be sentenced by the setting information of reading current limit mode according to setting information
Whether disconnected current limit mode is selected.Such as: main equipment can provide the option of current limit mode in set interface, use
Family can enter set interface, operate to current limit mode option, such as choose or not choose current limit mode, main
Equipment updates setting information to the operation of option according to user.When meeting current limit condition from equipment, the second judgment module
The setting information for then reading current limit mode, judges whether user has chosen current limit mode.When having chosen current limit
When mode, then illustrate that current limit mode is selected;When not choosing current limit mode, then illustrate that current limit mode does not have
Have selected.To which when meeting current limit condition from equipment, user, which can according to need, independently to be chosen whether to need to defeated
Electric current is limited out, and the user experience is improved.
Optionally, when meeting current limit condition from equipment, the second judgment module passes through display interface immediately, voice mentions
Show etc. that modes provide the option of current limit mode, judges whether current limit mode is selected according to user's selection.
For example, the second judgment module is shown including current limit mode at least in the display interface by display screen
Both of which (such as display current limit mode and normal charge mode both of which) is selected for user, when the user clicks or is chosen
When current limit mode, judge that current limit mode is selected.
For another example, the second judgment module asks the user whether to enter current limit mode by display screen in the display interface,
When user's selection enters current limit mode (as clicked "Yes" or " entrance "), judge that current limit mode is selected.
For another example, the second judgment module by the sounding devices voice broadcast such as loudspeaker including current limit mode extremely
Few both of which is selected for user, (such as says the option sequence of current limit mode when user speech selects current limit mode
Number), judge that current limit mode is selected.
For another example, whether the second judgment module enters current limit mould by sounding devices voice prompting users such as loudspeakers
Formula (such as says "Yes" or " entrance ") when user speech selection enters current limit mode, judges that current limit mode is selected
In.
In another embodiment, the second judgment module is used for: when meeting current limit condition from equipment, judging whether to connect
Receive preset operational order;Control module is used for: when meeting current limit condition from equipment, and being received preset operation and is referred to
When enabling, by output current limit in predeterminated level, conversely, then not limitation exports electric current.To be limited when meeting electric current from equipment
When condition processed, user conveniently can be limited output electric current by operational order, and the user experience is improved.
Specifically, the second judgment module receives the operational order of user when meeting current limit condition from equipment, will connect
The operational order received is compared with preset operational order, judges whether the two matches.When the two matching, judge to receive
Preset operational order is arrived;When the two mismatches, judgement is not received by preset operational order.
The operational order can be touch control operation, button operation, gesture motion, the shaking motion to main equipment, language high up in the air
One kind of the operational motions such as sound order or at least two combination.Wherein, touch control operation includes executing click, length on a display screen
One of operation or at least two combination such as press, slide any position or specific position, it is specific that button operation presses one
Key simultaneously or successively presses at least two keys, and gesture motion high up in the air passes through what the capture devices such as camera captured
The specific action that manpower is made, the shaking motion to main equipment are specific rocking action (such as left side detected by sensor
Right or preset times of rocking back and forth), voice command is the special sound for passing through voice collection device (such as MIC) acquisition.
In another embodiment, the second judgment module is used for: when meeting current limit condition from equipment, obtaining main equipment
Battery capacity, judge whether battery capacity is less than threshold value;Control module is used for: when meeting current limit condition from equipment, and
When the battery capacity of main equipment is less than threshold value, by output current limit in predeterminated level, conversely, then not limitation exports electric current.
To, when meeting current limit condition from equipment, and detecting that battery capacity is lower, output electric current is limited automatically,
To protect the electricity of main equipment, extend cruise duration.
Specifically, the second judgment module detects the current electricity of main equipment immediately when meeting current limit condition from equipment
Pond electricity, or directly the current battery capacity of main equipment is read from battery management application.Compare current battery capacity and threshold
The size of value, judges whether battery capacity is less than threshold value.Threshold value can be set as needed, such as can 50%~10% model
Enclose interior setting.
It should be understood that main equipment provided by the above embodiment, which connect control method embodiment with OTG, belongs to same structure
Think, specific implementation process is detailed in embodiment of the method, and the technical characteristic in embodiment of the method is corresponding in Installation practice
It is applicable in, which is not described herein again.
The present invention also proposes that a kind of terminal device, the terminal device include: touch-sensitive display;One or more processing
Device;Memory;One or more application program, wherein one or more of application programs are stored in the memory simultaneously
It is configured as being executed by one or more of processors, one or more of programs are configurable for OTG connection control
Method.OTG connection control method as described in this embodiment is the control of OTG connection involved in above-described embodiment in the present invention
Method, details are not described herein.
The terminal device of the embodiment of the present invention, by OTG connection be arranged current limit condition, as main equipment and from
When equipment carries out OTG connection, first determine whether meet current limit condition from equipment, when meeting current limit condition from equipment
When, then output electric current is limited, by output current limit in predeterminated level.To reduce terminal device in OTG connection
When electricity waste, extend the cruise duration of terminal device.
It will be understood by those skilled in the art that the present invention includes being related to for executing one in operation described herein
Or multinomial equipment.These equipment can specially design and manufacture for required purpose, or also may include general-purpose computations
Known device in machine.These equipment have the computer program being stored in it, these computer programs selectively activate
Or reconstruct.Such computer program, which can be stored in equipment (for example, computer) readable medium or be stored in, to be suitable for
Storage e-command is simultaneously coupled in any kind of medium of bus respectively, and the computer-readable medium includes but is not limited to
Any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, it is read-only to deposit
Reservoir), RAM (Random Access Memory, random access memory), EPROM (Erasable Programmable Read-
Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable
Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.It is, readable
Medium includes by equipment (for example, computer) with any medium for the form storage or transmission information that can be read.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
It should be appreciated that the above description is only a preferred embodiment of the present invention, it is not intended to limit the scope of the invention,
It is all to utilize equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is applied directly or indirectly in
Other related technical areas are included within the scope of the present invention.
The embodiment of the invention discloses A1, a kind of OTG connection control method, which is characterized in that comprising steps of
When carrying out OTG connection, main equipment judges whether meet preset current limit condition from equipment;
When it is described meet the current limit condition from equipment when, the main equipment will export current limit in predetermined water
It is flat.
A2, OTG as described in a1 connection control method, which is characterized in that main equipment judgement it is described from equipment whether
Meeting preset current limit condition includes:
The main equipment identification type from equipment, whether judgement is described belongs to specified type from equipment;
When it is described belong to the specified type from equipment when, judgement is described to meet the current limit condition from equipment.
A3, as described in A2 OTG connection control method, which is characterized in that whether belong to finger from equipment described in the judgement
Determining type includes:
Judging whether can be by described from equipment pull-up electric current, and whether can obtain data from equipment by described;
If cannot be by described from equipment pull-up electric current, and data can be obtained from equipment by described, then judge institute
It states from equipment and belongs to specified type.
The described in any item OTG connection control methods of A4, such as A1-A3, which is characterized in that the main equipment will export electric current
Before the step of being limited in predeterminated level further include:
When it is described meet the current limit condition from equipment when, the main equipment judges whether current limit mode is chosen
In;
When the current limit mode is selected, the main equipment is performed the next step suddenly: by output current limit pre-
Fixed level.
A5, such as A1-A3 described in any item OTG connection control method, which is characterized in that the main equipment will export electricity
Stream was limited in front of the step of predeterminated level further include:
When it is described meet the current limit condition from equipment when, the main equipment judges whether to receive preset operation
Instruction;
When receiving the operational order, the main equipment is performed the next step suddenly: by output current limit in predetermined water
It is flat.
A6, such as A1-A3 described in any item OTG connection control method, which is characterized in that the main equipment will export electricity
Stream was limited in front of the step of predeterminated level further include:
When it is described meet the current limit condition from equipment when, the main equipment obtains the battery capacity, judges institute
State whether battery capacity is less than threshold value;
When the battery capacity is less than the threshold value, the main equipment is performed the next step suddenly: output current limit is existed
Predeterminated level.
A7, the OTG connection control method as described in A4, which is characterized in that
The method also includes: the main equipment provides the option of current limit mode in set interface, according to user
Setting information is updated to the operation of the option;
It includes: to meet the current limit from equipment when described that the main equipment, which judges whether current limit mode is selected,
When condition, the main equipment reads the setting information, according to the setting information judge the current limit mode whether by
It chooses.
A8, the OTG connection control method as described in A4, which is characterized in that the main equipment judges that current limit mode is
It is no selected to include:
When it is described meet the current limit condition from equipment when, the main equipment provides the option of current limit mode,
Judge whether the current limit mode is selected according to user's selection.
A9, the OTG connection control method as described in A8, which is characterized in that the main equipment provides current limit mode
Option judges whether the current limit mode is selected according to user's selection, comprising:
The main equipment shows that at least two modes including current limit mode are selected for user in the display interface
It selects, when the user clicks or choosing current limit mode, judges that current limit mode is selected.
A10, the OTG connection control method as described in A8, which is characterized in that the main equipment provides current limit mode
Option judges whether the current limit mode is selected according to user's selection, comprising:
The main equipment asks the user whether to enter current limit mode in the display interface, when user's selection enters electric current
When unrestricted model, judge that current limit mode is selected.
A11, the OTG connection control method as described in 8, which is characterized in that the main equipment provides the choosing of current limit mode
, judge whether the current limit mode is selected according to user's selection, comprising:
At least two modes of the main equipment voice broadcast including current limit mode are selected for user, work as user
When voice selecting current limit mode, judge that current limit mode is selected.
A12, the OTG connection control method as described in A8, which is characterized in that the main equipment provides current limit mode
Option judges whether the current limit mode is selected according to user's selection, comprising:
Whether the main equipment voice prompting user enters current limit mode, when user speech selection enters current limit
When mode, judge that current limit mode is selected.
A13, OTG as described in a5 connection control method, which is characterized in that the operational order is touch control operation, key
Operation, gesture motion high up in the air, the combination to one of the shaking motion of main equipment, voice command or at least two.
A14, OTG as described in a1 connection control method, which is characterized in that the main equipment is mobile terminal.
The embodiment of the invention also discloses B15, a kind of main equipment characterized by comprising
First judgment module, for when the main equipment by OTG connection from equipment when, judgement described in from equipment whether expire
Sufficient current limit condition;
Control module, for when it is described meet the current limit condition from equipment when, will output current limit predetermined
It is horizontal.
B16, the main equipment as described in B15, which is characterized in that the first judgment module is used for: identification is described from equipment
Type, whether judgement is described belongs to specified type from equipment;When it is described belong to the specified type from equipment when, judge to meet
The current limit condition.
B17, the main equipment as described in B16, which is characterized in that the first judgment module is used for:
Judging whether can be by described from equipment pull-up electric current, and whether can obtain data from equipment by described;Such as
Fruit cannot be by described from equipment pull-up electric current, and can obtain data from equipment by described, then judgement is described from equipment category
In specified type.
The described in any item main equipments of B18, such as B15-B17, which is characterized in that it further include the second judgment module, described
Two judgment modules are used for: when it is described meet the current limit condition from equipment when, judge whether current limit mode is selected;
The control module is used for: meet the current limit condition from equipment when described, and when the current limit mode is selected,
Current limit will be exported in predeterminated level.
The described in any item main equipments of B19, such as B15-B17, which is characterized in that it further include the second judgment module, described
Two judgment modules are used for: when it is described meet the current limit condition from equipment when, judge whether to receive preset operation and refer to
It enables;The control module is used for: when meeting the current limit condition from equipment when described, and receiving the operational order,
Current limit will be exported in predeterminated level.
The described in any item main equipments of B20, such as B15-B17, which is characterized in that it further include the second judgment module, described
Two judgment modules are used for: when it is described meet the current limit condition from equipment when, obtain the battery capacity of the main equipment, sentence
Whether the battery capacity that breaks is less than threshold value;The control module is used for: meet the current limit condition from equipment when described,
And the battery capacity is less than the threshold value constantly, by output current limit in predeterminated level.
B21, according to main equipment described in claim B18, which is characterized in that second judgment module is used for: when described
When meeting the current limit condition from equipment, the setting information of current limit mode is read, is judged according to the setting information
Whether the current limit mode is selected.
B22, the main equipment as described in B18, which is characterized in that second judgment module is used for: when described full from equipment
When the foot current limit condition, the option of current limit mode is provided, the current limit mode is judged according to user's selection
Whether it is selected.
B23, the main equipment as described in B22, which is characterized in that second judgment module is used for: when described full from equipment
When the foot current limit condition, at least two modes of the display including current limit mode are for user in the display interface
Selection when the user clicks or choosing current limit mode, judges that current limit mode is selected.
B24, the main equipment as described in B22, which is characterized in that second judgment module is used for: when described full from equipment
It when the foot current limit condition, asks the user whether to enter current limit mode in the display interface, when user selects to enter
When current limit mode, judge that current limit mode is selected.
B25, the main equipment as described in B22, which is characterized in that second judgment module is used for: when described full from equipment
When the foot current limit condition, at least two modes of the voice broadcast including current limit mode are selected for user, when
When user speech selects current limit mode, judge that current limit mode is selected.
B26, the main equipment as described in B22, which is characterized in that second judgment module is used for: when described full from equipment
When the foot current limit condition, whether voice prompting user enters current limit mode, when user speech selection enters electric current
When unrestricted model, judge that current limit mode is selected.
B27, the main equipment as described in B19, which is characterized in that the operational order is touch control operation, button operation, soars aloft
Gesture motion, the combination to one of the shaking motion of main equipment, voice command or at least two.
The embodiment of the invention also discloses C28, a kind of terminal device, comprising:
Touch-sensitive display;
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and quilt
It is configured to be executed by one or more of processors, one or more of programs are configurable for executing such as A1 to A14
Described in any item methods.
Claims (26)
1. a kind of OTG connection control method, which is characterized in that comprising steps of
When carrying out OTG connection, main equipment judges whether meet preset current limit condition from equipment;
When it is described meet the current limit condition from equipment when, the main equipment judges whether current limit mode is selected;
When the current limit mode is selected, the main equipment will export current limit in predeterminated level.
2. OTG connection control method according to claim 1, which is characterized in that the main equipment judgement is described from equipment
Whether meeting preset current limit condition includes:
The main equipment identification type from equipment, whether judgement is described belongs to specified type from equipment;
When it is described belong to the specified type from equipment when, determine described to meet the current limit condition from equipment.
3. OTG connection control method according to claim 2, which is characterized in that whether belong to described in the judgement from equipment
Include: in specified type
Judging whether can be by described from equipment pull-up electric current, and whether can obtain data from equipment by described;
If cannot be by described from equipment pull-up electric current, and data can be obtained from equipment by described, then determine it is described from
Equipment belongs to specified type.
4. OTG connection control method according to claim 1-3, which is characterized in that the main equipment will export
Before current limit is the predeterminated level the step of further include:
When it is described meet the current limit condition from equipment when, the main equipment judges whether to receive preset operation and refers to
It enables;
When receiving the operational order, the main equipment is performed the next step suddenly: by output current limit in predeterminated level.
5. OTG connection control method according to claim 1-3, which is characterized in that the main equipment will export
Before current limit is the predeterminated level the step of further include:
When it is described meet the current limit condition from equipment when, the main equipment obtains battery capacity, judges the battery electricity
Whether amount is less than threshold value;
When the battery capacity is less than the threshold value, the main equipment is performed the next step suddenly: by output current limit predetermined
It is horizontal.
6. OTG connection control method according to claim 1, which is characterized in that
The method also includes: the main equipment provides the option of current limit mode in set interface, according to user to institute
The operation for stating option updates setting information;
It includes: to meet the current limit condition from equipment when described that the main equipment, which judges whether current limit mode is selected,
When, the main equipment reads the setting information, judges whether the current limit mode is selected according to the setting information.
7. OTG connection control method according to claim 1, which is characterized in that the main equipment judges current limit mould
Whether formula is selected to include:
When it is described meet the current limit condition from equipment when, the main equipment provides the option of current limit mode, according to
User's selection judges whether the current limit mode is selected.
8. OTG connection control method according to claim 7, which is characterized in that the main equipment provides current limit mould
The option of formula judges whether the current limit mode is selected according to user's selection, comprising:
The main equipment shows that at least two modes including current limit mode are selected for user in the display interface, when
When user clicks or chooses current limit mode, Cutoff current unrestricted model is selected.
9. OTG connection control method according to claim 7, which is characterized in that the main equipment provides current limit mould
The option of formula judges whether the current limit mode is selected according to user's selection, comprising:
The main equipment asks the user whether to enter current limit mode in the display interface, when user's selection enters current limit
When mode, Cutoff current unrestricted model is selected.
10. OTG connection control method according to claim 7, which is characterized in that the main equipment provides current limit mode
Option, according to user selection judge whether the current limit mode is selected, comprising:
At least two modes of the main equipment voice broadcast including current limit mode are selected for user, work as user speech
When selecting current limit mode, Cutoff current unrestricted model is selected.
11. OTG connection control method according to claim 7, which is characterized in that the main equipment provides current limit mould
The option of formula judges whether the current limit mode is selected according to user's selection, comprising:
Whether the main equipment voice prompting user enters current limit mode, when user speech selection enters current limit mode
When, Cutoff current unrestricted model is selected.
12. OTG connection control method according to claim 4, which is characterized in that the operational order be touch control operation,
Button operation, gesture motion high up in the air, the combination to one of the shaking motion of main equipment, voice command or at least two.
13. OTG connection control method according to claim 1, which is characterized in that the main equipment is mobile terminal.
14. a kind of main equipment characterized by comprising
First judgment module, for when the main equipment by OTG connection from equipment when, judge described in from equipment whether meets electricity
Flow restrictive condition;
Control module, for when it is described meet the current limit condition from equipment when, will output current limit in predeterminated level;
Second judgment module, second judgment module are used for: when it is described meet the current limit condition from equipment when, judgement
Whether current limit mode is selected;The control module is used for: meeting the current limit condition, and institute from equipment when described
State current limit mode it is selected when, will output current limit in predeterminated level.
15. main equipment according to claim 14, which is characterized in that the first judgment module is used for: identification it is described from
The type of equipment, whether judgement is described belongs to specified type from equipment;When it is described belong to the specified type from equipment when, determine
Meet the current limit condition.
16. main equipment according to claim 15, which is characterized in that the first judgment module is used for:
Judging whether can be by described from equipment pull-up electric current, and whether can obtain data from equipment by described;If no
Can be by described from equipment pull-up electric current, and data can be obtained from equipment by described, then judgement is described belongs to finger from equipment
Determine type.
17. the described in any item main equipments of 4-16 according to claim 1, which is characterized in that second judgment module is used for: when
It is described when meeting the current limit condition from equipment, judge whether to receive preset operational order;The control module is used
In: when meeting the current limit condition from equipment when described, and receiving the operational order, by output current limit pre-
Fixed level.
18. the described in any item main equipments of 4-16 according to claim 1, which is characterized in that second judgment module is used for: when
It is described when meeting the current limit condition from equipment, the battery capacity of the main equipment is obtained, judges that the battery capacity is
It is no to be less than threshold value;The control module is used for: meeting the current limit condition from equipment when described, and the battery capacity is small
When the threshold value, by output current limit in predeterminated level.
19. according to the main equipment described in claim 14, which is characterized in that second judgment module is used for: when described from equipment
When meeting the current limit condition, the setting information of current limit mode is read, the electricity is judged according to the setting information
Whether stream unrestricted model is selected.
20. main equipment according to claim 14, which is characterized in that second judgment module is used for: when described from setting
For when meeting the current limit condition, the option of current limit mode is provided, the current limit is judged according to user's selection
Whether mode is selected.
21. main equipment according to claim 20, which is characterized in that second judgment module is used for: when described from setting
For when meeting the current limit condition, at least two modes of the display including current limit mode are supplied in the display interface
User's selection, when the user clicks or choosing current limit mode, Cutoff current unrestricted model is selected.
22. main equipment according to claim 20, which is characterized in that second judgment module is used for: when described from setting
It is standby when meeting the current limit condition, it asks the user whether to enter current limit mode in the display interface, when user selects
When into current limit mode, Cutoff current unrestricted model is selected.
23. main equipment according to claim 20, which is characterized in that second judgment module is used for: when described from setting
For when meeting the current limit condition, at least two modes of the voice broadcast including current limit mode are selected for user
It selects, when user speech selects current limit mode, Cutoff current unrestricted model is selected.
24. main equipment according to claim 20, which is characterized in that second judgment module is used for: when described from setting
For when meeting the current limit condition, whether voice prompting user enters current limit mode, when user speech selects to enter
When current limit mode, Cutoff current unrestricted model is selected.
25. main equipment according to claim 17, which is characterized in that the operational order be touch control operation, button operation,
High up in the air gesture motion, the combination to one of the shaking motion of main equipment, voice command or at least two.
26. a kind of terminal device, comprising:
Touch-sensitive display;
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured
To be executed by one or more of processors, one or more of programs are configurable for executing according to claim 1
To 13 described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610841110.XA CN106527639B (en) | 2016-09-21 | 2016-09-21 | OTG connection control method, main equipment and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610841110.XA CN106527639B (en) | 2016-09-21 | 2016-09-21 | OTG connection control method, main equipment and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106527639A CN106527639A (en) | 2017-03-22 |
CN106527639B true CN106527639B (en) | 2019-10-25 |
Family
ID=58344207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610841110.XA Expired - Fee Related CN106527639B (en) | 2016-09-21 | 2016-09-21 | OTG connection control method, main equipment and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106527639B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901201A (en) * | 2010-08-06 | 2010-12-01 | 中兴通讯股份有限公司 | Method and device for realizing USB OTG function on electronic equipment |
WO2013152662A1 (en) * | 2012-04-09 | 2013-10-17 | 华为终端有限公司 | Power supply method for terminal device, and terminal device thereof |
CN105404600A (en) * | 2015-10-23 | 2016-03-16 | 广东欧珀移动通信有限公司 | Method and apparatus giving consideration to USB eye pattern performance and OTG function |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8689033B2 (en) * | 2011-07-27 | 2014-04-01 | Freescale Semiconductor, Inc. | Power supply and data signal interface circuit with overvoltage protection |
-
2016
- 2016-09-21 CN CN201610841110.XA patent/CN106527639B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901201A (en) * | 2010-08-06 | 2010-12-01 | 中兴通讯股份有限公司 | Method and device for realizing USB OTG function on electronic equipment |
WO2013152662A1 (en) * | 2012-04-09 | 2013-10-17 | 华为终端有限公司 | Power supply method for terminal device, and terminal device thereof |
CN105404600A (en) * | 2015-10-23 | 2016-03-16 | 广东欧珀移动通信有限公司 | Method and apparatus giving consideration to USB eye pattern performance and OTG function |
Also Published As
Publication number | Publication date |
---|---|
CN106527639A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6943693B2 (en) | Method for informing user of available battery time based on operating mode of hybrid terminal | |
CN202334469U (en) | Selection circuit of near field communication and wireless charging shared induction module | |
CN106549451B (en) | A kind of wireless charging method and device | |
US9444274B2 (en) | Method of detection and display of charging information of power bank | |
KR101494642B1 (en) | Control Method of Portable Device Connected External Device And System Thereof | |
CN104123937A (en) | Method, device and system for reminding setting | |
CN106356925A (en) | Mobile terminal, and charge control device and method thereof | |
CN106155557B (en) | A kind of virtual key display methods and mobile terminal | |
CN106413070B (en) | A kind of power regulating method, mobile terminal and computer readable storage medium | |
CN106299516A (en) | Smart machine and charging method thereof | |
EP2615714A1 (en) | Method and system for battery charging control of a terminal | |
CN107402808B (en) | Process management method, device, storage medium and electronic equipment | |
CN107196372A (en) | Charging method and device | |
CN111176748B (en) | Configuration method of setting information, terminal and server | |
CN111464690B (en) | Application preloading method, electronic equipment, chip system and readable storage medium | |
CN112508301A (en) | Method and device for predicting charging load of electric vehicle, and storage medium | |
CN105098882B (en) | input current distribution method and device | |
CN105718292A (en) | Software use control method and device and mobile terminal | |
CN105357386A (en) | Short message sequencing method and device | |
CN106527639B (en) | OTG connection control method, main equipment and terminal device | |
CN106227542A (en) | A kind of screen locking magazine content is play and mobile terminal | |
CN106502558A (en) | Terminal device and its method of operating and operation device | |
CN106407359A (en) | Image playing method and mobile terminal | |
CN106451670B (en) | A kind of charge control method, device and terminal device | |
CN106786959B (en) | Charge control method, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191025 Termination date: 20210921 |