CN107134823B - Charging prompting method and device - Google Patents

Charging prompting method and device Download PDF

Info

Publication number
CN107134823B
CN107134823B CN201710278613.5A CN201710278613A CN107134823B CN 107134823 B CN107134823 B CN 107134823B CN 201710278613 A CN201710278613 A CN 201710278613A CN 107134823 B CN107134823 B CN 107134823B
Authority
CN
China
Prior art keywords
time
prompting
standby
duration
electronic equipment
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
CN201710278613.5A
Other languages
Chinese (zh)
Other versions
CN107134823A (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 CN201710278613.5A priority Critical patent/CN107134823B/en
Publication of CN107134823A publication Critical patent/CN107134823A/en
Application granted granted Critical
Publication of CN107134823B publication Critical patent/CN107134823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J2007/0067
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure relates to a charging prompting method and a charging prompting device, wherein the method comprises the following steps: acquiring a prompt moment of a preset reminding item in the electronic equipment; determining the standby time of the electronic equipment according to the residual electric quantity of the electronic equipment at the current moment; and when the standby time length is less than the interval length between the current time and the prompt time, outputting prompt information, wherein the prompt information is used for prompting a user to charge the electronic equipment. Through the technical scheme, the user can be prompted to charge the electronic equipment in advance when the electric quantity of the electronic equipment cannot insist on the prompting time of the preset reminding item, so that the electric quantity of the electronic equipment is sufficient, the reminding item is normally prompted, and the situation that the user misses the preset reminding item due to the exhaustion of the electric quantity is avoided.

Description

Charging prompting method and device
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a charging prompting method and apparatus.
Background
With the rapid development of technology, electronic devices play an increasingly important role in the life and work of people. However, the electronic device usually has a problem that the user cannot use the electronic device normally due to the exhaustion of the battery due to the limitation of the battery life, so it is necessary to remind the user to charge the electronic device in time to keep the current sufficient.
In the related art, the prompt message is usually sent to prompt the user to charge the electronic device when the remaining power of the electronic device is less than a preset power (e.g., less than 10%). As a result, the electronic device may fail to operate some functions normally due to the power exhaustion, and for example, a reminder set by the user may not be presented.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a charging prompting method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a charging prompting method applied to an electronic device, including:
acquiring a prompt moment of a preset reminding item in the electronic equipment;
determining the standby time of the electronic equipment according to the residual electric quantity of the electronic equipment at the current moment;
and when the standby time length is less than the interval length between the current time and the prompt time, outputting prompt information, wherein the prompt information is used for prompting a user to charge the electronic equipment.
Optionally, the step of determining the standby time of the electronic device according to the remaining power at the current time includes:
acquiring the running program of the current moment;
determining the running time of the running program according to the historical running condition of the running program and the current running condition of the running program;
determining the power consumption of the running program according to the power consumption of the running program in unit time and the running time length;
and determining the standby time according to the residual electric quantity at the current moment, the power consumption of the running program and the standby current of the electronic equipment in unit time.
Optionally, the step of outputting a prompt message when the standby duration is less than the interval duration between the current time and the prompt time includes:
when a plurality of preset reminding items are detected, respectively determining the interval duration between the current time and the reminding time of the preset reminding items;
comparing the interval duration between the current time and the prompt time of the plurality of preset reminding items with the standby duration respectively; and
and when the interval duration between the current time and the prompt time of any preset reminding item is longer than the standby duration, outputting the prompt information.
Optionally, the step of outputting the prompt message when the standby duration is less than the interval duration between the current time and the prompt time includes:
when the standby time length is less than the interval time length between the current time and the prompt time, detecting whether the interval time length is less than a preset threshold time length;
and outputting the prompt information when the interval duration is less than the preset threshold duration.
Optionally, the step of outputting the prompt message when the standby duration is less than the interval duration between the current time and the prompt time includes:
when the standby time length is less than the interval time length, if the electronic equipment is in a charging state, determining the required time length for charging the electronic equipment to the target electric quantity;
and when the sum of the required duration and the duration that the target electric quantity can support the standby of the electronic equipment is less than the interval duration, outputting the prompt message.
Optionally, the step of outputting the prompt message when the standby duration is less than the interval duration between the current time and the prompt time includes:
when the standby time length is less than the interval time length between the current time and the prompt time, setting a reminding frequency according to the residual electric quantity at the current time;
and outputting the prompt information according to the reminding frequency.
Optionally, the method further comprises:
and when the residual standby duration is less than the interval duration, switching the electronic equipment to a low power consumption mode.
Optionally, the method further comprises:
when the electronic equipment is switched to the low power consumption mode, if the electronic equipment is detected to be in a charging state, the electronic equipment is switched to a normal working mode from the low power consumption mode.
Optionally, the method further comprises:
when the electronic equipment is in a charging state, detecting whether the standby time length is greater than the interval time length;
and when the standby duration is longer than the interval duration, outputting first prompt information, wherein the first prompt information is used for prompting a user that the residual electric quantity of the electronic equipment at the current moment is sufficient.
According to a second aspect of the embodiments of the present disclosure, there is provided a charging prompting apparatus applied to an electronic device, including:
the first acquisition module is configured to acquire a prompt moment of a preset reminding item in the electronic equipment;
the determining module is configured to determine the standby time of the electronic equipment according to the residual capacity of the electronic equipment at the current moment;
the first prompting module is configured to output prompting information when the standby duration is shorter than the interval duration between the current time and the prompting time, wherein the prompting information is used for prompting a user to charge the electronic equipment.
Optionally, the determining module includes:
a first obtaining submodule configured to obtain an operating program at the current time;
the first determining submodule is configured to determine the operation duration of the operation program according to the historical operation condition of the operation program and the current operation condition of the operation program;
a second determining submodule configured to determine power consumption of the running program according to the power consumption per unit time of the running program and the running time period;
a third determining submodule configured to determine the standby duration according to the remaining power amount at the current time, the power consumption of the operating program, and the standby current of the electronic device per unit time.
Optionally, the first prompting module includes:
the fourth determination submodule is configured to respectively determine interval duration between the current time and prompting time of a plurality of preset prompting items when the plurality of preset prompting items are detected;
the comparison submodule is configured to compare the interval duration between the current time and the prompt time of the plurality of preset reminding items with the standby duration respectively; and
and the output submodule is configured to output the prompt information when the interval duration between the current time and the prompt time of any preset reminding item is longer than the standby time duration.
Optionally, the first prompting module includes:
the first detection submodule is configured to detect whether the interval duration is smaller than a preset threshold duration or not when the standby duration is smaller than the interval duration between the current time and the prompt time;
the first prompting submodule is configured to output the prompting information when the interval duration is smaller than the preset threshold duration.
Optionally, the first prompting module includes:
a fifth determining submodule configured to determine a required time period for charging the electronic device to a target electric quantity if the electronic device is in a charging state when the standby time period is less than the interval time period;
and the second prompting submodule is configured to output the prompting information when the value obtained by adding the required time length and the time length of the target electric quantity which can support the standby of the electronic equipment is less than the interval time length.
Optionally, the first prompting module includes:
the setting submodule is configured to set a reminding frequency according to the residual electric quantity at the current time when the standby time length is less than the interval time between the current time and the prompting time;
and the third prompting submodule is configured to output the prompting information according to the prompting frequency.
Optionally, the apparatus further comprises:
a first switching module configured to switch the electronic device to a low power consumption mode when the remaining standby time is less than the interval time.
Optionally, the apparatus further comprises:
the second switching module is configured to switch the electronic device from the low power consumption mode to a normal operation mode if the electronic device is detected to be in a charging state when the electronic device is switched to the low power consumption mode.
Optionally, the apparatus further comprises:
a detection module configured to detect whether the standby duration is greater than the interval duration when the electronic device is in a charging state;
and the second prompting module is configured to output first prompting information when the standby duration is longer than the interval duration, wherein the first prompting information is used for prompting a user that the residual electric quantity of the electronic equipment at the current moment is sufficient.
According to a third aspect of the embodiments of the present disclosure, there is provided a charging prompting apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a prompt moment of a preset reminding item in the electronic equipment;
determining the standby time of the electronic equipment according to the residual electric quantity at the current moment;
and when the standby time length is less than the interval length between the current time and the prompt time, outputting prompt information, wherein the prompt information is used for prompting a user to charge the electronic equipment.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the charging alert method provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by acquiring the prompting time of the preset reminding item and generating the prompting information for prompting the user to charge the electronic equipment by combining with the residual electric quantity of the electronic equipment at the current time, the user can be prompted to charge the electronic equipment in advance when the electric quantity of the electronic equipment cannot stick to the prompting time of the preset reminding item, so that the electric quantity of the electronic equipment is ensured to be sufficient, reminding item prompting is normally carried out, and the situation that the user misses the preset reminding item due to the exhaustion of the electric quantity is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a charge alert method in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a charge alert method in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a charge reminder method according to an exemplary embodiment;
fig. 4A to 4B are schematic diagrams illustrating scenes when the charging prompting method provided by the present disclosure is implemented;
FIG. 5 is a flow chart illustrating a charge reminder method according to another exemplary embodiment;
fig. 6 shows a scene schematic diagram when implementing the charging prompt method provided by the present disclosure;
FIG. 7 is a flow chart illustrating a charge reminder method according to another exemplary embodiment;
FIG. 8 is a block diagram illustrating a charge reminder device according to an exemplary embodiment;
FIG. 9 is a block diagram illustrating a charge reminder device according to another exemplary embodiment;
fig. 10 is a block diagram illustrating an apparatus for a charge reminder method according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a charge reminder method according to an exemplary embodiment, wherein the charge reminder method is applied to an electronic device, which may be, for example, a mobile phone, a tablet computer, a notebook computer, a smart alarm clock, a smart wearable device, and the like. As shown in fig. 1, the charging prompt method includes the following steps:
in step S101, a prompt time of a preset reminder in the electronic device is obtained.
The preset prompting item can be a reminding item which is created in advance in the electronic equipment by the user, and comprises the reminding item which is created in an alarm clock application, a memo application, a calendar application, a to-do item application and the like of the electronic equipment by the user. For example, the user creates a reminder item as "airport pickup" in the alarm clock application and sets the reminder time as "7: 00", and the electronic device may acquire that the preset reminder item is "airport pickup" from the alarm clock application and the reminder time of the preset reminder item is 7: 00.
In step S102, a standby duration of the electronic device is determined according to a remaining power of the electronic device at the current time.
In the operation process of the electronic equipment, the current moment of the electronic equipment and the residual electric quantity of the electronic equipment at the current moment can be acquired in real time, and the standby time of the electronic equipment is determined according to the residual electric quantity of the electronic equipment at the current moment.
In an embodiment, a corresponding relationship between the remaining power of the electronic device and the standby time may be preset, and after the remaining power of the electronic device at the current time is obtained, the standby time of the electronic device may be obtained according to the corresponding relationship. For example, the standby time period corresponding to 80% of the remaining power is 9 hours, the standby time period corresponding to 70% of the remaining power is 8 hours, and so on.
In another embodiment, the standby duration of the electronic device may also be determined according to the operation state of the electronic device, such as the currently operating program, the standby current per unit time, and the like. As shown in fig. 2, the step S102 may include:
in step S121, the running program at the present time is acquired.
In step S122, the operation duration of the operation program is determined according to the historical operation condition of the operation program and the current operation condition of the operation program.
When a user uses the electronic device, the historical operating conditions of all programs in the electronic device are counted and stored in the memory by related components of the electronic device. In one embodiment, the historical operating conditions include historical number of operations and duration of each operation.
By acquiring the running program at the current time, the historical running condition (including the historical running times and the running duration of each time) of the running program at the current time can be read from the memory, and by analyzing the historical running times and the running duration of each time of the running program at the current time, the total running duration t of the running program in the current running can be estimated. Meanwhile, the current running condition of the running program at the current moment (such as the currently running duration t) is obtained0) According to the total operation time t of the operation program obtained by evaluation, and the time t of the operation program which is currently operated0The running time length t of the running program at the current time (i.e. the time length of the running program which is running from the current time) can be obtained1=t-t0
In step S123, the power consumption amount of the running program is determined based on the power consumption amount per unit time and the running time period of the running program.
According to the unit time power consumption and the running time t of the running program1The power consumption of the running program can be determined.
For example, acquiring the current running program of the electronic device includes: the power consumption amounts per unit time of the program A, the program B and the program C are X, Y and Z respectively, and the operation time lengths t of the three operation programs can be obtained by analyzing the historical operation conditions and the current operation conditions of the three operation programs1And power consumption is shown in table 1:
TABLE 1
In step S124, a standby time period is determined according to the remaining power amount at the present time, the power consumption amount of the running program, and the standby current of the electronic device per unit time.
The standby current per unit time of the electronic equipment with different configurations is different. The standby duration (the remaining power at the present time — the power consumption of the operating program)/the standby current per unit time may be determined according to the remaining power at the present time, the power consumption of the operating program, and the standby current per unit time of the electronic device.
Therefore, more accurate standby time can be obtained by dynamically evaluating the total power consumption of the electronic equipment.
Next, the description will be continued on the charge presentation method shown in fig. 1.
In step S103, when the standby time is shorter than the interval between the current time and the prompt time, a prompt message is output, where the prompt message is used to prompt the user to charge the electronic device.
In one embodiment, when a preset reminder is detected, according to the current time of the electronic device, an interval duration between the current time and a prompt time of the preset reminder can be determined, and the interval duration is compared with a standby duration to detect whether the standby duration is less than the interval duration between the current time and the prompt time.
In another embodiment, when a plurality of preset reminders are detected, as shown in fig. 3, the step S103 may include:
in step S131, when a plurality of preset reminders are detected, the interval duration between the current time and the prompting time of the plurality of preset reminders is determined.
In step S132, the interval duration between the current time and the prompting time of the preset reminders is compared with the standby duration.
In step S133, when the interval duration between the current time and the presentation time of any one of the preset reminder items is longer than the standby time, the presentation information is output.
When a plurality of preset reminding items are detected, the interval duration between the current time and the prompting time of the reminding items can be respectively determined, and the obtained interval duration is respectively compared with the standby duration.
When the interval duration between the current time and the prompting time of all the preset reminding items is longer than the standby duration, judging that the electric quantity of the electronic equipment can persist to the prompting time of the preset reminding items; when the interval time between the current time and the prompting time of any preset reminding item is shorter than the standby time, the fact that the electric quantity of the electronic equipment cannot stick to the prompting time of the preset reminding item can be judged, and at the moment, prompting information for prompting a user to charge the electronic equipment is output, so that the electric quantity of the electronic equipment is sufficient, and the prompt of the preset reminding item is normally carried out.
In the embodiment of the present disclosure, the prompt message may include a text, a vibration, a sound, or a combination thereof, which is not limited by the present disclosure.
For example, as shown in fig. 4A, three reminders and corresponding reminder times created by the user in the alarm clock application of the electronic device are respectively: "airport pick-up" - "07: 00", "meeting" - "08: 15" and "training class" - "12: 00 per saturday. The prompting moments when the preset reminding item can be acquired from the alarm clock application of the electronic equipment are 7:00 a.m. the next day, 08:15 a.m. the next day and 12:00 a.m. each week. Meanwhile, the current time when the electronic equipment is acquired is 22:32, and the remaining capacity of the electronic equipment at the current time is 77% of the battery capacity. The electronic device can still operate for 9 hours (standby time) according to the remaining power at the current time, and it can be determined that the power of the electronic device will be exhausted at 6:30 on the next day. The prompting time of the preset reminder item 'airport pick-up' is not enough to be adhered to, 7:00, so that the output prompting message 'the battery capacity cannot be adhered to 7:00 in the morning in tomorrow, please charge in time' is output and displayed on the display interface of the electronic equipment, as shown in fig. 4B. Therefore, the user can timely know the electric quantity condition of the electronic equipment at the current moment so as to charge the electronic equipment, and the electronic equipment is prevented from being incapable of normally reminding items due to insufficient electric quantity.
In another embodiment, when it is detected that the standby duration is less than the interval duration between the standby duration and the prompting time of the reminder item, it may be further detected whether the interval duration is less than a preset threshold duration, and the prompting message is output when the interval duration is less than the preset threshold duration. The preset threshold duration may be set by a user as needed, or may be set when the electronic device leaves a factory.
For example, the preset threshold duration may be set to 24 hours, or may be set to the sum of the duration from a fully charged state to a fully charged state and the duration from the fully charged state to a fully charged state (e.g., 12 hours). If the interval duration is detected to be greater than the preset threshold duration, the prompting time of the preset reminding item is considered to be far away, and prompting information does not need to be output; and if the interval duration is detected to be less than the preset threshold duration, outputting prompt information.
Therefore, the problem that the user is interfered by outputting the prompt information in advance when the prompt time is far away from the preset reminding item can be avoided, and the user experience is improved.
In another embodiment, whether the electronic equipment is in the charging state is detected when the standby time is less than the interval time between the current time and the prompting time. And if the electronic equipment is in a charging state, determining the required time length for charging the electronic equipment to the target electric quantity, and outputting prompt information when the sum of the required time length and the time length of the target electric quantity capable of supporting the standby of the electronic equipment is less than the interval time length. The target electric quantity can be set by a user in a self-defined mode or can be set when the electric quantity leaves a factory.
For example, taking the target power as the full power, the interval between the current time and the prompting time of the preset prompting item is 10 hours, the remaining power of the electronic device at the current time is 50%, the standby time is 4 hours, and the electronic device cannot insist on the prompting time of the preset prompting item. At this time, if the electronic device is charged, the target electric quantity (full electric quantity) can be reached in only 1 hour, and the electronic device can operate for 9 hours after the target electric quantity is reached, so that the prompt time of the preset reminding item can be just insisted on, and therefore prompt information for prompting a user to charge the electronic device does not need to be output.
When the electronic equipment is in a charging state, if the electronic equipment does not reach the target electric quantity, the electronic equipment stops charging, and corresponding prompt information can be output when the electronic equipment stops charging so as to prompt a user that the residual electric quantity of the electronic equipment at the current moment does not reach the target electric quantity and the electronic equipment needs to be continuously charged.
For example, a user stops charging the electronic device only after charging the electronic device for 0.5 hour, the electric quantity of the electronic device reaches 70%, the electronic device can only be supported to stand by for 6 hours, and the prompting time of the preset reminding item cannot be adhered to, so that a corresponding prompting message "the remaining electric quantity at the current time does not reach the target electric quantity, and please continue charging" can be output when the electronic device stops charging.
Therefore, when the electronic equipment is charged to the target electric quantity, the reminding of the preset reminding items can be met, the prompt information does not need to be output, the interference to the user is avoided, and the user experience is improved.
In another embodiment, when the standby time is shorter than the interval time between the current time and the prompt time, the prompt frequency can be set according to the remaining power at the current time, and the prompt information can be output according to the prompt frequency.
For example, the remaining capacity of the electronic device at the current time is 50%, the standby time is shorter than the interval time between the current time and the prompt time, and the prompt frequency can be set to be once every two hours, so that after the prompt information is output for the first time, the prompt information is output every two hours to prompt the user to charge the electronic device; if the remaining power of the electronic equipment at the current moment is lower than 20%, the standby time is shorter than the interval time between the current moment and the prompting moment, and the prompting frequency can be set to prompt the user to charge the electronic equipment once when the remaining power decreases by 5%, so that after the prompting information is output for the first time, the prompting information is output once when the remaining power decreases by 5%.
Therefore, the situation that when the standby time is shorter than the interval time, prompt information for prompting the user to charge the electronic equipment is frequently output to cause interference to the user can be avoided, and user experience is improved.
Through the technical scheme of the embodiment of the disclosure, the user can be prompted to charge the electronic equipment in advance when the electric quantity of the electronic equipment cannot insist on the prompting time of the preset reminding item, so that the electric quantity of the electronic equipment is ensured to be sufficient, the reminding item is normally prompted, and the situation that the user misses the preset reminding item due to the exhaustion of the electric quantity is avoided.
In another embodiment, as shown in fig. 5, the charging prompting method further includes:
in step S104, when the remaining standby time period is less than the interval time period, the electronic apparatus is switched to the low power consumption mode.
As shown in fig. 6, when the remaining standby time period is less than the interval time period, the electronic device is switched to a low power consumption mode while generating the prompt message, such as turning off part of the running program in the electronic device, stopping refreshing the background application program, reducing the brightness of the display interface of the electronic device, and so on. Therefore, the power consumption of the electronic equipment can be reduced, and the standby time of the electronic equipment is prolonged.
In another embodiment, as shown in fig. 5, the charging prompting method further includes:
in step S105, when the electronic device is switched to the low power consumption mode, if it is detected that the electronic device is in the charging state, the electronic device is switched from the low power consumption mode to the normal operation mode.
When the electronic device is switched to the low power consumption mode, if it is detected that the electronic device is in a charging state, the electronic device can be switched from the low power consumption mode to a normal working mode, for example, a closed running program is turned on again, a background application program refreshing function is turned on, the brightness of a display interface is adjusted to appropriate brightness, and the like, so that normal running of various functions of the electronic device is ensured, and user experience is improved.
Fig. 7 is a flowchart illustrating a charging alert method according to another exemplary embodiment, wherein the charging alert method is applied to an electronic device. As shown in fig. 7, the charging prompting method includes the following steps:
in step S701, a prompt time of a preset reminder in the electronic device is obtained.
In step S702, a standby duration of the electronic device is determined according to a remaining power of the electronic device at the current time.
In step S703, when the standby time is shorter than the interval between the current time and the prompt time, a prompt message is output, where the prompt message is used to prompt the user to charge the electronic device.
In step S704, when the electronic device is in the charging state, it is detected whether the standby time period is longer than the interval time period.
In step S705, when the standby duration is longer than the interval duration, outputting a first prompt message, where the first prompt message is used to prompt the user that the remaining power of the electronic device at the current time is sufficient.
When the electronic equipment is in a charging state, the residual electric quantity of the electronic equipment at the current moment is obtained in real time in the charging process of the electronic equipment, the standby time of the electronic equipment is determined according to the residual electric quantity at the current moment, and the standby time is compared with the interval time between the current moment and the prompting moment of the preset reminding item.
When the standby duration is shorter than the interval duration, the remaining electric quantity of the electronic equipment at the current moment still cannot persist at the prompting moment of the preset reminding item, and the electronic equipment still needs to be charged; when the standby duration is longer than the interval duration, it is described that the remaining capacity of the electronic device at the current moment can persist at the prompt moment of the preset reminding item, so that first prompt information for prompting that the remaining capacity of the electronic device at the current moment is sufficient can be generated, and a user can timely know the remaining capacity condition of the electronic device at the current moment. Therefore, after receiving the first prompt message, the user can select to continue charging or stop charging according to the actual situation.
Fig. 8 is a block diagram illustrating a charge presentation apparatus applied to an electronic device according to an exemplary embodiment. Referring to fig. 8, the apparatus 800 includes a first obtaining module 801, a determining module 802, and a first prompting module 803.
The first obtaining module 801 is configured to obtain a prompt time of a preset reminder in the electronic device;
the determining module 802 is configured to determine a standby duration of the electronic device according to a remaining power of the electronic device at a current time;
the first prompting module 803 is configured to output a prompting message when the standby duration is less than the interval duration between the current time and the prompting time, where the prompting message is used to prompt a user to charge the electronic device.
In another embodiment, as shown in fig. 9, the determining module 802 includes:
a first obtaining submodule 821 configured to obtain the running program at the current time;
a first determining submodule 822 configured to determine an operation duration of the operation program according to a historical operation condition of the operation program and a current operation condition of the operation program;
a second determining submodule 823 configured to determine the power consumption amount of the running program according to the power consumption amount per unit time of the running program and the running time period;
a third determining submodule 824, configured to determine the standby duration according to the remaining power amount at the current time, the power consumption of the running program, and the standby current of the electronic device per unit time.
In one embodiment, as shown in FIG. 9, the first hinting module 803 includes:
a fourth determining submodule 831 configured to determine interval durations between the current time and prompting times of a plurality of preset reminders when the preset reminders are detected;
a comparison submodule 832 configured to compare the interval duration between the current time and the prompt time of the preset reminders with the standby duration respectively; and
the output sub-module 833 is configured to output the prompt information when an interval duration between the current time and a prompt time of any preset reminder is longer than the standby duration.
In another embodiment, as shown in fig. 9, the first prompting module 803 includes:
a first detection submodule 834 configured to detect whether the interval duration is less than a preset threshold duration when the standby duration is less than the interval duration between the current time and the prompt time;
a first prompt submodule 835 configured to output the prompt message when the interval duration is less than the preset threshold duration.
In another embodiment, as shown in fig. 9, the first prompting module 803 includes:
a fifth determining submodule 836 configured to determine, when the standby time period is less than the interval time period, a required time period for charging the electronic device to a target electric quantity if the electronic device is in a charging state;
a second prompting sub-module 837 configured to output the prompting message when the value of the required time length added to the time length of the target electric quantity capable of supporting the standby of the electronic device is less than the interval time length.
In another embodiment, as shown in fig. 9, the first prompting module 803 includes:
a setting sub-module 838 configured to set a reminding frequency according to the remaining power at the current time when the standby time is less than the interval time between the current time and the prompting time;
a third prompt sub-module 839 configured to output the prompt message according to the reminding frequency.
In another embodiment, as shown in fig. 9, the apparatus 800 further comprises:
a first switching module 804 configured to switch the electronic device to a low power consumption mode when the remaining standby time is less than the interval time.
In another embodiment, as shown in fig. 9, the apparatus 800 further comprises:
a second switching module 805 configured to switch the electronic device from the low power consumption mode to a normal operation mode if it is detected that the electronic device is in a charging state when the electronic device is switched to the low power consumption mode.
In another embodiment, as shown in fig. 9, the apparatus 800 further comprises:
a detecting module 806 configured to detect whether the standby duration is greater than the interval duration when the electronic device is in a charging state;
a second prompting module 807 configured to output a first prompting message when the standby duration is greater than the interval duration, where the first prompting message is used to prompt a user that the remaining power of the electronic device at the current time is sufficient.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the charge alert method provided by the present disclosure.
Fig. 10 is a block diagram illustrating an apparatus 1000 for a charge reminder method according to an example embodiment. For example, the apparatus 1000 may be a cell phone, a computer, a digital broadcast terminal, a messaging device, a smart wearable device, a smart alarm clock, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the charge reminder method described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 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.
Power components 1006 provide power to the various components of device 1000. Power components 1006 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and a 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 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. 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 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 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 assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of device 1000, the change in position of device 1000 or a component of device 1000, the presence or absence of user contact with device 1000, the orientation or acceleration/deceleration of device 1000, and the change in temperature of device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 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 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may 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 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 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 apparatus 1000 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 charge alert methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1020 of the device 1000 to perform the charge reminder method described above 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.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. A charging prompting method is applied to electronic equipment and is characterized by comprising the following steps:
acquiring a prompt moment of a preset reminding item in the electronic equipment;
determining the standby time of the electronic equipment according to the residual electric quantity of the electronic equipment at the current moment;
when the standby time length is shorter than the interval length between the current time and the prompt time, outputting prompt information, wherein the prompt information is used for prompting a user to charge the electronic equipment;
the step of outputting the prompt message when the standby time length is less than the interval between the current time and the prompt time length comprises:
when the standby time length is less than the interval time length between the current time and the prompt time, setting a reminding frequency according to the residual electric quantity at the current time;
and outputting the prompt information according to the reminding frequency.
2. The charge presentation method of claim 1, wherein the step of determining the standby time of the electronic device according to the remaining power of the electronic device at the current time comprises:
acquiring the running program of the current moment;
determining the running time of the running program according to the historical running condition of the running program and the current running condition of the running program;
determining the power consumption of the running program according to the power consumption of the running program in unit time and the running time length;
and determining the standby time according to the residual electric quantity at the current moment, the power consumption of the running program and the standby current of the electronic equipment in unit time.
3. The charging prompting method according to claim 1, wherein the step of outputting the prompting message when the standby time length is less than the interval length between the current time and the prompting time comprises:
when a plurality of preset reminding items are detected, respectively determining the interval duration between the current time and the reminding time of the preset reminding items;
comparing the interval duration between the current time and the prompt time of the plurality of preset reminding items with the standby duration respectively; and
and when the interval duration between the current time and the prompt time of any preset reminding item is longer than the standby duration, outputting the prompt information.
4. The charging prompting method according to claim 1, wherein the step of outputting the prompting message when the standby time length is less than the interval length between the current time and the prompting time comprises:
when the standby time length is less than the interval time length between the current time and the prompt time, detecting whether the interval time length is less than a preset threshold time length;
and outputting the prompt information when the interval duration is less than the preset threshold duration.
5. The charging prompting method according to claim 1, wherein the step of outputting the prompting message when the standby time length is less than the interval length between the current time and the prompting time comprises:
when the standby time length is less than the interval time length, if the electronic equipment is in a charging state, determining the required time length for charging the electronic equipment to the target electric quantity;
and when the sum of the required duration and the duration that the target electric quantity can support the standby of the electronic equipment is less than the interval duration, outputting the prompt message.
6. The charging prompting method according to claim 1, further comprising:
and when the residual standby duration is less than the interval duration, switching the electronic equipment to a low power consumption mode.
7. The charging prompting method according to claim 6, further comprising:
when the electronic equipment is switched to the low power consumption mode, if the electronic equipment is detected to be in a charging state, the electronic equipment is switched to a normal working mode from the low power consumption mode.
8. The charging prompting method according to claim 1, further comprising:
when the electronic equipment is in a charging state, detecting whether the standby time length is greater than the interval time length;
and when the standby duration is longer than the interval duration, outputting first prompt information, wherein the first prompt information is used for prompting a user that the residual electric quantity of the electronic equipment at the current moment is sufficient.
9. A charging prompting device is applied to electronic equipment and is characterized by comprising:
the first acquisition module is configured to acquire a prompt moment of a preset reminding item in the electronic equipment;
the determining module is configured to determine the standby time of the electronic equipment according to the residual electric quantity at the current moment;
the first prompting module is configured to output prompting information when the standby duration is shorter than the interval duration between the current time and the prompting time, wherein the prompting information is used for prompting a user to charge the electronic equipment;
the first prompt module includes:
the setting submodule is configured to set a reminding frequency according to the residual electric quantity at the current time when the standby time length is less than the interval time between the current time and the prompting time;
and the third prompting submodule is configured to output the prompting information according to the prompting frequency.
10. The charge reminder device of claim 9, wherein the determination module comprises:
a first obtaining submodule configured to obtain an operating program at the current time;
the first determining submodule is configured to determine the operation duration of the operation program according to the historical operation condition of the operation program and the current operation condition of the operation program;
a second determining submodule configured to determine power consumption of the running program according to the power consumption per unit time of the running program and the running time period;
a third determining submodule configured to determine the standby duration according to the remaining power amount at the current time, the power consumption of the operating program, and the standby current of the electronic device per unit time.
11. The charging prompting device of claim 9, wherein the first prompting module comprises:
the fourth determination submodule is configured to respectively determine interval duration between the current time and prompting time of a plurality of preset prompting items when the plurality of preset prompting items are detected;
the comparison submodule is configured to compare the interval duration between the current time and the prompt time of the plurality of preset reminding items with the standby duration respectively; and
and the output submodule is configured to output the prompt information when the interval duration between the current time and the prompt time of any preset reminding item is longer than the standby time duration.
12. The charging prompting device of claim 9, wherein the first prompting module comprises:
the first detection submodule is configured to detect whether the interval duration is smaller than a preset threshold duration or not when the standby duration is smaller than the interval duration between the current time and the prompt time;
the first prompting submodule is configured to output the prompting information when the interval duration is smaller than the preset threshold duration.
13. The charging prompting device of claim 9, wherein the first prompting module comprises:
a fifth determining submodule configured to determine a required time period for charging the electronic device to a target electric quantity if the electronic device is in a charging state when the standby time period is less than the interval time period;
and the second prompting submodule is configured to output the prompting information when the value obtained by adding the required time length and the time length of the target electric quantity which can support the standby of the electronic equipment is less than the interval time length.
14. The charge reminder device according to claim 9, characterized in that the device further comprises:
a first switching module configured to switch the electronic device to a low power consumption mode when the remaining standby time is less than the interval time.
15. The charge reminder device according to claim 14, characterized in that the device further comprises:
the second switching module is configured to switch the electronic device from the low power consumption mode to a normal operation mode if the electronic device is detected to be in a charging state when the electronic device is switched to the low power consumption mode.
16. The charge reminder device according to claim 9, characterized in that the device further comprises:
a detection module configured to detect whether the standby duration is greater than the interval duration when the electronic device is in a charging state;
and the second prompting module is configured to output first prompting information when the standby duration is longer than the interval duration, wherein the first prompting information is used for prompting a user that the residual electric quantity of the electronic equipment at the current moment is sufficient.
17. A charging prompting device is applied to electronic equipment and is characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a prompt moment of a preset reminding item in the electronic equipment;
determining the standby time of the electronic equipment according to the residual electric quantity at the current moment;
when the standby time length is shorter than the interval length between the current time and the prompt time, outputting prompt information, wherein the prompt information is used for prompting a user to charge the electronic equipment;
the step of outputting the prompt message when the standby time length is less than the interval between the current time and the prompt time length comprises:
when the standby time length is less than the interval time length between the current time and the prompt time, setting a reminding frequency according to the residual electric quantity at the current time;
and outputting the prompt information according to the reminding frequency.
18. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 9.
CN201710278613.5A 2017-04-25 2017-04-25 Charging prompting method and device Active CN107134823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710278613.5A CN107134823B (en) 2017-04-25 2017-04-25 Charging prompting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710278613.5A CN107134823B (en) 2017-04-25 2017-04-25 Charging prompting method and device

Publications (2)

Publication Number Publication Date
CN107134823A CN107134823A (en) 2017-09-05
CN107134823B true CN107134823B (en) 2019-12-27

Family

ID=59716525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710278613.5A Active CN107134823B (en) 2017-04-25 2017-04-25 Charging prompting method and device

Country Status (1)

Country Link
CN (1) CN107134823B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193718A (en) * 2017-05-27 2017-09-22 广东小天才科技有限公司 A kind of charging reminding method, system and terminal device
CN107608855B (en) * 2017-09-08 2020-03-06 维沃移动通信有限公司 Reminding method and mobile terminal
CN108156314B (en) * 2017-12-13 2020-06-19 北京小米移动软件有限公司 Electric quantity reminding method and device, electronic equipment and storage medium
CN108390435B (en) * 2018-04-02 2020-08-25 Oppo广东移动通信有限公司 Charging method, system and computer readable storage medium
CN108848253A (en) * 2018-05-24 2018-11-20 广东小天才科技有限公司 A kind of charging reminding method, device, speaker and storage medium
CN110022403A (en) * 2019-03-06 2019-07-16 华为技术有限公司 Terminal charge based reminding method, device, equipment and storage medium
CN110190643B (en) * 2019-05-24 2024-01-19 广东小天才科技有限公司 Method and device for reminding user of charging, wearable device and storage medium
CN110138037B (en) * 2019-05-24 2023-10-24 广东小天才科技有限公司 Method and device for reminding user of charging, wearable device and storage medium
CN110212601B (en) * 2019-05-24 2024-02-20 广东小天才科技有限公司 Charging reminding method and device, wearable device and storage medium
CN110138038B (en) * 2019-05-24 2024-03-29 广东小天才科技有限公司 Charging reminding method and device, wearable equipment and storage medium
CN111181218A (en) * 2020-01-22 2020-05-19 维沃移动通信有限公司 Charging prompting method, electronic device and medium
CN113315872B (en) * 2021-05-20 2022-07-12 中国联合网络通信集团有限公司 Mobile terminal control method and device and mobile terminal
CN115276190B (en) * 2022-09-22 2023-02-21 荣耀终端有限公司 Charging reminding method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774104A (en) * 2004-11-10 2006-05-17 乐金电子(中国)研究开发中心有限公司 Prompting service control method for mobile communication terminal
CN104219383A (en) * 2014-08-20 2014-12-17 小米科技有限责任公司 Terminal power information prompting method and device
CN104750597A (en) * 2015-04-16 2015-07-01 小米科技有限责任公司 User guide method and device during low power
CN105338188A (en) * 2015-11-18 2016-02-17 广东欧珀移动通信有限公司 Schedule prompting method and mobile terminal
CN105530384A (en) * 2014-09-28 2016-04-27 小米科技有限责任公司 Method and device for power reminding based on alarm clock
CN105914826A (en) * 2016-05-16 2016-08-31 北京小米移动软件有限公司 Charging and discharging reminding method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774104A (en) * 2004-11-10 2006-05-17 乐金电子(中国)研究开发中心有限公司 Prompting service control method for mobile communication terminal
CN104219383A (en) * 2014-08-20 2014-12-17 小米科技有限责任公司 Terminal power information prompting method and device
CN105530384A (en) * 2014-09-28 2016-04-27 小米科技有限责任公司 Method and device for power reminding based on alarm clock
CN104750597A (en) * 2015-04-16 2015-07-01 小米科技有限责任公司 User guide method and device during low power
CN105338188A (en) * 2015-11-18 2016-02-17 广东欧珀移动通信有限公司 Schedule prompting method and mobile terminal
CN105914826A (en) * 2016-05-16 2016-08-31 北京小米移动软件有限公司 Charging and discharging reminding method and device

Also Published As

Publication number Publication date
CN107134823A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN107134823B (en) Charging prompting method and device
CN106774774B (en) Method and device for displaying electric quantity of terminal battery
US10884473B2 (en) Methods, electronic devices, and storage mediums for waking up an icon
US10264085B2 (en) Method and device for presenting push notifications
US10598707B2 (en) Method, apparatus, and system for counting electricity consumption
US10423379B2 (en) Method and device for screen-off display
CN105912450B (en) Application state information display method and device
EP3133466A1 (en) Method and device for reminding in shutdown state
EP3226187A1 (en) Method and device for information presentation
US10698442B2 (en) Method and apparatus for always-on display applied in a display driver integrated circuit
CN109862169B (en) Electronic equipment control method, device and storage medium
WO2017054344A1 (en) Method and device for processing communication message
CN107704294B (en) Method and device for processing reserved event
CN107809538B (en) Alarm clock reminding method and device and computer readable storage medium
CN107733021B (en) Control method and device of electronic equipment
CN107528098B (en) Charging method and device
EP4084267A1 (en) Method and apparatus for charging a battery and terminal
CN106791089B (en) Method and device for prompting battery electric quantity
CN110286735B (en) Processing method, device and medium
CN108365645B (en) Charging control method and device and storage medium
CN112887454A (en) Electronic equipment, display method and device
US11635468B2 (en) Method, apparatus and storage medium for determining charging time length of battery
CN113946372B (en) Data processing method and device, electronic equipment and storage medium
CN109275179B (en) Terminal device control method and device, terminal device and storage medium
CN107885553B (en) Animation loading method and device and electronic equipment

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