WO2018064863A1 - 用于确定剩余电量百分比的方法和终端设备 - Google Patents

用于确定剩余电量百分比的方法和终端设备 Download PDF

Info

Publication number
WO2018064863A1
WO2018064863A1 PCT/CN2016/112131 CN2016112131W WO2018064863A1 WO 2018064863 A1 WO2018064863 A1 WO 2018064863A1 CN 2016112131 W CN2016112131 W CN 2016112131W WO 2018064863 A1 WO2018064863 A1 WO 2018064863A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
power
charging
information
current
Prior art date
Application number
PCT/CN2016/112131
Other languages
English (en)
French (fr)
Inventor
冯鹏
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201680066793.4A priority Critical patent/CN108291942B/zh
Publication of WO2018064863A1 publication Critical patent/WO2018064863A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]

Definitions

  • Embodiments of the present invention relate to the field of power display technologies, and, more particularly, to a method and a terminal device for determining a percentage of remaining power.
  • terminal devices such as mobile phones and tablet computers are becoming more and more important in people's daily lives. Terminal devices usually need to be charged to maintain operation, so the display of remaining power of terminal devices is very important for users. .
  • the terminal device displays the remaining power by the remaining battery percentage.
  • the terminal device according to the formula Determining the percentage of remaining power of the terminal device, where C current is the current power of the terminal device, and C rating is the rated power of the terminal device.
  • the embodiment of the invention provides a method and a terminal device for determining the percentage of remaining power, which can reduce the probability that the percentage of remaining power decreases rapidly from 100% in a short time, and improve the user experience.
  • a method for determining a remaining amount of power After the terminal device is connected to the charging device to reach a rated power, the method includes: acquiring, by the terminal device, first power information of the terminal device, the first power The information is used to indicate the current power of the terminal device after the terminal device and the charging device are disconnected; the terminal device determines the current remaining battery power percentage of the terminal device according to the first power information and the stored charging information; The charging information is used by the terminal device to determine the actual amount of power finally reached by charging the terminal device.
  • the terminal device determines the remaining battery percentage based on the first power information and the charging information, and can reduce the remaining battery percentage from 100 in a short time.
  • the probability of a rapid decline in % improves the user experience.
  • the method before the terminal device determines the current remaining battery power percentage of the terminal device according to the first power information and the stored charging information, the method further includes: determining, by the terminal device, the charging information.
  • the terminal device determines the charging information, including: the terminal device periodically stores second power information of the terminal device, where the second power information is used to indicate the terminal device and the The current power of the terminal device in the case where the charging device is connected; the terminal device determines that the second power amount information stored last time is the charging information.
  • the terminal device can store the second power information in the same storage area, and can fully utilize the storage resources to avoid unnecessary waste of storage resources.
  • the terminal device determines, according to the first power information and the stored charging information, a current percentage of remaining power of the terminal device, including: determining the current remaining according to the following formula: Percentage of electricity: Where ⁇ 1 is the current percentage of remaining power, C current (discharged) is the current power of the terminal device indicated by the first power information, and C reached (final) is the final actual determined by the terminal device according to the charging information. Electricity.
  • the terminal device determines the charging information, including: the terminal device periodically stores self-loss information of the terminal device; and the terminal device determines that the last stored self-loss information is the charging information. .
  • the terminal device determines that the last stored self-loss information is charging information, so that the terminal device determines the remaining power percentage according to the charging information, the rated power, and the first power information, and the solution is better than the prior art. compatibility.
  • the terminal device determines, according to the first power information and the stored charging information, a current percentage of remaining power of the terminal device, including: determining the current remaining according to the following formula: Percentage of electricity: Where ⁇ 1 is the current percentage of remaining power, and C current (discharged) is the current power of the terminal device indicated by the first power information, and the C self-waste is the self- loss of the terminal device indicated by the charging information.
  • the percentage of the remaining battery capacity of the terminal device is 100%, which can prevent the terminal device from charging for a long time and the remaining battery percentage is less than 100%. Phenomenon can improve the user experience. Further, the remaining power percentage obtained according to the method has better compatibility, and is beneficial for the terminal device to determine the remaining power percentage of the subsequent state.
  • a terminal device for performing the method of the first aspect or any possible implementation of the first aspect.
  • the terminal device may comprise means for performing the method of the first aspect or any of the possible implementations of the first aspect.
  • a terminal device comprising: a memory for storing a computer program, a processor for calling and running a computer program from a memory, the processor executing the first aspect described above when the program is executed Or the method of any of the possible implementations of the first aspect.
  • a computer readable medium for storing a computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.
  • the method and the terminal device for determining the percentage of remaining power in the embodiment of the present invention can reduce the probability that the percentage of remaining power decreases rapidly from 100% in a short time, and improve the user experience.
  • FIG. 1 is a corresponding relationship diagram of current power and time of a terminal device applicable to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of an example of a method for determining a percentage of remaining power according to an embodiment of the present invention.
  • FIG. 3 is an illustration of another example of a method for determining a percentage of remaining charge according to an embodiment of the present invention. Intentional flow chart.
  • FIG. 4 is a schematic block diagram of an example of a terminal device according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of another example of a terminal device according to an embodiment of the present invention.
  • the terminal device may also be referred to as a user equipment (User Equipment, UE), a mobile station, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, Terminal, wireless communication device, user agent or user device, etc.
  • UE User Equipment
  • the terminal device may be a station (STAION, STA) in a Wireless Local Area Networks (WLAN), and may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, or a wireless local loop (Wireless Local) Loop, WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, and future communication networks (eg, The mobile station in 5G) or the terminal device in the PLMN network in the future, the terminal device may also be any device including a battery or the like.
  • FIG. 1 is a corresponding relationship diagram of current power and time of a terminal device applicable to an embodiment of the present invention.
  • the status of the terminal device is different, and the corresponding relationship between the current power and the time of the terminal device is different.
  • the terminal device includes at least the following states:
  • the state of charge (the terminal device is connected to the charging device);
  • the state of charge can be divided into two cases:
  • the actual power that the terminal device currently reaches is lower than the rated power, and the terminal device is in the charging process.
  • the terminal device reaches a full power state by charging for the first time. In other words, by charging The power of the end device reaches the rated power for the first time.
  • the recharge state (the terminal device is connected with the charging device);
  • the recharge state can be divided into two cases:
  • the terminal device Waiting for the recharge state. Specifically, after the power of the terminal device reaches the rated power, the terminal device enters a waiting for recharge state, and in the waiting for the recharge state, the terminal device gradually increases the power of the terminal device due to the self-loss of the terminal device. decline.
  • the real recharge status Specifically, when the power of the terminal device drops to a certain level (for example, when it is lower than or equal to the recharge threshold), the terminal device enters a true recharging process until the power of the terminal device reaches the rated power again.
  • the recharge state can be understood as a state in which the terminal device is still connected to the charging device after the terminal device is connected to the charging device (first time), and the current state of the terminal device fluctuates according to a certain amplitude in the recharging state. (Where the peak is the rated power and the valley is the recharge threshold). For example, if the recharge threshold is set to 98% ⁇ C rating , if the current power of the terminal device is lower than or equal to 98% ⁇ C rating , the terminal device enters the real recharge state, so that the current power of the terminal device gradually rises, if the terminal The current power of the device reaches C rating , and the terminal device enters the waiting for recharge state, and the current power of the terminal device gradually decreases.
  • the terminal device connected to the charging device for a long time is not always charged, but after charging to the rated power amount, the charging is stopped first, and then charging is performed when the charging condition is satisfied.
  • the internal loss of the terminal device or the system loss of the terminal device which can be called the self-loss of the terminal device
  • the actual amount of power that the terminal device actually reaches will gradually decrease.
  • the discharge state can be understood as a state in which the terminal device is disconnected from the charging device after the power of the terminal device reaches the rated power. In other words, after the terminal device reaches the rated power by the amount of charge, the state of the terminal device after the charging device (the charging device connected to the terminal device is unplugged) is unplugged.
  • the terminal device In the case where the terminal device is connected to the charging device, if the power of the terminal device reaches the rated power, the terminal device will generate self-loss, and therefore, the actual power finally reached by the charging terminal device is less than or equal to the rated power.
  • the method of determining the percentage of the remaining power display usually includes the following two types:
  • the terminal device periodically measures the current power of the terminal device. If the current power is equal to the value of the rated power, the terminal device displays the remaining battery percentage as 100%. If the current battery level is lower than the rated power, the terminal device displays that the remaining battery percentage is less than 100%.
  • the manner of determining the percentage of remaining power can accurately display the remaining power of the power, but the percentage of remaining power displayed by the terminal device may be less than 100% when the terminal device is in the refill state (for example, the state of 102).
  • the rated power of the terminal device is 3000 mAh, and the terminal device enters the recharge state after reaching the rated power. Due to the self-loss of the terminal device, the actual power of the terminal device is reduced from 3000 mAh to 2940 mAh (the current power of the terminal device), which is displayed at this time.
  • the remaining battery percentage is 98%.
  • the percentage of remaining power of the terminal device in the recharge state is 100%, and the percentage of remaining battery capacity of the terminal device in the discharged state is
  • the value of the remaining battery power percentage of the terminal device may drop from 100% to 99% or even 98% in a short time (for example, within 1 minute).
  • the rated power of the terminal device is 3000 mAh, and the terminal device enters the recharge state. Due to the self-loss of the terminal device, the actual power of the terminal device is reduced from 3000 mAh to 2940 mAh, and the remaining battery percentage is 100%. However, the power charged by the terminal device is 2940 mAh. If the terminal device is disconnected from the charging device at this time, the percentage of remaining power will be reduced from 100% to 98% in a short time.
  • an embodiment of the present invention provides a method and a terminal device for determining a percentage of remaining power, which are applied to a terminal device after the terminal device is disconnected from the charging device by charging, and then the terminal device is configured according to the terminal device.
  • the current power consumption of the terminal device and the actual power consumption finally reached by the terminal device connected to the charging device determine the current remaining battery power percentage of the terminal device.
  • FIG. 2 and FIG. 3 are schematic flowcharts for determining the percentage of remaining power according to an embodiment of the present invention, showing detailed steps or operations of the method, but the steps or operations are merely examples, and the present invention is implemented.
  • the example can also perform other operations or various operations in Figure 2 or Figure 3.
  • the various steps in FIGS. 2 and 3 may be performed in a different order than that presented in FIGS. 2 and 3, respectively, and it is possible to perform only some of the operations in FIGS. 2 and 3.
  • the method 200 includes:
  • the terminal device acquires first power information of the terminal device.
  • the first power information is used to indicate a current power quantity of the terminal device acquired by the terminal device after the terminal device and the charging device are disconnected.
  • the first power amount information is used to indicate the current power level of the terminal device in the discharged state.
  • the terminal device may include a power collection unit (a power collector) that periodically collects the current power of the terminal device.
  • the terminal device After the terminal device reaches the rated power by connecting with the charging device, the terminal device is disconnected from the charging device. In other words, in the case where the remaining battery percentage is 100%, the terminal device will disconnect from the charging device. For example, after the user sees that the current remaining power ratio of the terminal device is 100%, the terminal device acquires the first power information after disconnecting the connection between the terminal device and the charging device.
  • the terminal device determines, according to the first power information and the stored charging information, a current percentage of remaining power of the terminal device.
  • the charging information is used by the terminal device to determine the actual power amount finally reached by charging the terminal device.
  • the terminal device is connected to the charging device, and the actual power that the terminal device finally reaches.
  • the charging information may be stored in a disk of the terminal device.
  • the charging information before the terminal device determines the current remaining battery percentage, the charging information may be determined first.
  • the manner in which the terminal device determines the charging information may include at least the following.
  • the terminal device may periodically store the second power information of the terminal device, where the second power information is used to indicate the current power of the terminal device when the terminal device is in the refill state.
  • the terminal device can determine that the last stored second power information is the charging information.
  • the second power information stored last time is also the second power information finally stored by the terminal device.
  • the current power of the terminal device is the current actual power of the terminal device.
  • the terminal device periodically storing the second power information may include two modes:
  • the terminal device stores the acquired second power information to obtain a set of the second power information.
  • the terminal device stores the second power information table according to the second power information that can be acquired each time, and the second power information table includes a correspondence between the time and the second power information.
  • the terminal device stores the second power information in a certain period in a certain storage area, and the currently stored second power information covers the last stored second power information.
  • the mode 2 stores the second power information, which can save storage resources and improve storage resource utilization.
  • the terminal device is currently in the refill state. If the storage period is N (N>0) seconds, the terminal device may store (ie, write) the second power information A of the terminal device at the first moment in the preset storage area. After N seconds, the terminal device writes the terminal device in the storage area at the second time (where the second time is later than the first time, and the difference between the second time and the first time is equal to N or approximately equal to N) The second battery information B.
  • the terminal device writes the second power information of the terminal device at the corresponding moment in the storage area until the terminal device enters the discharging state from the refilling state (in other words, until the terminal device and the charging device) Disconnected), the terminal device determines that the last power information written last time is the charging information. For example, after the terminal device writes the second power information M of the terminal device at the Tth time in the storage area, the terminal device disconnects from the charging device, and the second power information M is the last stored second power information.
  • the terminal device when the terminal device is in the refilling state, the terminal device periodically acquires the second battery information, and the terminal device periodically stores the acquired second battery information.
  • the period for acquiring the second power information may be the same as or different from the period for storing the second power information.
  • the terminal device may store the second power information acquired each time.
  • the second power information stored by the terminal device is the last time of the terminal device. The second power information of the obtained terminal device.
  • the acquisition period of the second power information is 30 seconds, and the storage period is 1 minute.
  • the device is currently in the refill state.
  • the terminal device obtains the second power information A of the terminal device at 11:00:00, and the second power information A is used to indicate that the current power of the terminal device is 3000 mAh, and the terminal device is overwritten by writing the second power information A.
  • the second power information written by the terminal device last time.
  • the terminal device obtains the second power information B of the terminal device at 11:00:30, and the second power information B is used to indicate that the current power of the terminal device is 2970 mAh.
  • the terminal device does not write because the storage period is 1 minute.
  • the second power information B is entered.
  • the second power information C is used to indicate that the current power of the terminal device is 2940 mAh, and the terminal device writes the second power information C.
  • the second power information A is covered. If the terminal device is disconnected from the charging device at 11:1, 45:00, the second power information C is the charging information, and the terminal device can determine, according to the second power information C, that the terminal is connected to the charging device.
  • the actual power reached by the device is 2940 mAh.
  • the charging information determined by the mode 1 is used to indicate the actual power amount finally reached by connecting the terminal device to the charging device.
  • the terminal device may determine the current remaining battery percentage based on a ratio between the current power indicated by the first power information and the actual power indicated by the charging information.
  • the terminal device When the terminal device is in the recharging state, the terminal device periodically stores the self-loss information of the terminal device, where the self-loss information is used to indicate the current self-loss of the terminal device when the terminal device and the charging device are connected.
  • the terminal device determines that the last stored self-loss information is the charging information.
  • the last stored self-loss information is also the self-loss information that the terminal device ultimately stores.
  • the current self-loss of the terminal device is determined by the rated power of the terminal device and the current power of the terminal device in the re-charging state.
  • the rated power of the terminal device is 3000 mAh.
  • the current power acquired by the terminal device is 2970 mAh, and the current self-loss information is determined according to (3000 mAh-2970 mAh).
  • the current self-loss of the terminal device indicated by the self-loss information is 30 mAh.
  • the terminal device when the terminal device is in the recharging state, the terminal device can periodically acquire the current power, and the terminal device can determine the current self-loss information according to the obtained current power and the rated power, and the terminal device periodically
  • the self-depletion information is stored in a specific manner. For details, refer to the related description in the foregoing mode 1. For brevity, details are not described herein again.
  • the charging information determined by the second method is used to indicate the final self-loss of the terminal device, and the terminal device can determine the actual power according to the rated power and the charging information, and the current power and the actual power indicated by the terminal device according to the first power information.
  • the ratio between the current percentage of the remaining battery is determined.
  • the method 200 provided in the embodiment of the present invention can reduce the phenomenon that the remaining power decreases rapidly from 100% in a short time, compared with the percentage of the remaining power in the discharge state of the terminal device according to the ratio of the current power and the rated power. Can improve the user experience.
  • the terminal device After the terminal device reaches 3000 mAh by charging, the terminal device enters the recharge state. Due to self-loss, the power (or available power) of the terminal device drops from 3000 mAh to 2940 mAh after a period of time. Disconnected from the charging device (the actual power of the terminal device is 2940mAh). Assuming that the terminal device does not perform any operation within 1 min, the current power acquired by the terminal device is still 2940 mAh. According to the method of determining the remaining percentage in the prior art, the percentage of the remaining battery is rapidly decreased from 100% to Lead to poor user experience.
  • the terminal device after the terminal device is disconnected from the charging device, it is assumed that the terminal device does not perform any operation within 1 min, and the current power acquired by the terminal device is still 2940 mAh, and the remaining battery percentage is
  • the C current (discharged) is the current power quantity of the terminal device indicated by the first power quantity information
  • C reached (final) is the actual power quantity finally reached by the terminal device according to the charging information and connected to the charging device. It avoids the phenomenon that the percentage of remaining power drops rapidly in a short period of time, which can improve the user experience.
  • the terminal device determines the actual power reached by the 2940 mAh.
  • the terminal device may be slightly lower than 2940 mAh (the terminal device is at 102a) or slightly higher (the terminal device is at 102b), but the error is small and can be ignored.
  • the terminal device obtains the determined final reached actual power is lower than the terminal The device removes the power at the moment of charging the device, and the terminal device determines that the remaining battery percentage is 100%.
  • the method 200 of the embodiment of the present invention has been described from the perspective that the terminal device is in a discharged state. In fact, after the terminal device is connected to the charging device to reach the rated power, the terminal device may be in multiple states. Another example of a method for determining remaining power according to an embodiment of the present invention is described in conjunction with FIG.
  • FIG. 3 is a schematic flow diagram of another example of a method 300 for determining remaining power, in accordance with an embodiment of the present invention.
  • the method 300 can be performed by a terminal device or by an electronic device. As shown in FIG. 3, the method 300 can include:
  • the S330 is used to determine the percentage of remaining power of the terminal device in the discharged state.
  • the “percentage of remaining battery capacity of the terminal device in the discharged state” may be simply referred to as “the first remaining battery percentage”
  • the “current power information of the terminal device in the discharged state” is simply referred to as "first power amount information”.
  • the terminal device determines the first remaining battery percentage in S330.
  • ⁇ 1 is the first remaining charge percentage
  • C current(discharged) and C reach (final) can be referred to the related description above.
  • C current(discharged) and C reach (final) can be referred to the related description above.
  • the terminal device determines the first remaining battery percentage in S330.
  • C current(discharged) and C rating can be referred to the related description above
  • C self-waste is the self- loss of the terminal device indicated by the charging information
  • the related description of the charging information can be referred to The relevant description of the text will not be repeated here for brevity.
  • the C rating -C self-waste is the actual power that is finally reached by connecting the terminal device to the charging device.
  • Equation 2 or Equation 3 is used to determine the percentage of remaining electricity in the discharge state, the probability that the percentage of remaining electricity will suddenly drop from 100% in a short time can be reduced. Improve the user experience.
  • connection of the terminal device to the charging device includes two states of a charging state and a recharging state.
  • the terminal device may determine whether the terminal device is in a refill state by using multiple manners.
  • the terminal device before the terminal device obtains the current power, the obtained terminal device reaches the rated power, and the terminal device can determine that the terminal device is in the refill state.
  • the power of the terminal device acquired by the terminal device is the rated power at the first moment, and the terminal device is connected to the charging device at the second moment (the second moment is later than the first moment), and the terminal device determines that the terminal device is in the second moment. Charge status.
  • the S341 is used to determine the percentage of the remaining power of the terminal device in the recharge state.
  • the “percentage of the remaining battery capacity of the terminal device in the recharge state” may be simply referred to as “the second remaining battery percentage”.
  • the "current power information of the terminal device in the refill state” is simply referred to as "second power information”.
  • the terminal device determines the second remaining battery percentage in S341.
  • C current (recharged) the current power indicated by the second power information.
  • C reached (recharged) the current actually reached by the terminal device connected to the charging device,
  • C current(recharged) C reached(recharged) .
  • the terminal device determines the second remaining battery percentage in S341.
  • C current (recharged) is the current power quantity of the terminal device indicated by the second power quantity information
  • C reached (recharged) is the actual power amount currently reached by connecting the terminal device with the charging device
  • C current ( Recharged) C reached (recharged)
  • C rating can refer to the related description above
  • the C rating -C reached (recharged) is the current self-loss of the terminal device.
  • the terminal device after acquiring the second power information, and before acquiring the power information of the terminal device, the terminal device is disconnected from the charging device.
  • the current power quantity indicated by the second power quantity information is the power quantity that the terminal equipment finally actually obtains by charging.
  • the difference between the rated power of the terminal device and the power actually obtained is the self-loss of the terminal device during charging.
  • the percentage of the second remaining power determined by using Equation 4 or Equation 5 is 100%, which can avoid the phenomenon that the remaining power of the terminal device and the charging device is less than 100% for a long time, which can improve the user experience. Further, The method can improve the compatibility of the terminal device to determine the remaining power.
  • the terminal device may determine the remaining battery power percentage of the terminal device according to the current power information and the actual power reached by the terminal device connected to the charging device until the current power information is acquired.
  • the S342 is used to determine the percentage of remaining power in the charging state of the terminal device.
  • the “percentage of remaining battery in the charging state” may be simply referred to as “the third remaining battery percentage”, and “will be in the charging state”.
  • the obtained current power information is simply referred to as “third power information”, and the terminal device determines the third remaining battery percentage in S342.
  • ⁇ 3 is the third remaining power percentage
  • C current (charging) is the current power indicated by the third power information.
  • the terminal device may directly display the remaining battery percentage after determining the remaining battery percentage, or may process the remaining battery percentage through system processing (for example, by using a system hopping smoothing algorithm). display.
  • the terminal device when the terminal device is in the refilling state, the terminal device may determine, according to the status flag bit, whether the terminal device is specifically in the 102a state or the 102b state. For example, when the status flag is "1", the terminal device determines that the terminal device is waiting for the recharging process (ie, 102a state), and when the status flag is "0", the terminal device determines that the terminal device enters the real refilling process to enable charging (ie, 102b). status).
  • the embodiment of the present invention may determine the percentage of remaining power according to the state of the terminal device, the state of the terminal device is different, and the manner of determining the percentage of remaining power is different.
  • the terminal device can be based on the current power and terminal settings.
  • the percentage of remaining battery is determined by the actual amount of power that is ultimately achieved by charging.
  • the method can reduce the probability that the power suddenly drops from 100% in a short time and improve the user experience.
  • the terminal device can determine that the remaining battery percentage is 100%. It can avoid the phenomenon that the battery charge is still less than 100% for a long time, which can improve the user experience.
  • the terminal device may determine the remaining battery percentage based on the current power and the rated power of the terminal device. It is beneficial for the user to determine the actual power of the terminal device.
  • FIGS. 1 through 3 a method for determining a percentage of remaining power according to an embodiment of the present invention has been described in conjunction with FIGS. 1 through 3.
  • a terminal device according to an embodiment of the present invention will be described in detail with reference to FIGS. 4 and 5.
  • the terminal device 400 shown in FIG. 4 includes:
  • a processing unit 410 configured to: acquire first power information of the terminal device, where the first power information is used to indicate that the terminal device is acquired by the processing unit after the terminal device and the charging device are disconnected The current power amount is determined, according to the first power information and the stored charging information, determining a current percentage of remaining power of the terminal device; wherein the charging information is used by the terminal device to determine the actual power that the terminal device finally achieves by charging the terminal device .
  • the processing unit 410 is further configured to: determine the charging information.
  • the processing unit 410 is configured to periodically store the second power information of the terminal device, where the second power information is used to indicate that the processing unit is 410 when the terminal device and the charging device are connected. Obtaining the current power of the terminal device; determining the second power information stored last time as the charging information.
  • the processing unit 410 is specifically configured to periodically store the self-loss information of the terminal device, where the self-loss information is used to indicate that the terminal device is currently self-connected if the terminal device is connected to the charging device. Loss; determine the last stored self-loss information as the charging information.
  • the terminal device 400 should be a terminal device or an electronic device in a method for determining a percentage of remaining power according to an embodiment of the present invention, and the terminal device 400 may include a unit for performing the above method. And the respective processes in the terminal device 400 and the other operations and/or functions described above are respectively implemented in order to implement the method performed by the terminal device or the electronic device of the foregoing method, and are not described herein again for brevity.
  • FIG. 5 is a schematic block diagram of another example of a terminal device according to an embodiment of the present invention.
  • the device 500 shown in FIG. 5 includes: a memory 510, configured to store an instruction; a processor 520, configured to acquire first power information of the terminal device, where the first power information is used to indicate the terminal device and the Determining, according to the first power information and the stored charging information, a current percentage of remaining power of the terminal device; wherein the charging information is used for the processing
  • the device determines the actual amount of power that is ultimately reached by charging the terminal device.
  • the processor 520 is further configured to: determine the charging information.
  • the processor 520 is specifically configured to: periodically store second power information of the terminal device, where the second power information is used to indicate that the terminal device and the charging device are connected The current power of the terminal device; determining that the second power information stored last time is the charging information.
  • the processor 520 is specifically configured to: periodically store the self-loss information of the terminal device; and determine that the self-loss information stored last time is the charging information.
  • the terminal device 500 may further include: a power source 501 (for example, a battery), a power management unit (such as a power manager) 502, an interface 503, a display unit 504, and a shot.
  • a power source 501 for example, a battery
  • a power management unit such as a power manager
  • an interface 503 for example, a display
  • a shot for example, a display
  • RF Radio frequency
  • the power source 501 (for example, a battery) is used to supply power to various components of the terminal device 500.
  • the power management unit 502 is configured to manage operations such as charging and discharging of the power source.
  • the power source 501 can be logically connected to the processor 520 through the power management unit 502, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management unit.
  • the power management unit 501 can include a power collection unit 502a for acquiring the power of the power source 501.
  • the interface 503 is configured to connect the terminal device and the charging device, and enable the terminal device to perform charging.
  • the interface 503 can be connected to the power source 501 through the power management unit 502.
  • the display unit 504 is configured to display to the user the percentage of the remaining battery capacity determined by the terminal device or to display to the user the percentage of the remaining battery capacity processed by the terminal device.
  • the display unit 504 may include a display panel 504a.
  • a liquid crystal display (“LCD”) or an organic light-emitting diode (OLED) may be used.
  • the display panel 504a is configured.
  • the RF circuit 505 can be used to receive and transmit signals during transmission and reception of information or during a call, in particular, after receiving the downlink signal, to the processor 520; in addition, the uplink signal is transmitted.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 505 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile Communication ("GSM”), General Packet Radio Service ("GPRS”). , Code Division Multiple Access (“CDMA”), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE) , email, short message service (Short Messaging Service, referred to as "SMS").
  • GSM Global System of Mobile Communication
  • GPRS General Packet Radio Service
  • the audio unit 506 includes an audio circuit 506a, a speaker 506b, and a microphone 506c.
  • the audio unit 506 can provide an audio interface between the user and the terminal device.
  • the audio circuit 506a can transmit the converted electrical data of the received audio data to the speaker 506b, and is converted by the speaker 506b into The sound signal is output; on the other hand, the microphone 506c converts the collected sound signal into an electrical signal, which is received by the audio circuit 506a and converted into audio data, and then the audio data is output to the RF circuit 505 for transmission to, for example, another terminal device, or The audio data is output to memory 510 for further processing.
  • the terminal device may further include a Wireless Fidelity (“WiFi”) module, a Bluetooth module, and the like, which are not shown in FIG. 5, and details are not described herein again.
  • WiFi Wireless Fidelity
  • the device 500 may correspond to a terminal device or an electronic device in a method for determining a percentage of remaining power according to an embodiment of the present invention, and the device 500 may include a terminal device or an electronic device for performing the above method.
  • the physical unit of the method The physical units in the device 500 and the other operations and/or functions described above are respectively used for the corresponding processes of the foregoing methods, and are not described herein for brevity.
  • the processor in the embodiments of the present invention may be an integrated circuit chip having signal processing capabilities.
  • each step of the foregoing method embodiment may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
  • the processor may be a central processing unit (CPU), the processor may be another general-purpose processor, a digital signal processor (DSP), or an application specific integrated circuit (ASIC). ), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software in the decoding processor.
  • the software can be located in a random storage medium, such as a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, and the like.
  • the storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method.
  • the memory in embodiments of the invention may be a volatile memory or a non-volatile memory, or may include both volatile and nonvolatile memory.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory. Volatility
  • the memory may be a random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • many forms of RAM may be used, such as static random access memory (SRAM).
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous DRAM
  • DDR SDRAM Double Data Rate SDRAM
  • ESDRAM Enhanced Synchronization Dynamic Random Access Memory
  • SDRAM Synchronous Connection Dynamic Random Access Memory
  • DR RAM Direct Memory Bus Random Memory
  • bus system may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus.
  • bus systems may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus.
  • various buses are labeled as bus systems in the figure.
  • B corresponding to A means that B is associated with A, and B can be determined according to A.
  • determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
  • the term "and/or” herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately while 10 is stored in A. And B, there are three cases of B alone.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
  • the steps of the method for transmitting an uplink signal disclosed in the embodiment of the present invention may be directly implemented as a hardware processor execution completion, or may be performed by a combination of hardware and software in a processor.
  • the software can be located in a random storage medium, such as a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, and the like.
  • the storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method. To avoid repetition, it will not be described in detail here.
  • Embodiments of the present invention also provide a computer readable storage medium storing one or more programs, the one or more programs including instructions that are portable electronic devices that include a plurality of applications When executed, the portable electronic device can be caused to perform the method of the embodiment shown in Figures 2 and/or 3.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention, or the part contributing to the prior art or the part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

一种用于确定剩余电量百分比的方法和终端设备,能够提高用户体验。该方法应用于终端设备通过与充电设备连接达到额定电量之后,该方法包括:终端设备获取该终端设备的第一电量信息,该第一电量信息用于指示在该终端设备和该充电设备断开连接之后该终端设备的当前电量(S210);该终端设备根据该第一电量信息和存储的充电信息,确定该终端设备当前的剩余电量百分比;其中,该充电信息用于该终端设备确定通过充电该终端设备最终达到的实际电量(S220)。

Description

用于确定剩余电量百分比的方法和终端设备
本申请要求于2016年10月08日提交中国专利局、申请号为2016108791715、发明名称为“一种电量显示的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及电量显示技术领域,并且更具体地,涉及一种用于确定剩余电量百分比的方法和终端设备。
背景技术
随着电子技术的快速发展,终端设备如手机以及平板电脑等在人们的日常生活中越来越重要,终端设备通常需要通过充电来维持运行,所以终端设备的剩余电量的显示对于用户来说很重要。
终端设备通过剩余电量百分比进行剩余电量的显示。在现有技术中,终端设备与充电设备断开连接之后,终端设备根据公式
Figure PCTCN2016112131-appb-000001
确定终端设备的剩余电量百分比,其中,Ccurrent为终端设备的当前电量,Crating为终端设备的额定电量。采用该方法,在终端设备长时间充电的情况下,终端设备与充电设备断开连接之后,在短时间内终端设备的剩余电量百分比可能会从100%快速下降,导致用户体验差。
发明内容
本发明实施例提供一种用于确定剩余电量百分比的方法和终端设备,能够减小短时间内剩余电量百分比从100%快速下降的概率,提高用户体验。
第一方面,提供一种用于确定显示剩余电量的方法,应用于终端设备通过与充电设备连接达到额定电量之后,该方法包括:终端设备获取该终端设备的第一电量信息,该第一电量信息用于指示在该终端设备和该充电设备断开连接之后该终端设备的当前电量;该终端设备根据该第一电量信息和存储的充电信息,确定该终端设备当前的剩余电量百分比;其中,该充电信息用于该终端设备确定通过充电该终端设备最终达到的实际电量。
采用该方案,在终端设备通过充电达到额定电量之后,若终端设备与充电设备断开连接,终端设备根据第一电量信息和充电信息确定剩余电量百分比,能够减小短时间内剩余电量百分比从100%快速下降的概率,提高用户体验。
在第一方面可能的实现方式中,在该终端设备根据该第一电量信息和存储的充电信息,确定该终端设备当前的剩余电量百分比之前,该方法还包括:该终端设备确定该充电信息。
在第一方面可能的实现方式中,该终端设备确定该充电信息,包括:该终端设备周期性地存储该终端设备的第二电量信息,该第二电量信息用于指示在该终端设备和该充电设备连接的情况下该终端设备的当前电量;该终端设备确定最后一次存储的第二电量信息为该充电信息。
在该方案中,终端设备可以在同一个存储区域存储第二电量信息,能够充分地利用存储资源,避免不必要的存储资源浪费。
可选地,在第一方面可能的实现方式中,该终端设备根据该第一电量信息和存储的充电信息,确定该终端设备当前的剩余电量百分比,包括:根据如下公式,确定该当前的剩余电量百分比:
Figure PCTCN2016112131-appb-000002
其中,η1为该当前的剩余电量百分比,Ccurrent(discharged)为第一电量信息指示的终端设备的当前电量,Creached(final)为该终端设备根据该充电信息确定的该最终达到的实际电量。
在第一方面可能的实现方式中,该终端设备确定该充电信息,包括:该终端设备周期性地存储该终端设备的自损耗信息;该终端设备确定最后一次存储的自损耗信息为该充电信息。
该方案中,终端设备确定最后一次存储的自损耗信息为充电信息,以便于终端设备根据该充电信息、额定电量以及第一电量信息确定该剩余电量百分比,该方案与现有技术有较好的兼容性。
可选地,在第一方面可能的实现方式中,该终端设备根据该第一电量信息和存储的充电信息,确定该终端设备当前的剩余电量百分比,包括:根据如下公式,确定该当前的剩余电量百分比:
Figure PCTCN2016112131-appb-000003
其中,η1为该当前的剩余电量百分比,Ccurrent(discharged)为第一电量信息指示的终端设备的当前电量,该Cself-waste为该充电信息指示的该终端设备的自损耗。
在第一方可能的实现方式中,在所述终端设备获取所述终端设备的第一 电量信息之前,,所述方法还包括:所述终端设备根据如下公式确定在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比;
Figure PCTCN2016112131-appb-000004
其中,η为在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比,Ccurrent(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前电量,Creached(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前达到的实际电量,Ccurrent(recharged)=Creached(recharged)
在该方案中,终端设备与充电设备连接的情况下(或终端设备处于复充状态时),终端设备的剩余电量百分比为100%,能够避免终端设备长时间充电剩余电量百分比低于100%的现象,能够提高用户体验。进一步地,根据该方式获取的剩余电量百分比具有较好的兼容性,有利于终端设备确定后续状态的剩余电量百分比。
第二方面,提供一种终端设备,用于执行第一方面或第一方面任意可能的实现方式中的方法。具体地,该终端设备可以包括用于执行第一方面或第一方面任意可能的实现方式中的方法的单元。
第三方面,提供一种终端设备,包括存储器和处理器,该存储器用于存储计算机程序,处理器用于从存储器中调用并运行计算机程序,当程序被运行时,该处理器执行上述第一方面或第一方面任意可能的实现方式中的方法。
第四方面,提供一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。
本发明实施例的用于确定剩余电量百分比的方法和终端设备,能够减小短时间内剩余电量百分比从100%快速下降的概率,提高用户体验。
附图说明
图1是适用于本发明实施例的终端设备的当前电量和时间的对应关系图。
图2是根据本发明实施例的用于确定剩余电量百分比的方法一例的示意性流程图。
图3是根据本发明实施例的用于确定剩余电量百分比的方法另一例的示 意性流程图。
图4是根据本发明实施例的终端设备的一例示意性框图。
图5是根据本发明实施例的终端设备的另一例的示意性框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
在本发明实施例中,终端设备也可以称为用户设备(User Equipment,UE)、移动台、接入终端、用户单元、用户站、移动站、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置等。终端设备可以是无线局域网(Wireless Local Area Networks,WLAN)中的站点(STAION,STA),可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备以及未来通信网络(例如,5G)中的移动台或者未来演进的PLMN网络中的终端设备,该终端设备还可以是任何包括电池的设备等。
需要说明的是,在本发明实施例中“第一”“第二”等仅仅为了区分,不应对本发明实施例构成任何限定。
还需要说明的是,本发明实施例中的情况和方式等的划分仅是为了描述的方便,不应构成特别的限定,各种情况和方式中的特征在不矛盾的情况下可以相结合。
为了便于理解本发明实施例,首先简单介绍终端设备的当前电量和时间的对应关系。图1是适用于本发明实施例的终端设备的当前电量和时间的对应关系图。其中,终端设备所处的状态不同,终端设备的当前电量和时间的对应关系不同。如图1所示,该终端设备至少包括以下几种状态:
101、充电状态(终端设备与充电设备连接);
具体地,充电状态可以分为两种情况:
101a、终端设备当前达到的实际电量低于额定电量,终端设备处于充电过程。
101b、终端设备通过充电第一次达到满电状态。换句话说,通过充电终 端设备的电量第一次达到额定电量的状态。
102、复充状态(终端设备与充电设备连接);
具体地,复充状态可以分为两种情况:
102a、等待复充状态,具体地,终端设备的电量达到额定电量之后,终端设备进入等待复充状态,终端设备在该等待复充状态下,由于终端设备的自损耗,终端设备的电量会逐渐下降。
102b、真正复充状态。具体地,当终端设备的电量下降到一定程度时(例如,低于或等于复充门限时),终端设备会进入真正复充过程,直到终端设备的电量重新达到额定电量。
该复充状态可以理解为通过与充电设备连接终端设备(第一次)达到额定电量之后,终端设备仍然与充电设备连接的状态,在复充状态下,终端设备的当前电量会根据一定振幅波动(其中,波峰为额定电量,波谷为复充门限)。例如,设定复充门限为98%·Crating,若终端设备的当前电量低于或等于98%·Crating,终端设备进入真正复充状态,以使终端设备的当前电量逐渐上升,若终端设备的当前电量达到Crating,终端设备进入等待复充状态,终端设备的当前电量逐渐下降。
换句话说,长时间与充电设备连接的终端设备并不是一直充电,而是充电至额定电量之后,先停止充电,等到满足充电条件时再进行充电。在该过程中,由于终端设备内部损耗或终端设备的系统损耗(可以称此类损耗为终端设备的自损耗),该终端设备实际达到的电量会逐渐下降。
103、放电状态(终端设备与充电设备断开连接);
该放电状态可以理解为终端设备的电量达到额定电量之后,终端设备与充电设备断开连接的状态。换句话说,终端设备通过充电电量达到额定电量之后,拔掉充电设备(将与终端设备连接的充电设备拔掉)之后,终端设备所处的状态。
在终端设备与充电设备连接的情况下,若终端设备的电量达到额定电量,终端设备会产生自损耗,因此,通过充电终端设备最终达到的实际电量小于或等于额定电量。
终端设备在充电达到额定电量之后,确定剩余电量显示百分比的方式通常包括以下两种:
1、通过公式(1),确定剩余电量显示百分比。
Figure PCTCN2016112131-appb-000005
具体地,终端设备周期性地测量终端设备的当前电量,若当前电量与额定电量的值相等,终端设备显示剩余电量百分比为100%。若当前电量低于额定电量,终端设备显示剩余电量百分比低于100%。
该确定剩余电量百分比的方式,能够准确显示电量的剩余电量,但是,在终端设备处于复充状态时(例如102状态)终端设备显示的剩余电量百分比可能低于100%。例如,终端设备的额定电量为3000mAh,终端设备达到额定电量之后进入复充状态,由于终端设备的自损耗,终端设备的实际电量由3000mAh降低至2940mAh(终端设备的当前电量),此时显示的剩余电量百分比为98%。
用户发现经过长时间充电的终端设备的剩余电量百分比低于100%,会认为终端设备故障导致用户体验差。
2、复充状态的终端设备剩余电量百分比为100%,放电状态的终端设备的剩余电量百分比为
Figure PCTCN2016112131-appb-000006
只要终端设备进入复充状态,确定剩余电量百分比为100%。但是若终端设备与充电设备断开连接,终端设备的剩余电量百分比的值有可能在短时间(例如1分钟之内)由100%下降到99%,甚至98%。例如,终端设备的额定电量为3000mAh,终端设备进入复充状态,由于终端设备的自损耗,终端设备的实际电量由3000mAh降低至2940mAh,此时剩余电量百分比为100%。但实际上终端设备充入的电量为2940mAh,若在此时终端设备与充电设备断开连接,剩余电量百分比会在短时间内由100%降低至98%。
用户发现在短时间内终端设备的电量由100%突然下降,会认为终端设备耗电过快,导致用户体验差。
有鉴于此,本发明实施例提供一种用于确定剩余电量百分比的方法和终端设备,应用于终端设备通过充电达到额定电量之后,在终端设备与充电设备断开连接的情况下,终端设备根据终端设备的当前电量和通过与充电设备连接终端设备最终达到的实际电量确定终端设备当前的剩余电量百分比。
以下,结合图2和图3详细说明根据本发明实施例的用于确定剩余电量百分比的方法。应理解,图2和图3是本发明实施例的用于确定剩余电量百分比的示意性流程图,示出了该方法的详细的步骤或操作,但这些步骤或操作仅是示例,本发明实施例还可以执行其它操作或者图2或图3中的各种操 作的变形。此外,图2和图3中的各个步骤可以分别按照与图2和图3所呈现的不同的顺序来执行,并且有可能仅要执行图2和图3中的部分操作。
图2是根据本发明实施例的用于确定剩余电量百分比的方法的一例的示意性流程图。应用于终端设备通过与充电设备连接达到额定电量之后,如图2所示,该方法200包括:
S210、终端设备获取该终端设备的第一电量信息,
具体地,该第一电量信息用于指示在该终端设备和该充电设备断开连接之后,该终端设备获取的该终端设备的当前电量。换句话说,第一电量信息用于指示该终端设备处于放电状态下的当前电量。终端设备可以包括电量采集单元(电量采集器),该电量采集器可以周期性地采集终端设备的当前电量。
需要说明的是,终端设备通过与充电设备连接达到额定电量之后,终端设备才会与充电设备断开连接。换句话说,在剩余电量百分比为100%的情况下,终端设备才会断开与充电设备的连接。例如,用户看到终端设备当前的剩余电量比为100%,断开终端设备与充电设备之间连接之后,终端设备获取该第一电量信息。
还需要说明的是,在终端设备与充电设备连接的情况下,虽然该剩余电量百分比为100%,该终端设备的最终实际达到电量未必为额定电量,具体说明可以参见上文的相关描述,此处不再赘述。
S220、该终端设备根据该第一电量信息和存储的充电信息,确定该终端设备当前的剩余电量百分比。
具体地,该充电信息用于该终端设备确定通过充电该终端设备最终达到的实际电量。换句话说,该终端设备通过与该充电设备连接,该终端设备最终达到的实际电量。可选地,该充电信息可以存储于该终端设备的磁盘中。
可选地,在本发明实施例中,该终端设备确定该当前的剩余电量百分比之前,可以先确定该充电信息。该终端设备确定该充电信息的方式至少可以包括以下几种。
方式一、
在终端设备处于复充状态时,终端设备可以周期性地存储该终端设备的第二电量信息,该第二电量信息用于指示终端设备处于复充状态时该终端设备的当前电量。该终端设备可以确定最后一次存储的第二电量信息为该充电 信息。该最后一次存储的第二电量信息也是该终端设备最终存储的第二电量信息。在终端设备处于复充状态时,该终端设备的当前电量为该终端设备的当前实际达到的电量。
应理解,该终端设备周期性地存储该第二电量信息可以包括两种方式:
(1)终端设备将获取的第二电量信息进行存储以获取第二电量信息的集合。
示例性地,终端设备按照可以将每次获取的第二电量信息进行存储获取第二电量信息表格,该第二电量信息表格包括时刻和第二电量信息的对应关系。
(2)终端设备在同一个存储区域按照一定周期存储第二电量信息,当前存储的第二电量信息会覆盖上一次存储的第二电量信息。采用方式二存储第二电量信息,能够节省存储资源,提高存储资源利用率。
例如,终端设备当前处于复充状态,假设该存储周期为N(N>0)秒,终端设备可以在预设的存储区域存储(即写入)终端设备在第一时刻的第二电量信息A,经过N秒,终端设备在该存储区域写入终端设备在第二时刻(其中,该第二时刻晚于第一时刻,且第二时刻和第一时刻的差值等于N或近似等于N)的第二电量信息B。后续地,每间隔N秒,终端设备就会在该存储区域写入终端设备在相应时刻的第二电量信息,直到终端设备由复充状态进入放电状态(换句话说,直到终端设备与充电设备断开连接),终端设备确定该最后一次写入的第二电量信息为该充电信息。例如,终端设备在该存储区域写入终端设备在第T时刻的第二电量信息M之后,终端设备与充电设备断开连接,该第二电量信息M为最后一次存储的第二电量信息。
在本发明实施例中,终端设备处于复充状态时,终端设备周期性地获取第二电量信息,终端设备周期性地存储该获取的第二电量信息。其中,该获取第二电量信息的周期与存储第二电量信息的周期可以相同也可以不相同。
作为可选地一例,若获取第二电量信息的周期和存储第二电量信息的周期相同,终端设备可以存储每次获取的第二电量信息。
作为可选地另一例,若获取第二电量信息的周期(第一周期)和存储第二电量信息的周期(第二周期)不同,终端设备每次存储的第二电量信息为终端设备最近一次获取的终端设备的第二电量信息。
例如,第二电量信息的获取周期为30秒,存储周期为1分钟,终端设 备当前处于复充状态。终端设备在北京时间11点0分0秒获取终端设备的第二电量信息A,该第二电量信息A用于指示终端设备的当前电量为3000mAh,终端设备通过写入该第二电量信息A覆终端设备上一次写入的第二电量信息。终端设备在北京时间11点0分30秒获取终端设备设备的第二电量信息B,该第二电量信息B用于指示终端设备的当前电量为2970mAh,由于存储周期为1分钟,终端设备不写入该第二电量信息B。终端设备在北京时间11点1分00秒获取的终端设备的第二电量信息C,该第二电量信息C用于指示终端设备的当前电量为2940mAh,终端设备通过写入该第二电量信息C覆盖该第二电量信息A。若在北京时间11点1分45s该终端设备与该充电设备断开连接,该第二电量信息C为该充电信息,该终端设备可以根据该第二电量信息C确定通过与充电设备连接该终端设备最终达到的实际电量为2940mAh。
采用方式一确定的充电信息用于指示通过与充电设备连接该终端设备最终达到的实际电量。终端设备可以根据该第一电量信息指示的当前电量和充电信息指示的实际电量之间的比值,确定该当前的剩余电量百分比。
方式二、
在终端设备处于复充状态时,该终端设备周期性地存储该终端设备的自损耗信息,该自损耗信息用于指示在该终端设备和该充电设备连接的情况下该终端设备当前的自损耗;该终端设备确定最后一次存储的自损耗信息为该充电信息。该最后一次存储的自损耗信息也是该终端设备最终存储的自损耗信息。
其中,终端设备当前的自损耗是终端设备的额定电量和处于复充状态的终端设备的当前电量确定的。
例如,假设终端设备的额定电量为3000mAh,在终端设备处于复充状态时,终端设备获取的当前电量为2970mAh,根据(3000mAh-2970mAh)确定该当前的自损耗信息。该自损耗信息指示的该终端设备当前的自损耗为30mAh。
与上文描述的相类似,在终端设备处于复充状态时,终端设备可以周期性地获取当前电量,该终端设备可以根据获取的当前电量和额定电量确定当前的自损耗信息,该终端设备周期性地存储该自损耗信息,具体说明可以参见上文方式一的相关描述,为了简洁此处不再赘述。
采用方式二确定的充电信息用于指示终端设备最终的自损耗,该终端设备可以根据额定电量和该充电信息确定该实际电量,终端设备可以根据该第一电量信息指示的当前电量和该实际电量之间的比值,确定该当前的剩余电量百分比。
与现有技术中根据当前电量和额定电量的比值确定终端设备在放电状态的剩余电量百分比相比较,本发明实施例提供的方法200能够减小剩余电量在短时间内从100%快速下降的现象,能够提高用户体验。
例如,假设额定电量为3000mAh,终端设备通过充电达到3000mAh之后,终端设备进入复充状态,由于自损耗,经过一段时间后终端设备的电量(或可用电量)由3000mAh下降至2940mAh,此时终端设备与充电设备断开连接(终端设备的实际电量为2940mAh)。假设在1min内终端设备没有作任何操作,终端设备获取的当前电量仍然为2940mAh,采用现有技术中确定剩余百分比的方法,该剩余电量百分比会由100%快速下降至
Figure PCTCN2016112131-appb-000007
导致用户体验差。
而在本发明实施例中,终端设备与充电设备断开连接之后,假设在1min内终端设备没有作任何操作,终端设备再次获取的当前电量仍然为2940mAh,剩余电量百分比
Figure PCTCN2016112131-appb-000008
其中,Ccurrent(discharged)为第一电量信息指示的终端设备的当前电量,Creached(final)为终端设备根据充电信息确定的通过与充电设备连接该终端设备最终达到的实际电量。避免了剩余电量百分比短时间内快速下降的现象,能够提高用户体验。
需要说明是,在本发明实施例中,该终端设备根据充电信息确定的终端设备最终达到的实际电量与该终端设备事实上最终达到的实际电量之间可能会存在误差,但是该误差较小可以忽略。例如,假设终端设备获取第二电量信息的周期为3s,该终端设备在北京时间10点00分00秒获取的第二当前电量为2940mAh,该终端设备在北京时间10点00分02秒与充电设备断开连接。终端设备确定该2940mAh为最终达到的实际电量。事实上,在北京时间00点02秒该终端设备可能比2940mAh稍低(终端设备处于102a)或稍高(终端设备处于102b),但是该误差较小可以忽略。
还需要说明的是,若终端设备获取确定的最终达到的实际电量低于终端 设备拔掉充电设备那一时刻的电量,该终端设备确定剩余电量百分比为100%。
以上,从终端设备处于放电状态的角度描述了本发明实施例的方法200。事实上,终端设备与充电设备连接达到额定电量之后,终端设备可能处于多种状态。结合图3描述根据本发明实施例的用于确定剩余电量的方法的另一例。
图3是根据本发明实施例的用于确定剩余电量的方法300的另一例的示意性流程图。该方法300可以由终端设备执行也可以由电子设备执行。如图3所示,该方法300可以包括:
S310、获取终端设备的当前电量信息;
S320、确定该终端设备是否和充电设备连接;
S330、若终端设备与充电设备断开连接,根据该当前电量信息和充电信息确定终端设备当前的剩余电量百分比。
具体地,该S330用于确定处于放电状态下的终端设备的剩余电量百分比,为了便于说明,可以将“处于放电状态下的终端设备的剩余电量百分比”简称为“第一剩余电量百分比”,将“处于放电状态下终端设备的当前电量信息”简称为“第一电量信息”。
作为可选地一例,在S330中终端设备确定第一剩余电量百分比
Figure PCTCN2016112131-appb-000009
其中,η1为第一剩余电量百分比,Ccurrent(discharged)和Creached(final)可以参见上文的相关描述。该充电信息的相关说明可以参见上文的相关描述,为了简洁此处不再赘述。
作为可选地另一例,在S330中该终端设备确定第一剩余电量百分比
Figure PCTCN2016112131-appb-000010
其中,η1第一剩余电量百分比,Ccurrent(discharged)和Crating可以参见上文的相关描述,Cself-waste为充电信息指示的终端设备的自损耗,该充电信息的相关说明可以参见上文的相关描述,为了简洁此处不再赘述。该Crating-Cself-waste为通过与充电设备连接该终端设备最终达到的实际电量。
可以看出,不论采用公式2还是公式3确定放电状态下的剩余电量百分比,均可以减小剩余电量百分比在短时间内从100%突然下降的概率,能够 提高用户体验。
S340、若终端设备与充电设备连接,根据该终端设备是否处于复充状态确定剩余电量百分比。
具体地,参见上文描述,终端设备与充电设备连接包括充电状态和复充状态两种状态。
可选地,在本发明实施例中,终端设备可以通过多种方式确定该终端设备是否处于复充状态。
例如,终端设备在获取该当前电量之前,获取的终端设备的电量达到额定电量,终端设备可以确定该终端设备处于复充状态。例如,在第一时刻终端设备获取的终端设备的电量为额定电量,在第二时刻(第二时刻晚于第一时刻)终端设备与充电设备相连,终端设备确定在第二时刻终端设备处于复充状态。
S341、若终端设备处于复充状态,确定剩余电量百分比为100%;
具体地,该S341用于确定处于复充状态下终端设备的剩余电量百分比,为了便于说明,可以将“处于复充状态下的终端设备剩余电量百分比”简称为“第二剩余电量百分比”,将“处于复充状态下终端设备的当前电量信息”简称为“第二电量信息”。
作为可选地一例,在S341中该终端设备确定第二剩余电量百分比
Figure PCTCN2016112131-appb-000011
其中,η2为第二剩余电量百分比,Ccurrent(recharged)为第二电量信息指示的当前电量。Creached(recharged)为通过与充电设备连接终端设备当前实际达到的电量,Ccurrent(recharged)=Creached(recharged)
作为可选地另一例,在S341中该终端设备确定第二剩余电量百分比
Figure PCTCN2016112131-appb-000012
其中,η2第二剩余电量百分比,Ccurrent(recharged)为第二电量信息指示的终端设备的当前电量,Creached(recharged)为通过与充电设备连接终端设备当前达到的实际电量,Ccurrent(recharged)=Creached(recharged),Crating可以参见上文的相关描述,该Crating-Creached(recharged)为终端设备当前的自损耗。
可选地,在本发明实施例中,若在获取该第二电量信息之后且在下一次获取该终端设备的电量信息之前,该终端设备与该充电设备断开连接,此时, 该第二电量信息指示的当前电量为该终端设备通过充电最终实际获取的电量。终端设备的额定电量和该最终实际获取的电量之间的差值为该终端设备在充电过程中的自损耗。
可以看出,不论采用公式4还是公式5确定的第二剩余电量百分比均为100%,能够避免终端设备与充电设备长时间连接剩余电量低于100%的现象,能够提高用户体验,进一步地,采用该方法能够提高终端设备确定剩余电量的兼容性。
具体地,在终端设备达到额定电量之后,终端设备可以根据该当前电量信息以及直到获取该当前电量信息为止通过与充电设备连接终端设备达到的实际电量,确定终端设备的剩余电量百分比。
S342、若终端设备处于非复充状态,根据该当前电量信息和额定电量确定当前的剩余电量百分比。
具体地,该S342用于确定终端设备充电状态下的剩余电量百分比,为了便于说明,可以将“处于充电状态下的剩余电量百分比”简称为“第三剩余电量百分比”,将“处于充电状态下获取的当前电量信息”简称为“第三电量信息”,在S342中该终端设备确定第三剩余电量百分比
Figure PCTCN2016112131-appb-000013
其中,η3为第三剩余电量百分比,Ccurrent(charging)为该第三电量信息所指示的当前电量,Crating可以参见上文的相关描述。
可选地,在本发明实施例中,终端设备确定剩余电量百分比之后可以直接显示该剩余电量百分比,也可以将该剩余电量百分比通过系统处理(例如,通过系统的跳变平滑算法进行处理)再显示。
可选地,在本发明实施例中,在终端设备处于复充状态时,终端设备可以根据状态标记位,确定终端设备具体处于102a状态还是102b状态。例如,状态标记位为“1”时终端设备确定终端设备为等待复充过程(即102a状态),状态标记位为“0”时终端设备确定终端设备进入真正复充过程使能充电(即102b状态)。
基于以上说明,本发明实施例可以根据终端设备所处的状态确定剩余电量百分比,终端设备所处的状态不同,确定剩余电量百分比的方式不同。
例如,若终端设备处于放电状态,终端设备可以根据当前电量和终端设 备通过充电最终达到的实际电量确定剩余电量百分比。该方法能够减小短时间内电量从100%突然下降的概率,提高用户体验。
又例如,若终端设备处于复充状态,终端设备可以确定剩余电量百分比为100%。能够避免长时间充电电量仍然低于100%的现象,能够提高用户体验。
再例如,若终端设备处于充电状态,终端设备可以根据当前电量和终端设备的额定电量确定剩余电量百分比。有利于用户确定终端设备当前的实际电量。
以上,结合图1至图3描述了根据本发明实施例的用于确定剩余电量百分比的方法。以下,结合图4和图5详细说明根据本发明实施例的终端设备。
图4是根据本发明实施例的终端设备的一例的示意性框图。该终端设备通过与充电设备连接达到额定电量之后,图4所示的终端设备400包括:
处理单元410,该处理单元410用于:获取该终端设备的第一电量信息,该第一电量信息用于指示在该终端设备和该充电设备断开连接之后,该处理单元获取的该终端设备的当前电量;根据该第一电量信息和存储的充电信息,确定该终端设备当前的剩余电量百分比;其中,该充电信息用于该终端设备确定该终端设备通过充电该终端设备最终达到的实际电量。
可选地,在该处理单元410获取该终端设备的第一电量信息之前,该处理单元410还用于:确定该充电信息。
可选地,该处理单元410具体用于:周期性地存储该终端设备的第二电量信息,该第二电量信息用于指示在该终端设备和该充电设备连接的情况下,该处理单元410获取的该终端设备的当前电量;确定最后一次存储的第二电量信息为该充电信息。
可选地,该处理单元410具体用于:周期性地存储该终端设备的自损耗信息,该自损耗信息用于指示在该终端设备和该充电设备连接的情况下,该终端设备当前的自损耗;确定最后一次存储的自损耗信息为该充电信息。
可选地,在所述终端设备获取所述终端设备的第一电量信息之前,所述处理单元410还用于:根据如下公式确定在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比;
Figure PCTCN2016112131-appb-000014
其中,η为在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比,Ccurrent(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设 备的当前电量,Creached(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前达到的实际电量,Ccurrent(recharged)=Creached(recharged)
具体地,该终端设备400应对于根据本发明实施例的用于确定剩余电量百分比的方法中的终端设备或电子设备,该终端设备400可以包括用于执行上述方法的单元。并且该终端设备400中的各单元和上述其他操作和/或功能分别为了实现上述方法的终端设备或电子设备执行的方法的相应流程,为了简洁,此处不再赘述。
图5是根据本发明实施例的终端设备的另一例的示意性框图。图5所示的设备500包括:存储器510,用于存储指令;处理器520,用于获取所述终端设备的第一电量信息,所述第一电量信息用于指示在所述终端设备和所述充电设备断开连接之后所述终端设备的当前电量;根据所述第一电量信息和存储的充电信息,确定所述终端设备当前的剩余电量百分比;其中,所述充电信息用于所述处理器确定通过充电所述终端设备最终达到的实际电量。
可选地,在所述处理器获取所述终端设备的第一电量信息之前,所述处理器520还用于:确定所述充电信息。
可选地,所述处理器520具体用于:周期性地存储所述终端设备的第二电量信息,所述第二电量信息用于指示在所述终端设备和所述充电设备连接的情况下所述终端设备的当前电量;确定最后一次存储的所述第二电量信息为所述充电信息。
可选地,所述处理器520具体用于:周期性地存储所述终端设备的自损耗信息;确定最后一次存储的所述自损耗信息为所述充电信息。
可选地,在所述处理器520获取所述终端设备的第一电量信息之前,所述处理器520还用于:根据如下公式确定在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比;
Figure PCTCN2016112131-appb-000015
其中,η为在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比,Ccurrent(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前电量,Creached(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前达到的实际电量,Ccurrent(recharged)=Creached(recharged)
可选地,如图5所示,该终端设备500还可以包括:电源501(例如电池)、电源管理单元(例如电源管理器)502、接口503、显示单元504、射 频(Radio Frequency,“RF”)电路505及音频单元506等部件。本领域技术人员可以理解,图5中示出的终端设备的结构并不构成对终端设备的限定,终端设备具体可以包括比图5所示的部件更多或更少的部件,或者组合某些部件,或者不同的部件分布的位置不同。
其中,该电源501(例如电池),用于给终端设备500各个部件供电。
电源管理单元502,用于对电源的充放电等操作进行管理。可选地,该电源501可以通过电源管理单元502与处理器520逻辑相连,从而通过电源管理单元实现管理充电、放电、以及功耗管理等功能。该电源管理单元501可以包括电量采集单元502a,该电量采集单元502a用于获取电源501的电量。
接口503,用于连接终端设备和充电设备,使能终端设备进行充电。可选地,该接口503可以通过电源管理单元502与电源501相连。
显示单元504,用于向用户展示终端设备确定地剩余电量百分比或向用户展示终端设备经过处理的剩余电量百分比。
具体地,显示单元504可以包括显示面板504a,可选的,可以采用液晶显示器(Liquid Crystal Display,简称为“LCD”)、有机发光二极管(Organic Light-emitting Diode,简称为“OLED”)等形式来配置显示面板504a。
RF电路505可用于在收发信息或通话过程中,信号的接收和发送,特别地,接收到下行信号后,给处理器520处理;另外,将上行信号发送出去。通常,RF电路包括但不限于天线、至少一个放大器、收发机、耦合器、低噪声放大器(Low Noise Amplifier,简称为“LNA”)、双工器等。此外,RF电路505还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯(Global System of Mobile Communication,简称为“GSM”)、通用分组无线服务(General Packet Radio Service,简称为“GPRS”)、码分多址(Code Division Multiple Access,简称为“CDMA”)、宽带码分多址(Wideband Code Division Multiple Access,简称为“WCDMA”)、长期演进(Long Term Evolution,简称为“LTE”)、电子邮件、短消息服务(Short Messaging Service,简称为“SMS”)等。
音频单元506包括音频电路506a、扬声器506b以及麦克风506c。音频单元506可提供用户与终端设备之间的音频接口。音频电路506a可将接收到的音频数据转换后的电信号,传输到扬声器506b,由扬声器506b转换为 声音信号输出;另一方面,麦克风506c将收集的声音信号转换为电信号,由音频电路506a接收后转换为音频数据,再将音频数据输出至RF电路505以发送给比如另一终端设备,或者将音频数据输出至存储器510以便进一步处理。
可选的,终端设备还可以包括图5中未示出的无线保真(Wireless Fidelity,简称为“WiFi”)模块、蓝牙模块等,本发明实施例在此不再赘述。
应理解,该设备500可对应于根据本发明实施例的用于确定剩余电量百分比的方法中的终端设备或电子设备,该设备500可以包括用于执行上述方法中的终端设备或电子设备执行的方法的实体单元。并且,该设备500中的各实体单元和上述其他操作和/或功能分别为了上述方法的相应流程,为了简洁,在此不再赘述。
还应理解,本发明实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是中央处理单元(Central Processing Unit,CPU)、该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件器组合执行完成。软件器可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
还应理解,本发明实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失 性存储器可以是随机存取存储器(Random Access Memory,RAM”),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
还应理解,该总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统。
还应理解,在本发明实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存10在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的用于传输上行信号的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件器组合执行完成。软件器可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
本发明实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的便携式电子设备执行时,能够使该便携式电子设备执行图2和/或图3所示实施例的方法。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各 示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明实施例的具体实施方式,但本发明实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的 技术范围内,可轻易想到变化或替换,都应涵盖在本发明实施例的保护范围之内。因此,本发明实施例的保护范围应以所述权利要求的保护范围为准。

Claims (15)

  1. 一种用于确定剩余电量百分比的方法,其特征在于,应用于终端设备通过与充电设备连接达到额定电量之后,所述方法包括:
    终端设备获取所述终端设备的第一电量信息,所述第一电量信息用于指示在所述终端设备和所述充电设备断开连接之后所述终端设备的当前电量;
    所述终端设备根据所述第一电量信息和存储的充电信息,确定所述终端设备当前的剩余电量百分比;
    其中,所述充电信息用于所述终端设备确定通过充电所述终端设备最终达到的实际电量。
  2. 根据权利要求1所述的方法,其特征在于,在所述终端设备根据所述第一电量信息和存储的充电信息,确定所述终端设备当前的剩余电量百分比之前,所述方法还包括:
    所述终端设备确定所述充电信息。
  3. 根据权利要求2所述的方法,其特征在于,所述终端设备确定所述充电信息,包括:
    所述终端设备周期性地存储所述终端设备的第二电量信息,所述第二电量信息用于指示在所述终端设备和所述充电设备连接的情况下所述终端设备的当前电量;
    所述终端设备确定最后一次存储的所述第二电量信息为所述充电信息。
  4. 根据权利要求2所述的方法,其特征在于,所述终端设备确定所述充电信息,包括:
    所述终端设备周期性地存储所述终端设备的自损耗信息;
    所述终端设备确定最后一次存储的所述自损耗信息为所述充电信息。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,在所述终端设备获取所述终端设备的第一电量信息之前,所述方法还包括:
    所述终端设备根据如下公式确定在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比;
    Figure PCTCN2016112131-appb-100001
    其中,η为在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比,Ccurrent(recharged)为在所述终端设备与所述充电设备连接的情 况下所述终端设备的当前电量,Creached(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前达到的实际电量,Ccurrent(recharged)=Creached(recharged)
  6. 一种终端设备,其特征在于,所述终端设备通过与充电设备连接达到额定电量之后,所述终端设备包括:
    处理单元,所述处理单元用于:
    获取所述终端设备的第一电量信息,所述第一电量信息用于指示在所述终端设备和所述充电设备断开连接之后所述终端设备的当前电量;
    根据所述第一电量信息和存储的充电信息,确定所述终端设备当前的剩余电量百分比;
    其中,所述充电信息用于所述处理单元确定通过充电所述终端设备最终达到的实际电量。
  7. 根据权利要求6所述的终端设备,其特征在于,在所述处理单元获取所述终端设备的第一电量信息之前,所述处理单元还用于:确定所述充电信息。
  8. 根据权利要求7所述的终端设备,其特征在于,所述处理单元具体用于:
    周期性地存储所述终端设备的第二电量信息,所述第二电量信息用于指示在所述终端设备和所述充电设备连接的情况下所述终端设备的当前电量;
    确定最后一次存储的所述第二电量信息为所述充电信息。
  9. 根据权利要求7所述的终端设备,其特征在于,所述处理单元具体用于:
    周期性地存储所述终端设备的自损耗信息;
    确定最后一次存储的所述自损耗信息为所述充电信息。
  10. 根据权利要求6至9中任一项所述的终端设备,其特征在于,在所述处理单元获取所述终端设备的第一电量信息之前,所述处理单元还用于:
    根据如下公式确定在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比;
    Figure PCTCN2016112131-appb-100002
    其中,η为在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比,Ccurrent(recharged)为在所述终端设备与所述充电设备连接的情 况下所述终端设备的当前电量,Creached(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前达到的实际电量,Ccurrent(recharged)=Creached(recharged)
  11. 一种终端设备,其特征在于,所述终端设备通过与充电设备连接达到额定电量之后,所述终端设备包括:
    存储器,用于存储指令;
    处理器,用于获取所述终端设备的第一电量信息,所述第一电量信息用于指示在所述终端设备和所述充电设备断开连接之后所述终端设备的当前电量;
    根据所述第一电量信息和存储的充电信息,确定所述终端设备当前的剩余电量百分比;
    其中,所述充电信息用于所述处理器确定通过充电所述终端设备最终达到的实际电量。
  12. 根据权利要求11所述的终端设备,其特征在于,在所述处理器获取所述终端设备的第一电量信息之前,所述处理器还用于:确定所述充电信息。
  13. 根据权利要求12所述的终端设备,其特征在于,所述处理器具体用于:
    周期性地存储所述终端设备的第二电量信息,所述第二电量信息用于指示在所述终端设备和所述充电设备连接的情况下所述终端设备的当前电量;
    确定最后一次存储的所述第二电量信息为所述充电信息。
  14. 根据权利要求12所述的终端设备,其特征在于,所述处理器具体用于:
    周期性地存储所述终端设备的自损耗信息;
    确定最后一次存储的所述自损耗信息为所述充电信息。
  15. 根据权利要求11至14中任一项所述的终端设备,其特征在于,在所述处理器获取所述终端设备的第一电量信息之前,所述处理器还用于:
    根据如下公式确定在所述终端设备与所述充电设备连接的情况下所述终端设备的剩余电量百分比;
    Figure PCTCN2016112131-appb-100003
    其中,η为在所述终端设备与所述充电设备连接的情况下所述终端设备 的剩余电量百分比,Ccurrent(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前电量,Creached(recharged)为在所述终端设备与所述充电设备连接的情况下所述终端设备的当前达到的实际电量,Ccurrent(recharged)=Creached(recharged)
PCT/CN2016/112131 2016-10-08 2016-12-26 用于确定剩余电量百分比的方法和终端设备 WO2018064863A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201680066793.4A CN108291942B (zh) 2016-10-08 2016-12-26 用于确定剩余电量百分比的方法和终端设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610879171.5 2016-10-08
CN201610879171 2016-10-08

Publications (1)

Publication Number Publication Date
WO2018064863A1 true WO2018064863A1 (zh) 2018-04-12

Family

ID=61830833

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112131 WO2018064863A1 (zh) 2016-10-08 2016-12-26 用于确定剩余电量百分比的方法和终端设备

Country Status (2)

Country Link
CN (1) CN108291942B (zh)
WO (1) WO2018064863A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113459807A (zh) * 2021-07-07 2021-10-01 北京汽车集团越野车有限公司 一种充电处理方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1294420A (zh) * 1999-10-25 2001-05-09 雅马哈发动机株式会社 电动车辆的电池状态显示装置
JP2001338699A (ja) * 2000-05-30 2001-12-07 Sharp Corp 二次電池の残量表示装置
CN203337798U (zh) * 2013-06-28 2013-12-11 梁添荣 一种磷酸锂铁电池组电量显示管理系统
CN104391249A (zh) * 2014-07-22 2015-03-04 展讯通信(上海)有限公司 电池电量显示方法、装置及移动终端
CN105071449A (zh) * 2015-06-29 2015-11-18 努比亚技术有限公司 终端电池充放电曲线参数调整方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1294420A (zh) * 1999-10-25 2001-05-09 雅马哈发动机株式会社 电动车辆的电池状态显示装置
JP2001338699A (ja) * 2000-05-30 2001-12-07 Sharp Corp 二次電池の残量表示装置
CN203337798U (zh) * 2013-06-28 2013-12-11 梁添荣 一种磷酸锂铁电池组电量显示管理系统
CN104391249A (zh) * 2014-07-22 2015-03-04 展讯通信(上海)有限公司 电池电量显示方法、装置及移动终端
CN105071449A (zh) * 2015-06-29 2015-11-18 努比亚技术有限公司 终端电池充放电曲线参数调整方法和装置

Also Published As

Publication number Publication date
CN108291942B (zh) 2020-03-27
CN108291942A (zh) 2018-07-17

Similar Documents

Publication Publication Date Title
US8868065B2 (en) System and method for reducing power consumption for push messaging
US20150055622A1 (en) Communication method and apparatus for electronic device in mobile communication system
US20230164868A1 (en) Method for changing rrc state, communication apparatus, and storage medium
US9769595B2 (en) Method and apparatus for providing mobile services outside of cellular coverage
CN104735671A (zh) 一种识别恶意电话的方法和装置
CN104782150A (zh) 用于在邻域知悉网络中进行广告和通信的系统和方法
CN112954819B (zh) 一种设备组网方法、电子设备及系统
US20230180180A1 (en) Paging processing methods, base station and user equipment
WO2018218823A1 (zh) 一种基于充电优先级的无线充电方法及无线充电路由器
CN104955133A (zh) 用于管理网络连线的移动设备和方法以及存储介质
US8417222B1 (en) Systems and methods for delivering messages based on a device radio status
WO2018064863A1 (zh) 用于确定剩余电量百分比的方法和终端设备
CN110545499A (zh) 通信方法、装置及其芯片、待充电设备和系统
US10979554B2 (en) Communication method, wearable device, server, and system
CN113473291A (zh) 通信方法、耳机仓以及wifi耳机
CN108475097B (zh) 一种电量管理方法及终端设备
US9225374B2 (en) Mobile device having SIM card, base station connected thereto, and battery management method thereof
US8965352B2 (en) Device with reduced communication-protocol transition time
US11388574B2 (en) Methods and apparatus for providing access to emergency service providers
CN110213789B (zh) 蓝牙连接方法、终端设备、蓝牙设备及计算机存储介质
CN103581977A (zh) 数据连接断开的处理方法、移动终端及基站
CN114666744B (zh) 近距离通信设备连接方法、装置、设备、存储介质和产品
US20140073365A1 (en) Indicating inactivity on a first network in response to a directed page from a second network
CN114125739A (zh) 网络切换方法、装置、电子设备及存储介质
CN104954567B (zh) 移动终端的用电控制方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16918196

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16918196

Country of ref document: EP

Kind code of ref document: A1