CN107291213B - Mode selection method, device, terminal and computer readable storage medium - Google Patents

Mode selection method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN107291213B
CN107291213B CN201710633601.XA CN201710633601A CN107291213B CN 107291213 B CN107291213 B CN 107291213B CN 201710633601 A CN201710633601 A CN 201710633601A CN 107291213 B CN107291213 B CN 107291213B
Authority
CN
China
Prior art keywords
frequency
charging
mode
power saving
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710633601.XA
Other languages
Chinese (zh)
Other versions
CN107291213A (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

Images

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 mode selection method, a mode selection device, a terminal and a computer readable storage medium. The method comprises the following steps: detecting whether the terminal is in a power saving mode or not during charging; if the terminal is in a power saving mode, acquiring the use frequency of a user; and if the using frequency is matched with a preset frequency, exiting the power saving mode. The mode selection method provided by the embodiment of the invention can detect whether the terminal is in a power saving mode or not during charging; if the terminal is in a power saving mode, acquiring the use frequency of a user; if the use frequency is matched with the preset frequency, the power saving mode is exited, and the utilization rate of the equipment is improved.

Description

Mode selection method, device, terminal and computer readable storage medium
Technical Field
Embodiments of the present invention relate to a touch screen technology, and in particular, to a mode selection method, an apparatus, a terminal, and a computer-readable storage medium.
Background
With the development of intelligent terminals, mobile terminals such as smart phones and tablet computers are popularized. When the remaining electric quantity of the intelligent terminal is low, the terminal can start a power saving mode, and the endurance time of the terminal is further improved. In the related art, the power saving mode is usually cancelled when the mobile phone is nearly fully charged, but the performance of the terminal is sacrificed, and the utilization rate of the device is low.
Disclosure of Invention
The invention provides a mode selection method, a mode selection device, a terminal and a computer readable storage medium, which can improve the utilization rate of equipment.
In a first aspect, an embodiment of the present invention provides a mode selection method, including:
detecting whether the terminal is in a power saving mode or not during charging;
if the terminal is in a power saving mode, acquiring the use frequency of a user;
and if the using frequency is matched with a preset frequency, exiting the power saving mode.
In a second aspect, an embodiment of the present invention further provides a mode selection apparatus, including:
the charging mode detection module is used for detecting whether the terminal is in a power-saving mode or not during charging;
the charging mode detection module is used for detecting whether the terminal is in a power saving mode or not;
and the mode control module is used for exiting the power saving mode if the using frequency acquired by the using frequency acquiring module is matched with a preset frequency.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the mode selection method as shown in the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the mode selection method as shown in the first aspect.
The mode selection method provided by the embodiment of the invention can detect whether the terminal is in a power saving mode or not during charging; if the terminal is in a power saving mode, acquiring the use frequency of a user; if the use frequency is matched with the preset frequency, the power saving mode is exited, and the utilization rate of the equipment is improved.
Drawings
FIG. 1 is a flow chart of a mode selection method in an embodiment of the invention;
FIG. 2 is a flow chart of another mode selection method in an embodiment of the present invention;
FIG. 3 is a flow chart of another mode selection method in an embodiment of the present invention;
FIG. 4 is a flow chart of another mode selection method in an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a mode selection apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another mode selection device in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
At present, when the residual electric quantity of the intelligent terminal is low, the terminal can start a power saving mode, and the endurance time of the terminal is further improved. In the related art, the power saving mode is usually cancelled when the mobile phone is almost fully charged, but since the power saving mode is exited only when the mobile phone is nearly fully charged (e.g., 80% full), the terminal function is continuously affected until the mobile phone is nearly fully charged. Further, there is a related art power saving mode which is a DOZE mode, but the mode exits once the power is turned on. However, in practical use, if the remaining power of the terminal is low (for example, 5%), if USB charging is adopted, the charging rate of the terminal may be slow due to the charging power and the power consumption power being not much different when the user charges while using the terminal. In order to solve the above problem, an embodiment of the present invention provides a mode selection method, which can determine whether to postpone a power saving mode according to a use frequency of a user when a USB is charged or in other charging modes, so as to exit the power saving mode as early as possible and improve a utilization rate of a device.
Fig. 1 is a flowchart of a mode selection method according to an embodiment of the present invention, where the method is applied to a terminal with a touch screen, such as a smart phone, a tablet computer, a notebook computer, and the like. The method is suitable for the situation that the terminal is charged, and specifically comprises the following steps:
and step 110, detecting whether the terminal is in a power saving mode during charging.
The power saving mode is a working mode for reducing power consumption of the terminal, and the working mode can reduce background data receiving and sending, reduce screen brightness and the like. For example, when the terminal power is less than the preset power, the DOZE mode is enabled regardless of whether the terminal is connected to the power source. The Doze mode is a new mode on android6.0, which can only allow some tasks to run in the background, and all others are forced to stop. The Doze mode reduces power consumption by suspending CPU and network activity in the application background.
After the terminal is connected with the power supply through the connecting line, the terminal can acquire the type of the currently connected power supply. The power types include fast charge, general charge, and USB charge. The quick charging is realized quickly by improving the charging current, the quick charging corresponds to the first charging mode, and the quick charging current is larger than 1A. The common charging is connected to a 220V power supply through a power adapter, the power adapter provides a charging current of 1A for the terminal, and the common charging corresponds to a second charging mode. The USB charging can connect the terminal with the USB interfaces of the personal computer, the notebook computer and the mobile power supply, and further the charging is carried out through the USB interfaces of the equipment. The USB charging corresponds to a third charging mode. The charging current of the USB charging is smaller than the charging current of the ordinary charging, and the charging current of the ordinary charging is smaller than the quick charging current.
Generally, if a user connects the terminal to a power adapter for normal charging or fast charging, the terminal can be charged quickly without worrying about the problem that the terminal consumes too much power during charging, resulting in too slow a charging rate. However, when charging is performed by using the USB interface, the voltages on the USB interfaces of different electronic devices are different, so that the corresponding charging currents are different, and at this time, if the user uses the terminal, the power consumption may be too high, which may result in a too slow charging rate. Based on this, as shown in fig. 2, before detecting whether the terminal is in the power saving mode at step 110, the method includes:
step 101, when the terminal is connected to the charging device, acquiring a current charging mode.
The charging mode is a first charging mode, a second charging mode or a third charging mode, the charging current of the first charging mode is larger than that of the second charging mode, and the charging current of the second charging mode is larger than that of the third charging mode.
The first charging mode and the second charging mode can be charged through the power adapter, and the third charging mode requires a USB interface to be connected with a non-power adapter. In the android system, can pass through
In one implementation, the current charging mode may be determined by a battery manager. If the current charging mode is the first charging mode or the second charging mode, and if the current charging mode is not the battermanager battery _ plug _ AC, the current charging mode is determined to be the third charging mode.
And 102, if the current charging mode is the third charging mode, judging whether the current residual electric quantity is smaller than the preset electric quantity.
The current remaining capacity of the BATTERY may be obtained through an action, operation, BATTERY, and CHANGED parameter, after the current remaining capacity is obtained, it is determined whether the current remaining capacity is smaller than a preset capacity, and the preset capacity may be preset by a programmer or a user, for example, the preset capacity is 5% to 20% of the total capacity, and preferably 10% of the total capacity.
And 103, entering a power saving mode if the current residual electric quantity is less than the preset electric quantity.
If the current residual electric quantity is smaller than the preset electric quantity, the current residual electric quantity is lower, and in order to ensure that the terminal can be started to operate, the terminal starts a power saving mode. The power saving mode may be a power saving policy corresponding to the DOZE mode.
And step 104, if the current residual electric quantity is greater than or equal to the preset electric quantity, maintaining the current running state.
If the current residual capacity is greater than or equal to the preset capacity, the current residual capacity is higher, the operation of the terminal can be maintained within a certain time, and the terminal can maintain the current operation state.
This embodiment is through discerning the mode of charging, and USB power is still power adapter power when can confirming the power of current connection, and then more accurate start power saving mode, improve equipment utilization ratio.
And step 120, if the terminal is in the power saving mode, acquiring the use frequency of the user.
The usage frequency of the user may be the number of operations input by the user or the number of touch points input by the user.
Optionally, whether the application running in the foreground is a preset application is judged. Wherein the power consumption of the preset application exceeds the preset power consumption. And if the application running in the foreground is the preset application, acquiring the input frequency of the user in the foreground application every minute, and determining the input frequency as the use frequency.
Alternatively, the application may be set such that the screen is always on during its run. Such as a video playback application, a video chat application, etc. At this time, when the user has no touch operation input, the screen is still lit. If the user continues to input the touch operation, the input frequency of the user input operation is acquired as the use frequency. For example, the user adjusts the progress bar multiple times in the video playing application, or the user switches the front camera and the rear camera multiple times in the video chatting application. The frequency of use of the user input may be 5 times per minute or 10 times per minute.
Optionally, the application may start the background operation processing after receiving the operation input by the user, for example, when the user runs a game application, after the user executes an operation, the game application not only needs to perform the corresponding operation, but also displays an operation result of the operation in a screen after the operation, and simultaneously needs to send the synchronization data to the network side server, so that the background power consumption is high. At this time, if the user inputs a plurality of input operations, the corresponding operations executed in the background are more, and at this time, the power saving mode cannot be entered. At this time, the number of touch points input in the screen by the user is used as an input frequency.
If the terminal is not in the power saving mode, the power is sufficient, and the operation can be finished. Or returns to perform step 110.
And step 130, if the using frequency is matched with the preset frequency, exiting the power saving mode.
For the application with higher power consumption running in the foreground, the power consumption can take effect only when the input frequency of the user is reduced, so that the power-saving mode is exited after the use frequency of the user is detected and if the use frequency is less than the preset frequency. Otherwise, if the using frequency is greater than or equal to the preset frequency, the power saving mode is kept. The preset frequency may be set by a user or programmer or may be determined by machine learning. The machine learning algorithm may be a neural network or the like.
In step 140, if the usage frequency does not match the preset frequency, the power saving mode is continuously executed.
And if the using frequency is greater than the preset frequency, continuously executing the power saving mode.
The mode selection method provided by the embodiment of the invention can detect whether the terminal is in a power saving mode or not during charging; if the terminal is in a power saving mode, acquiring the use frequency of a user; and if the using frequency is matched with the preset frequency, exiting the power saving mode. Compared with the prior art that the power saving mode is changed to be exited when the power is switched on and the power saving mode is exited when the electric quantity is close to full power, the method and the device can flexibly adjust the time for exiting the power saving mode according to the actual use frequency of a user, and improve the utilization rate of the device.
In implementing the above-described embodiments, it is found that the use of the terminal by the user has habituation, that is, the frequency of use of the terminal by the user on weekdays and holidays is different. Therefore, the corresponding preset frequency can be determined according to the current date attribute (working day or holiday), and the accuracy of exiting the power saving mode is improved.
Fig. 3 is a flowchart of another mode selection method provided in an embodiment of the present invention, which is used to further describe the above embodiment, and includes:
step 210, detecting whether the terminal is in a power saving mode during charging.
Step 220, if the terminal is in the power saving mode, acquiring the use frequency of the user.
Step 230, determining a current date attribute according to the current time, wherein the date attribute comprises a working day or a holiday.
The current date information is obtained by the calendar application and the current date attribute is determined from the date information.
For example, the current date information acquired by the calendar application is wednesday. And judging whether the wednesday is a working day or not. If so, the day is a working day, otherwise, if not, the day is a holiday.
And step 240, acquiring a preset frequency corresponding to the date attribute.
Respectively presetting a preset frequency corresponding to a working day and a preset frequency corresponding to a holiday, and storing the set data. When the current date attribute is determined in step 230, a pre-stored preset frequency corresponding to the current date attribute is read. The preset frequency corresponding to the working day is lower than the preset frequency corresponding to the holiday borrowing day.
And step 250, if the using frequency is matched with the preset frequency, exiting the power saving mode.
And step 260, if the using frequency is not matched with the preset frequency, continuously executing the power saving mode.
The technical scheme that this embodiment provided can set up different preset frequency according to the different operation habits of weekday and holiday user, and then more accurately release power saving mode, further improve equipment utilization.
In one usage scenario, as shown in fig. 4, the determination of the preset usage frequency can be calculated not only by working day or holiday, but also by an average value, and the specific scheme is as follows:
step 310, detecting whether the terminal is in a power saving mode during charging.
And 320, if the terminal is in the power saving mode, acquiring the use frequency of the user.
And step 330, acquiring the use frequency of the current user in at least two charging periods.
The terminal can set different preset frequencies for different users because different users use different applications and different users have different operation contents for the same application. The different users can be identified by the current account logged in or according to the binding fingerprint input by the user.
The preset frequencies corresponding to different users can be implemented in any one of the following manners:
optionally, the use frequency corresponding to the same first charging time period in at least two days is obtained, where the first charging time period includes current time information.
And acquiring the use frequency corresponding to the same charging time period for at least two consecutive days. Or obtaining the use frequency corresponding to the same application in the same charging time period of at least two discontinuous days, wherein the same application is the current foreground application.
Optionally, the usage frequency corresponding to a plurality of second charging periods in a day is obtained.
The frequency of use in a plurality of second charging periods during one day from morning (e.g., 8:00) to evening (22:00) is obtained.
Step 340, determining an average usage frequency according to the usage frequencies in the at least two charging periods.
And calculating the average value of the obtained multiple use frequencies as a preset use frequency.
Step 350, if the usage frequency matches the average usage frequency, then the power saving mode is exited.
According to the embodiment, the use frequency of the user can be acquired in a plurality of charging time periods with commonality, the preset adaptive frequency suitable for the current user is determined according to the acquired historical use frequency, the accuracy of exiting the power saving mode is further improved, and the equipment utilization rate is improved.
Fig. 5 is a schematic structural diagram of a mode selection apparatus according to an embodiment of the present invention, where the apparatus is configured to implement the method according to the embodiment, and the apparatus is located in a mobile terminal, and includes:
a charging mode detection module 410, which detects whether the terminal is in a power saving mode during charging;
a usage frequency obtaining module 420, configured to obtain a usage frequency of a user if the charging mode detecting module 410 detects that the terminal is in the power saving mode;
a mode control module 430, configured to exit the power saving mode if the usage frequency acquired by the usage frequency acquiring module 420 matches a preset frequency.
Further, as shown in fig. 6, a charging mode obtaining module 440 is further included.
The charging mode obtaining module 440 is configured to: when the terminal is connected to the charging equipment, acquiring a current charging mode, wherein the charging mode is a first charging mode, a second charging mode or a third charging mode, the charging current of the first charging mode is larger than that of the second charging mode, and the charging current of the second charging mode is larger than that of the third charging mode;
the mode control module 430 is further configured to, if the current charging mode is the third charging mode, determine whether the current remaining power is less than a preset power; and if the current residual electric quantity is less than the preset electric quantity, entering a power saving mode.
Further, a preset frequency determining module 450 is included.
The preset frequency determination module 450 is configured to: determining a current date attribute according to the current time, wherein the date attribute comprises a working day or a holiday; and acquiring a preset frequency corresponding to the date attribute.
Further, the usage frequency obtaining module 420 is configured to:
judging whether the application running in the foreground is a preset application or not, wherein the power consumption of the preset application exceeds the preset power consumption;
and if the application running in the foreground is the preset application, acquiring the input frequency of the user in the foreground application every minute, and determining the input frequency as the use frequency.
Further, the preset frequency determining module 450 is further configured to:
acquiring the use frequency of a current user in at least two charging periods;
determining an average usage frequency from the usage frequencies in the at least two charging periods;
accordingly, the mode control module 430 is configured to exit the power saving mode if the usage frequency matches the average usage frequency.
Further, the preset frequency determining module 450 is configured to: acquiring the use frequency corresponding to the same first charging time period in at least two days, wherein the first charging time period comprises current time information; or acquiring the use frequency corresponding to a plurality of second charging time periods in a day.
Further, the mode control module 430 is configured to exit the power saving mode if the usage frequency is less than the preset frequency.
In the mode selection apparatus provided in the embodiment of the present invention, the charging mode detection module 410 can detect whether the terminal is in the power saving mode during charging; the usage frequency obtaining module 420 obtains the usage frequency of the user when the terminal is in the power saving mode; the mode control module 430 exits the power saving mode when the usage frequency matches the preset frequency. Compared with the prior art that the power saving mode is changed to be exited when the power is switched on and the power saving mode is exited when the electric quantity is close to full power, the method and the device can flexibly adjust the time for exiting the power saving mode according to the actual use frequency of a user, and improve the utilization rate of the device.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 7, the terminal may include: a housing (not shown), a first memory 501, a first Central Processing Unit (CPU) 502 (also called a first processor, hereinafter referred to as CPU), a computer program stored in the first memory 501 and operable on the first processor 502, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the first memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the first memory 501 is used for storing executable program codes; the CPU502 reads the executable program code stored in the first memory 501 to run a program corresponding to the executable program code, so as to perform:
detecting whether the terminal is in a power saving mode or not during charging;
if the terminal is in a power saving mode, acquiring the use frequency of a user;
and if the using frequency is matched with the preset frequency, exiting the power saving mode.
The above terminal further includes: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
In addition, the terminal also comprises a camera and an RGB light sensor. The RGB light sensor is located beside the camera and can be arranged adjacent to the camera. The camera can be a front camera or a rear camera. The RGB light sensor may also be arranged separately from the camera, for example on a narrow side of the terminal.
It should be understood that the illustrated terminal 500 is only one example of a terminal, and that the terminal 500 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal for implementing doorbell control according to this embodiment, where the terminal is a smart phone as an example.
A first memory 501, said first memory 501 being accessible by the CPU502, the peripheral interface 503, etc., said first memory 501 may comprise a high speed random access first memory, and may further comprise a non-volatile first memory, such as one or more magnetic disk first storage devices, flash memory devices, or other volatile solid state first storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the first memory 501.
An I/O subsystem 509, the I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse. In addition, other input/control devices 510 may include cameras, fingerprint sensors, gyroscopes, etc.
The touch screen 512 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. The touch screen 512 may be classified according to installation methods: external hanging, internal or integral. Classified according to technical principles, the touch screen 512 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 512 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the first processor 502.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
And the loudspeaker 511 is used for restoring the voice signal received by the smart sound box from the wireless network through the RF circuit 505 into sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
In this embodiment, the central first processor 502 is configured to:
detecting whether the terminal is in a power saving mode or not during charging;
if the terminal is in a power saving mode, acquiring the use frequency of a user;
and if the using frequency is matched with the preset frequency, exiting the power saving mode.
Further, before detecting whether the terminal is in the power saving mode during charging, the method further includes:
when the terminal is connected to the charging equipment, acquiring a current charging mode, wherein the charging mode is a first charging mode, a second charging mode or a third charging mode, the charging current of the first charging mode is larger than that of the second charging mode, and the charging current of the second charging mode is larger than that of the third charging mode;
if the current charging mode is the third charging mode, judging whether the current residual electric quantity is smaller than the preset electric quantity;
and if the current residual electric quantity is less than the preset electric quantity, entering a power saving mode.
Further, before exiting the power saving mode if the usage frequency matches the preset frequency, the method further includes:
determining a current date attribute according to the current time, wherein the date attribute comprises a working day or a holiday;
and acquiring a preset frequency corresponding to the date attribute.
Further, acquiring the use frequency of the user includes:
judging whether the application running in the foreground is a preset application or not, wherein the power consumption of the preset application exceeds the preset power consumption;
and if the application running in the foreground is the preset application, acquiring the input frequency of the user in the foreground application every minute, and determining the input frequency as the use frequency.
Further, before exiting the power saving mode if the usage frequency matches the preset frequency, the method further includes:
acquiring the use frequency of a current user in at least two charging periods;
determining an average usage frequency from the usage frequencies in the at least two charging periods;
correspondingly, if the using frequency is matched with the preset frequency, the power saving mode is exited, and the method comprises the following steps:
if the usage frequency matches the average usage frequency, then the power saving mode is exited.
Further, acquiring the use frequency of the current user in at least two charging periods includes:
acquiring the use frequency corresponding to the same first charging time period in at least two days, wherein the first charging time period comprises current time information; alternatively, the first and second electrodes may be,
and acquiring the use frequency corresponding to a plurality of second charging time periods in one day.
Further, if the usage frequency matches the preset frequency, exiting the power saving mode includes:
and if the using frequency is less than the preset frequency, exiting the power saving mode.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the following steps:
detecting whether the terminal is in a power saving mode or not during charging;
if the terminal is in a power saving mode, acquiring the use frequency of a user;
and if the using frequency is matched with the preset frequency, exiting the power saving mode.
Further, before detecting whether the terminal is in the power saving mode during charging, the method further includes:
when the terminal is connected to the charging equipment, acquiring a current charging mode, wherein the charging mode is a first charging mode, a second charging mode or a third charging mode, the charging current of the first charging mode is larger than that of the second charging mode, and the charging current of the second charging mode is larger than that of the third charging mode;
if the current charging mode is the third charging mode, judging whether the current residual electric quantity is smaller than the preset electric quantity;
and if the current residual electric quantity is less than the preset electric quantity, entering a power saving mode.
Further, before exiting the power saving mode if the usage frequency matches the preset frequency, the method further includes:
determining a current date attribute according to the current time, wherein the date attribute comprises a working day or a holiday;
and acquiring a preset frequency corresponding to the date attribute.
Further, acquiring the use frequency of the user includes:
judging whether the application running in the foreground is a preset application or not, wherein the power consumption of the preset application exceeds the preset power consumption;
and if the application running in the foreground is the preset application, acquiring the input frequency of the user in the foreground application every minute, and determining the input frequency as the use frequency.
Further, before exiting the power saving mode if the usage frequency matches the preset frequency, the method further includes:
acquiring the use frequency of a current user in at least two charging periods;
determining an average usage frequency from the usage frequencies in the at least two charging periods;
correspondingly, if the using frequency is matched with the preset frequency, the power saving mode is exited, and the method comprises the following steps:
if the usage frequency matches the average usage frequency, then the power saving mode is exited.
Further, acquiring the use frequency of the current user in at least two charging periods includes:
acquiring the use frequency corresponding to the same first charging time period in at least two days, wherein the first charging time period comprises current time information; alternatively, the first and second electrodes may be,
and acquiring the use frequency corresponding to a plurality of second charging time periods in one day.
Further, if the usage frequency matches the preset frequency, exiting the power saving mode includes:
and if the using frequency is less than the preset frequency, exiting the power saving mode.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A mode selection method, comprising:
detecting whether the terminal is in a power saving mode or not during charging;
if the terminal is in a power saving mode, acquiring the use frequency of a user;
if the using frequency is less than the preset frequency, exiting the power saving mode;
if the using frequency is greater than or equal to a preset frequency, keeping a power saving mode;
the acquiring the use frequency of the user comprises the following steps:
judging whether an application running in a foreground is a preset application or not, wherein the power consumption of the preset application exceeds the preset power consumption;
if the foreground running application is a preset application, acquiring the input frequency of a user in the foreground running application every minute, and determining the input frequency as the use frequency.
2. The method of claim 1, wherein before detecting whether the terminal is in the power saving mode during charging, the method further comprises:
when the terminal is connected to a charging device, acquiring a current charging mode, wherein the charging mode is a first charging mode, a second charging mode or a third charging mode, the charging current of the first charging mode is larger than the charging current of the second charging mode, and the charging current of the second charging mode is larger than the charging current of the third charging mode;
if the current charging mode is the third charging mode, judging whether the current residual electric quantity is smaller than the preset electric quantity;
and if the current residual electric quantity is less than the preset electric quantity, entering a power saving mode.
3. The method of claim 1, further comprising, before exiting the power saving mode if the frequency of use is less than a preset frequency:
determining a current date attribute according to the current time, wherein the date attribute comprises a working day or a holiday;
and acquiring a preset frequency corresponding to the date attribute.
4. The method of claim 1, further comprising, before exiting the power saving mode if the frequency of use is less than a preset frequency:
acquiring the use frequency of a current user in at least two charging periods;
determining an average usage frequency from the usage frequencies in the at least two charging periods;
correspondingly, if the usage frequency is less than a preset frequency, exiting the power saving mode includes:
exiting the power saving mode if the usage frequency matches the average usage frequency.
5. The method of claim 4, wherein the obtaining the usage frequency of the current user in at least two charging periods comprises:
acquiring the use frequency corresponding to the same first charging time period in at least two days, wherein the first charging time period comprises current time information; alternatively, the first and second electrodes may be,
and acquiring the use frequency corresponding to a plurality of second charging time periods in one day.
6. A mode selection device, comprising:
the charging mode detection module is used for detecting whether the terminal is in a power-saving mode or not during charging;
the charging mode detection module is used for detecting whether the terminal is in a power saving mode or not;
the mode control module is used for exiting the power saving mode if the using frequency is less than a preset frequency; if the using frequency is greater than or equal to a preset frequency, keeping a power saving mode;
the usage frequency acquisition module is to: judging whether an application running in a foreground is a preset application or not, wherein the power consumption of the preset application exceeds the preset power consumption;
if the foreground running application is a preset application, acquiring the input frequency of a user in the foreground running application every minute, and determining the input frequency as the use frequency.
7. A terminal, characterized in that the terminal comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the mode selection method of any one of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the mode selection method according to any one of claims 1 to 5.
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 CN107291213A (en) 2017-10-24
CN107291213B true 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)

Families Citing this family (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
CN110427092B (en) * 2019-08-02 2021-01-26 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 (5)

* 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
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
CN106410896A (en) * 2016-10-08 2017-02-15 惠州Tcl移动通信有限公司 Method and system for entering power-saving mode during charging of mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811289B (en) * 2012-08-15 2014-12-10 东莞宇龙通信科技有限公司 Terminal and power management method of same
KR20140125636A (en) * 2013-04-19 2014-10-29 삼성전자주식회사 Electronic apparatus, method for controlling charge and computer-readable recording medium
CN103491262A (en) * 2013-09-24 2014-01-01 广州市久邦数码科技有限公司 Intelligent power saving mode switching system of mobile terminal
CN106067571B (en) * 2016-07-22 2019-02-15 北京小米移动软件有限公司 For the method and electronic equipment of battery charging
CN106208212A (en) * 2016-08-05 2016-12-07 北京小米移动软件有限公司 Terminal unit charge control method, device and terminal unit
CN106329644B (en) * 2016-09-13 2019-04-12 宇龙计算机通信科技(深圳)有限公司 Fast charge method and system

Patent Citations (5)

* 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
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
CN106410896A (en) * 2016-10-08 2017-02-15 惠州Tcl移动通信有限公司 Method and system for entering power-saving mode during charging of mobile terminal

Also Published As

Publication number Publication date
CN107291213A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US10652828B2 (en) Electronic device for providing mode switching and a method thereof
CN107484231B (en) Screen parameter adjusting method, device, terminal and computer readable storage medium
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
WO2019024642A1 (en) Process control method and apparatus, storage medium, and electronic device
CN107835033B (en) Antenna tuning switch control method and device, terminal equipment and storage medium
CN106786962B (en) Charging control method and device and terminal
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
WO2018082412A1 (en) Electronic equipment control method, device and electronic equipment
CN110716631B (en) Power supply management method, device, equipment and readable storage medium
CN107402625B (en) Touch screen scanning method and device, terminal and computer readable storage medium
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
KR20150107448A (en) Task Migration Method and Apparatus
CN107861602B (en) Terminal CPU performance control method, terminal and computer readable storage medium
CN111464671B (en) Electronic equipment and charging method thereof
CN106776259B (en) Mobile terminal frame rate detection method and device and mobile terminal
WO2020134566A1 (en) Control method for doze mode of mobile terminal, storage medium and mobile terminal
CN107479744B (en) Method, device, terminal and storage medium for adjusting scheduling priority of touch screen
WO2021017823A1 (en) Charging method, electronic device and storage medium
US20190019488A1 (en) Method for Controlling Interference in Audio Service and Terminal
CN106532876B (en) Power supply control method and device and computer equipment
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
CN108287605A (en) charge control method, device, terminal device and storage medium
CN107341094B (en) Method and device for measuring time consumed by starting item
CN110708747A (en) Data transmission rate adjusting method, system, storage medium and mobile 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