CN106791089B - Method and device for prompting battery electric quantity - Google Patents

Method and device for prompting battery electric quantity Download PDF

Info

Publication number
CN106791089B
CN106791089B CN201611185739.XA CN201611185739A CN106791089B CN 106791089 B CN106791089 B CN 106791089B CN 201611185739 A CN201611185739 A CN 201611185739A CN 106791089 B CN106791089 B CN 106791089B
Authority
CN
China
Prior art keywords
electric quantity
mobile terminal
battery
current
working frequency
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
CN201611185739.XA
Other languages
Chinese (zh)
Other versions
CN106791089A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611185739.XA priority Critical patent/CN106791089B/en
Publication of CN106791089A publication Critical patent/CN106791089A/en
Application granted granted Critical
Publication of CN106791089B publication Critical patent/CN106791089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

the invention discloses a method and a device for prompting battery electric quantity, and belongs to the field of communication. The method comprises the following steps: acquiring the current residual capacity of a battery of a mobile terminal and the current capacity consumption speed of the mobile terminal; calculating the remaining time of the mobile terminal from power-off according to the current remaining power of the battery and the current power consumption speed of the mobile terminal; displaying the remaining time; and acquiring the working frequency corresponding to the preset electric quantity consumption speed according to the preset electric quantity consumption speed, and controlling the working frequency of the mobile terminal not to exceed the acquired working frequency. The device comprises: the device comprises an acquisition module, a calculation module, a display module and a control module. The invention can avoid data loss.

Description

Method and device for prompting battery electric quantity
Technical Field
the present invention relates to the field of communications, and in particular, to a method and an apparatus for prompting battery power.
Background
with the rapid development of communication and internet technologies, mobile terminals such as mobile phones and tablet computers are widely used. The mobile terminal is often powered by a battery, and when the battery of the mobile terminal is not enough, the user can be prompted to charge the battery.
At present, the way of prompting the battery power to the user by the mobile terminal is as follows: the mobile terminal detects the electric quantity of the battery in real time, when the electric quantity of the battery is detected to be lower than a preset electric quantity threshold value, prompt information is displayed, and the prompt information is used for prompting a user to charge in time.
Disclosure of Invention
In order to avoid data loss, the invention provides a method and a device for prompting battery electric quantity. The technical scheme is as follows:
in one aspect, a method for prompting battery power is provided, where the method includes:
Acquiring the current residual capacity of a battery of a mobile terminal and the current capacity consumption speed of the mobile terminal;
calculating the remaining time of the mobile terminal from power-off according to the current remaining power of the battery and the current power consumption speed of the mobile terminal;
displaying the remaining time;
And acquiring the working frequency corresponding to the preset electric quantity consumption speed according to the preset electric quantity consumption speed, and controlling the working frequency of the mobile terminal not to exceed the acquired working frequency.
Optionally, the obtaining the current remaining power of the battery of the mobile terminal and the current power consumption rate of the mobile terminal includes:
Periodically collecting the residual electric quantity of a battery of the mobile terminal;
and calculating the current electricity consumption speed of the mobile terminal according to the residual electricity of the battery acquired in each period or partial period.
optionally, the performing countdown display according to the remaining time includes:
And when the remaining time is less than or equal to a preset time threshold, displaying the remaining time.
Optionally, the method further includes:
And detecting the residual electric quantity of the battery in real time, and executing the operation of acquiring the current residual electric quantity of the battery of the mobile terminal and the current electric quantity consumption speed of the mobile terminal when the residual electric quantity of the battery is detected to be smaller than a preset electric quantity threshold value.
Optionally, said displaying said remaining time comprises
and performing countdown display at a preset position of a screen of the mobile terminal according to the remaining time.
Optionally, after displaying the remaining time, the method further includes:
And reducing the power consumption speed of the screen of the mobile terminal.
in another aspect, a device for indicating battery power is provided, the device includes:
an acquisition module configured to acquire a current remaining capacity of a battery of the apparatus and a current capacity consumption rate of the apparatus;
A calculation module configured to calculate a remaining time of the apparatus from shutdown according to a current remaining power of the battery and a current power consumption rate of the apparatus;
a display module configured to display the remaining time;
The control module is configured to acquire a working frequency corresponding to a preset electric quantity consumption speed according to the preset electric quantity consumption speed, and control the working frequency of the device not to exceed the acquired working frequency.
Optionally, the obtaining module includes:
the acquisition unit is used for periodically acquiring the residual electric quantity of the battery of the device;
And the calculating unit is used for calculating the current electric quantity consumption speed of the device according to the residual electric quantity of the battery acquired in each period or partial period.
Optionally, the display module is configured to display the remaining time when the remaining time is less than or equal to a preset time threshold.
Optionally, the apparatus further comprises:
and the detection module is used for detecting the residual electric quantity of the battery in real time, and executing the operation of acquiring the current residual electric quantity of the battery of the device and the current electric quantity consumption speed of the device when the residual electric quantity of the battery is detected to be smaller than a preset electric quantity threshold value.
Optionally, the device further comprises
And the display module is used for performing countdown display at a preset position of a screen of the device according to the remaining time.
Optionally, the apparatus further comprises:
A reduction module configured to reduce a power consumption rate of a screen of the apparatus.
the technical scheme provided by the invention has the beneficial effects that:
Calculating the remaining time of the mobile terminal from power-off; the remaining time is displayed, so that the user can know the remaining time when the mobile terminal is powered off currently, the user can reasonably arrange that the user carries out the ending work of the service at the mobile terminal, the data generated in the service execution process is timely stored, and the data loss caused by the power-off is avoided.
Drawings
Fig. 1 is a flowchart of a method for prompting battery power according to an embodiment of the present invention;
Fig. 2 is a flowchart of a method for prompting battery power according to a second embodiment of the present invention;
Fig. 3-1 is a schematic structural diagram of a device for prompting battery power according to a third embodiment of the present invention;
Fig. 3-2 is a schematic structural diagram of another battery power level indication device according to a third embodiment of the present invention;
fig. 3-3 is a schematic structural diagram of another battery power level indicator according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for prompting battery power according to a fourth embodiment of the present invention.
Detailed Description
in order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
At present, when the electric quantity of a battery of the mobile terminal is lower than a preset electric quantity threshold value, prompt information is displayed to remind a user of charging. However, in many cases, the user cannot charge the mobile terminal in time, for example, there is no charger or power supply currently available to charge the mobile terminal. And because the user does not know how long the battery can provide the electric quantity of the mobile terminal, the mobile terminal is shut down when the user uses the mobile terminal to operate the service, the service in operation is interrupted, and data generated in the operation service is lost.
Example one
referring to fig. 1, an embodiment of the present invention provides a method for prompting battery power, including:
in step 101: the current remaining capacity of a battery of the mobile terminal and the current capacity consumption rate of the mobile terminal are obtained.
In step 102: and calculating the remaining time of the mobile terminal from shutdown according to the current remaining power of the battery and the current power consumption speed of the mobile terminal.
in step 103: the remaining time is displayed.
In step 104: according to the preset electric quantity consumption speed, the working frequency corresponding to the preset electric quantity consumption speed is obtained, and the working frequency of the mobile terminal is controlled not to exceed the obtained working frequency.
In the embodiment of the invention, the remaining time of the mobile terminal from power-off is calculated; the remaining time is displayed, so that the user can know the remaining time when the mobile terminal is powered off currently, the user can reasonably arrange that the user carries out the ending work of the service at the mobile terminal, the data generated in the service execution process is timely stored, and the data loss caused by the power-off is avoided.
Example two
Referring to fig. 2, an embodiment of the present invention provides a method for prompting battery power, including:
In step 201: detecting the remaining power of the battery of the mobile terminal in real time, and executing step 202 when detecting that the remaining power of the battery is reduced to a preset power threshold.
The remaining capacity of the battery of the mobile terminal is continuously reduced during the operation. In this step, the remaining power of the battery of the mobile terminal is collected in real time, the detected remaining power is compared with a preset power threshold, and when the detected remaining power is equal to the preset power threshold, the subsequent steps are executed.
the preset power threshold is generally small, for example, the preset power threshold may be 15%, 10%, 9%, or 8%, and when the remaining power of the battery of the mobile terminal decreases to the preset power threshold, it indicates that the remaining power of the battery is small, and the mobile terminal may be automatically powered off after waiting for a period of time. In order to enable a user to complete the ending work of the currently-performed service before the mobile terminal is powered off and to timely store data generated in the service process, the remaining time of the mobile terminal from the power-off state can be displayed according to the following flow, so that the user can arrange the ending work according to the remaining time.
In step 202: the current remaining capacity of the battery and the current capacity consumption rate of the mobile terminal are periodically acquired.
The method comprises the following steps: when detecting that the residual electric quantity of the battery is smaller than a preset electric quantity threshold value, starting to collect the current residual electric quantity of the battery once every preset period length; and calculating the electric quantity consumption of the mobile terminal in the current period according to the current residual electric quantity acquired in the current period and the residual electric quantity acquired in the last period, and calculating the current electric quantity consumption speed according to the electric quantity consumption of the mobile terminal in each period or partial period.
for example, assuming that the preset charge threshold is 10%, the preset period length is 10 seconds, and the current period is the third period, i.e., the first period and the second period have elapsed before the third period. The method comprises the steps that a first period starts when the fact that the residual capacity of a battery of the mobile terminal is reduced to 10% is detected, the 10 second time after the first period is the first period, the current residual capacity of the battery is collected to be 9.7% when the first period is ended, and the 9.7% of the residual capacity collected in the first period and the 0.3% of the electric quantity consumption of the mobile terminal in the first period are obtained; the 10 second time after the first period is finished is a second period, the current residual capacity of the battery is collected by 9.2% at the end of the second period, namely the residual capacity collected in the second period is 9.2%, and the electric quantity consumption of the mobile terminal in the second period is 0.5% according to the residual capacity 9.7% of the battery collected in the first period and the residual capacity 9.2% collected in the second period; the 10 second time after the second period is the third period, the current residual capacity of the battery is collected at 8.5% when the third period is finished, namely the residual capacity collected in the third period is 8.5%, and the electric quantity consumption of the mobile terminal in the third period is 0.7% according to the residual capacity 9.2% of the battery collected in the second period and the residual capacity 8.5% collected in the third period; and then calculating the current electricity consumption speed according to the electricity consumption of the mobile terminal in the first period of 0.3%, the electricity consumption of the mobile terminal in the second period of 0.5% and the electricity consumption of the mobile terminal in the third period of 0.7%.
The current power consumption rate can be calculated in two ways, including:
First, according to the power consumption of the mobile terminal in each period and a preset period length, the power consumption speed of the mobile terminal in each period is calculated, and the maximum power consumption speed is selected as the current power consumption speed of the mobile terminal.
Optionally, the amount of power consumption of the mobile terminal in a partial period may be selected, the selected rate of power consumption of the mobile terminal in each period is calculated according to the selected amount of power consumption of the mobile terminal in each period and the preset period length, and the maximum rate of power consumption is selected as the current rate of power consumption of the mobile terminal.
For example, according to the electric quantity consumption of the mobile terminal in the first period being 0.3% and the preset period length being 10 seconds, the electric quantity consumption speed of the mobile terminal in the first period is calculated to be 0.03% per second; calculating the electric quantity consumption speed of the mobile terminal in the second period to be 0.05% per second according to the electric quantity consumption of the mobile terminal in the second period of 0.5% and the preset period length of 10 seconds; calculating the electric quantity consumption speed of the mobile terminal in the third period to be 0.07% per second according to the electric quantity consumption of the mobile terminal in the third period of 0.7% and the preset period length of 10 seconds; the maximum power consumption rate of 0.07% per second is selected as the current power consumption rate of the mobile terminal. Or selecting the second period and the third period, and selecting the maximum power consumption rate of 0.07% per second as the current power consumption rate of the mobile terminal from the calculated power consumption rates of 0.05% per second and 0.07% per second of the second period.
and secondly, calculating the average electric quantity consumption according to the electric quantity consumption of the mobile terminal in each period, and calculating the current electric quantity consumption speed of the mobile terminal according to the average electric quantity consumption and the preset period length.
optionally, the power consumption of the mobile terminal in a partial period may also be selected, an average power consumption is calculated according to the power consumption of the mobile terminal in the selected partial period, and the current power consumption speed of the mobile terminal is calculated according to the average power consumption and the preset period length.
for example, an average power consumption amount of 0.5% is calculated based on 0.3% of the power consumption amount of the mobile terminal in the first period, 0.5% of the power consumption amount of the mobile terminal in the second period, and 0.7% of the power consumption amount of the mobile terminal in the third period, and a current power consumption rate of the mobile terminal is calculated to be 0.05% per second based on the average power consumption amount of 0.5% and a preset period length of 10 seconds. Or selecting a second period and a third period, calculating the average electric quantity consumption of 0.6% according to the selected 0.5% electric quantity consumption of the mobile terminal in the second period and 0.7% electric quantity consumption of the mobile terminal in the third period, and calculating the current electric quantity consumption speed of the mobile terminal to be 0.06% per second according to the average electric quantity consumption of 0.6% and the preset period length of 10 seconds.
among them, it should be noted that: and executing subsequent steps when the current residual capacity of the battery and the current capacity consumption speed of the mobile terminal are acquired in each period.
Step 203: and calculating the remaining time of the mobile terminal from shutdown according to the current remaining power of the battery and the current power consumption speed of the mobile terminal.
the mobile terminal automatically shuts down when the remaining battery capacity reaches a preset value, wherein the preset value can be a default value or a value set by a user in advance.
the method comprises the following steps: and calculating an electric quantity difference value according to the current residual electric quantity of the battery and the preset value, and calculating the residual time of the mobile terminal from shutdown according to the electric quantity difference value and the current electric quantity consumption speed of the mobile terminal.
for example, assuming that the current power consumption rate of the mobile terminal is 0.05% per second, the remaining time of the mobile terminal from power-off is calculated to be 170 seconds according to the current remaining power of the battery of 8.5% in the third period and the current power consumption rate of the mobile terminal is 0.05% per second.
Step 204: the remaining time is displayed.
a countdown display according to the remaining time may be performed at a preset position on the screen of the mobile terminal. The preset position may be a position of the top, the bottom, or both sides of the screen of the mobile terminal.
The preset countdown time threshold value can be set in advance, can be a default numerical value, and can also be set by a user according to the requirement of the user. And when the countdown time is less than or equal to a preset countdown time threshold value, displaying the countdown time.
In this embodiment, the preset time threshold may not be set, so that when the remaining capacity of the battery decreases to the preset capacity threshold, the countdown display is performed according to the above steps 202 to 204.
Since the above steps 202 to 204 are performed at each cycle, when the obtained remaining time is different from the currently displayed countdown time, the countdown time display is performed again according to the remaining time.
In step 205: and acquiring the working frequency corresponding to the preset electric quantity consumption speed according to the preset electric quantity consumption speed, and controlling the working frequency of the mobile terminal not to exceed the acquired working frequency.
the mobile terminal comprises an electric quantity management module, and the electric quantity management module is used for managing the electric quantity of the battery in the working process of the mobile terminal. The power management module may monitor a power consumption rate of the mobile terminal with respect to the battery power when the mobile terminal operates at different operating frequencies, and may store the power consumption rates at different operating frequencies and different operating frequencies in a correspondence relationship between the operating frequency and a power message rate, where the operating frequency includes a CPU (central Processing Unit) operating frequency and a GPU (Graphics Processing Unit) operating frequency.
the method comprises the following steps: according to the preset electric quantity consumption speed, acquiring corresponding working frequency from the corresponding relation between the working frequency and the electric quantity consumption speed, controlling the working frequency of the CPU of the mobile terminal not to exceed the working frequency of the CPU included in the acquired working frequency, and controlling the working frequency of the GPU of the mobile terminal not to exceed the working frequency of the GPU included in the acquired working frequency. Therefore, the remaining time of the mobile terminal from power-off can be prolonged, so that the user has enough time to finish the ending work.
In order to prolong the remaining time of the mobile terminal from power off, the power consumption speed of the screen of the mobile terminal can be reduced. Specifically, the method can be implemented in any one or more of the following two ways, including:
Firstly, the current display brightness of the screen of the mobile terminal is reduced.
a brightness threshold may be preset, where the brightness threshold may be the lowest brightness of the screen of the mobile terminal or slightly greater than the lowest brightness, and if the current display brightness of the screen of the mobile terminal is greater than the preset brightness threshold, the current display brightness of the screen of the mobile terminal is adjusted to be less than or equal to the preset brightness threshold.
And secondly, reducing the current contrast of the screen of the mobile terminal.
A contrast threshold may be preset, and if the current contrast of the mobile terminal screen is greater than the preset contrast threshold, the current contrast of the mobile terminal screen is adjusted to be less than or equal to the preset contrast threshold.
In the embodiment of the invention, because the current residual electric quantity of the battery of the mobile terminal and the current electric quantity consumption speed of the mobile terminal to the battery are obtained, the residual time of the mobile terminal from shutdown is calculated according to the current residual electric quantity and the current electric quantity consumption speed; and performing countdown display according to the remaining time, so that the user knows the remaining time when the mobile terminal is powered off currently, the user can reasonably arrange that the user is performing service ending work at the mobile terminal, and data loss is avoided.
EXAMPLE III
referring to fig. 3-1, an embodiment of the present invention provides a device 300 for indicating battery power, where the device 300 includes:
An obtaining module 301 configured to obtain a current remaining power of a battery of the apparatus 300 and a current power consumption rate of the apparatus 300;
A calculating module 302 configured to calculate a remaining time of the apparatus 300 from shutdown according to a current remaining power of the battery and a current power consumption rate of the apparatus 300;
A display module 303 configured to display the remaining time;
the control module 304 is configured to obtain an operating frequency corresponding to a preset power consumption rate according to the preset power consumption rate, and control the operating frequency of the apparatus 300 not to exceed the obtained operating frequency.
Optionally, the obtaining module 301 includes:
A collecting unit for periodically collecting the remaining capacity of the battery of the device 300;
And a calculating unit, configured to calculate a current power consumption rate of the apparatus 300 according to the remaining power of the battery collected in each cycle or a partial cycle.
optionally, the display module 303 is configured to display the remaining time when the remaining time is less than or equal to a preset time threshold.
Optionally, referring to fig. 3-2, the apparatus 300 further comprises:
The detecting module 305 is configured to detect the remaining power of the battery in real time, and execute the operation of acquiring the current remaining power of the battery of the apparatus 300 and the current power consumption speed of the apparatus 300 when it is detected that the remaining power of the battery is smaller than a preset power threshold.
Optionally, the display module 303 is configured to perform countdown display according to the remaining time at a preset position on a screen of the apparatus 300.
optionally, referring to fig. 3-3, the apparatus 300 further comprises
A reducing module 306 configured to reduce a power consumption rate of a screen of the apparatus 300.
In the embodiment of the present invention, the remaining time of the apparatus 300 from shutdown is calculated; and performing countdown display according to the remaining time, so that the user knows the remaining time when the user leaves the shutdown of the device 300, and can reasonably arrange that the user performs the ending work of the service at the device 300, thereby avoiding data loss.
Example four
Referring to fig. 4, an embodiment of the present invention provides a battery power level indication apparatus 400, where the battery power level indication apparatus 400 may be a mobile phone, a tablet device, a personal digital assistant, or the like.
Referring to fig. 4, the prompting device 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
the processing component 402 generally controls the overall operation of the prompting device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
the memory 404 is configured to store various types of data to support operation at the prompting device 400. Examples of such data include instructions for any application or method operating on the prompting device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
the power supply component 406 provides power to the various components of the reminder device 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the prompting device 400.
The multimedia component 408 includes a screen providing an output interface between the prompting device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. When the prompting device 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the prompting device 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the prompting device 400. For example, the sensor assembly 414 may detect the open/closed status of the prompting device 400, the relative positioning of the components, such as the display and keypad of the prompting device 400, the sensor assembly 414 may also detect a change in the position of the prompting device 400 or a component of the prompting device 400, the presence or absence of user contact with the prompting device 400, the orientation or acceleration/deceleration of the prompting device 400, and a change in the temperature of the prompting device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the prompting apparatus 400 and other devices. The prompting device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
in an exemplary embodiment, the prompting device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
in an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the hinting device 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a reminder device 400, enable the reminder device 400 to perform a method of battery power reminder, the method comprising:
Acquiring the current remaining capacity of the battery of the prompting device 400 and the current consumption speed of the battery of the prompting device 400;
Calculating the remaining time of the prompting device 400 from shutdown according to the current remaining power of the battery and the current power consumption speed of the prompting device 400;
Displaying the remaining time;
And acquiring a working frequency corresponding to a preset electric quantity consumption speed according to the preset electric quantity consumption speed, and controlling the working frequency of the prompting device 400 not to exceed the acquired working frequency.
optionally, the acquiring the current remaining power of the battery of the prompting device 400 and the current power consumption speed of the prompting device 400 includes:
Periodically collecting the remaining capacity of the battery of the prompting device 400;
And calculating the current power consumption speed of the prompting device 400 according to the residual power of the battery acquired in each period or partial period.
Optionally, the displaying the remaining time includes:
and when the remaining time is less than or equal to a preset time threshold, displaying the remaining time.
Optionally, the method further includes:
Detecting the remaining capacity of the battery in real time, and executing the operation of acquiring the current remaining capacity of the battery of the prompting device 400 and the current consumption speed of the battery of the prompting device 400 when the remaining capacity of the battery is detected to be smaller than a preset capacity threshold.
optionally, said displaying said remaining time comprises
and performing countdown display according to the remaining time at a preset position of the screen of the prompting device 400.
optionally, after displaying the remaining time, the method further includes:
the power consumption speed of the screen of the prompting device 400 is reduced.
In the embodiment of the invention, the remaining time of the prompting device from shutdown is calculated; and performing countdown display according to the remaining time, so that the user knows the remaining time when the device 400 is powered off currently, and can reasonably arrange that the user performs the ending work of the service at the device 400, thereby avoiding data loss.
it will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. a method for prompting battery electric quantity is characterized by comprising the following steps:
Detecting the residual electric quantity of a battery of the mobile terminal in real time, and acquiring the current residual electric quantity of the battery of the mobile terminal and the current electric quantity consumption speed of the mobile terminal when the residual electric quantity of the battery is detected to be smaller than a preset electric quantity threshold value;
calculating an electric quantity difference value according to the current residual electric quantity of the battery and a preset value, and calculating the residual time of the mobile terminal from shutdown according to the electric quantity difference value and the current electric quantity consumption speed of the mobile terminal, wherein the preset value is the value of the residual electric quantity of the battery when the mobile terminal is automatically shutdown;
When the remaining time is less than or equal to a preset countdown threshold, performing countdown display at the top, the bottom or the two sides of the screen of the mobile terminal according to the remaining time, wherein the preset countdown threshold is set by a user according to the requirement of the user;
And acquiring the working frequency corresponding to the preset electric quantity consumption speed from the corresponding relation between the working frequency and the electric quantity consumption speed according to the preset electric quantity consumption speed, controlling the working frequency of the CPU of the mobile terminal not to exceed the working frequency of the CPU included by the acquired working frequency, and controlling the working frequency of the GPU of the mobile terminal not to exceed the working frequency of the GPU included by the acquired working frequency.
2. The method of claim 1, wherein the obtaining the current remaining power of the battery of the mobile terminal and the current power consumption rate of the mobile terminal comprises:
Periodically collecting the residual electric quantity of a battery of the mobile terminal;
and calculating the current electricity consumption speed of the mobile terminal according to the residual electricity of the battery acquired in each period or partial period.
3. The method of claim 1 or 2, wherein after said displaying said remaining time, further comprising:
And reducing the power consumption speed of the screen of the mobile terminal.
4. A device for indicating battery power level, the device comprising:
The detection module is used for detecting the residual electric quantity of the battery of the device in real time, and executing the operation of acquiring the current residual electric quantity of the battery of the device and the current electric quantity consumption speed of the device when the residual electric quantity of the battery is detected to be smaller than a preset electric quantity threshold value;
An acquisition module configured to acquire a current remaining capacity of a battery of the apparatus and a current capacity consumption rate of the apparatus;
The calculation module is configured to calculate an electric quantity difference value according to the current residual electric quantity of the battery and a preset value, calculate the residual time of the device from shutdown according to the electric quantity difference value and the current electric quantity consumption speed of the device, and the preset value is the value of the residual electric quantity of the battery when the device is automatically shutdown;
A display module configured to perform countdown display according to the remaining time at a position of a top, a bottom, or both sides of a screen of the device when the remaining time is less than or equal to a preset countdown threshold set by a user according to a need thereof;
the control module is configured to acquire a working frequency corresponding to a preset electric quantity consumption speed from a corresponding relation between the working frequency and the electric quantity consumption speed according to the preset electric quantity consumption speed, control the working frequency of a CPU of the device not to exceed the working frequency of the CPU included in the acquired working frequency, and control the working frequency of a GPU of the device not to exceed the working frequency of the GPU included in the acquired working frequency.
5. the apparatus of claim 4, wherein the acquisition module comprises:
The acquisition unit is used for periodically acquiring the residual capacity of the battery of the device;
And the calculating unit is used for calculating the current electric quantity consumption speed of the device according to the residual electric quantity of the battery acquired in each period or partial period.
6. the apparatus of claim 4 or 5, wherein the apparatus further comprises:
a reduction module configured to reduce a power consumption rate of a screen of the apparatus.
7. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 1-3.
CN201611185739.XA 2016-12-20 2016-12-20 Method and device for prompting battery electric quantity Active CN106791089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611185739.XA CN106791089B (en) 2016-12-20 2016-12-20 Method and device for prompting battery electric quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611185739.XA CN106791089B (en) 2016-12-20 2016-12-20 Method and device for prompting battery electric quantity

Publications (2)

Publication Number Publication Date
CN106791089A CN106791089A (en) 2017-05-31
CN106791089B true CN106791089B (en) 2019-12-13

Family

ID=58894176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611185739.XA Active CN106791089B (en) 2016-12-20 2016-12-20 Method and device for prompting battery electric quantity

Country Status (1)

Country Link
CN (1) CN106791089B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI650630B (en) * 2018-04-03 2019-02-11 和碩聯合科技股份有限公司 Electronic device and frequency reduction method thereof
CN112888053B (en) * 2021-01-18 2022-03-25 惠州Tcl移动通信有限公司 Battery setting method, system, mobile terminal and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609348A (en) * 2012-02-02 2012-07-25 深圳市中兴移动通信有限公司 Method and system for displaying capacity remaining time of Bluetooth device based on Bluetooth terminal
CN104065835A (en) * 2014-07-10 2014-09-24 深圳市中兴移动通信有限公司 Mobile terminal and power saving method and device thereof
CN104090240A (en) * 2014-06-30 2014-10-08 深圳市中兴移动通信有限公司 Method and device for updating left service time of battery and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609348A (en) * 2012-02-02 2012-07-25 深圳市中兴移动通信有限公司 Method and system for displaying capacity remaining time of Bluetooth device based on Bluetooth terminal
CN104090240A (en) * 2014-06-30 2014-10-08 深圳市中兴移动通信有限公司 Method and device for updating left service time of battery and mobile terminal
CN104065835A (en) * 2014-07-10 2014-09-24 深圳市中兴移动通信有限公司 Mobile terminal and power saving method and device thereof

Also Published As

Publication number Publication date
CN106791089A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106774774B (en) Method and device for displaying electric quantity of terminal battery
CN106970754B (en) Screen capture processing method and device
US10205332B2 (en) Efficient two way charging method using master and slave devices
EP3093569B1 (en) Method and device for turning on air conditioner
EP3113549A1 (en) Method and device for waking up mcu chip
EP3035489B1 (en) Method and device for charge management
EP3136793A1 (en) Method and apparatus for awakening electronic device
CN104219383A (en) Terminal power information prompting method and device
CN107438811B (en) Information screen display method and device
WO2017028425A1 (en) Energy-saving mode activation method and device
EP3046212A1 (en) Method and apparatus for controlling charging of terminal device
US10234924B2 (en) Method and apparatus for displaying time on mobile device
EP3112979B1 (en) Method and device for waking up mcu
US10042328B2 (en) Alarm setting method and apparatus, and storage medium
EP3288148A1 (en) Method and apparatus for device control
CN104010072A (en) Electric quantity prompt method and device
EP3322227A1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
EP4109705A1 (en) Charging control method and apparatus, electronic device and storage medium
CN106791089B (en) Method and device for prompting battery electric quantity
EP3200075A1 (en) Method and device for calling process
CN111240456A (en) Power saving setting method, power saving setting device and computer storage medium
CN107733021B (en) Control method and device of electronic equipment
CN107422911B (en) Pressure value detection method and device and computer readable storage medium
CN107528098B (en) Charging method and device
CN106776204B (en) Method and device for determining power consumption application

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
GR01 Patent grant
GR01 Patent grant