CN107277906B - Mode selecting method, device, terminal and computer readable storage medium - Google Patents
Mode selecting method, device, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN107277906B CN107277906B CN201710633584.XA CN201710633584A CN107277906B CN 107277906 B CN107277906 B CN 107277906B CN 201710633584 A CN201710633584 A CN 201710633584A CN 107277906 B CN107277906 B CN 107277906B
- Authority
- CN
- China
- Prior art keywords
- mode
- charging
- charge
- information
- history
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
- H04W52/0258—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- 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
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses one mode selection method, device, terminal and computer readable storage mediums.This method comprises: whether detection terminal is in battery saving mode when charging;If terminal is in battery saving mode, history charge information is obtained;If current time information is matched with the history charge information, the battery saving mode is exited.Mode selecting method provided in an embodiment of the present invention can detect whether terminal is in battery saving mode in terminal charge;If terminal is in battery saving mode, history charge information is obtained;If current time information is matched with the history charge information, the battery saving mode is exited, improves utilization rate of equipment and installations.
Description
Technical field
The present embodiments relate to touch screen technology more particularly to one mode selection method, device, terminal and computers
Readable storage medium storing program for executing.
Background technique
As intelligent terminal develops, the mobile terminals such as smart phone, tablet computer are popularized.When the remaining electricity of intelligent terminal
When measuring lower, terminal will start battery saving mode, and then improve the cruise duration of terminal.In the related technology, battery saving mode would generally
Cancel battery saving mode in mobile phone charging nearly full electricity, however will so sacrifice terminal capabilities, utilization rate of equipment and installations is low.
Summary of the invention
The present invention provides one mode selection method, device, terminal and computer readable storage medium, and equipment can be improved
Utilization rate.
In a first aspect, the embodiment of the invention provides one mode selection methods, comprising:
Detect whether terminal is in battery saving mode when charging;
If terminal is in battery saving mode, history charge information is obtained;
If current time information is matched with the history charge information, the battery saving mode is exited.
Second aspect, the embodiment of the invention also provides one mode selection devices, comprising:
Charge mode detection module, for detecting whether terminal is in battery saving mode in charging;
Historical information obtains module, if detecting that terminal is in battery saving mode for the charge mode detection module,
Then obtain history charge information;
Mode control module, if obtaining the history that module obtains for current time information and the historical information
Charge information matching, then exit the battery saving mode.
The third aspect, the embodiment of the invention also provides a kind of terminal, terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more programs are executed by one or more processors, so that one or more processors realize such as first
Mode selecting method shown in aspect.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program realizes the mode selecting method as shown in first aspect when the program is executed by processor.
Mode selecting method provided in an embodiment of the present invention can detect whether terminal is in power saving mould in terminal charge
Formula;If terminal is in battery saving mode, history charge information is obtained;If current time information and the history charge information
The battery saving mode is then exited in matching, improves utilization rate of equipment and installations.
Detailed description of the invention
Fig. 1 is the flow chart of one of embodiment of the present invention mode selecting method;
Fig. 2 is the flow chart of another mode selecting method in the embodiment of the present invention;
Fig. 3 is the flow chart of another mode selecting method in the embodiment of the present invention;
Fig. 4 is the flow chart of another mode selecting method in the embodiment of the present invention;
Fig. 5 is the flow chart of another mode selecting method in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of one of embodiment of the present invention mode selector;
Fig. 7 is the structural schematic diagram of one of embodiment of the present invention terminal.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
At present when intelligent terminal remaining capacity is lower, terminal will start battery saving mode, and then when the continuation of the journey of raising terminal
Between.In the related technology, battery saving mode can cancel battery saving mode when mobile phone charges nearly full electricity, but since the relevant technologies exit
The time point of battery saving mode is that the close full electricity (as being full of 80%) of charging can just exit battery saving mode, therefore arrive close full electricity again
Preceding terminal function is persistently affected.In addition, be in the related technology DOZE mode there are also a kind of battery saving mode, but the mode one
Denier, which powers on, to be exited.But in actual use if terminal residual electricity is very low (such as 5%), at this time if adopted
Be USB charging, then will appear user while using while charge when since charge capacity and power consumption electricity are not much different, lead to end
Hold charge rate slack-off.To solve the above-mentioned problems, the embodiment of the invention provides one mode selection methods, can be in USB
When charging or other charging modes, determined whether to postpone battery saving mode according to the history charging duration of user, and then close as early as possible
Reason exits battery saving mode, improves utilization rate of equipment and installations.
Fig. 1 is the flow chart of one mode selection method provided in an embodiment of the present invention, and this method, which is applied to have, to be touched
In the terminal of screen, such as smart phone, tablet computer, laptop etc..This method is suitable for the case where terminal is charged,
Specifically include the following steps:
Whether detection terminal is in battery saving mode when step 110, charging.
Battery saving mode is a kind of operating mode for reducing power consumption of terminal, which can receive to reduce back-end data
Hair reduces screen intensity etc..Illustratively, it after terminal power is less than default electricity, is whether connected to power supply and starts
DOZE mode.Doze mode is the one mode newly gone out on Android6.0, can only have partial task to allow to transport on backstage
Row, other are all forcibly stopped.Doze mode passes through the consumption for delaying that electricity is reduced using the CPU on backstage and network activity.
After terminal is connected to power supply by connecting line, terminal can get the power supply type currently connected.Power supply class
Type include fast charge, it is general fill and USB charging.Fast charge realizes that quickly, fast charge corresponds to the first charge mode, fastly by improving charging current
Charging current is filled greater than 1A.General to fill to be connected on the power supply of 220V by power supply adaptor, power supply adaptor provides for terminal
The charging current of 1A, it is general to fill corresponding second charge mode.USB charging can by terminal and PC, laptop and
The USB interface of mobile power source connects, and then is charged by the USB interface of above equipment.USB, which charges, corresponds to third charging mould
Formula.The charging current of USB charging is less than the general charging current filled, and the general charging current filled is less than fast charge charging current.
If terminal is connected to power supply adaptor and charged by usual user, Zhong Duan Eng can quickly charge,
Without having to worry about terminal during charging the excessively high problem for causing charge rate excessively slow of power consumption.But works as and charged using USB interface
When, since the voltage on its USB interface of different electronic equipments is different, corresponding charging current is also different, at this time if
User's using terminal is then likely to occur the excessively high problem for causing charge rate excessively slow of power consumption.Based on this, as shown in Fig. 2, in step
Rapid 110, whether detection terminal is in front of battery saving mode when charging, comprising:
Step 101, when terminal is connected to charging equipment, obtain current charge mode.
Wherein, charge mode is the first charge mode or the second charge mode or third charge mode, the first charge mode
Charging current be greater than the charging current of the second charge mode, the charging current of the second charge mode is greater than third charge mode
Charging current.
First charge mode and the second charge mode can be charged by power supply adaptor, and third charge mode needs
USB interface is attached with non-electrical source adapter.
In some embodiments of the present application, by taking Android system as an example, BatteryManager.BATTERY_ can be passed through
The current charge mode of PLUGGED_AC parameter decision.If it is BatteryManager.BATTERY_PLUGGED_AC, working as
Before be in the first charge mode or the second charge mode, if it is non-BatteryManager.BATTERY_PLUGGED_AC,
Determination is currently at third charge mode.
If step 102, current charge mode are third charge mode, judge whether current residual electricity is less than default electricity
Amount.
In some embodiments of the present application, by taking Android system as an example, action.equals can be passed through
(Intent.ACTION_BATTERY_CHANGED parameter obtains the current remaining capacity of battery.Getting current residual electricity
Afterwards, judge whether current residual electricity is less than default electricity.Default electricity can carry out preset value by programmer or user, such as
Default electricity is the 5%-20% of total electricity, preferably the 10% of total electricity.
If step 103, current residual electricity are less than default electricity, enter battery saving mode.
If current residual electricity is less than default electricity, illustrate that current residual electricity is lower, in order to guarantee that terminal can
Booting operation, terminal start battery saving mode.Battery saving mode can be the corresponding power saving strategy of DOZE mode.
If step 104, current residual electricity are more than or equal to default electricity, current operating status is maintained.
If current residual electricity is more than or equal to default electricity, illustrate that current residual electricity is higher, it can be in a timing
The interior operation for maintaining terminal, terminal can maintain current operating status.
The present embodiment is by identifying charge mode, USB power source or electricity when can determine the power supply currently connected
Source adapter power supply, and then more accurately start battery saving mode, improve utilization rate of equipment and installations.
If step 120, terminal are in battery saving mode, history charge information is obtained.
History charge information can be the historical record of the charging of terminal record.History charge information may include that history is filled
Electricity when electricity and end when the initial time of electric period and end time and initiation of charge charge.
History charging can be saved locally, can also be saved by network side server.
Optionally, whether the application for judging front stage operation is default application.If the application of front stage operation is default application,
Then obtain history charge information.And then it can be default in operation in application, contact battery saving mode.Default application can set for user
The application set, i.e. user can be set default application, and then even if in the case where battery dump energy is few, if current fortune
Default application is gone, then terminal enters normal mode from battery saving mode.Default application can be Video chat application, urgent call
Using or game application etc..
Optionally, history charge information can record daily different charging time sections according to the date.Further
, if not same date charging time section having the same, or the section of the charging time with overlapping, then by the identical or overlapping
Charging time section extract and count.
If terminal is not in battery saving mode, illustrates electricity abundance, can terminate.Or return to step 110.
If step 130, current time information are matched with history charge information, battery saving mode is exited.
Optionally, if history charging time information includes current time information, battery saving mode is exited.In a kind of realization
In mode, if history charge information includes current time information, battery saving mode is exited.When history charge information includes current
Between information illustrate user once current time carry out overcharge behavior, and then may infer that the behavior have habituation, therefore
Battery saving mode is exited in default judgement.
Optionally, if history charging time information includes the period where current time information and current time information
Count number be greater than preset times, then exit battery saving mode.Preset times are greater than 2, preferably 3 times.Current time information institute
Period can for extract it is identical or overlapping charging time section.
If step 140, current time information and history charge information mismatch, battery saving mode is continuously carried out.
If not including current time information in history charge information, battery saving mode is continuously carried out.
Further, as shown in figure 3, before step 130 further include:
Step 210 obtains the corresponding desired charging period section of current time from history charge information.
Include multiple history charging time section in history charge information, is searched from multiple history charging time sections and include
There is the desired charging period section of current time.It is specifically as follows, by the initial time of each history charging time section at the end of
Between be compared with current time, if history charging time section A initial time is earlier than current time and the end time is later than and works as
History charging time section A is then determined as desired charging period section by the preceding time.
Step 220, the target duration for calculating desired charging period section.
The target duration of desired charging period section is calculated according to the initial time of desired charging period section and end time.It can
Choosing, end time and initial time are subtracted each other, target duration is obtained.The unit of target duration can be minute or second.
If exiting battery saving mode correspondingly, step 130, current time information are matched with history charge information, can lead to
Following manner is crossed to be implemented:
If step 131, current time information are matched with history charge information, judge whether target duration is greater than first
Preset charged duration.
First preset charged duration by user setting or can be obtained by calculation.It, can be with when being obtained by calculation
The first preset charged duration is obtained divided by current charging rate with power consumption needed for terminal works preset duration.Preset duration
It can be half an hour or one hour or longer time.
If step 132, target duration are greater than the first preset charged duration, battery saving mode is exited.
If step 133, target duration are greater than the first preset charged duration, battery saving mode is continuously carried out.
Whether mode selecting method provided in an embodiment of the present invention detection terminal can be in battery saving mode in charging;
If terminal is in battery saving mode, history charge information is obtained;If current time information is matched with history charge information,
Exit battery saving mode.Compared to change is exited battery saving mode and exited when electricity is close full electric when energized in the related technology
Battery saving mode is compared, and the present embodiment can exit power saving mould according to history charge information flexibly adjustment corresponding with current time
The time of formula improves utilization rate of equipment and installations.
It is found during stating embodiment on the implementation, user has habituation to the use of terminal, i.e., user is working
Day and festivals or holidays are different the charging duration of terminal.It therefore can be according to current date property (working day or festivals or holidays)
It determines corresponding history charge information, improves the accuracy for exiting battery saving mode.
Fig. 4 is the flow chart of another mode selecting method provided in an embodiment of the present invention, as to above-described embodiment
It further illustrates, comprising:
Whether detection terminal is in battery saving mode when step 310, charging.
If step 320, terminal are in battery saving mode, the date property on the same day is determined according to current time.
Wherein, date property includes working day or festivals or holidays.
Current date information is obtained by calendar application, and current date property is determined according to date information.
For example, obtaining current date information by calendar application is Wednesday.Judge whether Wednesday is working day.If it is
Then be working day, otherwise, if it is otherwise be festivals or holidays.
Step 330 obtains the corresponding history charge information of date property.
By section of the multiple history charging time for including in history charge information or date, classify according to date property.
Obtain working day corresponding history charge information and festivals or holidays corresponding history charge information.
If step 340, current time information are matched with history charge information, battery saving mode is exited.
Corresponding history charge information is searched according to the date property determined in step 220.For example, if being currently work
Day, then using working day corresponding history charge information as foundation, judge whether current time information matches with history charge information.
If currently judging current time information using festivals or holidays corresponding history charge information as foundation for festivals or holidays
Whether matched with history charge information.
If step 350, current time information and history charge information mismatch, battery saving mode is continuously carried out.
Technical solution provided in this embodiment, operating habit that can be different with festivals or holidays user according to working day, setting
Different history charge informations, and then battery saving mode is more accurately released, further increase utilization rate of equipment and installations.
In a usage scenario, as shown in figure 5, the determination of history charge information not only can be false by working day or section
Day is distinguished, and can also be calculated by average value, concrete scheme is as follows:
Whether detection terminal is in battery saving mode when step 410, charging.
If step 420, terminal are in battery saving mode, obtain in history charge information it is corresponding with current time at least
The charging duration of one charging time section.
Optionally, the identical corresponding charging duration of first charging time section, the first charging time section at least two days are obtained
Include current time information.
Charge information of the available these last few days in the first charging time section.When first charging time section includes current
Between information.By obtaining the identical corresponding charging duration of first charging time section at least two days, when can be unified recently
Carve corresponding average charge duration.
Optionally, the corresponding charging duration of multiple second charging time section in one day is obtained.Wherein, one day is current time
The date at place.The corresponding charging duration of multiple second charging time section calculates average charge duration, and then realizes according to working as
Preceding charging situation determines current average charge duration.
Step 430 determines average charge duration according to the charging duration of at least one charging time section.
Average charge duration can also be calculated by weighted summation in addition to calculating average value.
If step 440, average charge duration exit battery saving mode less than the second preset charged duration.
Second preset charged duration can be equal to the first preset charged duration, when can also be not equal to the first preset charged
It is long.Optionally, the second preset charged duration is greater than 20 minutes, preferably 30 minutes.
The present embodiment can obtain average charge duration according in the section of multiple charging time with general character, according to averagely filling
The charging duration of this charging of electric market prediction, further increases the accuracy for exiting battery saving mode, improves utilization rate of equipment and installations.
Fig. 6 is the structural schematic diagram of one mode selection device provided in an embodiment of the present invention, and the device is for realizing upper
The above-mentioned method of embodiment is stated, which is located in mobile terminal, comprising:
Charge mode detection module 510, for detecting whether terminal is in battery saving mode in charging;
Historical information obtains module 520, if detecting that terminal is in power saving mould for charge mode detection module 510
Formula then obtains history charge information;
Mode control module 530 is filled if obtaining the history that module 520 obtains with historical information for current time information
Power information matching, then exit battery saving mode.
It further, further include that charge mode obtains module 540,
Charge mode obtains module 540 and is used for: when terminal is connected to charging equipment, obtaining current charge mode, charges
Mode is the first charge mode or the second charge mode or third charge mode, and the charging current of the first charge mode is greater than second
The charging current of charge mode, the charging current of the second charge mode are greater than the charging current of third charge mode;
Mode control module 530 is used for, if current charge mode is third charge mode, judges that current residual electricity is
It is no to be less than default electricity;
If current residual electricity is less than default electricity, enter battery saving mode.
Further, historical information obtains module 520 and is used for:
The date property on the same day is determined according to current time, date property includes working day or festivals or holidays;
Obtain the corresponding history charge information of date property.
It further, further include target duration calculation module 550, for obtaining current time pair from history charge information
The desired charging period section answered;Calculate the target duration of desired charging period section;
Mode control module 530 is used for, if current time information is matched with history charge information, judges target duration
Whether the first preset charged duration is greater than;
If target duration is greater than the first preset charged duration, battery saving mode is exited.
Further, historical information obtain module 520 be used for: obtain history charge information in it is corresponding with current time extremely
The charging duration of few charging time section;According at least one charging time, the charging duration of section determines average charge duration;
Mode control module 530 is used for, if average charge duration exits power saving mould less than the second preset charged duration
Formula.
Further, historical information obtains module 520 and is used for: it is right to obtain identical first charging time section at least two days
Inductive charging duration, the first charging time section include current time information;Alternatively,
Obtain the corresponding charging duration of multiple second charging time section in one day.
Further, mode control module 530 is used for, if history charging time information includes current time information,
Exit battery saving mode.
Mode selector provided in this embodiment, charge mode detection module 510 detection terminal can be in charging
It is no to be in battery saving mode;Historical information obtains module 520 when terminal is in battery saving mode, obtains history charge information;Mode
Control module 530 exits battery saving mode when current time information is matched with history charge information.Compared in the related technology when connecing
Energization source time-varying exits battery saving mode and exits battery saving mode when electricity is close to full electricity and compares, the present embodiment can according to
The corresponding history charge information flexibly adjustment of current time exits the time of battery saving mode, improves utilization rate of equipment and installations.
Method provided by the executable aforementioned all embodiments of the present invention of above-mentioned apparatus, it is corresponding to have the execution above method
Functional module and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the aforementioned all implementations of the present invention
Method provided by example.
Fig. 7 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.As shown in fig. 7, the terminal may include:
Shell (not shown), first memory 701, the first central processing unit (Central Processing Unit, CPU) 702
(also known as first processor, hereinafter referred to as CPU) is stored on first memory 701 and can run on first processor 702
Computer program, circuit board (not shown) and power circuit (not shown).Foregoing circuit plate is placed in above-mentioned shell
The space interior surrounded;Above-mentioned CPU702 and above-mentioned first memory 701 are arranged on foregoing circuit plate;Above-mentioned power circuit,
For each circuit or the device power supply for above-mentioned terminal;Above-mentioned first memory 701, for storing executable program code;
Above-mentioned CPU702 is run and above-mentioned executable journey by reading the executable program code stored in above-mentioned first memory 701
The corresponding program of sequence code, for executing:
Detect whether terminal is in battery saving mode when charging;
If terminal is in battery saving mode, history charge information is obtained;
If current time information is matched with the history charge information, the battery saving mode is exited.
Above-mentioned terminal further include: Peripheral Interface 703, RF (Radio Frequency, radio frequency) circuit 705, voicefrequency circuit
706, loudspeaker 711, power management chip 708, input/output (I/O) subsystem 709, touch screen 712, other input/controls
Equipment 710 and outside port 704, these components are communicated by one or more communication bus or signal wire 707.
In addition, terminal further includes camera and RGB light sensor.RGB light sensor is located at beside camera, can be with
It is disposed adjacent with camera.Camera can may be rear camera for front camera.RGB light sensor can be with
With camera configured separate, such as configuration in the narrow side of terminal side etc..
It should be understood that graphic terminal 700 is only an example of terminal, and terminal 700 can have than figure
Shown in more or less component, two or more components can be combined, or can have different portions
Part configuration.Various parts shown in the drawings can be including one or more signal processings and/or specific integrated circuit
Hardware, software or hardware and software combination in realize.
Just the terminal provided in this embodiment for realizing control doorbell is described in detail below, and the terminal is with intelligence
For mobile phone.
First memory 701, above-mentioned first memory 701 can be accessed by CPU702, Peripheral Interface 703 etc., and above-mentioned
One memory 701 may include high random access first memory, can also be including non-volatile first memories, such as one
A or multiple disk first memory parts, flush memory device or other volatile solid-state first memory parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU702 and by Peripheral Interface 703, above-mentioned Peripheral Interface 703
One memory 701.
I/O subsystem 709, above-mentioned I/O subsystem 709 can be by the input/output peripherals in equipment, such as touch screen 712
With other input/control devicess 710, it is connected to Peripheral Interface 703.I/O subsystem 709 may include 7091 He of display controller
For controlling one or more input controllers 7092 of other input/control devicess 710.Wherein, one or more input controls
Device 7092 processed receives electric signal from other input/control devicess 710 or sends electric signal to other input/control devicess 710,
Other input/control devicess 710 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole clicks idler wheel.It is worth noting that input controller 7092 can with it is following any one connect: keyboard, infrared port,
The indicating equipment of USB interface and such as mouse.In addition, other input/control devicess 710 can also include camera, fingerprint
Sensor and gyroscope etc..
Wherein, according to the working principle of touch screen and transmission information medium classification, touch screen 712 can for resistance-type,
Capacitor induction type, infrared-type or surface acoustic wave type.Classify according to mounting means, touch screen 712 can be with are as follows: external hanging type, built-in
Formula or monoblock type.Classify according to technical principle, touch screen 712 can be with are as follows: vector pressure sensing technology touch screen, resistive technologies touching
Touch screen, capacitance technology touch screen, infrared technology touch screen or surface acoustic wave technique touch screen.
Touch screen 712, above-mentioned touch screen 712 are the input interface and output interface between user terminal and user, can
It is shown to user depending on output, visual output may include figure, text, icon, video etc..Optionally, touch screen 712 is by user
The electric signal (electric signal of such as contact surface) triggered on touch screen curtain, is sent to first processor 702.
Display controller 7091 in I/O subsystem 709 receives electric signal from touch screen 712 or sends out to touch screen 712
Electric signals.Touch screen 712 detects the contact on touch screen, and the contact that display controller 7091 will test is converted to and is shown
The interaction of user interface object on touch screen 712, i.e. realization human-computer interaction, the user interface being shown on touch screen 712
Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light
Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 705 is mainly used for establishing the communication of intelligent sound box Yu wireless network (i.e. network side), realizes intelligent sound box
Data receiver and transmission with wireless network.Such as transmitting-receiving short message, Email etc..
Voicefrequency circuit 706 is mainly used for receiving audio data from Peripheral Interface 703, which is converted to telecommunications
Number, and the electric signal is sent to loudspeaker 711.
Loudspeaker 711 is reduced to for intelligent sound box to be passed through RF circuit 705 from the received voice signal of wireless network
Sound simultaneously plays the sound to user.
Power management chip 708, the hardware for being connected by CPU702, I/O subsystem and Peripheral Interface are powered
And power management.
In the present embodiment, central first processor 702 is used for:
Detect whether terminal is in battery saving mode when charging;
If terminal is in battery saving mode, history charge information is obtained;
If current time information is matched with the history charge information, the battery saving mode is exited.
Further, before in charging, whether detection terminal is in battery saving mode, further includes:
When the terminal is connected to charging equipment, current charge mode is obtained, the charge mode is the first charging mould
The charging current of formula or the second charge mode or third charge mode, first charge mode is greater than second charge mode
Charging current, the charging current of second charge mode is greater than the charging current of the third charge mode;
If current charge mode is third charge mode, judge whether current residual electricity is less than default electricity;
If current residual electricity is less than default electricity, enter battery saving mode.
Further, the acquisition history charge information, comprising:
The date property on the same day is determined according to current time, the date property includes working day or festivals or holidays;
Obtain the corresponding history charge information of the date property.
Further, after obtaining history charge information, further includes:
The corresponding desired charging period section of current time is obtained from the history charge information;
Calculate the target duration of the desired charging period section;
If exiting the battery saving mode correspondingly, the current time information is matched with the history charge information,
Include:
If current time information is matched with the history charge information, judge whether the target duration is greater than first
Preset charged duration;
If the target duration is greater than the first preset charged duration, the battery saving mode is exited.
Further, the acquisition history charge information, comprising:
Obtain the charging duration of at least one charging time section corresponding with current time in the history charge information;
Average charge duration is determined according to the charging duration of at least one charging time section;
If exiting the battery saving mode correspondingly, the current time information is matched with the history charge information,
Include:
If the average charge duration exits the battery saving mode less than the second preset charged duration.
Further, the charging duration for obtaining at least one charging time section in the history charge information, comprising:
Obtaining the identical corresponding charging duration of first charging time section, the first charging time section at least two days includes
The current time information;Alternatively,
Obtain the corresponding charging duration of multiple second charging time section in one day.
Further, if current time information is matched with the history charge information, the battery saving mode is exited, is wrapped
It includes:
If the history charging time information includes the current time information, the battery saving mode is exited.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey
Sequence can realize following steps when being executed by processor:
Detect whether terminal is in battery saving mode when charging;
If terminal is in battery saving mode, history charge information is obtained;
If current time information is matched with the history charge information, the battery saving mode is exited.
Further, before in charging, whether detection terminal is in battery saving mode, further includes:
When the terminal is connected to charging equipment, current charge mode is obtained, the charge mode is the first charging mould
The charging current of formula or the second charge mode or third charge mode, first charge mode is greater than second charge mode
Charging current, the charging current of second charge mode is greater than the charging current of the third charge mode;
If current charge mode is third charge mode, judge whether current residual electricity is less than default electricity;
If current residual electricity is less than default electricity, enter battery saving mode.
Further, the acquisition history charge information, comprising:
The date property on the same day is determined according to current time, the date property includes working day or festivals or holidays;
Obtain the corresponding history charge information of the date property.
Further, after obtaining history charge information, further includes:
The corresponding desired charging period section of current time is obtained from the history charge information;
Calculate the target duration of the desired charging period section;
If exiting the battery saving mode correspondingly, the current time information is matched with the history charge information,
Include:
If current time information is matched with the history charge information, judge whether the target duration is greater than first
Preset charged duration;
If the target duration is greater than the first preset charged duration, the battery saving mode is exited.
Further, the acquisition history charge information, comprising:
Obtain the charging duration of at least one charging time section corresponding with current time in the history charge information;
Average charge duration is determined according to the charging duration of at least one charging time section;
If exiting the battery saving mode correspondingly, the current time information is matched with the history charge information,
Include:
If the average charge duration exits the battery saving mode less than the second preset charged duration.
Further, the charging duration for obtaining at least one charging time section in the history charge information, comprising:
Obtaining the identical corresponding charging duration of first charging time section, the first charging time section at least two days includes
The current time information;Alternatively,
Obtain the corresponding charging duration of multiple second charging time section in one day.
Further, if current time information is matched with the history charge information, the battery saving mode is exited, is wrapped
It includes:
If the history charging time information includes the current time information, the battery saving mode is exited.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, programming language include object oriented program language-such as Java, Smalltalk, C++, are also wrapped
Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete
Ground executes on the user computer, partly executes on the user computer, executing as an independent software package, partially existing
Part executes on the remote computer or executes on a remote computer or server completely on subscriber computer.It is being related to
In the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or wide area
Net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as utilize ISP
To be connected by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments above-mentioned here, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. one mode selection method characterized by comprising
Detect whether terminal is in battery saving mode when charging;
If terminal is in battery saving mode, history charge information is obtained;
If current time information is matched with the history charge information, the battery saving mode is exited;
If the current time information is matched with the history charge information, the battery saving mode is exited, comprising: if gone through
History charging time information includes current time information, then exits battery saving mode;Alternatively, if history charging time information includes to work as
The count number of period where preceding temporal information and current time information is greater than preset times, then exits battery saving mode.
2. mode selecting method according to claim 1, which is characterized in that in charging, whether detection terminal is in power saving
Before mode, further includes:
When the terminal is connected to charging equipment, obtain current charge mode, the charge mode be the first charge mode or
The charging current of second charge mode or third charge mode, first charge mode is greater than filling for second charge mode
Electric current, the charging current of second charge mode are greater than the charging current of the third charge mode;
If current charge mode is third charge mode, judge whether current residual electricity is less than default electricity;
If current residual electricity is less than default electricity, enter battery saving mode.
3. mode selecting method according to claim 1, which is characterized in that the acquisition history charge information, comprising:
The date property on the same day is determined according to current time, the date property includes working day or festivals or holidays;
Obtain the corresponding history charge information of the date property.
4. mode selecting method according to claim 1, which is characterized in that after obtaining history charge information, also wrap
It includes:
The corresponding desired charging period section of current time is obtained from the history charge information, the desired charging period section is
It include the history charging time section of current time;
Calculate the target duration of the desired charging period section;
If exiting the battery saving mode correspondingly, the current time information is matched with the history charge information, packet
It includes:
If current time information is matched with the history charge information, it is default to judge whether the target duration is greater than first
Charging duration;
If the target duration is greater than the first preset charged duration, the battery saving mode is exited.
5. mode selecting method according to claim 1, which is characterized in that the acquisition history charge information, comprising:
Obtain the charging duration of at least one charging time section corresponding with current time in the history charge information;
Average charge duration is determined according to the charging duration of at least one charging time section;
If exiting the battery saving mode correspondingly, the current time information is matched with the history charge information, packet
It includes:
If the average charge duration exits the battery saving mode less than the second preset charged duration.
6. mode selecting method according to claim 5, which is characterized in that described to obtain in the history charge information extremely
The charging duration of few charging time section, comprising:
The identical corresponding charging duration of first charging time section at least two days is obtained, the first charging time section is comprising described
Current time information;Alternatively,
Obtain the corresponding charging duration of multiple second charging time section in one day.
7. mode selecting method according to claim 1, which is characterized in that if current time information is filled with the history
Power information matching, then exit the battery saving mode, comprising:
If the history charging time information includes the current time information, the battery saving mode is exited.
8. one mode selection device characterized by comprising
Charge mode detection module, for detecting whether terminal is in battery saving mode in charging;
Historical information obtains module and obtains if detecting that terminal is in battery saving mode for the charge mode detection module
Take history charge information;
Mode control module charges if obtaining the history that module obtains for current time information and the historical information
Information matches then exit the battery saving mode;
The mode control module is used for, if history charging time information includes current time information, exits battery saving mode;
Alternatively, if history charging time information includes the count number of the period where current time information and current time information
Greater than preset times, then battery saving mode is exited.
9. a kind of terminal, which is characterized in that the terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now mode selecting method as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The mode selecting method as described in any in claim 1-7 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710633584.XA CN107277906B (en) | 2017-07-28 | 2017-07-28 | Mode selecting method, device, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710633584.XA CN107277906B (en) | 2017-07-28 | 2017-07-28 | Mode selecting method, device, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107277906A CN107277906A (en) | 2017-10-20 |
CN107277906B true CN107277906B (en) | 2019-09-24 |
Family
ID=60075051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710633584.XA Active CN107277906B (en) | 2017-07-28 | 2017-07-28 | Mode selecting method, device, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107277906B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110621056A (en) * | 2018-06-19 | 2019-12-27 | 中兴通讯股份有限公司 | NB-IoT terminal mode switching method, device and storage medium |
CN109388224A (en) * | 2018-09-26 | 2019-02-26 | 广东小天才科技有限公司 | A kind of power consumption optimization method of smart machine, system and smart machine |
CN109890072B (en) * | 2019-03-28 | 2023-08-15 | 努比亚技术有限公司 | Terminal power saving control method and device, mobile terminal and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102946479A (en) * | 2012-11-02 | 2013-02-27 | 惠州Tcl移动通信有限公司 | Method for mobile terminal to update electric quantity of battery and mobile terminal |
CN105210263A (en) * | 2014-04-08 | 2015-12-30 | Sk普兰尼特有限公司 | Wireless charging apparatus and terminal, wireless charging system comprising same, method for controlling wireless charging system and recording medium having computer program recorded thereon |
US9613599B2 (en) * | 2015-03-27 | 2017-04-04 | Nook Digital, Llc | Electrophoretic display drive techniques |
CN106951145A (en) * | 2017-03-28 | 2017-07-14 | 广东欧珀移动通信有限公司 | Electricity based reminding method and mobile terminal during charging |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170018001A1 (en) * | 2015-07-15 | 2017-01-19 | NXT-ID, Inc. | System and Method to Determine User Preferences |
-
2017
- 2017-07-28 CN CN201710633584.XA patent/CN107277906B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102946479A (en) * | 2012-11-02 | 2013-02-27 | 惠州Tcl移动通信有限公司 | Method for mobile terminal to update electric quantity of battery and mobile terminal |
CN105210263A (en) * | 2014-04-08 | 2015-12-30 | Sk普兰尼特有限公司 | Wireless charging apparatus and terminal, wireless charging system comprising same, method for controlling wireless charging system and recording medium having computer program recorded thereon |
US9613599B2 (en) * | 2015-03-27 | 2017-04-04 | Nook Digital, Llc | Electrophoretic display drive techniques |
CN106951145A (en) * | 2017-03-28 | 2017-07-14 | 广东欧珀移动通信有限公司 | Electricity based reminding method and mobile terminal during charging |
Also Published As
Publication number | Publication date |
---|---|
CN107277906A (en) | 2017-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220035435A1 (en) | Management of near field communications using a low power express mode of an electronic device | |
CN107463403B (en) | Process control method, device, storage medium and electronic equipment | |
CN108132401A (en) | Charge abnormal detection method, device, storage medium and mobile terminal | |
CN109960507A (en) | Compile optimization method, device, storage medium, intelligent terminal and server | |
CN107277906B (en) | Mode selecting method, device, terminal and computer readable storage medium | |
CN107944259A (en) | Using the management-control method of startup, device and storage medium and mobile terminal | |
CN107770372B (en) | Battery electric quantity management method and device and mobile terminal | |
CN110225167B (en) | Terminal and processing method | |
CN109525012A (en) | Charging unit, charge control method, charge control system and storage medium | |
KR20150107448A (en) | Task Migration Method and Apparatus | |
KR20200100404A (en) | Electronic device for adaptive power management | |
CN107402625A (en) | Touch screen scanning method, device, terminal and computer-readable recording medium | |
CN107291213B (en) | Mode selection method, device, terminal and computer readable storage medium | |
CN112311029B (en) | Charging method, electronic device and storage medium | |
CN106532876B (en) | Power supply control method and device and computer equipment | |
CN111290926A (en) | Terminal prompting method and device, storage medium and terminal | |
CN108287605A (en) | charge control method, device, terminal device and storage medium | |
CN107479744A (en) | Adjust method, apparatus, terminal and the storage medium of touch-screen dispatching priority | |
CN107832131B (en) | Application program closing method and device, storage medium and electronic equipment | |
CN113659663A (en) | Charging device | |
CN113451669A (en) | Charging method and device, electronic device and storage medium | |
CN108196664A (en) | screen display method, device, storage medium and terminal | |
CN108924308A (en) | Call method, device, storage medium and the terminal of camera | |
CN109034808A (en) | A kind of operation method, running gear and terminal device paying class application program | |
CN108958829B (en) | Pre-loaded resource control method, device, storage medium and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |