[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2019119326A1 - Charging method, device, terminal apparatus, and computer readable storage medium - Google Patents

Charging method, device, terminal apparatus, and computer readable storage medium Download PDF

Info

Publication number
WO2019119326A1
WO2019119326A1 PCT/CN2017/117586 CN2017117586W WO2019119326A1 WO 2019119326 A1 WO2019119326 A1 WO 2019119326A1 CN 2017117586 W CN2017117586 W CN 2017117586W WO 2019119326 A1 WO2019119326 A1 WO 2019119326A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
terminal device
power value
power
value
Prior art date
Application number
PCT/CN2017/117586
Other languages
French (fr)
Chinese (zh)
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 CN201780002402.7A priority Critical patent/CN108235795A/en
Priority to PCT/CN2017/117586 priority patent/WO2019119326A1/en
Publication of WO2019119326A1 publication Critical patent/WO2019119326A1/en

Links

Images

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/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
    • H02J7/342The other DC source being a battery actively interacting with the first one, i.e. battery to battery charging
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/446Initial charging measures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the present application relates to the field of electronic technologies, and in particular, to a charging method, apparatus, terminal device, and computer readable storage medium.
  • two portable terminal devices can be connected to each other to implement data interaction. That is to say, when two terminal devices are connected, one acts as a master device and the other acts as a slave device.
  • the existing implementation of the charging logic in the master device and the slave device is roughly divided into the following three types: 1.
  • the slave device does not carry a separate battery, and after the master device and the slave device are connected, only the power is obtained from the master device;
  • the battery is equipped with a separate battery.
  • the master device and the slave device are powered independently.
  • the slave device has a separate charging port and is charged separately during use.
  • the slave device is equipped with a separate battery and can be used mainly during use. The device is charged in one direction.
  • One technical problem to be solved by some embodiments of the present application is to provide a charging method to solve the above technical problems.
  • An embodiment of the present application provides a charging method applied to a first terminal device including a first rechargeable battery, the first terminal device being connected to a second terminal device including a second rechargeable battery, and the charging method includes: Obtaining a first power value and a second power value; wherein, the first power value is a remaining power value of the first rechargeable battery at the current time, and the second power value is a remaining power value of the second rechargeable battery at the current time; according to the first power value And selecting a power supply side and a charging side from the first terminal device and the second terminal device, and determining a charging power value; wherein the charging power value satisfies the first terminal device and the second terminal device after charging The running time is the same; the power supply is instructed to charge the charging party according to the charging power value.
  • the embodiment of the present application further provides a charging device, which is applied to a first terminal device including a first rechargeable battery, and the first terminal device is connected to a second terminal device including a second rechargeable battery.
  • the charging device includes: an obtaining module, configured to acquire a first power value and a second power value; wherein, the first power value is a remaining power value of the first rechargeable battery at the current time, and the second power value is a current second time of the second rechargeable battery a remaining power value; a determining module, configured to select a power supply side and a charging side from the first terminal device and the second terminal device according to the first power value and the second power value, and determine a charging power value; wherein the charging power value is satisfied After charging, the first terminal device and the second terminal device have the same running time; the charging module is configured to instruct the power supply party to charge the charging party according to the charging power value.
  • the embodiment of the present application further provides a terminal device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being processed by at least one
  • the apparatus is executed to enable at least one processor to perform the charging method involved in any of the method embodiments of the present application.
  • the embodiment of the present application further provides a computer readable storage medium storing computer instructions for causing a computer to execute a charging method involved in any method embodiment of the present application.
  • the embodiment of the present application acquires the first rechargeable battery and the second charging during the connection between the first terminal device including the first rechargeable battery and the second terminal device including the second rechargeable battery.
  • the operability of a terminal device and the second terminal device are the same, so that after the charging, the power of the battery of the first terminal device and the second terminal device can be consumed as much as possible, thereby maximizing the first terminal device and the second device.
  • the length of use of the terminal device is the same, so that after the charging, the power of the battery of the first terminal device and the second terminal device can be consumed as much as possible, thereby maximizing the first terminal device and the second device.
  • FIG. 1 is a specific flowchart of a charging method according to a first embodiment of the present application
  • FIG. 2 is a specific flowchart of a charging method according to a second embodiment of the present application.
  • FIG. 3 is a specific flowchart of a charging method in a third embodiment of the present application.
  • FIG. 4 is a block schematic diagram of a charging device in a fourth embodiment of the present application.
  • Figure 5 is a block schematic diagram of a terminal device in a fifth embodiment of the present application.
  • the first embodiment of the present application relates to a charging method mainly applied to a first terminal device including a first rechargeable battery.
  • the first terminal device is connected to the second terminal device including the second rechargeable battery, such as through an intelligent interface (Smartport) or other interfaces that can be mutually charged and communicated.
  • Smartport intelligent interface
  • the specific process of the charging method is shown in Figure 1.
  • Step 101 Acquire a first power value and a second power value.
  • the first power value obtained by the first terminal device specifically refers to the remaining power value of the first rechargeable battery at the current time
  • the second power value specifically refers to the remaining power value of the second rechargeable battery at the current time
  • the first power value may be specifically obtained by the power management module in the first terminal device, and the second power value may be obtained through an interface that is connected to the second terminal device, and a specific implementation manner may be set by a person skilled in the art as needed. There are no restrictions here.
  • step 102 the power supplier and the charging party are selected.
  • step 103 the charging power value is determined.
  • the power supply side and the charging side are selected to determine the charging power value
  • the power supply side is selected from the first terminal device and the second terminal device according to the first power value and the second power value. Charge the party and determine the charge level.
  • the first terminal device and the second terminal device can be operated for substantially the same duration, and the power supply side and the charging are selected.
  • the determining the charging power value may be specifically implemented by: according to the operable time of the first terminal device under the first power value and the operable time of the second terminal device at the second power value, from the first terminal device And selecting a power supplier and a charging party from the second terminal device.
  • the second terminal device is selected as the power supply party.
  • the selection of a terminal device as a charging side depends on the length of the operable time. In the present embodiment, the long side that can be operated as the power supply side is set, and the one with the short running time is used as the charging side. .
  • the first power value, the second power value, the runnable time of the first terminal device under the first power value, the runnable time of the second terminal device at the second power value, and the first terminal device are The average power consumption in each time period, the average power consumption of the second terminal device in each time period, and the charging conversion efficiency determine the charging power value.
  • the average power consumption is 200 mAh (200 mAh per hour)
  • the 11th time is the average power consumption of the time period.
  • the device's time-consuming power consumption average value table is updated, and the power consumption value recorded in the time period is updated to 190.91 mAh.
  • the specific calculation can be obtained according to the following formula:
  • V n is the average power consumption of a certain time period recorded in the time-average power consumption statistics table of the device
  • n is the total number of times before the time period
  • v n+1 is the newly acquired time period of the time period.
  • the amount of electricity, V n+1 is the newly calculated average power consumption of the time period.
  • the average power consumption of the first terminal device in each time period and the average power consumption of the second terminal device in each time period are stored in the device time-consuming power consumption average statistics table.
  • the device time-consuming power consumption average statistics table is specifically: when the first terminal device and/or the second terminal device start running, and is maintained during the entire running process.
  • the first terminal device obtains an identity ID that identifies the second terminal device type through an interface that is connected to the second terminal device, and creates a device time-consuming power consumption average value table according to the acquired identity ID, so that the first terminal device can be implemented in the first terminal device.
  • the power consumption of the first terminal device and the second terminal device in each time period can be recorded into the corresponding device time-consuming power consumption average value table, or the corresponding device time-segment
  • the data required to calculate the charge value is obtained from the power consumption average.
  • the second terminal device to be accessed is a new terminal device, that is, a type that has never been connected, and a field related to the second terminal device is added to the existing device time-division power consumption average value table for recording.
  • the average power consumption of the second terminal device in each period of time, and the specific implementation manner, which can be reasonably set by a person skilled in the art according to actual needs, is not limited herein.
  • the power consumption of the first terminal device and the power consumption of the second terminal device in each preset time period are obtained according to the preset period, and the following processing is performed for each preset time period:
  • the average power consumption of the second terminal device in the preset period of time and the timing of the second terminal device in the preset time period are recorded according to the average of the first terminal device in the preset time period;
  • the power consumption, the number of times the first terminal device acquires in the preset time period, and the power consumption of the first terminal device in the preset time period acquired by the current time, and the number of the device counted in the time-average power consumption statistics table The average power consumption of a terminal device in a preset time period; the average power consumption of the second terminal device in a preset time period, the number of times the second terminal device acquires at a preset time period, and the pre-acquisition obtained at the current time.
  • the power consumption of the second terminal device in the time period is set, and the average power consumption of the second terminal device in
  • the power consumption of the first terminal device and the second terminal device in the previous hour is obtained once every hour in the cycle. It should be noted that the above is only an example, and does not limit the scope of protection of the present application. Regarding how to set the period and how to select the time period, those skilled in the art can make reasonable settings according to actual needs, and no limitation is made herein.
  • the first terminal device and/or the second terminal device are in a shutdown state, then the first terminal device and the second terminal device are at different times.
  • the statistics of the power consumption in the segment may directly ignore the power consumption of all the missed time periods after the first terminal device and/or the second terminal device are powered on, and the corresponding time in the device time-consuming power consumption average value table.
  • the record in the segment is 0 mA.
  • the terminal device is in a shutdown state, there is also a circuit loss. Therefore, in order to ensure accuracy, after the terminal device re-enters the power-on state from the power-off state, according to the remaining power value of the battery recorded before the shutdown. The remaining battery value of the battery obtained after the power-on is poor, and the difference is used as the power consumption of the power-off period.
  • the person skilled in the art can make a reasonable setting according to the actual needs and the application scenario of the terminal device, and no limitation is made here. .
  • the charging power value may be calculated according to the following formula based on the power consumption of the first terminal device and the second terminal device recorded in the time-sharing power consumption average value table of the device;
  • f1(t) represents the average power consumption of the power supply during the time period t
  • f2(t) represents the average power consumption value of the charging party during the time period t
  • x is the remaining power value of the battery at the current time of the power supply party.
  • Remaining power value (if the charging party is the second terminal device, y is the second power value, if the charging party is the first terminal device, y is the first power value), c is the charging conversion efficiency (usually 0.8), f1 (t) and f2(t) can be obtained according to t in the device time-consuming power consumption mean value table.
  • the charging side is the first terminal device and the power supply side is the second terminal device
  • the current time is 0:00
  • the first power value is 23 mA
  • the second power value is 38 mA.
  • the first terminal device and the first terminal device are desired, After the two terminal devices are mutually charged, they can exhaust their respective powers at the time of 3:00, according to the above formula and the time period from 0:00 to 3:00 recorded in the statistical data of the device time-sharing average.
  • the power consumption of the first terminal device and the second terminal device can be obtained as a charge power value of 8 mA.
  • Step 104 instructing the power supply party to charge the charging party according to the charging power value.
  • the first power amount acquired at the current time is detected before the mutual charging.
  • the first terminal device performs the A power value and a second power value, the power source and the charging party are selected from the first terminal device and the second terminal device, and the charging power value is determined.
  • the mutual charging start condition is specifically that the first power value is less than the first threshold, the second power value is greater than or equal to the second threshold, and the first terminal device is operable for the first power value.
  • the difference between the operable time and the second terminal device at the second power value is greater than or equal to the third threshold.
  • the second power value is less than the first threshold, the first power value is greater than or equal to the second threshold, and the operable time of the first terminal device at the first power value and the second terminal device are at the second power value.
  • the difference in run time is greater than or equal to the third threshold.
  • the first threshold is 100 mA
  • the second threshold is 150 mA
  • the third threshold is 5 minutes.
  • the obtained first power value is less than 100 mA
  • the first power value is 90 mA
  • the second power value is greater than 150 mA
  • the second power value is 200 mA
  • the average of the first terminal device and the second terminal device recorded in the time-consuming power consumption average value table of the device is determined in each time period.
  • the power consumption can be calculated as the running time of the first terminal device under the first power value is 30 minutes, and the second terminal device can run for 2 hours under the second power value, and the current time can be determined. Whether the first power value and the second power value satisfy the mutual charge start condition.
  • the first threshold is usually set relatively. Small, such as 5% (the remaining percentage of available power value), or directly expressed by the power value, such as 100 mA, the second threshold can be slightly greater than or equal to the first threshold, such as 10%, the specific setting method and value, Those skilled in the art can set according to actual needs, and in order to facilitate the user's use, the user can also provide an entry for setting, and the user can make reasonable settings according to personal use habits, and there is no limitation here.
  • the first embodiment of the present application obtains the first a remaining battery value of the current time of the rechargeable battery and the second rechargeable battery, and selecting a power supply side and a charging side from the first terminal device and the second terminal device according to the obtained remaining power value, and determining a charging power value, the charging After the charging value is satisfied, the first terminal device and the second terminal device have the same running time, so that after the charging, the power of the first terminal device and the second terminal device can be consumed as much as possible, and the maximum length is extended. The duration of use of the first terminal device and the second terminal device.
  • a second embodiment of the present application relates to a charging method.
  • the embodiment is further improved on the basis of the first embodiment, and the specific improvement is: in the mutual charging process, the third power value and the fourth power value are obtained according to the preset time interval, and according to the third power The value and the fourth power value determine whether it is necessary to re-determine the charging power value.
  • the specific process is shown in FIG. 2 .
  • the steps 201 to 208 are included, wherein the steps 201 to 204 are substantially the same as the steps 101 to 104 in the first embodiment, and are not described herein again.
  • Step 205 Acquire a third power value and a fourth power value.
  • the first terminal device further needs to acquire the third power value and the fourth power value according to the preset time interval through the interface connected to the second terminal device, for example, every 5 minutes, specifically
  • the time interval can be set as needed by a person skilled in the art. For example, if the duration of the mutual charging is 30 minutes, the time can be set every 5 minutes. If the charging time is 1 hour, the time can be set every 10 minutes. There is no limit here.
  • the third power value obtained in this embodiment is specifically the remaining power value of the battery in the power supply party at the current time
  • the fourth power value is specifically the remaining power value of the battery in the current charging party.
  • step 206 it is determined whether it is necessary to re-determine the charge amount.
  • step 207 determining new according to the third power value and the fourth power value. If it is determined that the charging power value does not need to be re-determined, the process proceeds to step 208 to continue to determine whether the charging needs to be ended.
  • Step 207 determining a new charge amount.
  • the value of the new charging power is determined in this embodiment, which can be specifically implemented by:
  • the power supply and the charging party are re-determined, according to the re-determined charging party, the power supplier, The running time of the power supplier and the running time of the charging party determine the new charging power value.
  • the charging party After the operability of the power supplier is less than the operability of the charging party, after the power supply and the charging party are re-determined, the number of times of the power supply and the charging party is re-determined, and it is determined whether the number of times of the power supply and the charging party is greater than the preset. The number of reverses, if it is determined that the number of times of the power supply side and the charging side is determined to be greater than the preset reverse number of times, the charging is ended.
  • the manner of determining the new charging power value in the embodiment is substantially the same as the manner of determining the charging power value in the first embodiment.
  • the charging method provided in the embodiment is not described herein again.
  • step 208 it is determined whether charging is required to be ended.
  • the need to end charging can be roughly divided into two types.
  • One is that the previously determined charging side and the power supply side do not need to be changed, and the charging electric quantity value is also normally supplied to the charging side by the power supply side as expected. And the charging is completed, and the charging is finished at this time.
  • the threshold value of the charging power value can be continuously provided, or the power value of the battery in the power supply side has been consumed, and this time is not It is necessary to re-determine the new charging power value, and it is not necessary to switch between the charging side and the power supply side, and the charging can be ended directly.
  • the charging party and the power supply are further obtained according to the preset time interval.
  • the amount of light in the battery is not difficult to find that, in the prior art, after instructing the power supply party to charge the charging party according to the charging power value, in the charging process, the charging party and the power supply are further obtained according to the preset time interval.
  • the third embodiment of the present application relates to a charging method, and the embodiment is further improved on the basis of the first embodiment, and the specific improvement is: after acquiring the first power value and the second power value, Obtaining a total power value of the first rechargeable battery and the second rechargeable battery, and calculating a percentage of the power value according to the total power value of the first rechargeable battery, the total power value of the second rechargeable battery, the first power value, and the second power value, and Display the percentage of the power value display on the first terminal device.
  • the specific process is shown in Figure 3.
  • step 301 to step 306 are included, wherein step 301 and step 304 to step 306 are substantially the same as steps 101 to 104 in the first embodiment, respectively. I will not go into details here. The following mainly introduces the differences:
  • Step 302 Acquire a total power value of the first rechargeable battery and a total power value of the second rechargeable battery.
  • the total power value of the first rechargeable battery and the total power value of the second rechargeable battery specifically refer to respective power values that the first rechargeable battery and the second rechargeable battery can use when fully charged, for example, the first The rated power value of the rechargeable battery and the rated power value of the second rechargeable battery.
  • the total power value of the first rechargeable battery is obtained by the power management module in the first terminal device, and the total power value of the second rechargeable battery is obtained through the interface that is connected to the second terminal device.
  • the interface can be the same interface or a different interface. The interface is not limited.
  • the first terminal device may also acquire other battery information of the first rechargeable battery and the second rechargeable battery during the connection and use with the second terminal device, such as the first rechargeable battery and the second charging.
  • the operating current and operating voltage that the battery can provide, and the charging current and the size of the charging power source, etc., during the mutual charging process of the first rechargeable battery and the second rechargeable battery are not limited herein.
  • Step 303 Calculate a percentage of the power value display and display it on the first terminal device.
  • the percentage of the power value display is specifically calculated according to the total power value of the first rechargeable battery, the total power value of the second rechargeable battery, the first power value, and the second power value, in order to facilitate understanding. The following is combined with the formula to specify:
  • C 1 is the total electricity value of the first rechargeable battery
  • C 2 is the total electricity value of the second rechargeable battery
  • c 1 is the first electricity value
  • c 2 is the second electricity value .
  • the total charge value of the first rechargeable battery in the first terminal device is 1000 mA
  • the total power value of the second rechargeable battery in the second terminal device is 500 mA
  • the first power value obtained is 800 mA
  • the second power value is 400 mA.
  • the display value of the power value displayed on the first terminal is 80%.
  • the embodiment of the present application displays the total power value on the first terminal device by integrating the power values of the batteries of the first terminal device and the second terminal device with respect to the prior art.
  • the percentage greatly enhances the user experience.
  • a fourth embodiment of the present application relates to a charging device.
  • the charging device For a specific implementation of the charging device, refer to the description of the method embodiment. The specific structure is shown in FIG. 4 .
  • the charging device 400 mainly includes an obtaining module 401, a determining module 402, and a charging module 403.
  • the charging device 400 is mainly applied to the first terminal device including the first rechargeable battery.
  • the charging device 400 determines through the internal acquiring module 401.
  • the cooperation of module 402 and charging module 403 enables charging.
  • the first power value and the second power value are obtained by the obtaining module 401, and then the determining module 402 selects the power supply side from the first terminal device and the second terminal device according to the first power value and the second power value.
  • the charging party, and determining the charging power value finally uses the charging module 403 to instruct the power supplier to charge the charging party according to the charging power value.
  • the first power value in the embodiment is the remaining power value of the first rechargeable battery at the current time
  • the second power value is the remaining power value of the second rechargeable battery at the current time
  • the charging power value determined according to the first power value and the second power value needs to satisfy the same operation time of the first terminal device and the second terminal device after charging.
  • the embodiment of the present application uses the acquisition by using the first terminal device including the first rechargeable battery and the second terminal device including the second rechargeable battery in connection with the prior art.
  • the module acquires the remaining power value of the first charging battery and the second charging battery at the current time, and selects the power supply party and the charging party from the first terminal device and the second terminal device by using the determining module according to the obtained remaining power value, and determines After the charging, the charging power value of the first terminal device and the second terminal device are the same, and the charging module is used for charging, so that the battery power of the first terminal device and the second terminal device can be simultaneously used during the use.
  • the use of light greatly extends the length of use of the first terminal device and the second terminal device.
  • a fifth embodiment of the present application relates to a terminal device, and the specific structure is as shown in FIG. 5.
  • the terminal device includes one or more processors 500 and a memory 600.
  • One processor 500 is exemplified in FIG.
  • each functional module in the charging device involved in the above embodiment is deployed.
  • the processor 500 and the memory 600 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 600 is a computer readable storage medium, and can be used to store a software program, a computer executable program, and a module, such as a program instruction/module corresponding to the charging method involved in any method embodiment of the present application.
  • the processor 500 executes various functional applications and data processing of the server by executing software programs, instructions, and modules stored in the memory 600, that is, implementing the charging method involved in any of the method embodiments of the present application.
  • the memory 600 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store a device time-division power consumption mean value table or the like.
  • memory 600 can include high speed random access memory, and can also include memory, such as at least one magnetic disk storage device, flash memory device, or other solid state storage device.
  • memory 600 can optionally include memory remotely located relative to processor 500, which can be connected to the terminal device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • At least one processor 500 can be stored in the memory 600, and the instructions are executed by the at least one processor 500, so that the at least one processor 500 can perform the charging method according to any method embodiment of the present application to control charging.
  • the device 400 completes the charging process in the charging method.
  • a sixth embodiment of the present application is directed to a computer readable storage medium having stored therein computer instructions that enable a computer to perform the charging method involved in any of the method embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The present application relates to the technical field of electronics and provides a charging method, a device, a terminal apparatus, and a computer readable storage medium. The charging method is applied to a first terminal apparatus comprising a first rechargeable battery, and the first terminal apparatus is connected to a second terminal apparatus comprising a second rechargeable battery. The method comprises: obtaining a first electrical charge value and a second electrical charge value; selecting, according to the first electrical charge value and the second electrical charge value, a power supply side and a charge side from the first terminal apparatus and the second terminal apparatus, and determining a charging value, wherein after charging is performed to satisfy the charging value, the operable time of the first terminal apparatus and the second terminal apparatus are the same; and instructing the power supply side to charge the charge side according to the charging value. In the present application, the electrical charge of batteries of a first terminal device and a second terminal apparatus is used up concurrently when a first terminal apparatus and a second terminal apparatus are in use, such that the concurrent usage time of the first terminal apparatus and the second terminal apparatus is extended to the maximum extent possible.

Description

充电方法、装置、终端设备及计算机可读存储介质Charging method, device, terminal device and computer readable storage medium 技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种充电方法、装置、终端设备及计算机可读存储介质。The present application relates to the field of electronic technologies, and in particular, to a charging method, apparatus, terminal device, and computer readable storage medium.
背景技术Background technique
随着电子技术的发展,两个便携式终端设备可以相互连接,实现数据交互。也就是说,在两个终端设备相连时,一个作为主设备,另一个作为从设备。With the development of electronic technology, two portable terminal devices can be connected to each other to implement data interaction. That is to say, when two terminal devices are connected, one acts as a master device and the other acts as a slave device.
现有实现主设备和从设备中的充电逻辑大概分为以下三种:1、从设备中不搭载单独的电池,在主设备与从设备连接后,只从主设备获取电量;2、从设备中搭载单独的电池,主设备和从设备各自独立用电,且从设备有独立的充电口,在使用过程中单独充电;3、从设备中搭载单独的电池,并且在使用过程中可以为主设备单向充电。The existing implementation of the charging logic in the master device and the slave device is roughly divided into the following three types: 1. The slave device does not carry a separate battery, and after the master device and the slave device are connected, only the power is obtained from the master device; The battery is equipped with a separate battery. The master device and the slave device are powered independently. The slave device has a separate charging port and is charged separately during use. 3. The slave device is equipped with a separate battery and can be used mainly during use. The device is charged in one direction.
发明人在实现本申请的过程中发现,上面描述的三种充电逻辑以及其他现有设计均存在的问题是:主设备和从设备在使用过程中,电池的电量无法同时耗光,严重影响设备的使用时长。In the process of implementing the present application, the inventors have found that the three charging logics described above and other existing designs have problems in that the main device and the slave device cannot consume light at the same time during use, which seriously affects the device. The length of use.
发明内容Summary of the invention
本申请部分实施例所要解决的一个技术问题在于提供一种充电方法,以解决上述技术问题。One technical problem to be solved by some embodiments of the present application is to provide a charging method to solve the above technical problems.
本申请的一个实施例提供了一种充电方法,该充电方法应用于包括第一充电电池的第一终端设备,第一终端设备与包括第二充电电池的第二终端设备连接,充电方法包括:获取第一电量值和第二电量值;其中,第一电量值为当前时刻第一充电电池的剩余电量值,第二电量值为当前时刻第二充电电池的剩余电量值;根据第一电量值和第二电量值,从第一终端设备和第二终端设备中选择供电方和充电方,以及确定充电电量值;其中,充电电量值满足充电后使第一终端设备和第二终端设备的可运行时长相同;指示供电方按照充电电量值为充电方充电。An embodiment of the present application provides a charging method applied to a first terminal device including a first rechargeable battery, the first terminal device being connected to a second terminal device including a second rechargeable battery, and the charging method includes: Obtaining a first power value and a second power value; wherein, the first power value is a remaining power value of the first rechargeable battery at the current time, and the second power value is a remaining power value of the second rechargeable battery at the current time; according to the first power value And selecting a power supply side and a charging side from the first terminal device and the second terminal device, and determining a charging power value; wherein the charging power value satisfies the first terminal device and the second terminal device after charging The running time is the same; the power supply is instructed to charge the charging party according to the charging power value.
本申请实施例还提供了一种充电装置,该充电装置应用于包括第一充电电池的第一终端设备,第一终端设备与包括第二充电电池的第二终端设备连接, 充电装置包括:获取模块,用于获取第一电量值和第二电量值;其中,第一电量值为当前时刻第一充电电池的剩余电量值,第二电量值为当前时刻第二充电电池的剩余电量值;确定模块,用于根据第一电量值和第二电量值,从第一终端设备和第二终端设备中选择供电方和充电方,以及确定充电电量值;其中,充电电量值满足充电后使第一终端设备和第二终端设备的可运行时长相同;充电模块,用于指示供电方按照充电电量值为充电方充电。The embodiment of the present application further provides a charging device, which is applied to a first terminal device including a first rechargeable battery, and the first terminal device is connected to a second terminal device including a second rechargeable battery. The charging device includes: an obtaining module, configured to acquire a first power value and a second power value; wherein, the first power value is a remaining power value of the first rechargeable battery at the current time, and the second power value is a current second time of the second rechargeable battery a remaining power value; a determining module, configured to select a power supply side and a charging side from the first terminal device and the second terminal device according to the first power value and the second power value, and determine a charging power value; wherein the charging power value is satisfied After charging, the first terminal device and the second terminal device have the same running time; the charging module is configured to instruct the power supply party to charge the charging party according to the charging power value.
本申请实施例还提供了一种终端设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行本申请任意方法实施例中涉及的充电方法。The embodiment of the present application further provides a terminal device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being processed by at least one The apparatus is executed to enable at least one processor to perform the charging method involved in any of the method embodiments of the present application.
本申请实施例还提供了一种计算机可读存储介质,存储有计算机指令,计算机指令用于使计算机执行本申请任意方法实施例中涉及的充电方法。The embodiment of the present application further provides a computer readable storage medium storing computer instructions for causing a computer to execute a charging method involved in any method embodiment of the present application.
本申请实施例相对于现有技术而言,在包括第一充电电池的第一终端设备与包括第二充电电池的第二终端设备连接使用的过程中,通过获取第一充电电池和第二充电电池当前时刻的剩余电量值,并根据获取到的剩余电量值,从第一终端设备和第二终端设备中选择供电方和充电方,以及确定充电电量值,该充电电量值满足充电后使第一终端设备和第二终端设备的可运行时长相同,从而在充电后能够使得第一终端设备和第二终端设备电池的电量尽可能同时耗光,最大程度的延长了第一终端设备和第二终端设备配合使用的使用时长。Compared with the prior art, the embodiment of the present application acquires the first rechargeable battery and the second charging during the connection between the first terminal device including the first rechargeable battery and the second terminal device including the second rechargeable battery. The remaining power value of the current time of the battery, and selecting the power supply side and the charging side from the first terminal device and the second terminal device according to the obtained remaining power value, and determining the charging power value, the charging power value satisfies the charging state The operability of a terminal device and the second terminal device are the same, so that after the charging, the power of the battery of the first terminal device and the second terminal device can be consumed as much as possible, thereby maximizing the first terminal device and the second device. The length of use of the terminal device.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是根据本申请第一实施例中的充电方法的具体流程图;1 is a specific flowchart of a charging method according to a first embodiment of the present application;
图2是根据本申请第二实施例中的充电方法的具体流程图;2 is a specific flowchart of a charging method according to a second embodiment of the present application;
图3是根据本申请第三实施例中的充电方法的具体流程图;3 is a specific flowchart of a charging method in a third embodiment of the present application;
图4是根据本申请第四实施例中的充电装置的方框示意图;4 is a block schematic diagram of a charging device in a fourth embodiment of the present application;
图5是根据本申请第五实施例中的终端设备的方框示意图。Figure 5 is a block schematic diagram of a terminal device in a fifth embodiment of the present application.
具体实施方式 Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请部分实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, the technical solutions and the advantages of the present application more clear, some embodiments of the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
本申请的第一实施例涉及一种充电方法,该充电方法主要应用于包括第一充电电池的第一终端设备。其中,第一终端设备与包括第二充电电池的第二终端设备连接,如通过智能接口(Smartport)或者其他可相互充电和通信的接口连接。充电方法的具体流程如图1所示。The first embodiment of the present application relates to a charging method mainly applied to a first terminal device including a first rechargeable battery. The first terminal device is connected to the second terminal device including the second rechargeable battery, such as through an intelligent interface (Smartport) or other interfaces that can be mutually charged and communicated. The specific process of the charging method is shown in Figure 1.
步骤101,获取第一电量值和第二电量值。Step 101: Acquire a first power value and a second power value.
具体的说,第一终端设备获取的第一电量值具体是指当前时刻第一充电电池的剩余电量值,第二电量值具体是指当前时刻第二充电电池的剩余电量值。Specifically, the first power value obtained by the first terminal device specifically refers to the remaining power value of the first rechargeable battery at the current time, and the second power value specifically refers to the remaining power value of the second rechargeable battery at the current time.
另外,第一电量值具体可以由第一终端设备内的电源管理模块获取,第二电量值具体可以通过与第二终端设备通信连接的接口获取,本领域的技术人员可以根据需要设置具体实现方式,此处不做限制。In addition, the first power value may be specifically obtained by the power management module in the first terminal device, and the second power value may be obtained through an interface that is connected to the second terminal device, and a specific implementation manner may be set by a person skilled in the art as needed. There are no restrictions here.
步骤102,选择供电方和充电方。In step 102, the power supplier and the charging party are selected.
步骤103,确定充电电量值。In step 103, the charging power value is determined.
具体的说,本实施例中在选择供电方和充电方,确定充电电量值时,具体是根据第一电量值和第二电量值,从第一终端设备和第二终端设备中选择供电方和充电方,并确定充电电量值。Specifically, in the embodiment, when the power supply side and the charging side are selected to determine the charging power value, the power supply side is selected from the first terminal device and the second terminal device according to the first power value and the second power value. Charge the party and determine the charge level.
另外,为了使得供电方和充电方以及充电电量值更加符合实际使用需求,按照充电电量值充电后,能够使第一终端设备和第二终端设备的可运行时长基本相同,在选择供电方和充电方,确定充电电量值时具体可以通过以下方式实现:根据第一终端设备在第一电量值下的可运行时长和第二终端设备在第二电量值下的可运行时长,从第一终端设备和第二终端设备中选择供电方和充电方。In addition, in order to make the power supply side and the charging side and the charging power value more in line with actual use requirements, after the charging power value is charged, the first terminal device and the second terminal device can be operated for substantially the same duration, and the power supply side and the charging are selected. The determining the charging power value may be specifically implemented by: according to the operable time of the first terminal device under the first power value and the operable time of the second terminal device at the second power value, from the first terminal device And selecting a power supplier and a charging party from the second terminal device.
比如说,第一终端设备在第一电量值下的可运行时长为2小时,第二终端设备在第二电量值下的可运行时长为5小时,则选择第二终端设备作为供电方,第一终端设备作为充电方,即供电方和充电方的选取,具体取决于可运行时长的长短,本实施方式中,设置可运行时长长的一方作为供电方,可运行时间短的一方作为充电方。For example, if the first terminal device has a runnable time of 2 hours under the first power value and the second terminal device has a runnable time of 5 hours under the second power value, the second terminal device is selected as the power supply party. The selection of a terminal device as a charging side, that is, the power supply side and the charging side, depends on the length of the operable time. In the present embodiment, the long side that can be operated as the power supply side is set, and the one with the short running time is used as the charging side. .
具体的说,根据第一电量值、第二电量值、第一终端设备在第一电量值下的可运行时长、第二终端设备在第二电量值下的可运行时长、第一终端设备在各时间段内的平均耗电量、第二终端设备在各时间段内的平均耗电量以及充电转换效率,确定充电电量值。 Specifically, the first power value, the second power value, the runnable time of the first terminal device under the first power value, the runnable time of the second terminal device at the second power value, and the first terminal device are The average power consumption in each time period, the average power consumption of the second terminal device in each time period, and the charging conversion efficiency determine the charging power value.
比如说,某时间段(1小时时长)在多日中共获取过10次耗电量,平均耗电量为200mAh(每小时200毫安),而第11次得到该时间段的平均耗电量为100mAh,则将设备分时段耗电均值统计表中,该时间段中记载的耗电量值更新为190.91mAh。具体的计算可以根据以下公式获得:For example, a certain period of time (1 hour duration) has received 10 power consumptions in a multi-day period, the average power consumption is 200 mAh (200 mAh per hour), and the 11th time is the average power consumption of the time period. For 100 mAh, the device's time-consuming power consumption average value table is updated, and the power consumption value recorded in the time period is updated to 190.91 mAh. The specific calculation can be obtained according to the following formula:
Figure PCTCN2017117586-appb-000001
Figure PCTCN2017117586-appb-000001
其中,Vn为设备分时段耗电均值统计表中记录的某一时间段的平均耗电量,n为该时间段之前一共获取的次数,vn+1为新获取的该时间段的耗电量,Vn+1为新计算出的该时间段的平均耗电量。Where V n is the average power consumption of a certain time period recorded in the time-average power consumption statistics table of the device, n is the total number of times before the time period, and v n+1 is the newly acquired time period of the time period. The amount of electricity, V n+1 is the newly calculated average power consumption of the time period.
基于上述公式,将相关数据带入,可得:Based on the above formula, the relevant data is brought in, and you can get:
Figure PCTCN2017117586-appb-000002
Figure PCTCN2017117586-appb-000002
另外,需要说明的是,第一终端设备在各时间段内的平均耗电量和第二终端设备在各时间段内的平均耗电量是存储在设备分时段耗电均值统计表中的。而设备分时段耗电均值统计表具体是:在第一终端设备和/或第二终端设备启动运行时创建,并在整个运行过程中进行维护。In addition, it should be noted that the average power consumption of the first terminal device in each time period and the average power consumption of the second terminal device in each time period are stored in the device time-consuming power consumption average statistics table. The device time-consuming power consumption average statistics table is specifically: when the first terminal device and/or the second terminal device start running, and is maintained during the entire running process.
关于设备分时段耗电均值统计表的具体创建过程如下:The specific creation process of the equipment time-consuming power consumption average value table is as follows:
第一终端设备通过与第二终端设备相连接的接口获取标识第二终端设备类型的身份ID,根据获取的身份ID来创建设备分时段耗电均值统计表,从而可以实现,在第一终端设备接入不同的第二终端设备时,能够将第一终端设备和第二终端设备在各时间段的耗电量记录到相应的设备分时段耗电均值统计表中,或从相应的设备分时段耗电均值统计表中获取计算充电电量值所需的数据。The first terminal device obtains an identity ID that identifies the second terminal device type through an interface that is connected to the second terminal device, and creates a device time-consuming power consumption average value table according to the acquired identity ID, so that the first terminal device can be implemented in the first terminal device. When accessing different second terminal devices, the power consumption of the first terminal device and the second terminal device in each time period can be recorded into the corresponding device time-consuming power consumption average value table, or the corresponding device time-segment The data required to calculate the charge value is obtained from the power consumption average.
另外,为了方便维护,减少设备分时段耗电均值统计表的个数,在创建设备分时段耗电均值统计表时,也可以仅创建一张设备分时段耗电均值统计表,在每次识别到接入的第二终端设备为新的终端设备,即从未连接过的类型,则在现有的设备分时段耗电均值统计表中增加与该第二终端设备相关的字段,用于记录该第二终端设备各时段的耗电均值,具体的实现方式,本领域的技术人员可以根据实际需要合理设置,此处不做限制。In addition, in order to facilitate maintenance, reduce the number of time-consuming power consumption statistics of the device. When creating the device-time average power consumption statistics table, you can also create only one device time-consuming power consumption average statistics table. The second terminal device to be accessed is a new terminal device, that is, a type that has never been connected, and a field related to the second terminal device is added to the existing device time-division power consumption average value table for recording. The average power consumption of the second terminal device in each period of time, and the specific implementation manner, which can be reasonably set by a person skilled in the art according to actual needs, is not limited herein.
关于设备分时段耗电均值统计表的具体维护过程如下:The specific maintenance process of the equipment time-consuming power consumption average statistics table is as follows:
按照预设周期定时获取各个预设时间段内第一终端设备的耗电量和第二终端设备的耗电量,分别针对每个预设时间段进行以下处理:The power consumption of the first terminal device and the power consumption of the second terminal device in each preset time period are obtained according to the preset period, and the following processing is performed for each preset time period:
获取设备分时段耗电均值统计表中记载的第一终端设备在预设时间段的平均耗电量和第一终端设备在预设时间段的定时获取次数,以及获取设备分时 段耗电均值统计表中记载的第二终端设备在预设时间段的平均耗电量和第二终端设备在预设时间段的定时获取次数;根据第一终端设备在预设时间段的平均耗电量、第一终端设备在预设时间段的定时获取次数和本次定时获取的预设时间段内第一终端设备的耗电量,更新设备分时段耗电均值统计表中记载的第一终端设备在预设时间段的平均耗电量;根据第二终端设备在预设时间段的平均耗电量、第二终端设备在预设时间段的定时获取次数和本次定时获取的预设时间段内第二终端设备的耗电量,更新设备分时段耗电均值统计表中记载的第二终端设备在预设时间段的平均耗电量。Obtaining the average power consumption of the first terminal device in the preset time period and the timing acquisition times of the first terminal device in the preset time period, and acquiring the device time-sharing, as recorded in the device-time average power consumption average value table. The average power consumption of the second terminal device in the preset period of time and the timing of the second terminal device in the preset time period are recorded according to the average of the first terminal device in the preset time period; The power consumption, the number of times the first terminal device acquires in the preset time period, and the power consumption of the first terminal device in the preset time period acquired by the current time, and the number of the device counted in the time-average power consumption statistics table The average power consumption of a terminal device in a preset time period; the average power consumption of the second terminal device in a preset time period, the number of times the second terminal device acquires at a preset time period, and the pre-acquisition obtained at the current time. The power consumption of the second terminal device in the time period is set, and the average power consumption of the second terminal device in the time-average power consumption statistics table of the device in the preset time period is updated.
比如,以24小时为一个周期,该周期内每个整点获取一次第一终端设备和第二终端设备在前一个小时内的耗电量。需要说明的是,以上仅为举例说明,并不对本申请的保护范围构成限定,关于如何设置周期,如何选取时间段,本领域的技术人员可以根据实际需要进行合理设置,此处不做限制。For example, in a cycle of 24 hours, the power consumption of the first terminal device and the second terminal device in the previous hour is obtained once every hour in the cycle. It should be noted that the above is only an example, and does not limit the scope of protection of the present application. Regarding how to set the period and how to select the time period, those skilled in the art can make reasonable settings according to actual needs, and no limitation is made herein.
另外,值得一提的是,由于在实际使用中,可能会存在某一时间段第一终端设备和/或第二终端设备处于关机状态,则关于第一终端设备和第二终端设备在各时间段内耗电量的统计,可以在第一终端设备和/或第二终端设备开机启动之后,可以直接忽略错过的所有时间段的耗电量,并在设备分时段耗电均值统计表中相应的时间段中记录为0毫安。In addition, it is worth mentioning that, in actual use, there may be a certain time period when the first terminal device and/or the second terminal device are in a shutdown state, then the first terminal device and the second terminal device are at different times. The statistics of the power consumption in the segment may directly ignore the power consumption of all the missed time periods after the first terminal device and/or the second terminal device are powered on, and the corresponding time in the device time-consuming power consumption average value table. The record in the segment is 0 mA.
另外,需要说明的是,由于终端设备在关机状态下,也是存在电路损耗的,因此为了保证准确性,可以在终端设备从关机状态重新进入开机状态后,根据关机前记录的电池的剩余电量值和开机后获取到的电池的剩余电量值做差,将差值作为关机时间段的耗电量,本领域的技术人员可以根据实际需要以及终端设备的应用场景进行合理设置,此处不做限制。In addition, it should be noted that, because the terminal device is in a shutdown state, there is also a circuit loss. Therefore, in order to ensure accuracy, after the terminal device re-enters the power-on state from the power-off state, according to the remaining power value of the battery recorded before the shutdown. The remaining battery value of the battery obtained after the power-on is poor, and the difference is used as the power consumption of the power-off period. The person skilled in the art can make a reasonable setting according to the actual needs and the application scenario of the terminal device, and no limitation is made here. .
基于上述获取规律,根据第一终端设备和第二终端设备在各时间段内的平均耗电量,可以得到如下所示的设备分时段耗电均值统计表,该统计表中记录的数据如下:Based on the above-mentioned acquisition rule, according to the average power consumption of the first terminal device and the second terminal device in each time period, a statistical table of time-division power consumption average values of the devices shown below can be obtained, and the data recorded in the statistics table is as follows:
表1Table 1
Figure PCTCN2017117586-appb-000003
Figure PCTCN2017117586-appb-000003
Figure PCTCN2017117586-appb-000004
Figure PCTCN2017117586-appb-000004
基于上述设备分时段耗电均值统计表中记录的第一终端设备和第二终端设备在各时间段的耗电量,具体可以根据以下公式计算充电电量值:The charging power value may be calculated according to the following formula based on the power consumption of the first terminal device and the second terminal device recorded in the time-sharing power consumption average value table of the device;
f1(t)=x-w;F1(t)=x-w;
f2(t)=y+w×c;F2(t)=y+w×c;
其中,f1(t)表示在时间段t内供电方的平均耗电量,f2(t)表示在时间段t内充电方的平均耗电量值,x为供电方当前时刻电池的剩余电量值(若供电方为第一终端设备,x为第一电量值,若供电方为第二终端设备,x为第二电量值),w为需要提供的充电电量值,y为充电方当前时刻电池的剩余电量值(若充电方为第二终端设备,y为第二电量值,若充电方为第一终端设备,y为第一电量值),c为充电转换效率(通常为0.8),f1(t)和f2(t)可以根据t在设备分时段耗电均值统计表中获得。Where f1(t) represents the average power consumption of the power supply during the time period t, f2(t) represents the average power consumption value of the charging party during the time period t, and x is the remaining power value of the battery at the current time of the power supply party. (If the power supply party is the first terminal equipment, x is the first power value, if the power supply party is the second terminal equipment, x is the second power value), w is the value of the required charging power, and y is the current battery of the charging party. Remaining power value (if the charging party is the second terminal device, y is the second power value, if the charging party is the first terminal device, y is the first power value), c is the charging conversion efficiency (usually 0.8), f1 (t) and f2(t) can be obtained according to t in the device time-consuming power consumption mean value table.
比如说,在充电方为第一终端设备,供电方为第二终端设备,当前时刻为0:00,第一电量值为23mA,第二电量值为38mA,若想要第一终端设备和第二终端设备在进行互充后,能够在3:00的时刻耗完各自的电量,则根据上述公式以及设备分时段耗电均值统计表中记录的从0:00到3:00这一时间段第一终端设备和第二终端设备的耗电量,可以得出充电电量值为8mA。For example, if the charging side is the first terminal device and the power supply side is the second terminal device, the current time is 0:00, the first power value is 23 mA, and the second power value is 38 mA. If the first terminal device and the first terminal device are desired, After the two terminal devices are mutually charged, they can exhaust their respective powers at the time of 3:00, according to the above formula and the time period from 0:00 to 3:00 recorded in the statistical data of the device time-sharing average. The power consumption of the first terminal device and the second terminal device can be obtained as a charge power value of 8 mA.
需要说明的是,以上仅为举例说明,并不对本申请的保护范围构成限定。It should be noted that the above is merely illustrative and does not limit the scope of protection of the present application.
步骤104,指示供电方按照充电电量值为充电方充电。 Step 104, instructing the power supply party to charge the charging party according to the charging power value.
另外,值得一提的是,在实际应用中,为了避免第一终端设备和第二终端设备在连接使用过程中出现不必要的互充操作,在互充之前检测当前时刻获取到的第一电量值和第二电量值是否满足互充启动条件,并根据检测结果作出相应的操作,比如设置在检测到第一电量值和第二电量值满足互充启动条件时,第一终端设备执行根据第一电量值和第二电量值,从第一终端设备和第二终端设备中选择供电方和充电方,以及确定充电电量值的步骤。In addition, it is worth mentioning that, in practical applications, in order to avoid unnecessary mutual charging operation during the connection and use of the first terminal device and the second terminal device, the first power amount acquired at the current time is detected before the mutual charging. Whether the value and the second power value satisfy the mutual charge start condition, and perform corresponding operations according to the detection result, for example, when the first power value and the second power value are detected to satisfy the mutual charge start condition, the first terminal device performs the A power value and a second power value, the power source and the charging party are selected from the first terminal device and the second terminal device, and the charging power value is determined.
具体的说,本实施例中,互充启动条件具体为第一电量值小于第一阈值,第二电量值大于或等于第二阈值,且第一终端设备在第一电量值下的可运行时长与第二终端设备在第二电量值下的可运行时长之差大于或等于第三阈值。或 者,第二电量值小于第一阈值,第一电量值大于或等于第二阈值,且第一终端设备在第一电量值下的可运行时长与第二终端设备在第二电量值下的可运行时长之差大于或等于第三阈值。Specifically, in this embodiment, the mutual charging start condition is specifically that the first power value is less than the first threshold, the second power value is greater than or equal to the second threshold, and the first terminal device is operable for the first power value. The difference between the operable time and the second terminal device at the second power value is greater than or equal to the third threshold. Or The second power value is less than the first threshold, the first power value is greater than or equal to the second threshold, and the operable time of the first terminal device at the first power value and the second terminal device are at the second power value. The difference in run time is greater than or equal to the third threshold.
比如说,第一阈值为100毫安,第二阈值为150毫安,第三阈值为5分钟,当获取到的第一电量值小于100毫安时,比如第一电量值为90毫安,第二电量值大于150毫安时,比如第二电量值为200毫安,并且通过查找设备分时段耗电均值统计表中记载的第一终端设备和第二终端设备在各时间段内的平均耗电量,可以计算出第一终端设备在第一电量值下的可运行时长为30分钟,第二终端设备在第二电量值下的可运行时长2小时,则可以确定当前时刻获取到的第一电量值和第二电量值是否满足互充启动条件。For example, the first threshold is 100 mA, the second threshold is 150 mA, and the third threshold is 5 minutes. When the obtained first power value is less than 100 mA, for example, the first power value is 90 mA. When the second power value is greater than 150 mA, for example, the second power value is 200 mA, and the average of the first terminal device and the second terminal device recorded in the time-consuming power consumption average value table of the device is determined in each time period. The power consumption can be calculated as the running time of the first terminal device under the first power value is 30 minutes, and the second terminal device can run for 2 hours under the second power value, and the current time can be determined. Whether the first power value and the second power value satisfy the mutual charge start condition.
另外,需要说明的是,为了保证充电方法能够顺利执行,保证相互连接使用的第一终端设备和第二终端设备在使用过程中电池的电量尽可能同时耗光,通常设置的第一阈值相对较小,比如5%(可用电量值剩余百分比),或者直接用电量值表示,比如100毫安,第二阈值可以略大于或等于第一阈值,比如10%,具体的设置方式以及取值,本领域的技术人员可以根据实际需要设置,并且为了方便用户使用,也可以提供用户进行设置的入口,由用户根据个人使用习惯进行合理设置,此处不做限制。In addition, it should be noted that, in order to ensure that the charging method can be smoothly executed, it is ensured that the first terminal device and the second terminal device used for mutual connection consume the light as much as possible during use, and the first threshold is usually set relatively. Small, such as 5% (the remaining percentage of available power value), or directly expressed by the power value, such as 100 mA, the second threshold can be slightly greater than or equal to the first threshold, such as 10%, the specific setting method and value, Those skilled in the art can set according to actual needs, and in order to facilitate the user's use, the user can also provide an entry for setting, and the user can make reasonable settings according to personal use habits, and there is no limitation here.
通过上述描述不难发现,本申请实施例相对于现有技术而言,在包括第一充电电池的第一终端设备与包括第二充电电池的第二终端设备连接使用的过程中,通过获取第一充电电池和第二充电电池当前时刻的剩余电量值,并根据获取到的剩余电量值,从第一终端设备和第二终端设备中选择供电方和充电方,以及确定充电电量值,该充电电量值满足充电后使第一终端设备和第二终端设备的可运行时长相同,从而在充电后能够使得第一终端设备和第二终端设备电池的电量尽可能同时耗光,最大程度的延长了第一终端设备和第二终端设备配合使用的使用时长。Through the above description, it is not difficult to find that, in the process of using the first terminal device including the first rechargeable battery and the second terminal device including the second rechargeable battery, the first embodiment of the present application obtains the first a remaining battery value of the current time of the rechargeable battery and the second rechargeable battery, and selecting a power supply side and a charging side from the first terminal device and the second terminal device according to the obtained remaining power value, and determining a charging power value, the charging After the charging value is satisfied, the first terminal device and the second terminal device have the same running time, so that after the charging, the power of the first terminal device and the second terminal device can be consumed as much as possible, and the maximum length is extended. The duration of use of the first terminal device and the second terminal device.
本申请的第二实施例涉及一种充电方法。本实施例在第一实施例的基础上做了进一步改进,具体改进之处为:在互充过程中,会按照预设时间间隔获取第三电量值和第四电量值,并根据第三电量值和第四电量值,判断是否需要重新确定充电电量值,具体流程如图2所示。A second embodiment of the present application relates to a charging method. The embodiment is further improved on the basis of the first embodiment, and the specific improvement is: in the mutual charging process, the third power value and the fourth power value are obtained according to the preset time interval, and according to the third power The value and the fourth power value determine whether it is necessary to re-determine the charging power value. The specific process is shown in FIG. 2 .
具体的说,在本实施例中,包含步骤201至步骤208,其中,步骤201至步骤204分别与第一实施例中的步骤101至步骤104大致相同,此处不再赘述,下面主要介绍不同之处: Specifically, in this embodiment, the steps 201 to 208 are included, wherein the steps 201 to 204 are substantially the same as the steps 101 to 104 in the first embodiment, and are not described herein again. Where:
步骤205,获取第三电量值和第四电量值。Step 205: Acquire a third power value and a fourth power value.
具体的说,在互充过程中,第一终端设备还需要通过与第二终端设备连接的接口,按照预设时间间隔获取第三电量值和第四电量值,比如每5分钟获取一次,具体的时间间隔,本领域的技术人员可以根据需要合理设置,比如互充的时长为30分钟,则可以设置每隔5分钟获取一次,如果充电时长为1小时,则可以设置每隔10分钟获取一次,具体的此处不做限制。Specifically, in the mutual charging process, the first terminal device further needs to acquire the third power value and the fourth power value according to the preset time interval through the interface connected to the second terminal device, for example, every 5 minutes, specifically The time interval can be set as needed by a person skilled in the art. For example, if the duration of the mutual charging is 30 minutes, the time can be set every 5 minutes. If the charging time is 1 hour, the time can be set every 10 minutes. There is no limit here.
需要说明的是,本实施例中获取的第三电量值具体为当前时刻供电方中的电池的剩余电量值,第四电量值具体为当前时刻充电方中的电池的剩余电量值。It should be noted that the third power value obtained in this embodiment is specifically the remaining power value of the battery in the power supply party at the current time, and the fourth power value is specifically the remaining power value of the battery in the current charging party.
步骤206,判断是否需要重新确定充电电量值。In step 206, it is determined whether it is necessary to re-determine the charge amount.
具体的说,根据第三电量值和第四电量值,判断是否需要重新确定充电电量值,若判定需要重新确定充电电量值,进入步骤207,根据第三电量值和第四电量值,确定新的充电电量值;若判定不需要重新确定充电电量值,进入步骤208,继续判断是否需要结束充电。Specifically, determining whether it is necessary to re-determine the charging power value according to the third power value and the fourth power value, and if it is determined that the charging power value needs to be determined again, proceeding to step 207, determining new according to the third power value and the fourth power value. If it is determined that the charging power value does not need to be re-determined, the process proceeds to step 208 to continue to determine whether the charging needs to be ended.
步骤207,确定新的充电电量值。 Step 207, determining a new charge amount.
具体的说,本实施例中确定新的充电电量值,具体可以通过以下方式实现:Specifically, the value of the new charging power is determined in this embodiment, which can be specifically implemented by:
根据第三电量值确定供电方的可运行时长,根据第四电量值确定充电方的可运行时长,根据供电方的可运行时长和充电方的可运行时长,确定新的充电电量值。Determining the operable time of the power supplier according to the third power value, determining the operable time of the charging party according to the fourth power value, and determining a new charging power value according to the operable time of the power supplier and the operable time of the charging party.
另外,由于充电并不会是理想情况的一瞬间充完,而是需要一个过程,而在互充过程中,充电方和供电方的电池的剩余电量也会根据时间的变化不断变化。因此,为了保证尽量的准确充电,需要根据获取到的第三电量值和第四电量值重新确定新的充电电量值,并且在确定新的充电电量值前,需要判断是否需要重新确定供电方和充电方,具体如下:In addition, since charging is not an ideal situation for a momentary charging, a process is required, and in the mutual charging process, the remaining power of the battery of the charging side and the power supply side is also constantly changed according to the change of time. Therefore, in order to ensure accurate charging as much as possible, it is necessary to re-determine the new charging power value according to the obtained third power value and the fourth power value, and before determining the new charging power value, it is necessary to determine whether it is necessary to re-determine the power supply side and The charging side is as follows:
将供电方的可运行时长和充电方的可运行时长进行比较,若供电方的可运行时长小于充电方的可运行时长,重新确定供电方和充电方,根据重新确定的充电方、供电方、供电方的可运行时长和充电方的可运行时长,确定新的充电电量值。Comparing the operability of the power supplier with the operability of the charging party. If the operability of the power supplier is less than the operability of the charging party, the power supply and the charging party are re-determined, according to the re-determined charging party, the power supplier, The running time of the power supplier and the running time of the charging party determine the new charging power value.
另外,值得一提的是,由于充电过程中,会由于充电转换效率的问题导致部分电量的损耗。因此,为了避免第一终端设备和第二终端设备在使用过程中,多次切充电方和供电方的身份进行相互充电导致的电流损耗问题,可以设 置一个合理的切换次数,比如3次,即在发生3次切换操作时停止充电,以减少不必要的电量损耗。In addition, it is worth mentioning that due to the problem of charging conversion efficiency, some power is lost due to the charging process. Therefore, in order to avoid the current loss caused by the mutual charging of the first terminal device and the second terminal device during the use, the identity of the charging party and the power supplier are mutually charged, Set a reasonable number of switching, such as 3 times, that is, stop charging when 3 switching operations occur to reduce unnecessary power loss.
具体可以通过下述方式实现:This can be achieved by:
在供电方的可运行时长小于充电方的可运行时长,重新确定供电方和充电方之后,累加重新确定供电方和充电方的次数,并判断重新确定供电方和充电方的次数是否大于预设反向次数,若判定重新确定供电方和充电方的次数大于预设反向次数,结束充电。After the operability of the power supplier is less than the operability of the charging party, after the power supply and the charging party are re-determined, the number of times of the power supply and the charging party is re-determined, and it is determined whether the number of times of the power supply and the charging party is greater than the preset. The number of reverses, if it is determined that the number of times of the power supply side and the charging side is determined to be greater than the preset reverse number of times, the charging is ended.
关于反向次数的设置,本领域的技术人员可以根据实际进行合理设置,此处不做限制。Regarding the setting of the number of reverse times, those skilled in the art can make reasonable settings according to actual conditions, and no limitation is made here.
另外,需要说明的是,本实施例中确定新的充电电量值的方式与第一实施例中确定充电电量值的方式基本相同,未在本实施例中详尽描述的技术细节,可参见第一实施例所提供的充电方法,此处不再赘述。In addition, it should be noted that the manner of determining the new charging power value in the embodiment is substantially the same as the manner of determining the charging power value in the first embodiment. For the technical details not described in detail in this embodiment, refer to the first. The charging method provided in the embodiment is not described herein again.
步骤208,判断是否需要结束充电。In step 208, it is determined whether charging is required to be ended.
具体的说,通过判断,判定需要结束充电的情况大致可以分为两种,一种是之前确定的充电方和供电方不需要改变,充电电量值也按照预期由供电方正常提供给充电方,并完成了充电,此时结束充电即可。Specifically, by judging, it is determined that the need to end charging can be roughly divided into two types. One is that the previously determined charging side and the power supply side do not need to be changed, and the charging electric quantity value is also normally supplied to the charging side by the power supply side as expected. And the charging is completed, and the charging is finished at this time.
另一种是之前的供电方电量值发生巨大变化,已经低于了某一阈值,比如可以持续提供充电电量值的阈值,或者说供电方中的电池的电量值已经消耗完毕,此时也不需要重新确定新的充电电量值,也不需要切换充电方和供电方,直接结束充电即可。The other is that the power value of the previous power supply has changed greatly, and has fallen below a certain threshold. For example, the threshold value of the charging power value can be continuously provided, or the power value of the battery in the power supply side has been consumed, and this time is not It is necessary to re-determine the new charging power value, and it is not necessary to switch between the charging side and the power supply side, and the charging can be ended directly.
通过上述描述不难发现,本申请实施例相对于现有技术而言,在指示供电方按照充电电量值为充电方充电后,在充电过程中,通过按照预设时间间隔进一步获取充电方和供电方当前时刻的电池的剩余电量值,并根据剩余电量值重新确定充电电量值或进行后续判断操作,从而可以进一步保证第一终端设备和第二终端设备在使用过程中,能够尽可能的同时耗光电池的电量。It is not difficult to find that, in the prior art, after instructing the power supply party to charge the charging party according to the charging power value, in the charging process, the charging party and the power supply are further obtained according to the preset time interval. The remaining battery value of the current time of the battery, and re-determining the charging power value according to the remaining power value or performing subsequent judgment operations, thereby further ensuring that the first terminal device and the second terminal device can simultaneously consume as much as possible during use. The amount of light in the battery.
本申请的第三实施例涉及一种充电方法,本实施例在第一实施例的基础上做了进一步改进,具体改进之处为:在获取第一电量值和第二电量值之后,还会获取第一充电电池和第二充电电池的总电量值,根据第一充电电池的总电量值、第二充电电池的总电量值、第一电量值和第二电量值计算电量值显示百分比,并将电量值显示百分比显示在第一终端设备上,具体流程如图3所示。The third embodiment of the present application relates to a charging method, and the embodiment is further improved on the basis of the first embodiment, and the specific improvement is: after acquiring the first power value and the second power value, Obtaining a total power value of the first rechargeable battery and the second rechargeable battery, and calculating a percentage of the power value according to the total power value of the first rechargeable battery, the total power value of the second rechargeable battery, the first power value, and the second power value, and Display the percentage of the power value display on the first terminal device. The specific process is shown in Figure 3.
具体的说,在本实施例中,包含步骤301至步骤306,其中,步骤301、步骤304至步骤306分别与第一实施例中的步骤101至步骤104大致相同,此 处不再赘述,下面主要介绍不同之处:Specifically, in this embodiment, step 301 to step 306 are included, wherein step 301 and step 304 to step 306 are substantially the same as steps 101 to 104 in the first embodiment, respectively. I will not go into details here. The following mainly introduces the differences:
步骤302,获取第一充电电池的总电量值和第二充电电池的总电量值。Step 302: Acquire a total power value of the first rechargeable battery and a total power value of the second rechargeable battery.
具体的说,第一充电电池的总电量值和第二充电电池的总电量值具体是指第一充电电池和第二充电电池在充满电的情况下各自所能使用的电量值,例如第一充电电池的额定电量值和第二充电电池的额定电量值。Specifically, the total power value of the first rechargeable battery and the total power value of the second rechargeable battery specifically refer to respective power values that the first rechargeable battery and the second rechargeable battery can use when fully charged, for example, the first The rated power value of the rechargeable battery and the rated power value of the second rechargeable battery.
另外,在本实施例中,具体可以通过第一终端设备内的电源管理模块获取第一充电电池的总电量值,通过与第二终端设备通信连接的接口获取第二充电电池的总电量值,并且该接口与获取第二电量值的接口可以是为同一接口,也可以为不同的接口,此处不做限制。In addition, in this embodiment, the total power value of the first rechargeable battery is obtained by the power management module in the first terminal device, and the total power value of the second rechargeable battery is obtained through the interface that is connected to the second terminal device. The interface can be the same interface or a different interface. The interface is not limited.
另外,在实际应用中,第一终端设备在与第二终端设备连接使用的过程中,还可以获取到第一充电电池和第二充电电池的其他电池信息,如第一充电电池、第二充电电池能够提供的工作电流和工作电压,以及第一充电电池和第二充电电池在互充过程中,所需的充电电流和充电电源的大小等等,此处不做限制。In addition, in a practical application, the first terminal device may also acquire other battery information of the first rechargeable battery and the second rechargeable battery during the connection and use with the second terminal device, such as the first rechargeable battery and the second charging. The operating current and operating voltage that the battery can provide, and the charging current and the size of the charging power source, etc., during the mutual charging process of the first rechargeable battery and the second rechargeable battery are not limited herein.
步骤303,计算电量值显示百分比,并显示在第一终端设备上。Step 303: Calculate a percentage of the power value display and display it on the first terminal device.
具体的说,在本实施例中,电量值显示百分比具体是根据第一充电电池的总电量值、第二充电电池的总电量值、第一电量值和第二电量值计算的,为了便于理解,以下结合公式进行具体说明:Specifically, in this embodiment, the percentage of the power value display is specifically calculated according to the total power value of the first rechargeable battery, the total power value of the second rechargeable battery, the first power value, and the second power value, in order to facilitate understanding. The following is combined with the formula to specify:
Figure PCTCN2017117586-appb-000005
Figure PCTCN2017117586-appb-000005
其中,P为电量值显示百分比,C1为第一充电电池的总电量值,C2为第二充电电池的总电量值,c1为第一电量值,c2为所述第二电量值。Where P is the percentage of the electricity value display, C 1 is the total electricity value of the first rechargeable battery, C 2 is the total electricity value of the second rechargeable battery, c 1 is the first electricity value, and c 2 is the second electricity value .
例如,在第一终端设备中的第一充电电池的总电量值为1000毫安,第二终端设备中的第二充电电池的总电量值为500毫安,在第一终端设备与第二终端设备连接使用的过程中,时间点A时,获取到的第一电量值为800毫安,第二电量值为400毫安,则时间点A时显示在第一终端上的电量值显示百分比为80%。For example, the total charge value of the first rechargeable battery in the first terminal device is 1000 mA, and the total power value of the second rechargeable battery in the second terminal device is 500 mA, at the first terminal device and the second terminal. During the connection of the device, at the time point A, the first power value obtained is 800 mA, and the second power value is 400 mA. When the time point A is displayed, the display value of the power value displayed on the first terminal is 80%.
需要说明的是,以上仅为举例说明,并不对本申请的保护范围构成限定。It should be noted that the above is merely illustrative and does not limit the scope of protection of the present application.
通过上述描述不难发现,本申请实施例相对于现有技术而言,通过将第一终端设备和第二终端设备的电池的电量值融入一体,在第一终端设备的上显示总的电量值百分比,大大提升了用户体验。It is not difficult to be found by the above description that the embodiment of the present application displays the total power value on the first terminal device by integrating the power values of the batteries of the first terminal device and the second terminal device with respect to the prior art. The percentage greatly enhances the user experience.
本领域的普通技术人员可以理解,上述各方法实施例是实现本申请的具 体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。It will be understood by those skilled in the art that the foregoing method embodiments are implemented to implement the present application. The present invention may be variously modified in form and detail without departing from the spirit and scope of the application.
本申请的第四实施例涉及一种充电装置,该充电装置的具体实施可参见方法实施例的描述,具体结构如图4所示。A fourth embodiment of the present application relates to a charging device. For a specific implementation of the charging device, refer to the description of the method embodiment. The specific structure is shown in FIG. 4 .
如图4所示,充电装置400主要包括获取模块401、确定模块402和充电模块403。As shown in FIG. 4, the charging device 400 mainly includes an obtaining module 401, a determining module 402, and a charging module 403.
其中,该充电装置400主要应用于包括第一充电电池的第一终端设备,在第一终端设备与包括第二充电电池的第二终端设备连接时,充电装置400通过内部的获取模块401、确定模块402和充电模块403的协同配合实现充电。The charging device 400 is mainly applied to the first terminal device including the first rechargeable battery. When the first terminal device is connected to the second terminal device including the second rechargeable battery, the charging device 400 determines through the internal acquiring module 401. The cooperation of module 402 and charging module 403 enables charging.
具体的说,通过获取模块401获取第一电量值和第二电量值,然后利用确定模块402根据第一电量值和第二电量值,从第一终端设备和第二终端设备中选择供电方和充电方,以及确定充电电量值,最终使用充电模块403指示供电方按照充电电量值为充电方充电。Specifically, the first power value and the second power value are obtained by the obtaining module 401, and then the determining module 402 selects the power supply side from the first terminal device and the second terminal device according to the first power value and the second power value. The charging party, and determining the charging power value, finally uses the charging module 403 to instruct the power supplier to charge the charging party according to the charging power value.
需要说明的是,本实施例所说的第一电量值为当前时刻第一充电电池的剩余电量值,第二电量值为当前时刻第二充电电池的剩余电量值。It should be noted that the first power value in the embodiment is the remaining power value of the first rechargeable battery at the current time, and the second power value is the remaining power value of the second rechargeable battery at the current time.
另外,在本实施例中,根据第一电量值和第二电量值确定的充电电量值需要满足充电后使第一终端设备和第二终端设备的可运行时长相同。In addition, in this embodiment, the charging power value determined according to the first power value and the second power value needs to satisfy the same operation time of the first terminal device and the second terminal device after charging.
通过上述描述不难发现,本申请实施例相对于现有技术而言,在包括第一充电电池的第一终端设备与包括第二充电电池的第二终端设备连接使用的过程中,通过利用获取模块获取第一充电电池和第二充电电池当前时刻的剩余电量值,并根据获取到的剩余电量值,利用确定模块从第一终端设备和第二终端设备中选择供电方和充电方,以及确定满足充电后使第一终端设备和第二终端设备的可运行时长相同的充电电量值,利用充电模块实现充电,从而可以保证第一终端设备和第二终端设备在使用过程中电池的电量能够同时耗光,最大程度的延长了第一终端设备和第二终端设备配合使用的使用时长。It is not difficult to find that the embodiment of the present application uses the acquisition by using the first terminal device including the first rechargeable battery and the second terminal device including the second rechargeable battery in connection with the prior art. The module acquires the remaining power value of the first charging battery and the second charging battery at the current time, and selects the power supply party and the charging party from the first terminal device and the second terminal device by using the determining module according to the obtained remaining power value, and determines After the charging, the charging power value of the first terminal device and the second terminal device are the same, and the charging module is used for charging, so that the battery power of the first terminal device and the second terminal device can be simultaneously used during the use. The use of light greatly extends the length of use of the first terminal device and the second terminal device.
以上所描述的装置实施例仅仅是示意性的,并不对本申请的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的,此处不做限制。The device embodiments described above are merely illustrative and do not limit the scope of the application. In practical applications, those skilled in the art may select some or all of the modules according to actual needs to implement the embodiment. The purpose of the program is not limited here.
本申请的第五实施例涉及一种终端设备,具体结构如图5所示。A fifth embodiment of the present application relates to a terminal device, and the specific structure is as shown in FIG. 5.
该终端设备包一个或多个处理器500以及存储器600,图5中以一个处理器500为例。The terminal device includes one or more processors 500 and a memory 600. One processor 500 is exemplified in FIG.
在本实施例中,上述实施例中涉及到的充电装置中的各功能模块均部署 在处理器500上,处理器500和存储器600可以通过总线或其他方式连接,图5中以通过总线连接为例。In this embodiment, each functional module in the charging device involved in the above embodiment is deployed. On the processor 500, the processor 500 and the memory 600 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器600作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请任意方法实施例中涉及的充电方法对应的程序指令/模块。处理器500通过运行存储在存储器600中的软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现本申请任意方法实施例中涉及的充电方法。The memory 600 is a computer readable storage medium, and can be used to store a software program, a computer executable program, and a module, such as a program instruction/module corresponding to the charging method involved in any method embodiment of the present application. The processor 500 executes various functional applications and data processing of the server by executing software programs, instructions, and modules stored in the memory 600, that is, implementing the charging method involved in any of the method embodiments of the present application.
存储器600可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储设备分时段耗电均值统计表等。此外,存储器600可以包括高速随机存取存储器,还可以包括存储器,例如至少一个磁盘存储器件、闪存器件、或其他固态存储器件。在一些实施例中,存储器600可选包括相对于处理器500远程设置的存储器,这些远程存储器可以通过网络连接至终端设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 600 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store a device time-division power consumption mean value table or the like. Moreover, memory 600 can include high speed random access memory, and can also include memory, such as at least one magnetic disk storage device, flash memory device, or other solid state storage device. In some embodiments, memory 600 can optionally include memory remotely located relative to processor 500, which can be connected to the terminal device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
在实际应用中,存储器600中可以存储至少一个处理器500执行的指令,指令被至少一个处理器500执行,以使至少一个处理器500能够执行本申请任意方法实施例涉及的充电方法,控制充电装置400完成充电方法中的充电流程,未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的充电方法。In a practical application, at least one processor 500 can be stored in the memory 600, and the instructions are executed by the at least one processor 500, so that the at least one processor 500 can perform the charging method according to any method embodiment of the present application to control charging. The device 400 completes the charging process in the charging method. For the technical details not described in detail in this embodiment, reference may be made to the charging method provided by the embodiment of the present application.
本申请的第六实施例涉及一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,该计算机指令使计算机能够执行本申请任意方法实施例中涉及的充电方法。A sixth embodiment of the present application is directed to a computer readable storage medium having stored therein computer instructions that enable a computer to perform the charging method involved in any of the method embodiments of the present application.
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本实用新型的精神和范围。 A person skilled in the art can understand that the above embodiments are specific embodiments for implementing the present application, and in actual application, various changes can be made in form and detail without departing from the spirit of the present invention. And scope.

Claims (14)

  1. 一种充电方法,应用于包括第一充电电池的第一终端设备,所述第一终端设备与包括第二充电电池的第二终端设备连接,所述充电方法包括:A charging method is applied to a first terminal device including a first rechargeable battery, the first terminal device being connected to a second terminal device including a second rechargeable battery, the charging method comprising:
    获取第一电量值和第二电量值;其中,所述第一电量值为当前时刻所述第一充电电池的剩余电量值,所述第二电量值为当前时刻所述第二充电电池的剩余电量值;Obtaining a first power value and a second power value; wherein the first power value is a remaining power value of the first rechargeable battery at a current time, and the second power value is a remaining value of the second rechargeable battery at a current time Electricity value
    根据所述第一电量值和所述第二电量值,从所述第一终端设备和所述第二终端设备中选择供电方和充电方,以及确定充电电量值;其中,所述充电电量值满足充电后使所述第一终端设备和第二终端设备的可运行时长相同;Selecting a power supply side and a charging side from the first terminal device and the second terminal device according to the first power value and the second power value, and determining a charging power value; wherein the charging power value After the charging is satisfied, the runable durations of the first terminal device and the second terminal device are the same;
    指示所述供电方按照所述充电电量值为所述充电方充电。Instructing the power supply party to charge the charging party according to the charging power value.
  2. 如权利要求1所述的充电方法,其中,在所述根据所述第一电量值和所述第二电量值,从所述第一终端设备和所述第二终端设备中选择供电方和充电方之前,还包括:The charging method according to claim 1, wherein said power supply side and charging are selected from said first terminal device and said second terminal device based on said first power amount value and said second power amount value Before the party, it also includes:
    检测所述第一电量值和所述第二电量值是否满足互充启动条件;Detecting whether the first power value and the second power value meet a mutual charge start condition;
    若所述第一电量值和所述第二电量值满足互充启动条件,则执行所述根据所述第一电量值和所述第二电量值,从所述第一终端设备和所述第二终端设备中选择供电方和充电方的步骤。And if the first power value and the second power value satisfy a mutual charge start condition, performing, according to the first power value and the second power value, from the first terminal device and the first The steps of selecting the power supply side and the charging side in the second terminal device.
  3. 如权利要求2所述的充电方法,其中,所述互充启动条件为所述第一电量值小于第一阈值,所述第二电量值大于或等于第二阈值,且所述第一终端设备在所述第一电量值下的可运行时长与所述第二终端设备在所述第二电量值下的可运行时长之差大于或等于第三阈值;The charging method according to claim 2, wherein said mutual charging initiation condition is that said first electric quantity value is less than a first threshold, said second electric quantity value is greater than or equal to a second threshold, and said first terminal device The difference between the runnable time at the first power value and the runnable time of the second terminal device at the second power value is greater than or equal to a third threshold;
    或者,所述第二电量值小于所述第一阈值,所述第一电量值大于或等于所述第二阈值,且所述第一终端设备在所述第一电量值下的可运行时长与所述第二终端设备在所述第二电量值下的可运行时长之差大于或等于第三阈值。Or the second power value is smaller than the first threshold, the first power value is greater than or equal to the second threshold, and the runnable time of the first terminal device under the first power value is The difference between the operable time of the second terminal device at the second power value is greater than or equal to a third threshold.
  4. 如权利要求1至3任意一项所述的充电方法,其中,根据所述第一电量值和所述第二电量值,从所述第一终端设备和所述第二终端设备中选择供电方和充电方,以及确定充电电量值,具体包括:The charging method according to any one of claims 1 to 3, wherein the power supplier is selected from the first terminal device and the second terminal device according to the first power amount value and the second power amount value And the charging side, as well as determining the charging power value, specifically including:
    根据所述第一终端设备在所述第一电量值下的可运行时长和所述第二终端设备在所述第二电量值下的可运行时长,从所述第一终端设备和所述第二终端设备中选择供电方和充电方; Determining, according to the runnable time of the first terminal device at the first power value and the runnable time of the second terminal device at the second power value, from the first terminal device and the first Selecting a power supply party and a charging party in the second terminal device;
    根据所述第一电量值、所述第二电量值、所述第一终端设备在所述第一电量值下的可运行时长、所述第二终端设备在所述第二电量值下的可运行时长、所述第一终端设备在各时间段内的平均耗电量、所述第二终端设备在各时间段内的平均耗电量以及充电转换效率,确定所述充电电量值。According to the first power value, the second power value, the runnable time of the first terminal device under the first power value, and the second terminal device at the second power value The running time, the average power consumption of the first terminal device in each time period, the average power consumption of the second terminal device in each time period, and the charging conversion efficiency determine the charging power value.
  5. 如权利要求4所述的充电方法,其中,所述第一终端设备在各时间段内的平均耗电量和所述第二终端设备在各时间段内的平均耗电量存储在设备分时段耗电均值统计表中。The charging method according to claim 4, wherein the average power consumption of the first terminal device in each time period and the average power consumption of the second terminal device in each time period are stored in the device time division period. The power consumption average is in the statistics table.
  6. 如权利要求1至5任意一项所述的充电方法,其中,在获取所述第一电量值和所述第二电量值之前,所述充电方法还包括:The charging method according to any one of claims 1 to 5, wherein before the obtaining the first electric quantity value and the second electric quantity value, the charging method further comprises:
    根据所述第一终端设备和所述第二终端设备,创建并维护所述设备分时段耗电均值统计表;Establishing and maintaining a statistical table of time-division power consumption average values of the devices according to the first terminal device and the second terminal device;
    其中,所述根据所述第一终端设备和所述第二终端设备,维护所述设备分时段耗电均值统计表,具体包括:And the maintaining, according to the first terminal device and the second terminal device, a statistics table of the average power consumption of the device in a period of time, specifically:
    按照预设周期定时获取各个预设时间段内所述第一终端设备的耗电量和所述第二终端设备的耗电量;Acquiring the power consumption of the first terminal device and the power consumption of the second terminal device in each preset time period according to a preset period;
    分别针对每个所述预设时间段进行以下处理:The following processing is performed separately for each of the preset time periods:
    获取所述设备分时段耗电均值统计表中记载的所述第一终端设备在所述预设时间段的平均耗电量和所述第一终端设备在所述预设时间段的定时获取次数,以及获取所述设备分时段耗电均值统计表中记载的所述第二终端设备在所述预设时间段的平均耗电量和所述第二终端设备在所述预设时间段的定时获取次数;Acquiring the average power consumption of the first terminal device in the preset time period and the timing of obtaining the timing of the first terminal device in the preset time period, which are recorded in the time-of-life consumption average value table of the device And obtaining an average power consumption of the second terminal device in the preset time period and a timing of the second terminal device in the preset time period, which are recorded in the device time-of-life power consumption average value table. Number of acquisitions;
    根据所述第一终端设备在所述预设时间段的平均耗电量、所述第一终端设备在所述预设时间段的定时获取次数和本次定时获取的所述预设时间段内所述第一终端设备的耗电量,更新所述设备分时段耗电均值统计表中记载的所述第一终端设备在所述预设时间段的平均耗电量;According to the average power consumption of the first terminal device in the preset time period, the number of times the first terminal device acquires in the preset time period, and the preset time period acquired in the current time. The power consumption of the first terminal device is updated, and the average power consumption of the first terminal device in the preset time period is updated in the time-average power consumption statistics table of the device;
    根据所述第二终端设备在所述预设时间段的平均耗电量、所述第二终端设备在所述预设时间段的定时获取次数和本次定时获取的所述预设时间段内所述第二终端设备的耗电量,更新所述设备分时段耗电均值统计表中记载的所述第二终端设备在所述预设时间段的平均耗电量。According to the average power consumption of the second terminal device in the preset time period, the number of times the second terminal device acquires in the preset time period, and the preset time period acquired in the current time. The power consumption of the second terminal device is updated, and the average power consumption of the second terminal device in the preset time period of the device is updated.
  7. 如权利要求1至6任意一项所述的充电方法,其中,在指示所述供电方按照所述充电电量值为所述充电方充电后,所述充电方法还包括:The charging method according to any one of claims 1 to 6, wherein after the charging party is instructed to charge the charging party according to the charging power value, the charging method further comprises:
    在互充过程中,按照预设时间间隔获取第三电量值和第四电量值;其中, 所述第三电量值为当前时刻所述供电方中的电池的剩余电量值,所述第四电量值为当前时刻所述充电方中的电池的剩余电量值;In the mutual charging process, the third power value and the fourth power value are obtained according to preset time intervals; wherein The third power value is a remaining power value of the battery in the power supply party at the current time, and the fourth power value is a remaining power value of the battery in the charging party at the current time;
    根据所述第三电量值和所述第四电量值,判断是否需要重新确定充电电量值;Determining whether it is necessary to re-determine the charging power value according to the third power value and the fourth power value;
    若判定需要重新确定充电电量值,根据所述第三电量值和所述第四电量值,确定新的充电电量值;If it is determined that the charging power value needs to be re-determined, determining a new charging power value according to the third power value and the fourth power value;
    若判定不需要重新确定充电电量值,判断是否需要结束充电。If it is determined that it is not necessary to re-determine the charge amount, it is determined whether it is necessary to end the charge.
  8. 如权利要求7所述的充电方法,其中,确定新的充电电量值,具体包括:The charging method of claim 7, wherein determining the new charging power value comprises:
    根据所述第三电量值确定所述供电方的可运行时长;Determining, according to the third power value, a runable duration of the power supply party;
    根据所述第四电量值确定所述充电方的可运行时长;Determining, according to the fourth power value, a runable duration of the charging party;
    根据所述供电方的可运行时长和所述充电方的可运行时长,确定新的充电电量值。A new charging power value is determined according to the operable time of the power supplier and the operability of the charging party.
  9. 如权利要求8所述的充电方法,其中,根据所述供电方的可运行时长和所述充电方的可运行时长,确定新的充电电量值,具体包括:The charging method according to claim 8, wherein the determining the new charging power value according to the operable time of the power supplier and the operability of the charging party comprises:
    将所述供电方的可运行时长和所述充电方的可运行时长进行比较;Comparing the runnable length of the power supply side with the runnable time of the charging side;
    若所述供电方的可运行时长小于所述充电方的可运行时长,重新确定供电方和充电方;If the operability of the power supplier is less than the operability of the charging party, the power supply and the charging party are re-determined;
    根据重新确定的所述充电方和所述供电方以及所述供电方的可运行时长和所述充电方的可运行时长,确定新的充电电量值。A new charge amount is determined based on the re-determined charging party and the power supplier and the operable time of the power supplier and the operability of the charging party.
  10. 如权利要求9所述的充电方法,其中,在所述供电方的可运行时长小于所述充电方的可运行时长,重新确定供电方和充电方之后,所述充电方法还包括:The charging method according to claim 9, wherein after the operability of the power supplier is less than the operability of the charging party, after the power supply and the charging party are re-determined, the charging method further includes:
    累加重新确定供电方和充电方的次数,并判断所述重新确定供电方和充电方的次数是否大于预设反向次数;Accumulating the number of times of the power supply side and the charging side, and determining whether the number of times of the power supply side and the charging side is greater than a preset reverse number of times;
    若判定所述重新确定供电方和充电方的次数大于预设反向次数,结束充电。If it is determined that the number of times of re-determining the power supply side and the charging side is greater than the preset reverse number of times, the charging is ended.
  11. 如权利要求1至10任意一项所述的充电方法,其中,在获取第一电量值和第二电量值之后,所述充电方法还包括:The charging method according to any one of claims 1 to 10, wherein after the obtaining the first electric quantity value and the second electric quantity value, the charging method further comprises:
    分别获取所述第一充电电池和所述第二充电电池的总电量值;Obtaining a total power value of the first rechargeable battery and the second rechargeable battery respectively;
    根据所述第一充电电池的总电量值、所述第二充电电池的总电量值、所述第一电量值和所述第二电量值计算电量值显示百分比,并将所述电量值显示百分比显示在所述第一终端设备上。Calculating a percentage value of the power value according to a total power value of the first rechargeable battery, a total power value of the second rechargeable battery, the first power value, and the second power value, and displaying the power value as a percentage Displayed on the first terminal device.
  12. 一种充电装置,应用于包括第一充电电池的第一终端设备,所述第一 终端设备与包括第二充电电池的第二终端设备连接,所述充电装置包括:A charging device applied to a first terminal device including a first rechargeable battery, the first The terminal device is connected to the second terminal device including the second rechargeable battery, and the charging device includes:
    获取模块,用于获取第一电量值和第二电量值;其中,所述第一电量值为当前时刻所述第一充电电池的剩余电量值,所述第二电量值为当前时刻所述第二充电电池的剩余电量值;An acquiring module, configured to obtain a first power value and a second power value; wherein the first power value is a remaining power value of the first rechargeable battery at a current time, and the second power value is the current time The remaining power value of the second rechargeable battery;
    确定模块,用于根据所述第一电量值和所述第二电量值,从所述第一终端设备和所述第二终端设备中选择供电方和充电方,以及确定充电电量值;其中,所述充电电量值满足充电后使所述第一终端设备和第二终端设备的可运行时长相同;a determining module, configured to select a power supply side and a charging side from the first terminal device and the second terminal device according to the first power value and the second power value, and determine a charging power value; The charging electric quantity value is the same as the operable time of the first terminal device and the second terminal device after charging;
    充电模块,用于指示所述供电方按照所述充电电量值为所述充电方充电。And a charging module, configured to instruct the power supply party to charge the charging party according to the charging power value.
  13. 一种终端设备,包括:A terminal device comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至11任意一项所述的充电方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 11. Charging method.
  14. 一种计算机可读存储介质,存储有计算机指令,所述计算机指令用于使所述计算机执行权利要求1至11任意一项所述的充电方法。 A computer readable storage medium storing computer instructions for causing the computer to perform the charging method of any one of claims 1 to 11.
PCT/CN2017/117586 2017-12-20 2017-12-20 Charging method, device, terminal apparatus, and computer readable storage medium WO2019119326A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780002402.7A CN108235795A (en) 2017-12-20 2017-12-20 Charging method, device, terminal device and computer readable storage medium
PCT/CN2017/117586 WO2019119326A1 (en) 2017-12-20 2017-12-20 Charging method, device, terminal apparatus, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/117586 WO2019119326A1 (en) 2017-12-20 2017-12-20 Charging method, device, terminal apparatus, and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2019119326A1 true WO2019119326A1 (en) 2019-06-27

Family

ID=62643251

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117586 WO2019119326A1 (en) 2017-12-20 2017-12-20 Charging method, device, terminal apparatus, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108235795A (en)
WO (1) WO2019119326A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108808798A (en) * 2018-07-10 2018-11-13 中国联合网络通信集团有限公司 The method and apparatus of reverse charging
CN110970947B (en) * 2018-09-29 2023-03-31 Oppo广东移动通信有限公司 Charging method, terminal and computer storage medium
CN109768602B (en) * 2018-10-11 2021-11-09 浙江动一新能源动力科技股份有限公司 Battery pack charging and discharging method and system for garden tool
CN112311029B (en) * 2019-07-30 2023-02-03 华为技术有限公司 Charging method, electronic device and storage medium
CN112467834A (en) * 2020-11-19 2021-03-09 珠海格力电器股份有限公司 Electric quantity control method and scanning device
CN113036872A (en) * 2021-03-23 2021-06-25 张成君 Charging device capable of displaying electric quantity percentage

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447273A (en) * 2010-09-30 2012-05-09 联想(北京)有限公司 Terminal and power supply method thereof
CN103247832A (en) * 2012-02-14 2013-08-14 联想(北京)有限公司 Charging method and electronic device
US20140304529A1 (en) * 2013-04-08 2014-10-09 Ford Meazell System and Method for Battery Power Transfer Between Mobile Devices
CN105790349A (en) * 2016-01-27 2016-07-20 努比亚技术有限公司 Mutual charging control method and device for mobile terminals
CN105811480A (en) * 2014-12-30 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Charging method, charging device and charging terminal
US9686747B1 (en) * 2014-08-08 2017-06-20 Noble Systems Corporation Regulate current battery usage of a mobile device
CN107426424A (en) * 2017-07-25 2017-12-01 维沃移动通信有限公司 A kind of charge/discharge control method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447273A (en) * 2010-09-30 2012-05-09 联想(北京)有限公司 Terminal and power supply method thereof
CN103247832A (en) * 2012-02-14 2013-08-14 联想(北京)有限公司 Charging method and electronic device
US20140304529A1 (en) * 2013-04-08 2014-10-09 Ford Meazell System and Method for Battery Power Transfer Between Mobile Devices
US9686747B1 (en) * 2014-08-08 2017-06-20 Noble Systems Corporation Regulate current battery usage of a mobile device
CN105811480A (en) * 2014-12-30 2016-07-27 宇龙计算机通信科技(深圳)有限公司 Charging method, charging device and charging terminal
CN105790349A (en) * 2016-01-27 2016-07-20 努比亚技术有限公司 Mutual charging control method and device for mobile terminals
CN107426424A (en) * 2017-07-25 2017-12-01 维沃移动通信有限公司 A kind of charge/discharge control method and mobile terminal

Also Published As

Publication number Publication date
CN108235795A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
WO2019119326A1 (en) Charging method, device, terminal apparatus, and computer readable storage medium
US11368039B2 (en) Battery charging method and electronic device
CN102369647B (en) Power supply managment method and device of mobile terminal
CN106772091B (en) Method and device for updating battery capacity value and terminal
EP3193179B1 (en) Electric quantity detection method and apparatus, terminal and storage medium
WO2016101509A1 (en) Charging control method and device
Li et al. Measurement and analysis of energy consumption on Android smartphones
CN103501390B (en) Mobile terminal with reminding function and reminding realization method thereof
WO2014101807A1 (en) Method and terminal for displaying capacity of battery
CN115275443A (en) Heating control method and heating control device for vehicle-mounted power battery, and vehicle
US8941362B2 (en) Charging apparatus, and charge control method
KR20150066222A (en) Method and apparatus for download firmware in battery managenent system for electric bycycle
US20150141081A1 (en) Method of detection and display of charging information of power bank
CN113725937B (en) Battery charging method and electronic equipment
CN104866058A (en) Method and apparatus for determining battery endurance of electronic device
US20180138727A1 (en) Information processing system, information processing device, operation device, and power supply method
TWI544716B (en) Method and device for determining charging time
CN112014749A (en) Method and device for determining battery display electric quantity, chip and storage medium
CN115459313A (en) Energy storage participation demand response method, device and medium
US20130076299A1 (en) Charging device capable of automatically distributing charging current
CN114744693A (en) Charging method and electronic equipment
JP6674119B1 (en) Charge control device and charge control system
CN104423278B (en) Mobile power supply terminal and its method of supplying power to
CN104360270A (en) Battery charging curve acquiring device and method of portable electronic equipment
CN110493857B (en) Battery using method, device, terminal and storage medium

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: 17935727

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17935727

Country of ref document: EP

Kind code of ref document: A1