CN107291213A - 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
CN107291213A
CN107291213A CN201710633601.XA CN201710633601A CN107291213A CN 107291213 A CN107291213 A CN 107291213A CN 201710633601 A CN201710633601 A CN 201710633601A CN 107291213 A CN107291213 A CN 107291213A
Authority
CN
China
Prior art keywords
frequency
mode
battery saving
terminal
saving mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710633601.XA
Other languages
Chinese (zh)
Other versions
CN107291213B (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 CN201710633601.XA priority Critical patent/CN107291213B/en
Publication of CN107291213A publication Critical patent/CN107291213A/en
Application granted granted Critical
Publication of CN107291213B publication Critical patent/CN107291213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/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
    • 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, the frequency of use of user is obtained;If the frequency of use is matched with predeterminated frequency, the battery saving mode is exited.Mode selecting method provided in an embodiment of the present invention, detects whether terminal is in battery saving mode when can charge;If terminal is in battery saving mode, the frequency of use of user is obtained;If frequency of use is matched with predeterminated frequency, 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, the frequency of use of user is obtained;
If the frequency of use is matched with predeterminated frequency, 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, detects whether terminal is in battery saving mode during charging;
Frequency of use acquisition module, if detecting that terminal is in battery saving mode for the charge mode detection module, Then obtain the frequency of use of user;
Mode control module, if the frequency of use and predeterminated frequency that are obtained for the frequency of use acquisition module Matching, then exit 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, detects whether terminal is in battery saving mode when can charge;Such as Fruit terminal is in battery saving mode, then obtains the frequency of use of user;If frequency of use is matched with predeterminated frequency, power saving is exited Pattern, 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 a kind of structural representation of mode selector in the embodiment of the present invention;
Fig. 6 is the structural representation of another 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 would generally cancel battery saving mode in mobile phone charging nearly full electricity, but be due to correlation technique In exit time point of battery saving mode and can just exit battery saving mode close to full electricity (as being full of 80%) for charging, therefore arrive approach again Termination function is persistently affected before full electricity.In addition, also have a kind of battery saving mode to be DOZE patterns in correlation technique, but should Pattern, which once switches on power, to be exited.But, if terminal residual electricity is very low in actual use (such as 5%), now If using USB chargings, occur user while using while charge when because charge capacity and power consumption electricity are more or less the same, Cause terminal charge speed slack-off., can the embodiments of the invention provide a kind of mode selecting method in order to solve the above problems In USB chargings or other charging modes, determined whether to postpone battery saving mode according to the frequency of use of user, 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 usual user by terminal be connected to power supply adaptor carry out it is general fill or fill soon, Zhong Duan Eng can be carried out quickly Charging, 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 use USB interface During charging, because the voltage on different electronic equipments its USB interface is different, therefore corresponding charging current is also different, now It is likely to occur that power consumption is too high to cause the problem of charge rate is excessively slow if user's using terminal.Based on this, as shown in Fig. 2 Before in step 110, charging, whether detection terminal is in battery saving mode, 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 Android system, it can pass through
In one implementation, it can be worked as by BatteryManager.BATTERY_PLUGGED_AC parameter decisions Preceding charge mode.If BatteryManager.BATTERY_PLUGGED_AC, be currently at the first charge mode or Second charge mode, if non-BatteryManager.BATTERY_PLUGGED_AC, it is determined that be currently at the 3rd charging Pattern.
If step 102, current charge mode are the 3rd charge mode, judge whether current residual electricity is less than default electricity Amount.
Action.equals (Intent.ACTION_BATTERY_CHANGED parameter acquirings battery currently surplus can be passed through Remaining electricity.After current residual electricity is got, judge whether current residual electricity is less than default electricity.Default electricity can be by Programmer or user carry out preset value, and it is the 10% of the 5%-20%, preferably total electricity of total electricity for example to preset 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, the frequency of use of user is obtained.
The quantity for the operation that the frequency of use of user can input for user, or the number of the touch point of user's input Amount.
Optionally, whether the application for judging front stage operation is default application.Wherein, the power consumption of application is preset more than default Power consumption.If the application of front stage operation is default application, user's incoming frequency per minute in foreground application is obtained, will Incoming frequency is defined as frequency of use.
Optionally, screen Chang Liang during application can be arranged to its operation.Such as, video playback application, Video chat are answered With etc..Now, when user's no touch, which is operated, to be inputted, screen is still lighted.If user persistently inputs touch operation, obtain The incoming frequency of user's input operation is used as frequency of use.Such as user repeatedly carries out the tune of progress bar in video playback application It is whole, or user's repeatedly switching of progress front camera and rear camera in Video chat application.What user inputted makes It can be 5 times per minute or per minute 10 times with frequency.
Optionally, apply after the operation of user's input is received, backstage calculation process can be started, such as user's operation has During game application, user is performed after an operation, and game application not only needs mutually operate, while also by shielding after computing The operating result of the operation is shown in curtain, while also needing to send synchrodata, and then backstage power consumption to network side server It is higher.Now, if user have input multiple input operations, the corresponding operating that backstage is performed is more, now cannot be introduced into province Power mode.Now, the quantity of the touch point inputted according to user in screen is as incoming frequency.
If terminal is not in battery saving mode, illustrates that electricity is sufficient, can terminate.Or return to execution step 110.
If step 130, frequency of use are matched with predeterminated frequency, battery saving mode is exited.
There is the higher application of power consumption for front stage operation, only when user's incoming frequency is reduced, its power consumption ability Take effect, therefore after the frequency of use of user is detected, if frequency of use is less than predeterminated frequency, exit battery saving mode.It is no Then, if frequency of use is more than or equal to predeterminated frequency, battery saving mode is kept.Predeterminated frequency can be set by user or programmer Put, can also be determined by way of machine learning.Machine learning algorithm can be neutral net etc..
If step 140, frequency of use and predeterminated frequency are mismatched, battery saving mode is continuously carried out.
If frequency of use is more than predeterminated frequency, battery saving mode is continuously carried out.
Mode selecting method provided in an embodiment of the present invention, detects whether terminal is in battery saving mode when can charge;Such as Fruit terminal is in battery saving mode, then obtains the frequency of use of user;If frequency of use is matched with predeterminated frequency, power saving is exited Pattern.Compared to change exits battery saving mode and exits battery saving mode when electricity is close to full electricity when energized in correlation technique Compare, the present embodiment can be exited the time of battery saving mode according to the adjustment of the actual use frequency agile of user, improve equipment Utilization rate.
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 frequency of use of terminal.Therefore can be according to current date property (working day or festivals or holidays) It is determined that corresponding predeterminated frequency, improves the accuracy for exiting battery saving mode.
Fig. 3 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 210, charging.
If step 220, terminal are in battery saving mode, the frequency of use of user is obtained.
Step 230, determine current date property according to current time, 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 240, the corresponding predeterminated frequency of acquisition date property.
Working day correspondence predeterminated frequency is preset respectively and by means of red-letter day corresponding predeterminated frequency, and the data of setting are carried out Storage.When step 230 determines current date property, pre-stored default frequency corresponding with current date attribute is read Rate.Working day correspondence predeterminated frequency, which is less than, borrows red-letter day corresponding predeterminated frequency.
If step 250, frequency of use are matched with predeterminated frequency, battery saving mode is exited.
If step 260, frequency of use and predeterminated frequency 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 predeterminated frequencies, 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 4, the determination of default frequency of use not only can be false by working day or section Day calculates, and can also be calculated by average value, concrete scheme is as follows:
Whether detection terminal is in battery saving mode when step 310, charging.
If step 320, terminal are in battery saving mode, the frequency of use of user is obtained.
The frequency of use of step 330, acquisition active user at least two charge periods.
Terminal can set different predeterminated frequencies for different users, and reason is its application for using of different users Difference, and it is different for the operation content of same application different user.Different user can be carried out by the account that currently logs in Identification, or the binding fingerprint inputted according to user are identified.
The corresponding predeterminated frequency of different user can be implemented by any one following mode:
Optionally, the corresponding frequency of use of the charging interval of identical first section, the first charging interval in obtaining at least two days Section includes current time information.
Obtain the corresponding frequency of use of continuous at least two days identical charging interval sections.Or, obtain discrete at least two The corresponding frequency of use of same application in its identical charging interval section, same application is current foreground application.
Optionally, the corresponding frequency of use of multiple second charging intervals section in obtaining one day.
One day is obtained from morning (such as 8:00) to evening (22:00) frequency is used in the section of multiple second charging intervals during Rate.
Step 340, the frequency of use at least two charge periods determine average frequency of use.
The average value of multiple frequency of use got is asked for, default frequency of use is used as.
If step 350, frequency of use are matched with average frequency of use, battery saving mode is exited.
The present embodiment can be according to the frequency of use that user is obtained in the section of multiple charging intervals with general character, and according to obtaining The history frequency of use got determines to be adapted to the default adaptation frequency of active user, further improves and exit the accurate of battery saving mode Degree, improves utilization rate of equipment and installations.
Fig. 5 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 410, detects whether terminal is in battery saving mode during charging;
Frequency of use acquisition module 420, if detecting that terminal is in power saving mould for charge mode detection module 410 Formula, then obtain the frequency of use of user;
Mode control module 430, if the frequency of use and predeterminated frequency that are obtained for frequency of use acquisition module 420 Match somebody with somebody, then exit battery saving mode.
Further, as shown in fig. 6, also including charge mode acquisition module 440.
Charge mode acquisition module 440 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 430 is additionally operable to, if current charge mode is the 3rd charge mode, judges current residual electricity Whether default electricity is less than;If current residual electricity is less than default electricity, into battery saving mode.
Further, in addition to predeterminated frequency determining module 450.
Predeterminated frequency determining module 450 is used for:Current date property is determined according to current time, date property includes work Make day or festivals or holidays;Obtain the corresponding predeterminated frequency of date property.
Further, frequency of use acquisition module 420 is used for:
Whether the application for judging front stage operation is default application, and the power consumption for presetting application exceedes default power consumption;
If the application of front stage operation is default application, user's incoming frequency per minute in foreground application is obtained, Incoming frequency is defined as frequency of use.
Further, predeterminated frequency determining module 450 is additionally operable to:
Obtain frequency of use of the active user at least two charge periods;
Frequency of use at least two charge periods determines average frequency of use;
Accordingly, mode control module 430 is used for, if frequency of use is matched with average frequency of use, exits power saving Pattern.
Further, predeterminated frequency determining module 450 is used for:The charging interval of identical first section is right in obtaining at least two days The frequency of use answered, the first charging interval section includes current time information;Or, multiple second charging interval sections in obtaining one day Corresponding frequency of use.
Further, mode control module 430 is used for, if frequency of use is less than predeterminated frequency, exits battery saving mode.
Mode selector provided in an embodiment of the present invention, charge mode detection module 410 detects terminal when can charge Whether battery saving mode is in;Frequency of use acquisition module 420 obtains the frequency of use of user when terminal is in battery saving mode; Mode control module 430 exits battery saving mode when frequency of use is matched with predeterminated frequency.It is electric when connecting compared in correlation technique Source time-varying exits battery saving mode and exits battery saving mode when electricity is close to full electricity and compares, and the present embodiment can be according to user's The adjustment of actual use frequency agile is exited the time of 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 501, the first central processing unit (Central Processing Unit, CPU) 502 (also known as first processor, hereinafter referred to as CPU), it is stored on first memory 501 and can be run on first processor 502 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 CPU502 and above-mentioned first memory 501 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 501, for storing executable program code; Above-mentioned CPU502 is run and above-mentioned executable journey by reading the executable program code stored in above-mentioned first memory 501 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, the frequency of use of user is obtained;
If frequency of use is matched with predeterminated frequency, battery saving mode is exited.
Above-mentioned terminal also includes:Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, voicefrequency circuit 506th, loudspeaker 511, power management chip 508, input/output (I/O) subsystem 509, touch-screen 512, other input/controls Equipment 510 and outside port 504, these parts are communicated by one or more communication bus or signal wire 507.
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 500 is only an example of terminal, and terminal 500 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 501, above-mentioned first memory 501 can be accessed by CPU502, Peripheral Interface 503 etc., and above-mentioned One memory 501 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 CPU502 and the by Peripheral Interface 503, above-mentioned Peripheral Interface 503 One memory 501.
I/O subsystems 509, above-mentioned I/O subsystems 509 can be by the input/output peripheral in equipment, such as touch-screen 512 With other input/control devicess 510, Peripheral Interface 503 is connected to.I/O subsystems 509 can include the He of display controller 5091 One or more input controllers 5092 for controlling other input/control devicess 510.Wherein, one or more input controls Device 5092 processed receives electric signal from other input/control devicess 510 or sends electric signal to other input/control devicess 510, Other input/control devicess 510 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 5092 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 510 can also include camera, fingerprint Sensor and gyroscope etc..
Wherein, according to touch-screen operation principle and transmission information medium classification, touch-screen 512 can for resistance-type, Capacitor induction type, infrared-type or surface acoustic wave type.Classify according to mounting means, touch-screen 512 can be:It is external hanging type, built-in Formula or monoblock type.Classify according to technical principle, touch-screen 512 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 512, above-mentioned touch-screen 512 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 512 is by user The electric signal (electric signal of such as contact surface) triggered on touch screen curtain, is sent to first processor 502.
Display controller 5091 in I/O subsystems 509 receives electric signal from touch-screen 512 or sent out to touch-screen 512 Electric signals.The contact detected is converted to and shown by the contact on the detection touch-screen of touch-screen 512, display controller 5091 The interaction of user interface object on touch-screen 512, that is, realize man-machine interaction, is shown in the user interface on touch-screen 512 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 505, 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 506, is mainly used in receiving voice data from Peripheral Interface 503, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 511.
Loudspeaker 511, for the voice signal for receiving intelligent sound box from wireless network by RF circuits 505, is reduced to Sound simultaneously plays the sound to user.
Power management chip 508, the hardware for being connected by CPU502, I/O subsystem and Peripheral Interface is powered And power management.
In the present embodiment, central first processor 502 is used for:
Detect whether terminal is in battery saving mode during charging;
If terminal is in battery saving mode, the frequency of use of user is obtained;
If frequency of use is matched with predeterminated frequency, battery saving mode is exited.
Further, before in charging, whether detection terminal is in battery saving mode, in addition to:
When terminal is connected to charging equipment, current charge mode is obtained, charge mode is the first charge mode or second Charge mode or the 3rd charge mode, the charging current of the first charge mode are more than the charging current of the second charge mode, second The charging current of 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, if matched in frequency of use with predeterminated frequency, exit before battery saving mode, in addition to:
Current date property is determined according to current time, date property includes working day or festivals or holidays;
Obtain the corresponding predeterminated frequency of date property.
Further, the frequency of use of user is obtained, including:
Whether the application for judging front stage operation is default application, and the power consumption for presetting application exceedes default power consumption;
If the application of front stage operation is default application, user's incoming frequency per minute in foreground application is obtained, Incoming frequency is defined as frequency of use.
Further, if matched in frequency of use with predeterminated frequency, exit before battery saving mode, in addition to:
Obtain frequency of use of the active user at least two charge periods;
Frequency of use at least two charge periods determines average frequency of use;
Accordingly, if frequency of use is matched with predeterminated frequency, battery saving mode is exited, including:
If frequency of use is matched with average frequency of use, battery saving mode is exited.
Further, frequency of use of the active user at least two charge periods is obtained, including:
The corresponding frequency of use of the charging interval of identical first section in obtaining at least two days, the first charging interval section, which is included, to be worked as Preceding temporal information;Or,
The corresponding frequency of use of multiple second charging intervals section in obtaining one day.
Further, if frequency of use is matched with predeterminated frequency, battery saving mode is exited, including:
If frequency of use is less than predeterminated frequency, 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, the frequency of use of user is obtained;
If frequency of use is matched with predeterminated frequency, battery saving mode is exited.
Further, before in charging, whether detection terminal is in battery saving mode, in addition to:
When terminal is connected to charging equipment, current charge mode is obtained, charge mode is the first charge mode or second Charge mode or the 3rd charge mode, the charging current of the first charge mode are more than the charging current of the second charge mode, second The charging current of 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, if matched in frequency of use with predeterminated frequency, exit before battery saving mode, in addition to:
Current date property is determined according to current time, date property includes working day or festivals or holidays;
Obtain the corresponding predeterminated frequency of date property.
Further, the frequency of use of user is obtained, including:
Whether the application for judging front stage operation is default application, and the power consumption for presetting application exceedes default power consumption;
If the application of front stage operation is default application, user's incoming frequency per minute in foreground application is obtained, Incoming frequency is defined as frequency of use.
Further, if matched in frequency of use with predeterminated frequency, exit before battery saving mode, in addition to:
Obtain frequency of use of the active user at least two charge periods;
Frequency of use at least two charge periods determines average frequency of use;
Accordingly, if frequency of use is matched with predeterminated frequency, battery saving mode is exited, including:
If frequency of use is matched with average frequency of use, battery saving mode is exited.
Further, frequency of use of the active user at least two charge periods is obtained, including:
The corresponding frequency of use of the charging interval of identical first section in obtaining at least two days, the first charging interval section, which is included, to be worked as Preceding temporal information;Or,
The corresponding frequency of use of multiple second charging intervals section in obtaining one day.
Further, if frequency of use is matched with predeterminated frequency, battery saving mode is exited, including:
If frequency of use is less than predeterminated frequency, 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, the frequency of use of user is obtained;
If the frequency of use is matched with predeterminated frequency, 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 if in the frequency of use and predeterminated frequency Matching, then exit before the battery saving mode, in addition to:
Current date property is determined according to current time, the date property includes working day or festivals or holidays;
Obtain the corresponding predeterminated frequency of the date property.
4. mode selecting method according to claim 1, it is characterised in that the frequency of use of the acquisition user, including:
Whether the application for judging front stage operation is default application, and the power consumption of the default application exceedes default power consumption;
If the application of front stage operation is default application, user's incoming frequency per minute in the foreground application is obtained, The incoming frequency is defined as frequency of use.
5. mode selecting method according to claim 1, it is characterised in that if in the frequency of use and predeterminated frequency Matching, then exit before the battery saving mode, in addition to:
Obtain frequency of use of the active user at least two charge periods;
Frequency of use at least two charge period determines average frequency of use;
Accordingly, if the frequency of use is matched with predeterminated frequency, the battery saving mode is exited, including:
If the frequency of use is matched with the average frequency of use, the battery saving mode is exited.
6. mode selecting method according to claim 5, it is characterised in that the acquisition active user fills at least two Frequency of use in the electric period, including:
The corresponding frequency of use of the charging interval of identical first section in obtaining at least two days, the first charging interval section, which is included, to be worked as Preceding temporal information;Or,
The corresponding frequency of use of multiple second charging intervals section in obtaining one day.
7. mode selecting method according to claim 1, it is characterised in that if the frequency of use and default frequency Rate is matched, then exits the battery saving mode, including:
If the frequency of use is less than predeterminated frequency, the battery saving mode is exited.
8. a kind of mode selector, it is characterised in that including:
Charge mode detection module, detects whether terminal is in battery saving mode during charging;
Frequency of use acquisition module, if detecting that terminal is in battery saving mode for the charge mode detection module, is obtained Take the frequency of use at family;
Mode control module, if the frequency of use and predeterminated frequency that are obtained for the frequency of use acquisition module Match somebody with somebody, 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.
CN201710633601.XA 2017-07-28 2017-07-28 Mode selection method, device, terminal and computer readable storage medium Active CN107291213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710633601.XA CN107291213B (en) 2017-07-28 2017-07-28 Mode selection method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710633601.XA CN107291213B (en) 2017-07-28 2017-07-28 Mode selection method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107291213A true CN107291213A (en) 2017-10-24
CN107291213B CN107291213B (en) 2020-06-26

Family

ID=60102568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710633601.XA Active CN107291213B (en) 2017-07-28 2017-07-28 Mode selection method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107291213B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647048A (en) * 2018-05-17 2018-10-12 Oppo(重庆)智能科技有限公司 Doze mode regulating methods, device, mobile terminal and storage medium
CN110427092A (en) * 2019-08-02 2019-11-08 Oppo(重庆)智能科技有限公司 Battery switching method, device, terminal and computer readable storage medium
CN112198955A (en) * 2020-10-23 2021-01-08 Tcl通讯(宁波)有限公司 Power saving processing method and device, storage medium and mobile terminal

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102557A (en) * 2006-07-07 2008-01-09 乐金电子(昆山)电脑有限公司 Power saving deice and its method for wireless LAN of portable information terminal
CN102156531A (en) * 2010-01-04 2011-08-17 Nec爱克赛斯科技株式会社 Device and method for managing power saving functions
CN102811289A (en) * 2012-08-15 2012-12-05 东莞宇龙通信科技有限公司 Terminal and power management method of same
CN103491262A (en) * 2013-09-24 2014-01-01 广州市久邦数码科技有限公司 Intelligent power saving mode switching system of mobile terminal
CN104113099A (en) * 2013-04-19 2014-10-22 三星电子株式会社 An electronic apparatus and a method of controlling charge
CN105244942A (en) * 2015-09-30 2016-01-13 深圳天珑无线科技有限公司 Charging current control method and mobile terminal
CN105573461A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Intelligent power-saving method and device and terminal
CN106067571A (en) * 2016-07-22 2016-11-02 北京小米移动软件有限公司 Method and electronic equipment for battery charging
CN106208212A (en) * 2016-08-05 2016-12-07 北京小米移动软件有限公司 Terminal unit charge control method, device and terminal unit
CN106329644A (en) * 2016-09-13 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Fast charging method and fast charging system
CN106410896A (en) * 2016-10-08 2017-02-15 惠州Tcl移动通信有限公司 Method and system for entering power-saving mode during charging of mobile terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102557A (en) * 2006-07-07 2008-01-09 乐金电子(昆山)电脑有限公司 Power saving deice and its method for wireless LAN of portable information terminal
CN102156531A (en) * 2010-01-04 2011-08-17 Nec爱克赛斯科技株式会社 Device and method for managing power saving functions
CN102811289A (en) * 2012-08-15 2012-12-05 东莞宇龙通信科技有限公司 Terminal and power management method of same
CN102811289B (en) * 2012-08-15 2014-12-10 东莞宇龙通信科技有限公司 Terminal and power management method of same
CN104113099A (en) * 2013-04-19 2014-10-22 三星电子株式会社 An electronic apparatus and a method of controlling charge
CN103491262A (en) * 2013-09-24 2014-01-01 广州市久邦数码科技有限公司 Intelligent power saving mode switching system of mobile terminal
CN105573461A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Intelligent power-saving method and device and terminal
CN105244942A (en) * 2015-09-30 2016-01-13 深圳天珑无线科技有限公司 Charging current control method and mobile terminal
CN106067571A (en) * 2016-07-22 2016-11-02 北京小米移动软件有限公司 Method and electronic equipment for battery charging
CN106208212A (en) * 2016-08-05 2016-12-07 北京小米移动软件有限公司 Terminal unit charge control method, device and terminal unit
CN106329644A (en) * 2016-09-13 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Fast charging method and fast charging system
CN106410896A (en) * 2016-10-08 2017-02-15 惠州Tcl移动通信有限公司 Method and system for entering power-saving mode during charging of mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647048A (en) * 2018-05-17 2018-10-12 Oppo(重庆)智能科技有限公司 Doze mode regulating methods, device, mobile terminal and storage medium
CN110427092A (en) * 2019-08-02 2019-11-08 Oppo(重庆)智能科技有限公司 Battery switching method, device, terminal and computer readable storage medium
CN112198955A (en) * 2020-10-23 2021-01-08 Tcl通讯(宁波)有限公司 Power saving processing method and device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN107291213B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN107463403B (en) Process control method, device, storage medium and electronic equipment
CN107944259A (en) Using the management-control method of startup, device and storage medium and mobile terminal
CN106708263A (en) Method and device for preventing mistaken touch of touch screens and mobile terminal
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN107484231A (en) Screen parameter method of adjustment, device, terminal and computer-readable recording medium
CN104899029A (en) Screen control method and apparatus
CN103294158A (en) Information processing method and electronic equipment
CN107291213A (en) Mode selecting method, device, terminal and computer-readable recording medium
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
CN107402625A (en) Touch screen scanning method, device, terminal and computer-readable recording medium
CN107402808B (en) Process management method, device, storage medium and electronic equipment
CN106790978A (en) The control method of mobile terminal screen state, device and mobile terminal
CN106708520A (en) Touch screen control method and device of mobile terminal and mobile terminal
CN108920070A (en) Split screen method, apparatus, storage medium and mobile terminal based on special-shaped display screen
CN107402675A (en) A kind of response method of touch operation, device, storage medium and terminal
CN107920162A (en) Control method, mobile terminal and the computer-readable recording medium of alarm clock
CN107404753A (en) Volume adjusting method, device, terminal and storage medium
CN107479744A (en) Adjust method, apparatus, terminal and the storage medium of touch-screen dispatching priority
CN107526569A (en) A kind of volume adjusting method, device, storage medium and mobile terminal
CN107766546A (en) Using recommendation method, apparatus, storage medium and terminal device
CN107908953A (en) Notifications service control method, device, terminal device and storage medium
CN107508979A (en) volume adjusting method, device, terminal and storage medium
CN109656719A (en) Algorithm process method, apparatus, storage medium and terminal device
CN111984337A (en) Operation mode collection method, terminal device, massage device and storage medium
CN108196664A (en) screen display 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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant