CN107277906A - Mode selecting method, device, terminal and computer-readable recording medium - Google Patents

Mode selecting method, device, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107277906A
CN107277906A CN201710633584.XA CN201710633584A CN107277906A CN 107277906 A CN107277906 A CN 107277906A CN 201710633584 A CN201710633584 A CN 201710633584A CN 107277906 A CN107277906 A CN 107277906A
Authority
CN
China
Prior art keywords
mode
charging
charge
battery saving
information
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.)
Granted
Application number
CN201710633584.XA
Other languages
Chinese (zh)
Other versions
CN107277906B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710633584.XA priority Critical patent/CN107277906B/en
Publication of CN107277906A publication Critical patent/CN107277906A/en
Application granted granted Critical
Publication of CN107277906B publication Critical patent/CN107277906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a kind of mode selecting method, device, terminal and computer-readable recording medium.This method includes:Detect whether terminal is in battery saving mode during 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, utilization rate of equipment and installations is improved.

Description

Mode selecting method, device, terminal and computer-readable recording medium
Technical field
The present embodiments relate to touch screen technology, more particularly to a kind of mode selecting method, device, terminal and computer Readable storage medium storing program for executing.
Background technology
As intelligent terminal develops, the mobile terminal such as smart mobile phone, tablet personal computer is popularized.When the remaining electricity of intelligent terminal When measuring relatively low, terminal can start battery saving mode, and then improve the cruising time of terminal.In correlation technique, battery saving mode would generally Cancel battery saving mode in mobile phone charging nearly full electricity, but will so sacrifice terminal capabilities, utilization rate of equipment and installations is low.
The content of the invention
The present invention provides a kind of mode selecting method, device, terminal and computer-readable recording medium, can improve equipment Utilization rate.
In a first aspect, the embodiments of the invention provide a kind of mode selecting method, including:
Detect whether terminal is in battery saving mode during 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 present invention additionally provides a kind of mode selector, including:
Charge mode detection module, for detecting whether terminal is in battery saving mode in charging;
Historical information acquisition 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 the history obtained for current time information and the historical information acquisition module Charge information is matched, then exits the battery saving mode.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, and 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 present invention additionally provides a kind of computer-readable recording medium, is 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 Matching, then exit the battery saving mode, improves utilization rate of equipment and installations.
Brief description of the drawings
Fig. 1 is a kind of flow chart of mode selecting method in the embodiment of the present invention;
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 a kind of structural representation of mode selector in the embodiment of the present invention;
Fig. 7 is a kind of structural representation of terminal in the embodiment of the present invention.
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 limitation of the invention.It also should be noted that, in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
At present when intelligent terminal dump energy is relatively low, terminal can start battery saving mode, and then when improving the continuation of the journey of terminal Between.In correlation technique, battery saving mode can cancel battery saving mode in mobile phone charging nearly full electricity, but be due to that correlation technique is exited The time point of battery saving mode can just exit battery saving mode for charging close to full electricity (as being full of 80%), therefore arrive again close to full electricity Preceding termination function is persistently affected.In addition, also have a kind of battery saving mode to be DOZE patterns in correlation technique, but the pattern one Denier, which switches on power, to be exited.But, if terminal residual electricity is very low in actual use (such as 5%), if now adopted USB chargings, then occur user while using while charge when because charge capacity and power consumption electricity are more or less the same, cause end Hold charge rate slack-off., can be in USB the embodiments of the invention provide a kind of mode selecting method in order to solve the above problems When charging or other charging modes, determine whether to postpone battery saving mode according to the history of user charging duration, and then close as early as possible That manages exits battery saving mode, improves utilization rate of equipment and installations.
Fig. 1 is a kind of flow chart of mode selecting method provided in an embodiment of the present invention, and this method is applied to have and touched In the terminal of screen, such as smart mobile phone, tablet personal computer, notebook computer.This method is applied to the situation that terminal is charged, Specifically include following step:
Whether detection terminal is in battery saving mode when step 110, charging.
Battery saving mode is a kind of mode of operation of reduction power consumption of terminal, and the mode of operation can be received to reduce back-end data Hair, reduction screen intensity etc..Exemplary, after terminal power is less than default electricity, whether it is connected to power supply and starts DOZE patterns.Doze patterns are a kind of patterns newly gone out on Android6.0, and it can only have partial task to allow fortune on backstage OK, other are all forcibly stopped.Doze patterns are by delaying the consumption using the CPU on backstage and network activity reduction electricity.
After terminal is connected by connecting line with power supply, terminal can get the power supply type currently connected.Power supply class Type include fill soon, it is general fill and USB charging.Fill and realized quickly by improving charging current soon, the first charge mode of correspondence is filled soon, soon Charging current is filled more than 1A.General to fill to be connected to by power supply adaptor on 220V power supply, power supply adaptor provides for terminal 1A charging current, it is general to fill the second charge mode of correspondence.USB chargings can by terminal and PC, notebook computer and The USB interface connection of portable power source, and then charged by the USB interface of the said equipment.The charging mould of USB chargings correspondence the 3rd Formula.The charging current of USB chargings is less than the general charging current filled, and the general charging current filled is less than fills charging current soon.
If terminal is connected to power supply adaptor and charged by usual user, Zhong Duan Eng can quickly be charged, Without having to worry about terminal, power consumption is too high causes the problem of charge rate is excessively slow during charging.But work as and charged using USB interface When, because the voltage on different electronic equipments its USB interface is different, therefore corresponding charging current is also different, if now User's using terminal is then likely to occur that power consumption is too high to cause the problem of charge rate is excessively slow.Based on this, as shown in Fig. 2 in step Whether detection terminal is in before battery saving mode when rapid 110, charging, including:
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 the 3rd charge mode, the first charge mode Charging current be more than the charging current of the second charge mode, the charging current of the second charge mode is more than the 3rd charge mode Charging current.
First charge mode and the second charge mode can be charged by power supply adaptor, and the 3rd 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 decisions.If BatteryManager.BATTERY_PLUGGED_AC, working as Before be in the first charge mode or the second charge mode, if non-BatteryManager.BATTERY_PLUGGED_AC, then It is determined that being currently at the 3rd charge mode.
If step 102, current charge mode are the 3rd 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 (the current dump energy of Intent.ACTION_BATTERY_CHANGED parameter acquiring batteries.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, for example Default electricity is the 10% of the 5%-20%, preferably total electricity of total electricity.
If step 103, current residual electricity are less than default electricity, into battery saving mode.
If current residual electricity is less than default electricity, illustrate that current residual electricity is relatively low, in order to ensure that terminal can Start operation, terminal starts battery saving mode.Battery saving mode can be the corresponding power saving strategy of DOZE patterns.
If step 104, current residual electricity are more than or equal to default electricity, current running status is maintained.
If current residual electricity is more than or equal to default electricity, illustrate that current residual electricity is higher, can be in a timing The operation of interior maintenance terminal, terminal can maintain current running status.
The present embodiment is by the way that charge mode is identified, 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.
The historical record for the charging that history charge information can record for terminal.History charge information can fill including history The initial time of electric period and end time, and electricity when electricity during initiation of charge and complete charge.
History charging can be preserved locally, can also be preserved 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 battery saving mode can be contacted when operation is preset and applied.Default application can set for user The application put, i.e. user can set default application, and then in the case that 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 be recorded according to the date to daily different charging interval sections.Further , if same date does not have identical charging interval section, or with overlapping charging interval section, then it is this is identical or overlapping Charging interval section extracted and counted.
If terminal is not in battery saving mode, illustrates that electricity is sufficient, can terminate.Or return to execution step 110.
If step 130, current time information are matched with history charge information, battery saving mode is exited.
Optionally, if history charging interval packet contains current time information, battery saving mode is exited.In one kind 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 the history charging interval, packet was containing the period where current time information and current time information Count number be more than preset times, then exit battery saving mode.Preset times are more than 2, preferably 3 times.Current time information institute Period can be the identical or overlapping charging interval section extracted.
If step 140, current time information and history charge information are mismatched, 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, also including before step 130:
Step 210, the corresponding desired charging period section of acquisition current time from history charge information.
Include multiple history charging interval sections in history charge information, search and include from section of multiple history charging intervals There is the desired charging period section of current time.It is specifically as follows, by the initial time of section of each history charging interval with the end of Between be compared with current time, work as if history charging interval section A initial times are later than earlier than current time and end time The preceding time, then history charging interval section A is defined as desired charging period section.
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.Can Choosing, the end time is subtracted each other with initial time, target duration is obtained.The unit of target duration can be minute or second.
Accordingly, if step 130, current time information are matched with history charge information, battery saving mode is exited, can be led 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 more than first Preset charged duration.
First preset charged duration can be set by user and can also be obtained by calculating., can be with by calculating then With power consumption needed for terminal works preset duration, divided by current charging rate, the first preset charged duration is obtained.Preset duration Can it be half an hour or one hour or longer time.
If step 132, target duration are more than the first preset charged duration, battery saving mode is exited.
If step 133, target duration are more 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 to full electricity when energized in correlation technique Battery saving mode is compared, and the present embodiment can flexibly power saving mould be exited in adjustment according to history charge information corresponding with current time The time of formula, improve utilization rate of equipment and installations.
Found during stating embodiment on the implementation, use of the user to terminal has habituation, i.e. user in work Day and festivals or holidays are different for the charging duration of terminal.Therefore can be according to current date property (working day or festivals or holidays) It is determined that 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 Further illustrate, including:
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 day of being determined according to current time.
Wherein, date property includes working day or festivals or holidays.
Current date and time information is obtained by calendar application, current date property is determined according to date and time information.
For example, obtaining current date and time information by calendar application for Wednesday.Whether judge Wednesday is working day.If Then be working day, otherwise, if otherwise be festivals or holidays.
Step 330, the corresponding history charge information of acquisition date property.
By section of the multiple history charging intervals included in history charge information or date, classified 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.Such as, 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 being currently festivals or holidays, using festivals or holidays corresponding history charge information as foundation, current time information is judged Whether matched with history charge information.
If step 350, current time information and history charge information are mismatched, battery saving mode is continuously carried out.
The technical scheme that the present embodiment is provided, can be set according to the working day operating habit different with festivals or holidays user Different history charge informations, and then battery saving mode is more accurately released, further improve 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 be in battery saving mode, obtain history charge information in it is corresponding with current time at least The charging duration of one charging interval section.
Optionally, the charging interval of identical first section is to inductive charging duration, the first charging interval section in obtaining at least two days Include current time information.
Charge information of the these last few days in the first charging interval section can be obtained.When first charging interval section includes current Between information.By obtain at least two days in the charging interval of identical first section to inductive charging duration, when can be unified recently Carve corresponding average charge duration.
Optionally, the corresponding charging duration of multiple second charging intervals section in obtaining one day.Wherein, it is within one day current time The date at place.Multiple second charging intervals section, the corresponding duration calculation that charges went out average charge duration, and then realized that basis is worked as Preceding charge condition determines current average charge duration.
Step 430, according at least one charging interval section charging duration determine average charge duration.
Average charge duration can also be calculated by way of weighted sum except calculating average value.
If step 440, average charge duration are less than the second preset charged duration, battery saving mode is exited.
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 more than 20 minutes, preferably 30 minutes.
The present embodiment can obtain average charge duration according in the section of multiple charging intervals with general character, according to averagely filling The charging duration of this charging of electric market prediction, further improves the degree of accuracy for exiting battery saving mode, improves utilization rate of equipment and installations.
Fig. 6 is a kind of structural representation of mode selector provided in an embodiment of the present invention, and the device is used to realize The above-mentioned method of embodiment is stated, the device is located in mobile terminal, including:
Charge mode detection module 510, for detecting whether terminal is in battery saving mode in charging;
Historical information acquisition module 520, if detecting that terminal is in power saving mould for charge mode detection module 510 Formula, then obtain history charge information;
Mode control module 530, if filled for the history that current time information is obtained with historical information acquisition module 520 Power information is matched, then exits battery saving mode.
Further, in addition to charge mode acquisition module 540,
Charge mode acquisition module 540 is used for:When terminal is connected to charging equipment, current charge mode, charging are obtained Pattern is the first charge mode or the second charge mode or the 3rd charge mode, and the charging current of the first charge mode is more than second The charging current of charge mode, the charging current of the second charge mode is more than the charging current of the 3rd charge mode;
Mode control module 530 is used for, if current charge mode is the 3rd 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, into battery saving mode.
Further, historical information acquisition module 520 is used for:
Date property on the day of being determined according to current time, date property includes working day or festivals or holidays;
Obtain the corresponding history charge information of date property.
Further, in addition to 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 more than;
If target duration is more than the first preset charged duration, battery saving mode is exited.
Further, historical information acquisition module 520 is used for:Obtain history charge information in it is corresponding with current time extremely The charging duration of few charging interval section;According at least one charging interval, the charging duration of section determines average charge duration;
Mode control module 530 is used for, if average charge duration is less than the second preset charged duration, exits power saving mould Formula.
Further, historical information acquisition module 520 is used for:The charging interval of identical first section is right in obtaining at least two days Inductive charging duration, the first charging interval section includes current time information;Or,
The corresponding charging duration of multiple second charging intervals section in obtaining one day.
Further, mode control module 530 is used for, if history charging interval packet contains current time information, Exit battery saving mode.
The mode selector that the present embodiment is provided, charge mode detection module 510 can detect that terminal be in charging It is no to be in battery saving mode;Historical information acquisition module 520 obtains history charge information when terminal is in battery saving mode;Pattern Control module 530 exits battery saving mode when current time information is matched with history charge information.Compared in correlation technique 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 of current time flexibly adjusts the time for exiting battery saving mode, improves utilization rate of equipment and installations.
The method that the executable foregoing all embodiments of the present invention of said apparatus are provided, possesses the execution above method corresponding Functional module and beneficial effect.Not ins and outs of detailed description in the present embodiment, all implement reference can be made to the present invention is foregoing The method that example is provided.
Fig. 7 is a kind of structural representation of terminal provided in an embodiment of the present invention.As shown in fig. 7, the terminal can include: Housing (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), it is stored on first memory 701 and can be run on first processor 702 Computer program, circuit board (not shown) and power circuit (not shown).Foregoing circuit plate is placed in above-mentioned housing The interior volume surrounded;Above-mentioned CPU702 and above-mentioned first memory 701 are arranged on foregoing circuit plate;Above-mentioned power circuit, For being powered for each circuit or device of 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 performing:
Detect whether terminal is in battery saving mode during 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 also includes:Peripheral Interface 703, RF (Radio Frequency, radio frequency) circuit 705, voicefrequency circuit 706th, 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 parts are communicated by one or more communication bus or signal wire 707.
In addition, terminal also 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 be that front camera can also be rear camera.RGB light sensor can be with With camera configured separate, example is first-class such as disposed in the narrow side of terminal side.
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 parts, two or more parts can be combined, or can have different portions Part is configured.Various parts shown in figure can be including one or more signal transactings and/or application specific integrated circuit Hardware, realize in the combination of software or hardware and software.
The terminal for being used for realization control doorbell that the present embodiment is provided is described in detail below, the terminal is with intelligence Exemplified by 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 can include high random access first memory, can also include non-volatile first memories, such as one Individual or multiple disk first memory parts, flush memory device or other volatile solid-state first memory parts.
The input of equipment and output peripheral hardware can be connected to CPU702 and the by Peripheral Interface 703, above-mentioned Peripheral Interface 703 One memory 701.
I/O subsystems 709, above-mentioned I/O subsystems 709 can be by the input/output peripheral in equipment, such as touch-screen 712 With other input/control devicess 710, Peripheral Interface 703 is connected to.I/O subsystems 709 can include the He of display controller 7091 One or more input controllers 7092 for controlling 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 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click roller.What deserves to be explained is, input controller 7092 can with it is following any one be connected:Keyboard, infrared port, The instruction 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 touch-screen operation principle 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:It is external hanging type, built-in Formula or monoblock type.Classify according to technical principle, touch-screen 712 can be:Vector pressure sensing technology touch-screen, resistive technologies are touched 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 is the input interface and output interface between user terminal and user, can Depending on output display to user, visual output can 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 subsystems 709 receives electric signal from touch-screen 712 or sent out to touch-screen 712 Electric signals.The contact detected is converted to and shown by the contact on the detection touch-screen of touch-screen 712, display controller 7091 The interaction of user interface object on touch-screen 712, that is, realize man-machine interaction, is shown in the user interface on touch-screen 712 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is, equipment can also include light Mouse, light mouse is the extension for not showing the touch sensitive surface visually exported, or the touch sensitive surface formed by touch-screen.
RF circuits 705, are mainly used in setting up the communication of intelligent sound box and wireless network (i.e. network side), realize intelligent sound box Data receiver and transmission with wireless network.Such as transmitting-receiving short message, Email.
Voicefrequency circuit 706, is mainly used in receiving voice data from Peripheral Interface 703, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 711.
Loudspeaker 711, for the voice signal for receiving intelligent sound box from wireless network by RF circuits 705, is reduced to Sound simultaneously plays the sound to user.
Power management chip 708, the hardware for being connected by CPU702, I/O subsystem and Peripheral Interface is powered And power management.
In the present embodiment, central first processor 702 is used for:
Detect whether terminal is in battery saving mode during 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, in addition to:
When the terminal is connected to charging equipment, current charge mode is obtained, the charge mode is the first charging mould Formula or the second charge mode or the 3rd charge mode, the charging current of first charge mode are more than second charge mode Charging current, the charging current of second charge mode is more than the charging current of the 3rd charge mode;
If current charge mode is the 3rd charge mode, judge whether current residual electricity is less than default electricity;
If current residual electricity is less than default electricity, into battery saving mode.
Further, the acquisition history charge information, including:
Date property on the day of being 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 history charge information is obtained, in addition to:
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;
Accordingly, if the current time information is matched with the history charge information, the battery saving mode is exited, Including:
If current time information is matched with the history charge information, judge whether the target duration is more than first Preset charged duration;
If the target duration is more than the first preset charged duration, the battery saving mode is exited.
Further, the acquisition history charge information, including:
Obtain the charging duration of at least one charging interval section corresponding with current time in the history charge information;
According at least one described charging interval, the charging duration of section determines average charge duration;
Accordingly, if the current time information is matched with the history charge information, the battery saving mode is exited, Including:
If the average charge duration is less than the second preset charged duration, the battery saving mode is exited.
Further, the charging duration for obtaining at least one charging interval section in the history charge information, including:
The charging interval of identical first section is to inductive charging duration in obtaining at least two days, and the first charging interval section is included The current time information;Or,
The corresponding charging duration of multiple second charging intervals section in obtaining one day.
Further, if current time information is matched with the history charge information, the battery saving mode is exited, is wrapped Include:
If the history charging interval packet contains the current time information, the battery saving mode is exited.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is 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 during 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, in addition to:
When the terminal is connected to charging equipment, current charge mode is obtained, the charge mode is the first charging mould Formula or the second charge mode or the 3rd charge mode, the charging current of first charge mode are more than second charge mode Charging current, the charging current of second charge mode is more than the charging current of the 3rd charge mode;
If current charge mode is the 3rd charge mode, judge whether current residual electricity is less than default electricity;
If current residual electricity is less than default electricity, into battery saving mode.
Further, the acquisition history charge information, including:
Date property on the day of being 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 history charge information is obtained, in addition to:
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;
Accordingly, if the current time information is matched with the history charge information, the battery saving mode is exited, Including:
If current time information is matched with the history charge information, judge whether the target duration is more than first Preset charged duration;
If the target duration is more than the first preset charged duration, the battery saving mode is exited.
Further, the acquisition history charge information, including:
Obtain the charging duration of at least one charging interval section corresponding with current time in the history charge information;
According at least one described charging interval, the charging duration of section determines average charge duration;
Accordingly, if the current time information is matched with the history charge information, the battery saving mode is exited, Including:
If the average charge duration is less than the second preset charged duration, the battery saving mode is exited.
Further, the charging duration for obtaining at least one charging interval section in the history charge information, including:
The charging interval of identical first section is to inductive charging duration in obtaining at least two days, and the first charging interval section is included The current time information;Or,
The corresponding charging duration of multiple second charging intervals section in obtaining one day.
Further, if current time information is matched with the history charge information, the battery saving mode is exited, is wrapped Include:
If the history charging interval packet contains the current time information, the battery saving mode is exited.
The computer-readable 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 recording 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 combination above.The more specifically example (non exhaustive list) of computer-readable recording medium includes:Tool There are the electrical connections of one or more wires, portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be it is any include or storage program tangible medium, the program can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can be included in a base band or as the data-signal of carrier wave part propagation, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limit 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 beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for Used by instruction execution system, device or device or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but do not limit In wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that the present invention is operated Program code, programming language includes object oriented program language-such as Java, Smalltalk, C++, also wraps Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete Ground performs, partly performs on the user computer, performs, partly exists as an independent software kit on the user computer Part performs or performed completely on remote computer or server on the remote computer on subscriber computer.It is being related to In the situation of remote computer, remote computer can be by the network of any kind --- including LAN (LAN) or wide area Net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (for example utilizes ISP Come by Internet connection).
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment above-mentioned here, can carry out for a person skilled in the art it is various it is obvious change, Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of mode selecting method, it is characterised in that including:
Detect whether terminal is in battery saving mode during 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.
2. mode selecting method according to claim 1, it is characterised in that whether detection terminal is in power saving in charging Before pattern, in addition to:
When the terminal is connected to charging equipment, obtain current charge mode, the charge mode be the first charge mode or Second charge mode or the 3rd charge mode, the charging current of first charge mode are more than filling for second charge mode Electric current, the charging current of second charge mode is more than the charging current of the 3rd charge mode;
If current charge mode is the 3rd charge mode, judge whether current residual electricity is less than default electricity;
If current residual electricity is less than default electricity, into battery saving mode.
3. mode selecting method according to claim 1, it is characterised in that the acquisition history charge information, including:
Date property on the day of being 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, it is characterised in that after history charge information is obtained, also wrap Include:
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;
Accordingly, if the current time information is matched with the history charge information, the battery saving mode is exited, is wrapped Include:
If current time information is matched with the history charge information, judge whether the target duration is more than first and presets Charge duration;
If the target duration is more than the first preset charged duration, the battery saving mode is exited.
5. mode selecting method according to claim 1, it is characterised in that the acquisition history charge information, including:
Obtain the charging duration of at least one charging interval section corresponding with current time in the history charge information;
According at least one described charging interval, the charging duration of section determines average charge duration;
Accordingly, if the current time information is matched with the history charge information, the battery saving mode is exited, is wrapped Include:
If the average charge duration is less than the second preset charged duration, the battery saving mode is exited.
6. mode selecting method according to claim 5, it is characterised in that in the acquisition history charge information extremely The charging duration of few charging interval section, including:
The charging interval of identical first section is to inductive charging duration in obtaining at least two days, and the first charging interval section is comprising described Current time information;Or,
The corresponding charging duration of multiple second charging intervals section in obtaining one day.
7. mode selecting method according to claim 1, it is characterised in that if current time information fills with the history Power information is matched, then exits the battery saving mode, including:
If the history charging interval packet contains the current time information, the battery saving mode is exited.
8. a kind of mode selector, it is characterised in that including:
Charge mode detection module, for detecting whether terminal is in battery saving mode in charging;
Historical information acquisition module, if detecting that terminal is in battery saving mode for the charge mode detection module, is obtained Take history charge information;
Mode control module, if charged for the history that current time information and the historical information acquisition module are obtained Information matches, then exit the battery saving mode.
9. a kind of terminal, it is characterised in that the terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real The existing mode selecting method as described in any in claim 1-7.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The mode selecting method as described in any in claim 1-7 is realized during execution.
CN201710633584.XA 2017-07-28 2017-07-28 Mode selecting method, device, terminal and computer readable storage medium Active CN107277906B (en)

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 true CN107277906A (en) 2017-10-20
CN107277906B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388224A (en) * 2018-09-26 2019-02-26 广东小天才科技有限公司 A kind of power consumption optimization method of smart machine, system and smart machine
CN109890072A (en) * 2019-03-28 2019-06-14 努比亚技术有限公司 Saving power for terminal control method, device, mobile terminal and readable storage medium storing program for executing
CN110621056A (en) * 2018-06-19 2019-12-27 中兴通讯股份有限公司 NB-IoT terminal mode switching method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
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
US20170039599A1 (en) * 2015-07-15 2017-02-09 NXT-ID, Inc. System and Method to Personalize Products and Services
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20170039599A1 (en) * 2015-07-15 2017-02-09 NXT-ID, Inc. System and Method to Personalize Products and Services
CN106951145A (en) * 2017-03-28 2017-07-14 广东欧珀移动通信有限公司 Electricity based reminding method and mobile terminal during charging

Cited By (4)

* Cited by examiner, † Cited by third party
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
CN109890072A (en) * 2019-03-28 2019-06-14 努比亚技术有限公司 Saving power for terminal control method, device, mobile terminal and readable storage medium storing program for executing
CN109890072B (en) * 2019-03-28 2023-08-15 努比亚技术有限公司 Terminal power saving control method and device, mobile terminal and readable storage medium

Also Published As

Publication number Publication date
CN107277906B (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN107463403B (en) Process control method, device, storage medium and electronic equipment
US11086387B2 (en) Management of near field communications using a low power express mode of an electronic device
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN108366114B (en) Application addiction prevention method and device, terminal and computer readable storage medium
CN104899029A (en) Screen control method and apparatus
CN107484231A (en) Screen parameter method of adjustment, device, terminal and computer-readable recording medium
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
CN107302633B (en) Application control method, device, storage medium and electronic equipment
CN107748685A (en) Application program launching control method, device, terminal device and storage medium
CN108510963A (en) Method of adjustment, device, storage medium and the intelligent terminal of screen intensity
CN107291213A (en) Mode selecting method, device, terminal and computer-readable recording medium
CN107402625A (en) Touch screen scanning method, device, terminal and computer-readable recording medium
CN110225167B (en) Terminal and processing method
CN110554945A (en) electric quantity control method, electronic equipment and computer readable storage medium
CN106714288A (en) Electric quantity processing method and apparatus, and terminal
CN108924375A (en) Processing method, device, storage medium and the terminal of ringing volume
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
CN110363535A (en) Pay abnormity prompt method and Related product
CN112311029B (en) Charging method, electronic device and storage medium
CN107479744A (en) Adjust method, apparatus, terminal and the storage medium of touch-screen dispatching priority
CN107508979A (en) volume adjusting method, device, terminal and storage medium
CN107526569A (en) A kind of volume adjusting method, device, storage medium and mobile terminal
CN107203264A (en) The control method of display pattern, device, electronic equipment
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN107040955B (en) Power consumption state identification method, device and the electronic equipment of 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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant