[go: up one dir, main page]

CN106201966A - OTG connection control method, main equipment and terminal equipment - Google Patents

OTG connection control method, main equipment and terminal equipment Download PDF

Info

Publication number
CN106201966A
CN106201966A CN201610556090.1A CN201610556090A CN106201966A CN 106201966 A CN106201966 A CN 106201966A CN 201610556090 A CN201610556090 A CN 201610556090A CN 106201966 A CN106201966 A CN 106201966A
Authority
CN
China
Prior art keywords
main equipment
charge mode
otg
restriction
limit
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.)
Pending
Application number
CN201610556090.1A
Other languages
Chinese (zh)
Inventor
张哲�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiku Internet Network Scientific Shenzhen Co ltd
Original Assignee
Qiku Internet Network Scientific Shenzhen Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qiku Internet Network Scientific Shenzhen Co ltd filed Critical Qiku Internet Network Scientific Shenzhen Co ltd
Priority to CN201610556090.1A priority Critical patent/CN106201966A/en
Publication of CN106201966A publication Critical patent/CN106201966A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers
    • G06F13/4077Precharging or discharging
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses an OTG connection control method, a main device and a terminal device, wherein the method comprises the following steps: during OTG, the main equipment judges whether a preset charging limiting condition is met; when the limit charging condition is satisfied, the master device limits the output current to a predetermined level. According to the OTG connection control method provided by the invention, the limit charging condition is set for OTG connection, when the OTG connection is carried out, whether the limit charging condition is met or not is judged firstly, and when the limit charging condition is met, the main equipment limits the output current and limits the output current to a preset level. Therefore, the electric quantity waste of the main equipment when the OTG is connected is reduced, and the endurance time of the main equipment is prolonged.

Description

OTG connects control method, main equipment and terminal unit
Technical field
The present invention relates to electronic technology field, especially relate to OTG connection control method, main equipment and terminal and set Standby.
Background technology
At present, a lot of mobile terminals all have OTG (On-The-Go) function, and mobile terminal can connect outside by OTG Equipment, when mobile terminal is connected from equipment by OTG as main equipment, acquiescence is given from equipment charge.But, apply at some In scene, being not required to charging from equipment, but only that carry out data transmission, such as mobile terminal is carried by OTG connection The USB flash disk of power supply, portable hard drive or other mobile terminal etc. are seen a film for a long time.In this case, main equipment the most externally charges aobvious The most improper, the electricity of main equipment can be caused to be wasted, and the electricity of main equipment is the most limited, particularly works as main equipment When being in low state of charge, the cruising time of main equipment can be greatly shortened.
Summary of the invention
The main object of the present invention connects control method, main equipment and terminal unit for providing a kind of OTG, it is intended to reduce main The equipment electricity waste when OTG connects, extends the cruising time of main equipment.
In view of this, the present invention proposes a kind of OTG and connects control method, and described method includes step:
When carrying out OTG connection, main equipment judges whether to meet the restriction charge condition preset;
When meeting described restriction charge condition, output electric current is limited in predeterminated level by described main equipment.
Further, described main equipment judges whether that meeting restriction charge condition includes:
It is the most selected that main equipment judges to limit charge mode;
When described restriction charge mode is selected, described main equipment judges to meet restriction charge condition.
Further, described method also includes: described main equipment provides the option limiting charge mode in arranging interface, According to user, the operation of described option is updated configuration information;
Described main equipment judges to limit that charge mode is the most selected includes: carrying out OTG when connecting, described main equipment reads According to described configuration information, described configuration information, judges that described restriction charge mode is the most selected.
Further, described main equipment judges to limit that charge mode is the most selected includes:
When carrying out OTG connection, main equipment provides the option limiting charge mode, selects to judge that described restriction is filled according to user Power mode is the most selected.
Further, described main equipment provides the option limiting charge mode, selects to judge that described restriction is filled according to user Power mode is the most selected, including:
Described main equipment shows include at least two pattern limited including charge mode for user's choosing on display interface Select, when user clicks on or choose restriction charge mode, it is judged that limit charge mode selected.
Further, described main equipment provides the option limiting charge mode, selects to judge that described restriction is filled according to user Power mode is the most selected, asks the user whether to enter including: described main equipment limit charge mode on display interface, when with Family selects to enter when limiting charge mode, it is judged that limit charge mode selected.
Further, described main equipment provides the option limiting charge mode, selects to judge that described restriction is filled according to user Power mode is the most selected, including:
Described main equipment voice broadcast selects for user include at least two pattern limited including charge mode, works as user When voice selecting limits charge mode, it is judged that limit charge mode selected.
Further, described main equipment provides the option limiting charge mode, selects to judge that described restriction is filled according to user Power mode is the most selected, including: whether described main equipment voice message user enters restriction charge mode, when user speech selects When selecting entrance restriction charge mode, it is judged that limit charge mode selected.
Further, described main equipment judges whether that meeting restriction charge condition includes: refer to when receiving default operation When making, main equipment judges to meet restriction charge condition.
Further, described operational order is touch control operation, button operation, gesture motion high up in the air, rocks main equipment The combination of a kind of or at least two in action, voice command.
Further, described main equipment judges whether that meeting restriction charge condition includes:
Main equipment obtains battery electric quantity, it is judged that whether described battery electric quantity is less than threshold value;
When described battery electric quantity is less than described threshold value, described main equipment judges to meet restriction charge condition.
Further, described main equipment judges whether that meeting restriction charge condition includes:
Main equipment identification is from the type of equipment, it is judged that described whether belong to specified type from equipment, wherein, described from equipment It is connected with described main equipment by OTG;
When described belong to described specified type from equipment time, described main equipment judge meet limit charge condition.
Further, whether belong to specified type from equipment described in described judgement to include:
Judge whether by described from equipment pull-up electric current, and whether can obtain data by described from equipment;
If by described from equipment pull-up electric current, and data can not can be obtained by described from equipment, then judge institute State and belong to specified type from equipment.
Further, described main equipment is mobile terminal.
The present invention proposes a kind of main equipment simultaneously, and described main equipment includes:
Judge module, for when carrying out OTG and connecting, it may be judged whether meet and limit charge condition;
Control module, for when meeting described restriction charge condition, is limited in predeterminated level by output electric current.
Further, described judge module is used for: judge to limit charge mode the most selected;Charging mould is limited when described When formula is selected, it is judged that meet and limit charge condition.
Further, farther include one and module be set, described arrange module for: provide in interface is set and limit The option of charge mode, updates configuration information according to user to the operation of described option;
Described judge module is used for: when carrying out OTG and connecting, reads described configuration information, sentences according to described configuration information Disconnected described restriction charge mode is the most selected.
Further, described judge module is used for:
When carrying out OTG and connecting, it is provided that limit the option of charge mode, select to judge described restriction charging mould according to user Formula is the most selected.
Further, described judge module is used for:
On display interface, display selects for user include at least two pattern limited including charge mode, when user's point When hitting or choose restriction charge mode, it is judged that limit charge mode selected.
Further, described judge module is used for:
Display interface asks the user whether enter and limit charge mode, limit charge mode when user selects to enter Time, it is judged that limit charge mode selected.
Further, described judge module is used for:
Voice broadcast selects for user include at least two pattern limited including charge mode, when user speech selects limit During charge mode processed, it is judged that limit charge mode selected.
Further, described judge module is used for:
Whether voice message user enters restriction charge mode, when user speech selects to enter and limits charge mode, sentences Disconnected restriction charge mode is selected.
Further, described judge module is used for: when receiving default operational order, it is judged that meets and limits charging bar Part.
Further, described operational order is touch control operation, button operation, gesture motion high up in the air, rocks main equipment The combination of a kind of or at least two in action, voice command.
Further, described judge module is used for:
Obtain the battery electric quantity of described main equipment, it is judged that whether described battery electric quantity is less than threshold value;When described battery electric quantity During less than described threshold value, it is judged that meet and limit charge condition.
Further, described judge module is used for:
Identify from the type of equipment, it is judged that described whether belong to specified type from equipment;Belong to described when described from equipment During specified type, it is judged that meet and limit charge condition;Wherein, described it is connected with described main equipment by OTG from equipment.
Further, described judge module is used for:
Judge whether by described from equipment pull-up electric current, and whether can obtain data by described from equipment;As Fruit by described from equipment pull-up electric current, and can not can obtain data by described from equipment, then judge described from equipment genus In specified type.
The present invention also proposes a kind of terminal unit, and described terminal unit includes:
Touch-sensitive display;
One or more processors;
Memorizer;
One or more application programs, wherein said one or more application programs are stored in described memorizer and quilt Being configured to be performed by the one or more processor, the one or more program is configurable for performing above-mentioned OTG even Connect control method.
A kind of OTG provided by the present invention connects control method, arranges restriction charge condition, when entering by connecting OTG When row OTG connects, main equipment is it is first determined whether meet and limit charge condition, and when satisfied restriction charge condition, main equipment is then Output electric current is limited, output electric current is limited in predeterminated level.Thus decrease the main equipment electricity when OTG connects Waste, extends the cruising time of main equipment.
Accompanying drawing explanation
Fig. 1 is the flow chart of OTG connection control method one embodiment of the present invention;
Fig. 2 is to judge whether in the embodiment of the present invention to meet the particular flow sheet limiting charge condition;
Fig. 3 is to judge whether in the embodiment of the present invention to meet another particular flow sheet limiting charge condition;
Fig. 4 is to judge whether in the embodiment of the present invention to meet the another particular flow sheet limiting charge condition;
Fig. 5 is the module diagram of main equipment one embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further referring to the drawings.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative used herein " ", " Individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that use in the description of the present invention arranges Diction " including " refers to there is described feature, integer, step, operation, element and/or assembly, but it is not excluded that existence or adds Other features one or more, integer, step, operation, element, assembly and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connections or wireless couple.Used herein arrange Diction "and/or" includes that one or more list the whole of item or any cell being associated combines with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (include technology art Language and scientific terminology), have with the those of ordinary skill in art of the present invention be commonly understood by identical meaning.Also should Be understood by, those terms defined in such as general dictionary, it should be understood that have with in the context of prior art The meaning that meaning is consistent, and unless by specific definitions as here, otherwise will not use idealization or the most formal implication Explain.
Those skilled in the art of the present technique are appreciated that " mobile terminal " used herein above, " terminal unit " had both included nothing The equipment of line signal receiver, it only possesses the equipment of wireless signal receiver of non-emissive ability, includes again receiving and launching The equipment of hardware, it has the reception that on bidirectional communication link, can perform two-way communication and the equipment launching hardware.This Equipment may include that honeycomb or other communication equipments, and it has single line display or multi-line display or does not has multi-line The honeycomb of display or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), It can process with combine voice, data, fax and/or its communication ability;PDA (Personal Digital Assistant, Personal digital assistant), it can include the access of radio frequency receiver, pager, the Internet/intranet, web browser, account Originally, calendar and/or GPS (Global Positioning System, global positioning system) receptor;Conventional laptop and/or Palmtop computer or other equipment, it has and/or includes conventional laptop and/or the palmtop computer of radio frequency receiver Or other equipment." terminal " used herein above, " terminal unit " can be portable, can transport, be arranged on the vehicles (boat Sky, sea-freight and/or land) in, or be suitable for and/or be configured at local runtime, and/or with distribution form, operate in Any other position in the earth and/or space is run." terminal " used herein above, " terminal unit " can also is that communication is eventually End, access terminals, music/video playback terminal, such as, can be that (Mobile Internet Device moves mutually for PDA, MID Networked devices) and/or there is the mobile phone of music/video playing function, it is also possible to it is the equipment such as intelligent television, Set Top Box.
In the embodiment of the present invention, when two equipment are connected by OTG, outwards a side of output electric current is main equipment, separately One side is from equipment.Limit charge condition, the output electric current of main equipment will be limited in the condition of a relatively low level;When full When foot limits charge condition, then the output electric current of main equipment is limited;When being unsatisfactory for limiting charge condition, then not limit The output electric current of main equipment processed, normally exports electric current as prior art.
Connect control method one embodiment with reference to Fig. 1, the OTG proposing the present invention, said method comprising the steps of:
S11, main equipment are connected from equipment by OTG.
In the embodiment of the present invention, main equipment can be the mobile terminal such as mobile phone, flat board, it is also possible to be that other terminal sets Standby.Can be any electronic equipment from equipment, including terminal unit and storage device etc..
S12, main equipment judge whether to meet the restriction charge condition preset.In the embodiment of the present invention, preset limit Charge condition processed, when carrying out OTG and connecting, main equipment is it is first determined whether meet and limit charge condition, for whether meeting limit The judgement of charge condition processed, will be described in detail in subsequent embodiment.
S13, when satisfied restriction charge condition, output electric current is limited in predeterminated level by main equipment.
In the embodiment of the present invention, when judging to meet restriction charge condition, main equipment then controls the output of current output terminal Electric current, is limited in predeterminated level by output electric current, reduces output electric current the most as far as possible, only keeps the electricity connecting on the VBUS of interface Pressure signal is to show USB connection status, to reduce the loss of main equipment electricity.The predeterminated level of output electric current can be set as 100mA, it is of course also possible to be set as other value as required.When being unsatisfactory for limiting charge condition, terminate flow process, by normal Horizontally outward export electric current.
In step S12, restriction charge condition can be set in the following ways:
In some embodiments it is possible to set restriction charging bar by setting up a restriction charge mode in the host Part.As in figure 2 it is shown, main equipment judges whether that the idiographic flow meeting restriction charge condition is:
S101, judge limit charge mode the most selected.When limiting charge mode and being selected, enter step S102; When limiting charge mode and not having selected, enter step S103.
Concrete, when carrying out OTG connection, it is the most selected that main equipment judges to limit charge mode.
Alternatively, main equipment can by reading configuration information, according to configuration information judge restriction charge mode whether by Choose.Such as: main equipment can provide the option limiting charge mode in arranging interface, and user can enter and arrange interface, To limit charge mode option operate, as chosen or not choosing restriction charge mode, main equipment according to user to option Operation update configuration information.When carrying out OTG and connecting, main equipment reads configuration information, it is judged that whether user has chosen restriction Charge mode.When having chosen restriction charge mode, then explanation restriction charge mode is selected;When not choosing restriction charging mould During formula, then explanation restriction charge mode is the most selected.
Alternatively, when carrying out OTG and connecting, main equipment provides restriction by the mode such as display interface, voice message immediately The option of charge mode, selects to judge to limit charge mode according to user the most selected.
Such as, pop-up display interface, on display interface, display is include at least two pattern limited including charge mode Select for user, when user clicks on or choose restriction charge mode, then illustrate to limit charge mode selected.
And for example, pop-up display interface, display interface asks the user whether enter restriction charge mode, when user selects Enter when limiting charge mode (as clicked on "Yes" or " entrance "), then explanation restriction charge mode is selected.
And for example, voice broadcast selects for user include at least two pattern limited including charge mode, works as user speech (such as say the option sequence number limiting charge mode) during selectional restriction charge mode, then explanation restriction charge mode is selected.
And for example, whether voice message user enters restriction charge mode, limits charge mode when user speech selects to enter Time (such as saying "Yes" or " entrance "), then explanation limit charge mode selected.
S102, judgement meet restriction charge condition.
When limiting charge mode and being selected, main equipment judges to meet restriction charge condition.
S103, judgement are unsatisfactory for limiting charge condition.
When limiting charge mode and not having selected, main equipment judges to be unsatisfactory for limiting charge condition.
Thus, user can the most independently choose whether to need to limit output electric current.
In further embodiments, restriction charge condition can be set by presetting operational order.Such as Fig. 3 institute Showing, main equipment judges whether that the idiographic flow meeting restriction charge condition is:
S201, reception operational order, it may be judged whether receive default operational order.When receiving default operational order Time, perform step S202;When being not received by the operational order preset, perform step S203.
Concrete, when carrying out OTG and connecting, main equipment receives the operational order of user, by the operational order that receives with The operational order preset compares, it is judged that whether the two mates.When the two mates, then explanation have received default operation Instruction;When the two does not mates, then explanation is not received by the operational order preset.
This operational order can be touch control operation, button operation, gesture motion, the shaking motion to main equipment, language high up in the air A kind of combination of or at least two of the operational motions such as sound order.Wherein, touch control operation includes performing click, length on a display screen A kind of or the combination of at least two pressed, slide in the operation such as optional position or ad-hoc location, it is specific that button operation i.e. presses one Button or simultaneously or successively pressing at least two button, gesture motion high up in the air i.e. main equipment is caught by imaging first-class trap setting The specific action that the staff grasped is made, is specifically shaken by what sensor detected the shaking motion i.e. main equipment of main equipment Rolling action (such as left and right or preset times of rocking back and forth), voice command i.e. main equipment is gathered by voice collection device (such as MIC) Special sound.
S202, judgement meet restriction charge condition.
When receiving default operational order, main equipment judges to meet restriction charge condition.
S203, judgement are unsatisfactory for limiting charge condition.
When being not received by the operational order preset, main equipment judges to be unsatisfactory for limiting charge condition.
Thus, output electric current conveniently can be limited by user by operational order.
In further embodiments, restriction charge condition can be set by presetting battery power threshold.Such as Fig. 4 Shown in, main equipment judges whether that the idiographic flow meeting restriction charge condition is:
S301, acquisition battery electric quantity, it is judged that whether battery electric quantity is less than threshold value.When battery electric quantity is less than threshold value, perform Step S302;When battery electric quantity is not less than threshold value, perform step S303.
Concrete, when carrying out OTG and connecting, main equipment detects the battery electric quantity that the machine is current immediately, or directly from electricity The battery electric quantity that the machine is current is read in pond management application.The most current battery electric quantity and the size of threshold value, it is judged that battery electric quantity Whether less than threshold value.
Threshold value can set as required, as set in the range of 50%~10%.
S302, judgement meet restriction charge condition.
When battery electric quantity is less than threshold value, main equipment judges to meet restriction charge condition.
S303, judgement are unsatisfactory for limiting charge condition.
When battery electric quantity is not less than threshold value, main equipment judges to be unsatisfactory for limiting charge condition.
Thus, when detecting that battery current is relatively low, automatically output electric current is limited, to protect the electricity of main equipment Amount, extends cruising time.
Further, it is also possible to set restriction charge condition by the type from equipment connected, when carrying out OTG and connecting, Main equipment identification is from the type of equipment, it may be judged whether (storage device type that such as need not power supply (such as carries to belong to specified type The USB flash disk of power supply, hard disk etc.)), when belonging to specified type, it is judged that meet and limit charge condition, otherwise judge that being unsatisfactory for restriction fills Electricity condition.
The type from equipment can be identified in the following manner: main equipment is attempted by from equipment pull-up electric current and pass through Data are obtained from equipment;Judge whether to pass through from equipment pull-up electric current, and whether can be by obtaining data from equipment;If Can not pass through from equipment pull-up electric current, and then can judge to belong to specified type from equipment by obtaining data from equipment;If Can pass through from equipment pull-up electric current, or then can not judge to be not belonging to specified type from equipment by obtaining data from equipment.
It will be understood by those skilled in the art that in addition to using said method to set and limiting charge condition, it is also possible to use Other similar approach.Will not enumerate at this and repeat.
The OTG of the embodiment of the present invention connects control method, arranges restriction charge condition, when carrying out OTG by connecting OTG During connection, main equipment is it is first determined whether meet and limit charge condition, and when satisfied restriction charge condition, main equipment is then to output Electric current limits, and output electric current is limited in predeterminated level.Thus decrease the main equipment electricity waste when OTG connects, Extend the cruising time of main equipment.
With reference to Fig. 5, proposing main equipment one embodiment of the present invention, described main equipment can be that mobile phone, flat board etc. are mobile eventually End, it is also possible to be other terminal unit.Described main equipment includes judge module and the control module being sequentially connected with, wherein:
Judge module: for when carrying out OTG and connecting, it may be judged whether meet and limit charge condition.And will determine that result is sent out Give control module.
In certain embodiments, restriction charge condition is set by setting up a restriction charge mode.Judge module judges Limit charge mode the most selected;When limiting charge mode and being selected, it is judged that meet and limit charge condition;When limiting charging When pattern does not has selected, it is judged that be unsatisfactory for limiting charge condition.
Alternatively, when carrying out OTG and connecting, it is judged that module provides limit by the mode such as display interface, voice message immediately The option of charge mode processed, selects to judge to limit charge mode according to user the most selected.
Such as, it is judged that module is shown include at least two limited including charge mode by display screen on display interface Pattern selects for user, when user clicks on or choose restriction charge mode, it is judged that limit charge mode selected.
And for example, it is judged that module by display screen ask the user whether on display interface enter limit charge mode, when with Family selects to enter when limiting charge mode, it is judged that limit charge mode selected.
For another example, it is judged that module by sound-producing device voice broadcasts such as speakers include at least two limited including charge mode The pattern of kind selects for user, when user speech selectional restriction charge mode, it is judged that limit charge mode selected.
For another example, it is judged that whether module enters restriction charge mode by the sound-producing device voice message user such as speaker, when User speech selects to enter when limiting charge mode, it is judged that limit charge mode selected.
Alternatively, main equipment farther includes one and arranges module, this arrange module for: in interface is set provide limit The option of charge mode, updates configuration information according to user to the operation improving the option limiting charge mode.Judge module is used In: when carrying out OTG and connecting, read configuration information, judge to limit charge mode according to configuration information the most selected.
In further embodiments, restriction charge condition is set by presetting operational order.Judge module receives Operational order, it may be judged whether receive default operational order;When receiving default operational order, then judge to meet to limit Charge condition;Otherwise judge to be unsatisfactory for limiting charge condition.Described operational order is touch control operation, button operation, gesture high up in the air Action, to a kind of or combination of at least two in the shaking motion of main equipment, voice command.
In further embodiments, set restriction charge condition by presetting battery power threshold.Judge module Obtain the battery electric quantity of main equipment, it is judged that whether battery electric quantity is less than threshold value;When battery electric quantity is less than described threshold value, it is judged that full Foot limits charge condition;When battery electric quantity is not less than described threshold value, it is judged that be unsatisfactory for limiting charge condition.
In further embodiments, by setting restriction charge condition from the type of equipment, should from equipment by OTG with Main equipment connects.Judge module identification is from the type of equipment, it is judged that whether belong to specified type from equipment;When belonging to finger from equipment When determining type, it is judged that meet and limit charge condition.Wherein, it is judged that module can identify the type from equipment in the following manner: Attempt by from equipment pull-up electric current and by obtaining data from equipment;Judge whether can by from equipment pull-up electric current, with And whether can be by obtaining data from equipment;If can not pass through from equipment pull-up electric current, and can be by obtaining number from equipment According to, then judge to belong to specified type from equipment;If able to pass through from equipment pull-up electric current, or can not be by obtaining from equipment Data, then judge to be not belonging to specified type from equipment.
Control module: for when satisfied restriction charge condition, output electric current is limited in predeterminated level.
Concrete, control module obtains judged result, when judgment result displays is unsatisfactory for restrictive condition, does not the most carry out appointing What operation, the output electric current of main equipment current output terminal is not limited so that current output terminal keep normal level to Outer output electric current.When judgment result displays meets and limits charge condition, control module then controls the output electricity of current output terminal Stream, is limited in predeterminated level by output electric current, reduces output electric current as far as possible, only keeps the voltage signal connecting on the VBUS of interface To show USB connection status, to reduce the loss of main equipment electricity.The predeterminated level of output electric current can be set as 100mA, when So, it is also possible to be set as other value as required.
The main equipment of the embodiment of the present invention, arranges restriction charge condition by connecting OTG, when carrying out OTG and connecting, main Equipment is it is first determined whether meet and limit charge condition, and when satisfied restriction charge condition, output electric current is then carried out by main equipment Limit, output electric current is limited in predeterminated level.Thus decrease the main equipment electricity waste when OTG connects, extend master The cruising time of equipment.
It should be understood that the main equipment that above-described embodiment provides is connected control method embodiment and belongs to same structure with OTG Thinking, it is the most right in main equipment embodiment that it implements the technical characteristic that process refers in embodiment of the method, and embodiment of the method Should be suitable for, repeat no more here.
The present invention also proposes a kind of terminal unit, and described terminal unit includes: touch-sensitive display;One or more process Device;Memorizer;One or more application programs, wherein said one or more application programs are stored in described memorizer also Being configured to be performed by the one or more processor, the one or more program is configurable for performing OTG and connects Control method, described OTG connects control method and comprises the following steps: when carrying out OTG connection, it may be judged whether meet the restriction preset Charge condition;When meeting described restriction charge condition, output electric current is limited in predeterminated level.Described in the present embodiment OTG connection control method is the OTG connection control method in the present invention involved by above-described embodiment, does not repeats them here.
The terminal unit of the embodiment of the present invention, by OTG connect restriction charge condition is set, when as main equipment with from When equipment carries out OTG connection, limit charge condition it is first determined whether meet, when satisfied restriction charge condition, then to output Electric current limits, and output electric current is limited in predeterminated level.Thus decrease the terminal unit electricity wave when OTG connects Take, extend the cruising time of terminal unit.
It will be understood by those skilled in the art that the present invention includes relating to perform in operation described herein one Or multinomial equipment.These equipment can be required purpose and specialized designs and manufacture, or can also include general-purpose computations Known device in machine.These equipment have storage computer program within it, and these computer programs optionally activate Or reconstruct.Such computer program can be stored in equipment (such as, computer) computer-readable recording medium or be stored in and be suitable to Storage e-command is also coupled to any kind of medium of bus respectively, and described computer-readable medium includes but not limited to (Read-Only Memory read-only deposits for any kind of dish (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM 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, EEPROM), flash memory, magnetic card or light card.It is, it is readable Medium includes by equipment (such as, computer) with the form storage that can read or any medium of transmission information.
Those skilled in the art of the present technique be appreciated that can with computer program instructions realize these structure charts and/or The combination of the frame in each frame in block diagram and/or flow graph and these structure charts and/or block diagram and/or flow graph.This technology is led 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 realizes, thus by computer or the process of other programmable data processing methods Device performs the scheme specified in structure chart disclosed by the invention and/or block diagram and/or the frame of flow graph or multiple frame.
Those skilled in the art of the present technique be appreciated that the various operations discussed in the present invention, method, in flow process Step, measure, scheme can be replaced, changed, combined or deleted.Further, there is discussed in the present invention each Other steps in kind operation, method, flow process, measure, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, of the prior art have and the step in the various operations disclosed in the present invention, method, flow process, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
Should be appreciated that and the foregoing is only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, Every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process conversion, or be directly or indirectly used in Other relevant technical fields, are the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. an OTG connects control method, it is characterised in that include step:
When carrying out OTG connection, main equipment judges whether to meet the restriction charge condition preset;
When meeting described restriction charge condition, output electric current is limited in predeterminated level by described main equipment.
OTG the most according to claim 1 connects control method, it is characterised in that described main equipment judges whether to meet limit Charge condition processed includes:
It is the most selected that main equipment judges to limit charge mode;
When described restriction charge mode is selected, described main equipment judges to meet restriction charge condition.
OTG the most according to claim 2 connects control method, it is characterised in that
Described method also includes: described main equipment provides the option limiting charge mode in arranging interface, according to user to institute The operation stating option updates configuration information;
Described main equipment judges to limit that charge mode is the most selected includes: carrying out OTG when connecting, described main equipment reads described According to described configuration information, configuration information, judges that described restriction charge mode is the most selected.
OTG the most according to claim 2 connects control method, it is characterised in that described main equipment judges to limit charging mould Formula is the most selected to be included:
When carrying out OTG connection, main equipment provides the option limiting charge mode, selects to judge described restriction charging mould according to user Formula is the most selected.
OTG the most according to claim 4 connects control method, it is characterised in that described main equipment provides and limits charging mould The option of formula, selects to judge that described restriction charge mode is the most selected according to user, including:
Described main equipment shows that on display interface at least two pattern including restriction charge mode selects for user, when When user clicks on or chooses restriction charge mode, it is judged that limit charge mode selected.
6. a main equipment, it is characterised in that including:
Judge module, for when carrying out OTG and connecting, it may be judged whether meet and limit charge condition;
Control module, for when meeting described restriction charge condition, is limited in predeterminated level by output electric current.
Main equipment the most according to claim 6, it is characterised in that described judge module is used for:
Judge to limit charge mode the most selected;When described restriction charge mode is selected, it is judged that meet and limit charging bar Part.
Main equipment the most according to claim 7, it is characterised in that farther include one and arrange module, described arranges mould Block is used for: provide the option limiting charge mode in arranging interface, according to user, the operation renewal of described option is arranged letter Breath;
Described judge module is used for: when carrying out OTG and connecting, reads described configuration information, judges institute according to described configuration information State restriction charge mode the most selected.
Main equipment the most according to claim 7, it is characterised in that described judge module is used for:
When carrying out OTG and connecting, it is provided that limit the option of charge mode, select to judge that described restriction charge mode is according to user No selected.
10. a terminal unit, including:
Touch-sensitive display;
One or more processors;
Memorizer;
One or more application programs, wherein said one or more application programs are stored in described memorizer and are configured For being performed by the one or more processor, the one or more program is configurable for performing according to claim 1 To the method described in 5 any one.
CN201610556090.1A 2016-07-13 2016-07-13 OTG connection control method, main equipment and terminal equipment Pending CN106201966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610556090.1A CN106201966A (en) 2016-07-13 2016-07-13 OTG connection control method, main equipment and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610556090.1A CN106201966A (en) 2016-07-13 2016-07-13 OTG connection control method, main equipment and terminal equipment

Publications (1)

Publication Number Publication Date
CN106201966A true CN106201966A (en) 2016-12-07

Family

ID=57475230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610556090.1A Pending CN106201966A (en) 2016-07-13 2016-07-13 OTG connection control method, main equipment and terminal equipment

Country Status (1)

Country Link
CN (1) CN106201966A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268409A (en) * 2016-12-30 2018-07-10 维沃移动通信有限公司 A kind of method and mobile terminal of mobile terminal connection
WO2020015160A1 (en) * 2018-07-17 2020-01-23 北京小米移动软件有限公司 Reverse charging device and reverse charging current adjustment method and apparatus
CN111277013A (en) * 2020-01-21 2020-06-12 华为技术有限公司 A charging control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456772C (en) * 2001-08-10 2009-01-28 精工爱普生株式会社 Power supply control circuit, electronic instrument, and charging method thereof
CN103457458A (en) * 2012-05-28 2013-12-18 华为终端有限公司 Current switching control device and electronic device
CN104426186A (en) * 2013-09-02 2015-03-18 联想(北京)有限公司 Charging control method and electronic equipment
CN105207284A (en) * 2015-08-25 2015-12-30 青岛海信移动通信技术股份有限公司 Power supply method of master equipment to slave equipment and master equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456772C (en) * 2001-08-10 2009-01-28 精工爱普生株式会社 Power supply control circuit, electronic instrument, and charging method thereof
CN103457458A (en) * 2012-05-28 2013-12-18 华为终端有限公司 Current switching control device and electronic device
CN104426186A (en) * 2013-09-02 2015-03-18 联想(北京)有限公司 Charging control method and electronic equipment
CN105207284A (en) * 2015-08-25 2015-12-30 青岛海信移动通信技术股份有限公司 Power supply method of master equipment to slave equipment and master equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268409A (en) * 2016-12-30 2018-07-10 维沃移动通信有限公司 A kind of method and mobile terminal of mobile terminal connection
WO2020015160A1 (en) * 2018-07-17 2020-01-23 北京小米移动软件有限公司 Reverse charging device and reverse charging current adjustment method and apparatus
EP3598604A3 (en) * 2018-07-17 2020-04-15 Beijing Xiaomi Mobile Software Co., Ltd. Reverse charging device, and method and device for regulating reverse charging current
US11128148B2 (en) 2018-07-17 2021-09-21 Beijing Xiaomi Mobile Software Co., Ltd. Reverse charging device, and method and device for regulating reverse charging current
CN111277013A (en) * 2020-01-21 2020-06-12 华为技术有限公司 A charging control method and device
EP4054049A4 (en) * 2020-01-21 2023-03-29 Huawei Technologies Co., Ltd. LOAD CONTROL METHOD AND DEVICE

Similar Documents

Publication Publication Date Title
CN104375624B (en) Mobile terminal and power saving suggestion method thereof
CN105068869A (en) Method and device for pushing information in mobile terminal
CN113609399A (en) A service recommendation method and device
CN107678858B (en) Application processing method and device, storage medium and electronic equipment
WO2023016050A1 (en) Card information display method and electronic device
CN110119824B (en) Charging pile adaptive scheduling system and method
CN105511985A (en) Data backup method and terminal
CN106155557B (en) Virtual key display method and mobile terminal
CN106201966A (en) OTG connection control method, main equipment and terminal equipment
CN109242555A (en) Voice-based advertisement broadcast method and Related product
CN105895126A (en) Method and apparatus for indicating and controlling playing audio/audio and video data
CN112508301A (en) Method and device for predicting charging load of electric vehicle, and storage medium
CN116415061A (en) A service recommendation method and related device
CN115239025B (en) Payment prediction method and electronic equipment
CN107612162A (en) A kind of wireless charging method, terminal and computer-readable recording medium
CN106502558A (en) Terminal device and its method of operating and operation device
CN119400181B (en) A speech recognition method and related device
CN105975037A (en) Method for restoring factory settings based on Android system and intelligent equipment
CN106786949A (en) Terminal device and its external charging method
EP4601151A1 (en) Energy storage device charging control method and related apparatus
CN111815011B (en) Message sending method, device, computer equipment and storage medium
CN118721216A (en) A kind of intelligent robot control method and related device
CN107797647A (en) Flash interface connection control method, primary processor and terminal device
CN115827650A (en) Method, apparatus and computer storage medium for determining battery usage parameters
CN107332903A (en) Information popularization method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207

RJ01 Rejection of invention patent application after publication