[go: up one dir, main page]

CN112311029A - Charging method, electronic device and storage medium - Google Patents

Charging method, electronic device and storage medium Download PDF

Info

Publication number
CN112311029A
CN112311029A CN201910695658.1A CN201910695658A CN112311029A CN 112311029 A CN112311029 A CN 112311029A CN 201910695658 A CN201910695658 A CN 201910695658A CN 112311029 A CN112311029 A CN 112311029A
Authority
CN
China
Prior art keywords
electronic device
time period
time
duration
charging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910695658.1A
Other languages
Chinese (zh)
Other versions
CN112311029B (en
Inventor
刘凡帆
郑志勇
袁兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910695658.1A priority Critical patent/CN112311029B/en
Priority to PCT/CN2020/101929 priority patent/WO2021017823A1/en
Publication of CN112311029A publication Critical patent/CN112311029A/en
Application granted granted Critical
Publication of CN112311029B publication Critical patent/CN112311029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers
    • 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

Landscapes

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

Abstract

本发明实施例公开了一种充电方法、电子设备以及存储介质,方法包括:第一电子设备确定第一电子设备的剩余电量的第一使用时长;第一电子设备从第二电子设备接收第二电子设备的剩余电量的第二使用时长;第一电子设备判断第一使用时长是否大于第二使用时长;若第一使用时长大于第二使用时长,则第一电子设备确定第一电子设备处于反向充电模式,若第一使用时长小于第二使用时长,则第一电子设备确定第一电子设备处于正向充电模式,可见,第一电子设备能够根据第一电子设备的第一使用时长和第二电子设备的使用时长,自动判断出供电方和受电方,在充电的过程中无需用户的手动操作,从而有效的提高了充电效率。

Figure 201910695658

Embodiments of the present invention disclose a charging method, an electronic device, and a storage medium. The method includes: a first electronic device determines a first use duration of remaining power of the first electronic device; the first electronic device receives a second electronic device from the second electronic device The second usage duration of the remaining power of the electronic device; the first electronic device determines whether the first usage duration is greater than the second usage duration; if the first usage duration is greater than the second usage duration, the first electronic device determines that the first electronic device is in reverse. In the forward charging mode, if the first usage duration is less than the second usage duration, the first electronic device determines that the first electronic device is in the forward charging mode. It can be seen that the first electronic device can be charged according to the first usage duration and the first usage duration of the first electronic device. The use time of the second electronic device can automatically determine the power supplier and the power receiver, and no manual operation of the user is required during the charging process, thereby effectively improving the charging efficiency.

Figure 201910695658

Description

Charging method, electronic device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a charging method, an electronic device, and a storage medium.
Background
With the use of electronic devices such as smart phones becoming more and more frequent, and the performance of the electronic devices becoming more and more diverse, the power consumption consumed by the electronic devices in the use process becomes higher and higher, and the electronic devices need to be frequently charged in the use process.
In order to achieve the purpose of mutual charging between two different electronic devices outdoors or in a scene where a fixed socket is difficult to find, the purpose of mutual charging between two electronic devices can be achieved through the On The Go (OTG) in the prior art. Carry out mutual charging between the different electronic equipment through the OTG, connect 2 electronic equipment through the charging wire, manual operation selects an electronic equipment as the power supply side, and another electronic equipment is as the side of charging.
However, the mutual charging between 2 electronic devices is realized through the OTG, a dedicated charging line is required, the convenience of charging the electronic devices is reduced, and the user is required to manually operate the selected power supply party and the selected charging party in the charging process, so that the efficiency of charging the electronic devices is reduced.
Disclosure of Invention
The embodiment of the application provides a charging method, electronic equipment and a storage medium, which are used for charging the electronic equipment, a special charging wire is not needed in the charging process, and a power supply side and a power receiving side can be automatically determined without manual operation of a user, so that the charging efficiency is improved.
A first aspect of an embodiment of the present invention provides a charging method, where the charging method is used for a first electronic device, and the charging method includes: the first electronic equipment determines a first use duration of the residual capacity of the first electronic equipment; the first electronic equipment receives a second use duration of the residual capacity of the second electronic equipment from the second electronic equipment; the first electronic equipment judges whether the first use duration is longer than the second use duration; if the first usage duration is longer than the second usage duration, the first electronic device determines that the first electronic device is in a reverse charging mode, and the reverse charging mode is that the first electronic device outputs a charging current to the second electronic device; if the first usage duration is less than the second usage duration, the first electronic device determines that the first electronic device is in a forward charging mode, and the forward charging mode is that the first electronic device receives a charging current output by the second electronic device.
Therefore, by adopting the charging method of the invention, the first electronic device can automatically judge the power supplier and the power receiver according to the first use time of the first electronic device and the use time of the second electronic device, and the manual operation of the user is not needed in the charging process, thereby effectively improving the charging efficiency. The power supplier and the power receiver are judged through the use duration, so that the use degree of the first electronic device is fully considered in the process of determining the power supplier and the power receiver, for example, although the residual electric quantity of the first electronic device is relatively large, the first electronic device runs a plurality of applications with large power consumption, namely, the use degree of the first electronic device is very heavy, if the first electronic device is used as the power supplier to supply power to other electronic devices, the situation that the first electronic device cannot be used normally subsequently can be caused, and by adopting the method shown in the aspect, the power supplier and the power receiver are determined through the use duration, the situation that the first electronic device with the heavy use degree supplies power to the first electronic device with the light use degree is avoided, and the normal use of the first electronic device is effectively guaranteed.
Based on the first aspect of the embodiment of the present invention, in an optional implementation manner of the first aspect of the embodiment of the present invention, the determining, by the first electronic device, the first usage duration of the remaining capacity of the first electronic device includes: the first electronic equipment acquires the residual electric quantity of the first electronic equipment; the first electronic equipment acquires the working current of the first electronic equipment; and the first electronic equipment determines the first service life according to the residual electric quantity and the working current.
By adopting the method shown in the aspect, the first electronic equipment can directly determine the first use duration of the residual electric quantity of the first electronic equipment according to the residual electric quantity and the working electric quantity currently left by the first electronic equipment, and the first electronic equipment can be conveniently and automatically determined to be a power supply side or a power receiving side in the mutual charging process due to no need of manual operation of a user, so that the charging efficiency is effectively improved.
Based on the first aspect of the embodiment of the present invention, in an optional implementation manner of the first aspect of the embodiment of the present invention, the acquiring, by the first electronic device, the working current of the first electronic device includes: the first electronic device determines a variation of a first battery capacity of the first electronic device within a first time period, wherein a time starting point of the first time period is a time before a current time, and a time ending point of the first time period is the current time or the time before the current time; and the first electronic equipment determines the working current according to the variation of the first battery capacity and the first time period.
With the method of this aspect, the first electronic device may determine the operating current according to a variation of a first battery level of the first electronic device in a past period (i.e., a first period) and the first period, so that the first electronic device can estimate the first usage time period of the first electronic device based on the variation of the battery level of the first electronic device in the past first period.
Based on the first aspect of the embodiment of the present invention, in an optional implementation manner of the first aspect of the embodiment of the present invention, the acquiring, by the first electronic device, the working current of the first electronic device includes: the first electronic equipment acquires a second time period, wherein the time starting point of the second time period is the current time or the time behind the current time; the first electronic device acquires a corresponding third time period according to the second time period, wherein the starting time and the ending time of the third time period are the same as the starting time and the ending time of the second time period, and the date of the third time period is earlier than the date of the second time period; the first electronic equipment acquires the variation of the second battery capacity of the first electronic equipment in a third time period; and the first electronic equipment determines the working current according to the variation of the second battery capacity and the third time period.
By adopting the method shown in the present aspect, the first electronic device fully considers the possible variation of the battery capacity in the future time period (the second time period), so as to estimate the operating current according to the variation of the battery capacity in the future time period of the first electronic device, so that the first usage duration determined by the first electronic device fully considers the usage situation of the first electronic device in the future time period, thereby avoiding the situation that the first electronic device with larger power consumption becomes a power supplier in the future time period, and effectively ensuring that the first electronic device with larger power consumption in the future time period serves as the power supplier, so that the first electronic device cannot be normally used.
Based on the first aspect of the embodiment of the present invention, in an optional implementation manner of the first aspect of the embodiment of the present invention, the method further includes: the first electronic equipment acquires a second time period, wherein the time starting point of the second time period is the current time or the time behind the current time; the first electronic device acquires a corresponding third time period according to the second time period, wherein the starting time and the ending time of the third time period are the same as the starting time and the ending time of the second time period, and the date of the third time period is earlier than the date of the second time period; and the first electronic equipment triggers and executes a step that the first electronic equipment determines that the first electronic equipment is in a forward charging mode under the condition that the first electronic equipment is determined to run a target application in the third time period, wherein the target application is an application with running electric quantity greater than or equal to a preset value.
By adopting the method shown in this embodiment, whether the target application with high power consumption is likely to be operated in the future time period is fully considered by the first electronic device, and if the first usage duration of the first electronic device is longer than the second usage duration of the second device, but the probability that the target application is operated in the future time period (third time period) by the first electronic device is very high, the first electronic device cannot guarantee that the first electronic device successfully operates the target application in the third time period after being used as a power supplier.
Based on the first aspect of the embodiment of the present invention, in an optional implementation manner of the first aspect of the embodiment of the present invention, if the first duration of use is longer than the second duration of use, the method further includes: the first electronic equipment receives first indication information, wherein the first indication information is used for indicating that the first electronic equipment has the highest charging priority; and the first electronic equipment determines that the first electronic equipment is in the forward charging mode according to the indication of the first indication information.
It can be seen that, by using the method shown in this aspect, when the first electronic device determines that the first duration of use is greater than the second duration of use, the first electronic device detects whether first indication information input by a user is received, and if the first electronic device receives the first indication information, it indicates that the user needs the first electronic device as a power receiver according to the user's own use requirement, and even if the first electronic device determines that the first duration of use is greater than the second duration of use, the first electronic device is controlled to receive, by the power receiver, a charging current output by the second electronic device.
Based on the first aspect of the embodiment of the present invention, in an optional implementation manner of the first aspect of the embodiment of the present invention, if the first duration of use is less than the second duration of use, the method further includes: if the first electronic device receives second indication information, the second indication information is used for indicating that the second electronic device has the highest charging priority; and the first electronic equipment determines that the first electronic equipment is in the reverse charging mode according to the indication of the second indication information.
It can be seen that, by using the method shown in this aspect, when the first electronic device determines that the first usage duration is less than the second usage duration, the first electronic device detects whether second indication information input by a user is received, and if the first electronic device receives the second indication information, it indicates that the second electronic device is required to be used as a power receiver according to a usage requirement of the user, and even if the first electronic device determines that the first usage duration is less than the second usage duration, the first electronic device is controlled to be a power charging party to charge the second electronic device.
Based on the first aspect of the embodiment of the present invention, in an optional implementation manner of the first aspect of the embodiment of the present invention, the method further includes: if the first usage duration is equal to the second usage duration, the first electronic device determines that the first electronic device is in a standby mode.
By adopting the method of the present aspect, if the first electronic device determines that the first usage duration and the second usage duration are equal, the first electronic device determines that the first electronic device is in the standby mode, that is, the first electronic device does not charge the second electronic device, and the second electronic device is not used to charge the first electronic device, thereby avoiding consumption of the electric quantity of the first electronic device.
Based on the first aspect of the embodiment of the present invention, in an optional implementation manner of the first aspect of the embodiment of the present invention, the determining, by the first electronic device, the first usage duration of the remaining capacity of the first electronic device includes: if the first electronic device detects that the first electronic device is in a wired charging mode, the first electronic device determines that the first use duration of the first electronic device is infinite, and the wired charging mode means that an external power supply continuously charges the first electronic device through a charging wire.
It can be understood that, with the method shown in this aspect, if the first electronic device detects that it is in the limited charging mode, it indicates that an external power source supplies power to the first electronic device, and the first electronic device determines that the first usage time length of the first electronic device is infinite, and when the first electronic device and the second electronic device are in a mutual charging state, the first electronic device with the first time length being infinite is always used as a power supply side to charge the second electronic device.
A second aspect of an embodiment of the present invention provides an electronic device, where the electronic device is a first electronic device, and the first electronic device includes: the processing unit is used for determining a first use duration of the residual electric quantity of the first electronic equipment; the receiving unit is used for receiving a second use duration of the residual capacity of the second electronic equipment from the second electronic equipment; the processing unit is further configured to determine whether the first duration of use is greater than the second duration of use; if the first usage duration is longer than the second usage duration, the processing unit determines that the first electronic device is in a reverse charging mode, and the reverse charging mode is that the first electronic device outputs a charging current to the second electronic device; if the first usage duration is less than the second usage duration, the processing unit determines that the first electronic device is in a forward charging mode, and the forward charging mode is that the first electronic device receives a charging current output by the second electronic device.
For a detailed description of a specific process and a beneficial effect of the electronic device executing the charging method in this aspect, please refer to the first aspect, which is not described in detail.
Based on the second aspect of the embodiment of the present invention, in an optional implementation manner of the second aspect of the embodiment of the present invention, the processing unit is specifically configured to: acquiring the residual electric quantity of the first electronic equipment; acquiring the working current of the first electronic equipment; and determining the first service time according to the residual electric quantity and the working current.
Based on the second aspect of the embodiment of the present invention, in an optional implementation manner of the second aspect of the embodiment of the present invention, the processing unit is specifically configured to: determining a variation of a first battery capacity of the first electronic device within a first time period, wherein a time start point of the first time period is a time before a current time, and a time end point of the first time period is the current time or the time before the current time; and determining the working current according to the variable quantity of the first battery electric quantity and the first time period.
Based on the second aspect of the embodiment of the present invention, in an optional implementation manner of the second aspect of the embodiment of the present invention, the processing unit is specifically configured to: acquiring a second time period, wherein the time starting point of the second time period is the current time or the time after the current time; acquiring a corresponding third time period according to the second time period, wherein the starting time and the ending time of the third time period are the same as the starting time and the ending time of the second time period, and the date of the third time period is earlier than the date of the second time period; acquiring the variation of the second battery capacity of the first electronic equipment in a third time period; and determining the working current according to the variation of the second battery capacity and the third time period.
Based on the second aspect of the embodiment of the present invention, in an optional implementation manner of the second aspect of the embodiment of the present invention, the processing unit is further configured to: acquiring a second time period, wherein the time starting point of the second time period is the current time or the time after the current time; acquiring a corresponding third time period according to the second time period, wherein the starting time and the ending time of the third time period are the same as the starting time and the ending time of the second time period, and the date of the third time period is earlier than the date of the second time period; and under the condition that the first electronic device is determined to run a target application in the third time period, triggering and executing the step of determining that the first electronic device is in a forward charging mode, wherein the target application is an application with a running electric quantity greater than or equal to a preset value.
Based on the second aspect of the embodiment of the present invention, in an optional implementation manner of the second aspect of the embodiment of the present invention, if the first duration of use is greater than the second duration of use, the receiving unit is further configured to: receiving first indication information, wherein the first indication information is used for indicating that the first electronic equipment has the highest charging priority; the processing unit is further configured to determine that the first electronic device is in the forward charging mode according to the indication of the first indication information.
Based on the second aspect of the embodiment of the present invention, in an optional implementation manner of the second aspect of the embodiment of the present invention, if the first duration of use is less than the second duration of use, the receiving unit is further configured to: receiving second indication information, wherein the second indication information is used for indicating that the second electronic equipment has the highest charging priority; the processing unit is further configured to determine that the first electronic device is in the reverse charging mode according to the indication of the second indication information.
Based on the second aspect of the embodiment of the present invention, in an optional implementation manner of the second aspect of the embodiment of the present invention, the processing unit is further configured to determine that the first electronic device is in the standby mode if the first usage duration is equal to the second usage duration.
Based on the second aspect of the embodiment of the present invention, in an optional implementation manner of the second aspect of the embodiment of the present invention, the processing unit is specifically configured to: if the first electronic device is detected to be in a wired charging mode, determining that the first use time of the first electronic device is infinite, wherein the wired charging mode is that an external power supply continuously charges the first electronic device through a charging wire.
A third aspect of embodiments of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed on a computer, causes the computer to perform the method according to any one of the first aspects.
A fourth aspect of embodiments of the present invention provides a chip, including a communication interface, a memory for storing a computer program, and a processor for reading and executing the computer program stored in the memory to perform the method according to any one of the first aspect.
A fifth aspect of embodiments of the present invention provides an electronic device, comprising a transceiver, a memory for storing a computer program, and a processor for reading and executing the computer program stored in the memory to perform the method according to any one of the first aspect.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of an electronic device provided in the present application;
fig. 2 is a diagram illustrating an exemplary scenario of a charging method provided in the present application;
FIG. 3 is a flowchart illustrating steps of a charging method according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating steps of another embodiment of a charging method provided herein;
FIG. 5 is a flowchart illustrating steps of another embodiment of a charging method according to the present disclosure;
fig. 6 is a diagram illustrating another exemplary scenario of a charging method provided in the present application;
FIG. 7 is a flowchart illustrating steps of another embodiment of a charging method according to the present disclosure;
fig. 8 is a diagram illustrating a structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" appearing in the present application may be an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this application generally indicates that the former and latter related objects are in an "or" relationship.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
In order to better understand the charging method provided by the present application, a specific structure of the electronic device is first exemplarily illustrated with reference to fig. 1 as follows:
the electronic device includes an input unit 105, a processor unit 103, an output unit 101, a communication unit 107, a storage unit 104, a radio frequency circuit 108, and the like.
These components communicate over one or more buses. Those skilled in the art will appreciate that the configuration of the electronic device shown in fig. 1 is not intended to limit the present invention, and may be a bus or star configuration, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In the embodiment of the present invention, the electronic device may be any mobile or portable electronic device, including but not limited to a smart phone, a mobile computer, a tablet computer, a Personal Digital Assistant (PDA), a media player, a smart television, and the like.
The electronic device includes:
an output unit 101 for outputting an image to be displayed.
And the processor unit 103 is used for executing corresponding codes, processing the received information and generating and outputting a corresponding interface.
Specifically, the processor unit 103 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and executes various functions of the electronic device and/or processes data by running or executing software programs and/or modules stored in the storage unit and calling data stored in the storage unit. The processor unit 103 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs with the same or different functions connected.
For example, the processor unit 103 may include only a Central Processing Unit (CPU), or may be a combination of a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), and a control chip (e.g., a baseband chip) in the communication unit. In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A memory unit 104 for storing code and data, the code for execution by the processor unit 103.
Specifically, the storage unit 104 may be used to store software programs and modules, and the processor unit 103 executes various functional applications of the electronic device and implements data processing by running the software programs and modules stored in the storage unit 104. The storage unit 104 mainly includes a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, such as a sound playing program, an image playing program, and the like; the data storage area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. In an embodiment of the present invention, the storage unit 104 may include a volatile memory, and may further include a non-volatile memory, such as at least one of a magnetic disk storage device, an electrically erasable programmable read only memory, a flash memory device, such as an inversion or flash memory, or an inversion and flash memory.
The non-volatile memory stores an operating system and application programs executed by the processor unit 103. The processor unit 103 loads operating programs and data from the non-volatile memory into memory and stores digital content in mass storage devices. The operating system includes various components and/or drivers for controlling and managing conventional system tasks, such as memory management, storage device control, power management, etc., as well as facilitating communication between various hardware and software components.
The application programs include any application installed on the electronic device including, but not limited to, browser, email, instant messaging service, word processing, keyboard virtualization, Widget (Widget), encryption, digital rights management, voice recognition, voice replication, positioning (e.g., functions provided by the global positioning system), music playing, and so forth.
An input unit 105 for enabling user interaction with the electronic device and/or information input into the electronic device.
For example, the input unit 105 may receive numeric or character information input by a user to generate a signal input related to user setting or function control. In the embodiment of the present invention, the input unit 105 may be a touch screen, other human-computer interaction interfaces, such as an entity input key, a microphone, and other external information capturing devices, such as a camera.
The touch screen disclosed by the embodiment of the invention can collect the operation actions touched or approached by the user. For example, the user can use any suitable object or accessory such as a finger, a stylus, etc. to operate on or near the touch screen, and drive the corresponding connection device according to a preset program. Alternatively, the touch screen may include two parts, a touch detection device and a touch controller. The touch detection device detects touch operation of a user, converts the detected touch operation into an electric signal and transmits the electric signal to the touch controller; the touch controller receives the electrical signal from the touch sensing device and converts it to touch point coordinates, which are fed to the processor unit 103.
The touch controller can also receive and execute commands sent by the processor unit 103. In addition, the touch screen can be realized by various types such as a resistive type, a capacitive type, an infrared ray, a surface acoustic wave and the like.
In other embodiments of the present invention, the physical input keys used by the input unit 105 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a track ball, a mouse, a joystick, etc. The input unit 105 in the form of a microphone may collect speech input by a user or the environment and convert it into commands in the form of electrical signals executable by the processor unit 103.
In some other embodiments of the present invention, the input unit 105 may also be various sensing devices, such as hall devices, for detecting physical quantities of the electronic device, such as force, moment, pressure, stress, position, displacement, speed, acceleration, angle, angular velocity, number of rotations, rotation speed, and time of change of operating state, and converting the physical quantities into electric quantities for detection and control. Other sensing devices may include gravity sensors, three-axis accelerometers, gyroscopes, electronic compasses, ambient light sensors, proximity sensors, temperature sensors, humidity sensors, pressure sensors, heart rate sensors, fingerprint identifiers, and the like.
A communication unit 107 for establishing a communication channel through which the electronic device connects to a remote server and downloads media data from the remote server. The communication unit 107 may include a wireless local area network (wlan) module, a bluetooth module, a baseband module, and other communication modules, and a Radio Frequency (RF) circuit corresponding to the communication module, and is configured to perform wlan communication, bluetooth communication, infrared communication, and/or cellular communication system communication, such as wideband code division multiple access (W-CDMA) and/or High Speed Downlink Packet Access (HSDPA). The communication module is used for controlling communication of each component in the electronic equipment and can support direct memory access.
In different embodiments of the present invention, the various communication modules in the communication unit 107 are generally in the form of integrated circuit chips (integrated circuit chips), and can be selectively combined without including all the communication modules and corresponding antenna groups. For example, the communication unit 107 may comprise only a baseband chip, a radio frequency chip and a corresponding antenna to provide communication functions in a cellular communication system. The electronic device may be connected to a cellular network or the internet via a wireless communication connection established by the communication unit 107, such as a wireless local area network access or a WCDMA access. In some optional embodiments of the present invention, a communication module, for example, a baseband module, in the communication unit 107 may be integrated into the processor unit 103.
And the radio frequency circuit 108 is used for receiving and sending signals in the process of information transceiving or conversation. For example, after receiving downlink information of the base station, the downlink information is processed by the processor unit 103; in addition, the data for designing uplink is transmitted to the base station. Typically, the radio frequency circuitry 108 includes well-known circuitry for performing these functions, including but not limited to an antenna system, a radio frequency transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec chipset, a subscriber identity module card, memory, and so forth. In addition, the radio frequency circuitry 108 may also communicate with networks and other devices via wireless communications.
A battery 109 for charging the different components of the electronic device to maintain its operation. As a general understanding, the battery 109 may be a built-in battery, such as a common lithium ion battery, nickel metal hydride battery, or the like. In some embodiments of the present invention, the battery 109 may be more broadly defined and may include, for example, a battery management system, a charging system, a battery failure detection circuit, a battery converter or inverter, a battery status indicator (e.g., a light emitting diode), and any other components associated with power generation, management, and distribution of an electronic device.
The charging method described in the present application can realize wireless charging between two different electronic devices, and the electronic device is required to support the wireless charging function, and the structure of the electronic device with the wireless charging function is shown in fig. 1,
the electronic device further comprises a wireless charging module 111 connected with the battery 109, and further comprises a transceiver coil 110 connected with the wireless charging module 111.
The following describes an exemplary procedure of wireless charging between the first electronic device 201 and the second electronic device 202 based on fig. 1 and 2:
optionally, when the first electronic device 201 is in the reverse charging mode, that is, the first electronic device 201 outputs a charging current to the second electronic device 202, so that the first electronic device 201 charges the second electronic device 202;
specifically, the wireless charging module included in the first electronic device 201 performs power control, inversion, voltage stabilization, filtering and other conversion processes on the direct current provided by the battery to obtain an alternating current with fixed power, and the transceiver coil can convert the alternating current into electromagnetic energy and transmit the electromagnetic energy to the second electronic device 202;
within the second electronic device 202, the transceiver coil may convert electromagnetic energy from the first electronic device 201 into electrical energy (i.e., into induced alternating current) and transmit the induced alternating current to the wireless charging module of the second electronic device 202; the wireless charging module can perform power control, rectification, voltage stabilization, filtering and other conversion processing on the induced alternating current to obtain induced direct current with fixed power, and charges a battery of the second electronic device through the induced direct current to realize transmission of electric energy from the first electronic device 201 to the second electronic device 202.
Here, the transceiver coil 110 may specifically realize the transmission of electric energy through electromagnetic induction, magnetic resonance transmission, and the like, and is not limited herein. For example, when the wireless charging module of the first electronic device inputs the alternating current with fixed power to the transceiver coil of the second electronic device 202, the transceiver coil of the second electronic device will generate a constantly changing magnetic field, and the transceiver coil in the changing magnetic field can generate the induced alternating current, thereby realizing the transmission of the electric energy. In the embodiment of the present invention, an electromagnetic induction type power transmission method is described as an example.
Optionally, when the first electronic device 201 is in the forward charging mode, that is, the second electronic device 202 outputs a charging current to the first electronic device 201, so that the second electronic device 202 charges the first electronic device 201, and a specific charging process may be as shown above and is not described in detail.
Based on fig. 1 and fig. 2, an embodiment of the charging method provided by the present application is exemplarily described below with reference to fig. 3:
step 301, establishing a radio connection between the first electronic device and the second electronic device.
Specifically, before the first electronic device and the second electronic device shown in this embodiment are mutually charged, a radio connection between the first electronic device and the second electronic device needs to be established, and the following exemplary descriptions are provided for an alternative way of establishing a radio connection:
the first electronic device may periodically send a detection signal, where the detection signal is used to detect whether a second electronic device capable of performing mutual charging with the first electronic device exists around the first electronic device. When a second electronic device that needs to be mutually charged with a first electronic device is close to the first electronic device, that is, a transceiver coil of the first electronic device and a transceiver coil of the second electronic device are close to each other, taking fig. 2 as an example, that is, a back surface of the first electronic device is attached to a back surface of the second electronic device. The second electronic device may receive the detection signal sent by the first electronic device, and the second electronic device may send a response signal corresponding to the detection signal to the first electronic device; under the condition that the first electronic device receives the response signal, the first electronic device and the second electronic device can be in radio connection through electromagnetic coupling, and under the condition that wireless point connection is established between the first electronic device and the second electronic device, the first electronic device and the second electronic device can be charged mutually.
In the above, the first electronic device is taken as an example to transmit the probe signal to the second electronic device, and in other scenarios, the second electronic device may also transmit the probe signal to the first electronic device, and the present embodiment is not limited specifically.
Step 302, the first electronic device determines a first usage duration of the remaining power of the first electronic device;
specifically, in this embodiment, the first electronic device may obtain the remaining power of the first electronic device and the working current of the first electronic device, and the first electronic device may determine the first usage duration of the remaining power of the first electronic device according to the remaining power of the first electronic device and the working current of the first electronic device.
In this embodiment, a specific process of how the first electronic device determines the first usage duration according to the remaining power of the first electronic device is not limited, as long as the first electronic device can determine the first usage duration, and several optional implementation manners of determining the first usage duration by the first electronic device are exemplarily described as follows:
mode 1
In this mode, the first electronic device obtains the current working current of the first electronic device, and the first electronic device can determine a first usage duration according to formula 1:
equation 1: the first service life is the residual capacity of the first electronic device/the current working current of the first electronic device 60;
the unit of the first usage time period may be minutes (min), the unit of the remaining capacity of the first electronic device may be milliampere hours (mAh), and the unit of the current operating current of the first electronic device may be milliamperes (mA).
Mode 2
In the present mode, the first electronic device obtains a variation of a first battery capacity of the first electronic device within a first time period determined by the first electronic device;
for example, if the first electronic device determines that the current time is 13:30, the time start point of the first time period may be time 12:00, and the time end point of the first time period may be 13:30, the first electronic device may obtain a variation of the first battery capacity of the first electronic device in the first time period (12:00 to 13: 30).
The first electronic equipment determines a first use duration according to a formula 2:
equation 2: the first use time period is the residual capacity of the first electronic equipment/the variation of the battery capacity in the first time period;
wherein the first usage time period and the first time period may be in minutes (min), and the remaining capacity of the first electronic device may be in milliampere hours (mAh).
In this embodiment, the duration of the first time period is not limited, for example, the duration of the first time period may be 60min, or 5 min.
Mode 3, in mode 2, the first time period determined by the first electronic device is a time period before the current time of the first electronic device, and in mode 3, the first electronic device may estimate a change amount of a battery capacity of the first electronic device at a future time, so as to estimate the first usage time period;
the specific execution flow can be seen in the following steps:
step A1, the first electronic device obtains a second time period, and the time starting point of the second time period is the current time or the time after the current time;
for example, if the first electronic device determines that the current time is 13:00, the first electronic device may determine that the time starting point of the second time period is 13:00, or may be 13:30, and so on, as long as the time starting point of the second time period is located at the current time or a time after the current time;
in this embodiment, the duration of the second time period is not limited, for example, the duration may be 60min, and for example, the duration may be 10min, and specifically, the present embodiment is not limited, and the example that the duration of the second time period is 60min is taken as an example to exemplarily describe:
step A2, the first electronic device obtains a corresponding third time period according to the second time period, wherein the starting time and the ending time of the third time period are the same as the starting time and the ending time of the second time period, and the date of the third time period is earlier than the date of the second time period;
in the above example, the second time period determined by the first electronic device may be 13:00-14:00, and the date of the second time period is the current date, that is, the date of the first electronic device executing the method shown in this embodiment, where the date shown in this embodiment refers to the year, month and day, such as 6/month and 20/year 19, that is, the first electronic device has a need to perform mutual charging with the second electronic device in 6/month and 20/year 19;
the third time period determined by the electronic device is between 13:00 and 14:00, and the date of the third time period is earlier than the date of the second time period, in the above example, the date of the second time period is 19 years, 6 months and 20 days, and the date of the third time period may be 19 years, 6 months, 19 days, and the like, and is not limited in this embodiment as long as the date of the third time period is earlier than the date of the second time period.
Step A3, the first electronic device obtains a variation of a second battery capacity of the first electronic device in a third time period;
under the condition that the first electronic device determines the third time period, the first electronic device can count the variation of the second battery capacity of the first electronic device in the third time period;
optionally, because the variation amounts of the second battery capacities in the third time periods on different dates are different, the first electronic device may generate a target list according to the variation amounts of the second battery capacities in the third time periods on different dates, the target list is sorted according to priorities of the second battery capacities from large to small, the first electronic device obtains the variation amount of the second battery capacity in the target list at the highest priority, and the first electronic device determines step a4 according to the third time period with the highest priority;
step a4, the first electronic device determines the operating current according to the variation of the second battery power and the third time period.
Specifically, the first electronic device may calculate the working current according to formula 3;
equation 3: the working current of the first electronic device is the change of the battery capacity in the third time period;
the unit of the third time period may be minutes (min), and the unit of the variation of the battery capacity in the third time period may be milliampere-hours (mAh).
Step a5, the first electronic device determines the first usage duration according to the working current, and specifically, the first electronic device may calculate the first usage duration according to formula 4 shown below;
equation 5: the first service life is equal to the residual capacity/the working current of the first electronic equipment;
the operating current is the operating current obtained by step a4 for a first period of use.
Step 303, the first electronic device receives, from a second electronic device, a second usage duration of the remaining power of the second electronic device;
for the specific process of determining the second duration by the second electronic device, please refer to the specific process of determining the first duration by the first electronic device in detail, which is not described in detail in this embodiment.
Step 304, the first electronic device determines whether the first duration of use is greater than the second duration of use, if so, step 305 is executed, and if not, step 306 is executed.
In order to enable the charging method shown in this embodiment to implement mutual charging between the first electronic device and the second electronic device without manual operation of a user, the first electronic device is required to determine that the electronic device serving as a power supplier and the electronic device serving as a power receiver are located between the first electronic device and the second electronic device, and the specific determination process is as follows:
the first electronic device can judge whether the first use duration is longer than the second use duration, if the first use duration is longer than the second use duration, it is indicated that the normal use duration of the first electronic device is longer than the normal use duration of the second electronic device, and the first electronic device can be used as a power supplier to charge the second electronic device;
if the first usage duration is shorter than the second usage duration, it indicates that the duration in which the first electronic device can be normally used is shorter than the duration in which the second electronic device can be normally used, the first electronic device can be used as a power receiver, and the second electronic device charges the first electronic device.
Step 305, the first electronic device determines that the first electronic device is in a reverse charging mode.
In this embodiment, if the first electronic device determines that the first usage duration is longer than the second usage duration, the first electronic device may determine that the first electronic device is in a reverse charging mode, where the reverse charging mode is that the first electronic device outputs a charging current to the second electronic device, and thus the first electronic device is a power supplier at this time.
Step 306, the first electronic device determines that the first electronic device is in a forward charging mode.
In this embodiment, if the first electronic device determines that the first usage duration is less than the second usage duration, the first electronic device determines that the first electronic device is in a forward charging mode, where the forward charging mode is that the first electronic device receives a charging current output by the second electronic device, and thus the first electronic device is a power receiver at this time.
In this embodiment, the first electronic device may periodically detect a first usage duration of the first electronic device, and the first electronic device periodically receives a second usage duration sent by the second electronic device, and then the first electronic device may periodically perform the above-mentioned steps 302 to 305, for example, in a first charging period, if the first usage duration is greater than the second usage duration, the first electronic device charges the second electronic device, and in a second charging period, if the first usage duration is less than the second usage duration, the second electronic device charges the first electronic device.
The method shown by the embodiment has the advantages that:
the first electronic device and the second electronic device can be charged mutually in a wireless charging mode, and a special data line is not needed in the charging process, so that the convenience of mutual charging between the first electronic device and the second electronic device is improved;
by adopting the charging method shown in the embodiment, the first electronic device can automatically judge the power supplier and the power receiver according to the first use duration of the first electronic device and the use duration of the second electronic device, and the manual operation of a user is not needed in the charging process, so that the charging efficiency is effectively improved;
the power supplier and the power receiver are judged through the use duration, so that the use degree of the electronic equipment is fully considered in the process of determining the power supplier and the power receiver, for example, although the residual capacity of the electronic equipment is relatively large, the electronic equipment runs a plurality of applications with large power consumption, namely, the use degree of the electronic equipment is very heavy, if the electronic equipment is used as the power supplier to supply power to other electronic equipment, the situation that the electronic equipment cannot be used normally subsequently can be caused, and by adopting the method shown in the embodiment, the power supplier and the power receiver are determined through the use duration, the situation that the electronic equipment with the heavy use degree supplies power to the electronic equipment with the light use degree is avoided, and the normal use of the electronic equipment is effectively ensured.
Another implementation of the charging method shown in this embodiment is described below with reference to fig. 4:
step 401, the first electronic device and the second electronic device establish a radio connection.
Step 402, the first electronic device determines a first usage duration of the remaining power of the first electronic device;
step 403, the first electronic device receives a second usage duration of the remaining power of the second electronic device from the second electronic device;
step 404, the first electronic device determines whether the first usage duration is greater than the second usage duration, if so, step 405 is executed, and if not, step 408 is executed.
For details of the specific execution process from step 401 to step 404 shown in this embodiment, please refer to step 301 to step 304 shown in fig. 3, and the specific execution process is not described in detail in this embodiment.
Step 405, the first electronic device obtains a second time period.
In this embodiment, when the first electronic device determines that the first usage duration is longer than the second usage duration, the first electronic device does not determine that the first electronic device is a power supplier, but obtains a second time period, where a time start point of the second time period is a current time or a time after the current time, and a detailed description of the second time period is please refer to the embodiment shown in fig. 3, which is not repeated in this embodiment.
And step 406, the first electronic device acquires a corresponding third time period according to the second time period.
For a specific description of the third time period, please refer to the embodiment shown in fig. 3 in detail, and details of the third time period are not repeated in this embodiment.
Step 407, the first electronic device determines whether the first electronic device runs the target application in the third time period, if yes, step 408 is executed, and if not, step 409 is executed;
in this embodiment, when the first electronic device determines the third time period, the first electronic device may determine whether a target application is running in the third time period;
for example, the current time is 21:00, the third time period is 21:00 to 22:00, the target application is a video application, the current time is located on the date of 19 years, 6 months and 20, the third time period is located on the date of 19 years, 6 months and 19 days, the first electronic device determines that the first electronic device runs the video application with high power consumption on 19 days, 6 months and 19 days, 21:00 to 22:00, the probability that the first electronic device runs the video application is high on 19 years, 6 months and 20, 21:00 to 22:00, if the first electronic device is determined as a power supplier, the residual power of the first electronic device cannot meet the running of the target application with high power consumption after the first electronic device charges the second electronic device, and in order to avoid the situation that the first electronic device cannot normally run the target application, if the first electronic device determines that the target application is running in the third time period, the first electronic device will not supply power to the second electronic device;
the specific application type of the target application is not limited in this embodiment, as long as the target application is an application with an operation power greater than or equal to a preset value, for example, the target application is a video application, a navigation application, or the like.
Step 408, the first electronic device determines that the first electronic device is in a forward charging mode.
Optionally, in step 404, if the first electronic device determines that the first usage duration is shorter than the second usage duration, the first electronic device determines that the first electronic device is in a forward charging mode, where the forward charging mode is that the first electronic device receives a charging current output by the second electronic device, and thus the first electronic device is a power receiver.
Optionally, in step 407, if the first electronic device determines that the first electronic device runs the target application in the third time period, in order to ensure normal running of the target application, the first electronic device determines that the first electronic device is in the forward charging mode, and please refer to fig. 3 for details of the forward charging mode, which is not described in this embodiment.
Step 409, the first electronic device determines that the first electronic device is in a reverse charging mode.
If, in step 407, the first electronic device determines that the first electronic device does not run the target application in the third time period, the first electronic device may be used as a power supplier to charge the second electronic device, and please refer to fig. 3 for details of the reverse charging mode, which is not described in this embodiment.
By adopting the method shown in this embodiment, the first electronic device fully considers whether the target application with high power consumption is likely to be operated in a future time period, such as a video application in a next time period, such as a navigation application in an early peak time period, and the like, and if the first usage duration of the first electronic device is longer than the second usage duration of the second device but the probability that the target application is operated by the first electronic device in the future time period (third time period) is very high, the first electronic device cannot guarantee that the first electronic device successfully operates the target application in the third time period after being used as a power supplier.
Another implementation of the charging method shown in this embodiment is described below with reference to fig. 5:
step 501, establishing a radio connection between the first electronic device and the second electronic device.
Step 502, the first electronic device determines a first usage duration of the remaining power of the first electronic device;
step 503, the first electronic device receives a second usage duration of the remaining power of the second electronic device from a second electronic device;
step 504, the first electronic device determines whether the first usage duration is greater than the second usage duration, if so, step 505 is executed, and if not, step 508 is executed.
For details of the specific execution process from step 501 to step 504 shown in this embodiment, please refer to step 301 to step 304 shown in fig. 3, and the specific execution process is not described in detail in this embodiment.
Step 505, the first electronic device detects whether the first indication information is received, if so, step 506 is executed, and if not, step 507 is executed.
In this embodiment, when the first electronic device determines that the first usage duration is longer than the second usage duration, the first electronic device does not directly determine the first electronic device as a power supplier, but detects whether first indication information input by a user is received, where the first indication information is used to indicate that the first electronic device has a highest charging priority, and the highest charging priority indicates that the first electronic device can only be used as a power receiver.
In this embodiment, a specific process of the first electronic device receiving the first indication information is not limited, and taking fig. 6 as an example, the first electronic device may display an operation interface 601 through a display screen 600;
prompt information can be displayed on the operation interface 601, and the prompt information is exemplarily "whether to charge or not";
a first operation key 602 and a second operation key 603 are also displayed on the operation interface 601, the first operation key 602 may display a character "no", and the second operation key 603 may display a character "yes";
under the condition that the first electronic device determines that the first using time length is longer than the second using time length, the first electronic device can automatically display an operation interface 601 through a display screen 600, if the user determines that the first electronic device is used as a power receiving party, the user can touch a second operation key 603, and under the condition that the first electronic device determines that the second operation key 603 receives a touch event, the first indication information can be generated, and then the second electronic device needs to charge the first electronic device.
Step 506, the first electronic device determines that the first electronic device is in a forward charging mode.
Optionally, in step 505, if the first electronic device determines that the first usage duration is longer than the second usage duration, but if the user needs the first electronic device as a power receiver according to his own needs, the user may input the first indication information through the operation interface shown in fig. 6, so that the second electronic device charges the first electronic device, and please see the above embodiment for a specific description of the forward charging mode, which is not repeated in this embodiment.
Optionally, in step 508, if the first electronic device determines that the first usage duration is less than the second usage duration and the second indication information is not received, the first electronic device may determine that the first electronic device is in the forward charging mode.
Step 507, the first electronic device determines that the first electronic device is in a reverse charging mode.
Optionally, in step 505, if the first duration of use is longer than the second duration of use, and the first electronic device does not receive the first indication information input by the user, the first electronic device may determine that the first electronic device is used as a charging party to charge the second electronic device, and for a specific description of the reverse charging mode, please refer to the foregoing embodiment, which is not repeated in this embodiment.
Optionally, in step 508, if the first duration of use is less than the second duration of use and the first electronic device receives the second indication information, the first electronic device may determine that the first electronic device is used as a charging party to charge the second electronic device.
Step 508, the first electronic device detects whether the second indication information is received, if yes, step 507 is executed, and if not, step 506 is executed.
In this embodiment, when the first electronic device determines that the first usage duration is less than the second usage duration, the first electronic device does not directly determine the first electronic device as a power receiver, but detects whether second indication information input by a user is received, where the second indication information is used to indicate that the second electronic device has a highest charging priority, and the highest charging priority indicates that the second electronic device can only serve as a power receiver.
Optionally, in the operation interface 601, a user may touch the first operation key 602, and when the first electronic device detects that the first operation key 602 receives a touch event, it indicates that the user inputs the second indication information by touching the first operation key 602, and the first electronic device may determine that the first electronic device is used as a power supplier according to the second indication information, and the second electronic device is used as a power receiver, and then the first electronic device may determine that the first electronic device is in a reverse charging mode.
Optionally, if the first duration of use is less than the second duration of use, and the first electronic device does not receive the second indication information input by the user, the first electronic device may determine that the first electronic device is the power-receiving party.
It can be seen that, with the method shown in this embodiment, when the first electronic device determines that the first duration of use is longer than the second duration of use, the first electronic device detects whether to receive first indication information input by a user, if the first electronic device receives the first indication information, it indicates that the user needs the first electronic device as a power receiver according to the user's own usage requirement, even if the first electronic device determines that the first duration of use is longer than the second duration of use, the first electronic device controls the first electronic device to receive a charging current output by the second electronic device for the power receiver, if the first electronic device determines that the first duration of use is shorter than the second duration of use, the first electronic device detects whether to receive second indication information input by the user, and if the first electronic device receives second indication information, if the first electronic device determines that the first usage duration is less than the second usage duration, the first electronic device is controlled to be a charging party to charge the second electronic device.
Another implementation of the charging method shown in this embodiment is described below with reference to fig. 7:
step 701, establishing a radio connection between the first electronic device and the second electronic device.
Step 702, the first electronic device determines a first usage duration of the remaining power of the first electronic device;
step 703, the first electronic device receives, from a second electronic device, a second usage duration of the remaining power of the second electronic device;
for details of the specific execution process from step 701 to step 703 shown in this embodiment, please refer to step 301 to step 303 shown in fig. 3, and the specific execution process is not described in detail in this embodiment.
Step 704, if the first electronic device determines that the first usage duration is equal to the second usage duration, the first electronic device determines that the first electronic device is in a standby mode.
In this embodiment, if the first electronic device determines that the first usage duration and the second usage duration are equal, in this embodiment, the first electronic device determines that the first electronic device is in a standby mode, that is, the first electronic device does not charge the second electronic device, and does not charge the first electronic device with the second electronic device.
Optionally, as shown in this embodiment, under the condition that the first duration of use and the second duration of use are equal, the manner shown in the foregoing embodiment may also be executed to determine the charging mode in which the first electronic device is located, for example, the first electronic device may execute steps 405 to 409 shown in fig. 4, and as another example, under the condition that the first duration of use and the second duration of use are equal, the first electronic device may execute steps 505 to 508 shown in fig. 5, so that under the condition that the first duration of use and the second duration of use are equal, wireless mutual charging may also be performed between the first electronic device and the second electronic device.
Optionally, in any of the above method embodiments, the first electronic device may detect whether the first electronic device is in the wired charging mode in real time or periodically, wherein, the wired charging mode means that an external power supply continuously charges the first electronic device through a charging wire, the first electronic device may determine that the first usage time period of the first electronic device is infinite, in this exemplary case, if the first electronic device and the second electronic device perform wireless mutual charging, no matter how long the second electronic device is used, the first electronic device can determine that the first duration of use is longer than the second duration of use, the first electronic device determines that the first electronic device continuously charged by the external power source is the power supplier and the second electronic device is the power receiver.
The charging method provided by the present application is described in detail with reference to fig. 3 to fig. 7, and a structure of an electronic device provided by the present application is exemplarily described below with reference to a function module shown in fig. 8, where the electronic device shown in the present embodiment may be a first electronic device used for executing any one of the method embodiments, and the first electronic device executes a specific execution process of the charging method shown in the present application, please refer to the method embodiments in detail, and is not repeated in the present embodiment;
as shown in fig. 8, the electronic device shown in the present embodiment includes:
the processing unit 801 is configured to determine a first usage duration of the remaining power of the first electronic device;
a receiving unit 802, configured to receive, from a second electronic device, a second usage duration of a remaining power of the second electronic device;
the processing unit 801 is further configured to determine whether the first duration of use is greater than the second duration of use; if the first usage duration is longer than the second usage duration, the processing unit 801 determines that the first electronic device is in a reverse charging mode, where the reverse charging mode is that the first electronic device outputs a charging current to the second electronic device; if the first usage duration is less than the second usage duration, the processing unit 801 determines that the first electronic device is in a forward charging mode, where the forward charging mode is that the first electronic device receives a charging current output by the second electronic device.
Optionally, the processing unit 801 is specifically configured to: acquiring the residual electric quantity of the first electronic equipment; acquiring the working current of the first electronic equipment; and determining the first service time according to the residual electric quantity and the working current.
Optionally, the processing unit 801 is specifically configured to: determining a variation of a first battery capacity of the first electronic device within a first time period, wherein a time start point of the first time period is a time before a current time, and a time end point of the first time period is the current time or the time before the current time; and determining the working current according to the variable quantity of the first battery electric quantity and the first time period.
Optionally, the processing unit 801 is specifically configured to: acquiring a second time period, wherein the time starting point of the second time period is the current time or the time after the current time; acquiring a corresponding third time period according to the second time period, wherein the starting time and the ending time of the third time period are the same as the starting time and the ending time of the second time period, and the date of the third time period is earlier than the date of the second time period; acquiring the variation of the second battery capacity of the first electronic equipment in a third time period; and determining the working current according to the variation of the second battery capacity and the third time period.
Optionally, the processing unit 801 is further configured to: acquiring a second time period, wherein the time starting point of the second time period is the current time or the time after the current time; acquiring a corresponding third time period according to the second time period, wherein the starting time and the ending time of the third time period are the same as the starting time and the ending time of the second time period, and the date of the third time period is earlier than the date of the second time period; and under the condition that the first electronic device is determined to run a target application in the third time period, triggering and executing the step of determining that the first electronic device is in a forward charging mode, wherein the target application is an application with a running electric quantity greater than or equal to a preset value.
Optionally, if the first duration of use is greater than the second duration of use, the receiving unit 802 is further configured to: receiving first indication information, wherein the first indication information is used for indicating that the first electronic equipment has the highest charging priority; the processing unit 801 is further configured to determine that the first electronic device is in the forward charging mode according to the indication of the first indication information.
Optionally, if the first duration of use is smaller than the second duration of use, the receiving unit 802 is further configured to: receiving second indication information, wherein the second indication information is used for indicating that the second electronic equipment has the highest charging priority; the processing unit 801 is further configured to determine that the first electronic device is in the reverse charging mode according to the indication of the second indication information.
Optionally, the processing unit 801 is further configured to determine that the first electronic device is in a standby mode if the first duration of use is equal to the second duration of use.
In one embodiment, the charging device that performs the charging method described herein may be a charging device included in an electronic device, where in one implementation, the charging device may be a chip or an integrated circuit. In this case, the receiving unit 802 may be a communication interface, and the processing unit 801 may be a logic circuit.
Alternatively, the communication interface may be an input-output interface or a transceiving circuit. The input-output interface may include an input interface and an output interface. The transceiver circuitry may include input interface circuitry and output interface circuitry.
In one implementation, the processing unit 801 may be a processing device, and the functions of the processing device may be partially or wholly implemented by software.
Alternatively, the functions of the processing means may be partly or wholly implemented by software. At this time, the processing device may include a memory for storing the computer program and a processor for reading and executing the computer program stored in the memory to perform the corresponding processes and/or steps in any one of the method embodiments.
Alternatively, the processing means may comprise only a processor. The memory for storing the computer program is located outside the processing device and the processor is connected to the memory by means of circuits/wires to read and execute the computer program stored in the memory.
Alternatively, the functions of the processing means may be partly or wholly implemented by hardware. At this time, the processing device may include an input interface circuit, a logic circuit, and an output interface circuit.
In one embodiment, the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed on a computer, the computer program causes the computer to execute a method corresponding to any one of the above method embodiments.
In one embodiment, the present application provides a chip including a communication interface, a memory for storing a computer program, and a processor for reading and executing the computer program stored in the memory to perform a method corresponding to any one of the above method embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (21)

1.一种充电方法,其特征在于,所述充电方法用于第一电子设备,所述充电方法包括:1. A charging method, wherein the charging method is used for a first electronic device, and the charging method comprises: 所述第一电子设备确定所述第一电子设备的剩余电量的第一使用时长;determining, by the first electronic device, a first duration of use of the remaining power of the first electronic device; 所述第一电子设备从第二电子设备接收所述第二电子设备的剩余电量的第二使用时长;receiving, by the first electronic device from the second electronic device, a second duration of use of the remaining power of the second electronic device; 所述第一电子设备判断所述第一使用时长是否大于所述第二使用时长;The first electronic device determines whether the first usage duration is greater than the second usage duration; 若所述第一使用时长大于所述第二使用时长,则所述第一电子设备确定所述第一电子设备处于反向充电模式,所述反向充电模式为所述第一电子设备对所述第二电子设备输出充电电流;If the first use duration is greater than the second use duration, the first electronic device determines that the first electronic device is in a reverse charging mode, and the reverse charging mode is the the second electronic device outputs a charging current; 若所述第一使用时长小于所述第二使用时长,则所述第一电子设备确定所述第一电子设备处于正向充电模式,所述正向充电模式为所述第一电子设备接收所述第二电子设备输出的充电电流。If the first usage duration is less than the second usage duration, the first electronic device determines that the first electronic device is in a forward charging mode, where the first electronic device receives the received data. the charging current output by the second electronic device. 2.根据权利要求1所述的充电方法,其特征在于,所述第一电子设备确定所述第一电子设备的剩余电量的第一使用时长包括:2 . The charging method according to claim 1 , wherein the determining, by the first electronic device, the first use duration of the remaining power of the first electronic device comprises: 2 . 所述第一电子设备获取所述第一电子设备的剩余电量;obtaining, by the first electronic device, the remaining power of the first electronic device; 所述第一电子设备获取所述第一电子设备的工作电流;the first electronic device obtains the working current of the first electronic device; 所述第一电子设备根据所述剩余电量和所述工作电流,确定所述第一使用时长。The first electronic device determines the first usage duration according to the remaining power and the working current. 3.根据权利要求2所述的充电方法,其特征在于,所述第一电子设备获取所述第一电子设备的工作电流包括:3 . The charging method according to claim 2 , wherein the obtaining, by the first electronic device, the operating current of the first electronic device comprises: 3 . 所述第一电子设备确定第一时间段内的所述第一电子设备的第一电池电量的变化量,其中,所述第一时间段的时间起点为位于当前时刻之前的时刻,所述第一时间段的时间终点为所述当前时刻或所述当前时刻之前的时刻;The first electronic device determines the amount of change in the first battery power of the first electronic device within a first time period, wherein the time starting point of the first time period is a time before the current time, and the first time The time end point of a time period is the current time or the time before the current time; 所述第一电子设备根据所述第一电池电量的变化量以及所述第一时间段,确定所述工作电流。The first electronic device determines the operating current according to the amount of change in the power of the first battery and the first time period. 4.根据权利要求2所述的充电方法,其特征在于,所述第一电子设备获取所述第一电子设备的工作电流包括:4 . The charging method according to claim 2 , wherein obtaining, by the first electronic device, the operating current of the first electronic device comprises: 5 . 所述第一电子设备获取第二时间段,所述第二时间段的时间起点为当前时刻或位于所述当前时刻之后的时刻;The first electronic device acquires a second time period, and the time starting point of the second time period is the current moment or a moment after the current moment; 所述第一电子设备根据所述第二时间段获取对应的第三时间段,所述第三时间段的起始时刻和结束时刻与所述第二时间段的起始时刻和结束时刻相同,且所述第三时间段所位于的日期早于所述第二时间段所位于的日期;The first electronic device acquires a corresponding third time period according to the second time period, and the start time and the end time of the third time period are the same as the start time and the end time of the second time period, and the date on which the third time period is located is earlier than the date on which the second time period is located; 所述第一电子设备获取第三时间段内的所述第一电子设备的第二电池电量的变化量;acquiring, by the first electronic device, a variation of the second battery power of the first electronic device within a third time period; 所述第一电子设备根据所述第二电池电量的变化量以及所述第三时间段,确定所述工作电流。The first electronic device determines the operating current according to the amount of change in the power of the second battery and the third time period. 5.根据权利要求1所述的充电方法,其特征在于,所述方法还包括:5. The charging method according to claim 1, wherein the method further comprises: 所述第一电子设备获取第二时间段,所述第二时间段的时间起点为当前时刻或位于所述当前时刻之后的时刻;The first electronic device acquires a second time period, and the time starting point of the second time period is the current moment or a moment after the current moment; 所述第一电子设备根据所述第二时间段获取对应的第三时间段,所述第三时间段的起始时刻和结束时刻与所述第二时间段的起始时刻和结束时刻相同,且所述第三时间段所位于的日期早于所述第二时间段所位于的日期;The first electronic device acquires a corresponding third time period according to the second time period, and the start time and the end time of the third time period are the same as the start time and the end time of the second time period, and the date on which the third time period is located is earlier than the date on which the second time period is located; 所述第一电子设备在确定所述第一电子设备在所述第三时间段内运行目标应用的情况下,触发执行所述第一电子设备确定所述第一电子设备处于正向充电模式的步骤,所述目标应用为运行电量大于或等于预设值的应用。In the case of determining that the first electronic device runs the target application within the third time period, the first electronic device triggers the execution of the first electronic device determining that the first electronic device is in the forward charging mode. Step, the target application is an application whose running power is greater than or equal to a preset value. 6.根据权利要求1所述的充电方法,其特征在于,若所述第一使用时长大于所述第二使用时长,所述方法还包括:6 . The charging method according to claim 1 , wherein if the first usage time is greater than the second usage duration, the method further comprises: 6 . 所述第一电子设备接收第一指示信息,所述第一指示信息用于指示所述第一电子设备具有最高的充电优先级;receiving, by the first electronic device, first indication information, where the first indication information is used to indicate that the first electronic device has the highest charging priority; 所述第一电子设备根据所述第一指示信息的指示,确定所述第一电子设备处于所述正向充电模式。The first electronic device determines that the first electronic device is in the forward charging mode according to the indication of the first indication information. 7.根据权利要求1所述的充电方法,其特征在于,若所述第一使用时长小于所述第二使用时长,所述方法还包括:7 . The charging method according to claim 1 , wherein, if the first use duration is less than the second use duration, the method further comprises: 8 . 若所述第一电子设备接收第二指示信息,所述第二指示信息用于指示所述第二电子设备具有最高的充电优先级;If the first electronic device receives the second indication information, the second indication information is used to indicate that the second electronic device has the highest charging priority; 所述第一电子设备根据所述第二指示信息的指示,确定所述第一电子设备处于所述反向充电模式。The first electronic device determines that the first electronic device is in the reverse charging mode according to the indication of the second indication information. 8.根据权利要求1所述的方法,其特征在于,所述方法还包括:8. The method of claim 1, wherein the method further comprises: 若所述第一使用时长等于所述第二使用时长,则所述第一电子设备确定所述第一电子设备处于待机模式。If the first usage duration is equal to the second usage duration, the first electronic device determines that the first electronic device is in a standby mode. 9.根据权利要求1至8任一项所述的方法,其特征在于,所述第一电子设备确定所述第一电子设备的剩余电量的第一使用时长包括:9. The method according to any one of claims 1 to 8, wherein the determining, by the first electronic device, the first usage duration of the remaining power of the first electronic device comprises: 若所述第一电子设备检测到所述第一电子设备处于有线充电模式,则所述第一电子设备确定所述第一电子设备的第一使用时长为无穷大,所述有线充电模式是指有外部电源通过充电线为所述第一电子设备持续充电。If the first electronic device detects that the first electronic device is in a wired charging mode, the first electronic device determines that the first use duration of the first electronic device is infinite, and the wired charging mode means that there is a The external power supply continuously charges the first electronic device through the charging cable. 10.一种电子设备,其特征在于,所述电子设备为第一电子设备,所述第一电子设备包括:10. An electronic device, wherein the electronic device is a first electronic device, and the first electronic device comprises: 处理单元,用于确定所述第一电子设备的剩余电量的第一使用时长;a processing unit, configured to determine a first usage duration of the remaining power of the first electronic device; 接收单元,用于从第二电子设备接收第二电子设备的剩余电量的第二使用时长;a receiving unit, configured to receive, from the second electronic device, a second duration of use of the remaining power of the second electronic device; 所述处理单元还用于,判断所述第一使用时长是否大于所述第二使用时长;若所述第一使用时长大于所述第二使用时长,则所述处理单元确定所述第一电子设备处于反向充电模式,所述反向充电模式为所述第一电子设备对所述第二电子设备输出充电电流;若所述第一使用时长小于所述第二使用时长,则所述处理单元确定所述第一电子设备处于正向充电模式,所述正向充电模式为所述第一电子设备接收所述第二电子设备输出的充电电流。The processing unit is further configured to determine whether the first usage duration is greater than the second usage duration; if the first usage duration is greater than the second usage duration, the processing unit determines whether the first usage duration is greater than the first usage duration. The device is in a reverse charging mode, where the first electronic device outputs a charging current to the second electronic device; if the first use time is shorter than the second use time, the processing The unit determines that the first electronic device is in a forward charging mode where the first electronic device receives a charging current output by the second electronic device. 11.根据权利要求10所述的电子设备,其特征在于,所述处理单元具体用于:11. The electronic device according to claim 10, wherein the processing unit is specifically configured to: 获取所述第一电子设备的剩余电量;obtaining the remaining power of the first electronic device; 获取所述第一电子设备的工作电流;obtaining the working current of the first electronic device; 根据所述剩余电量和所述工作电流,确定所述第一使用时长。The first use duration is determined according to the remaining power and the working current. 12.根据权利要求11所述的电子设备,其特征在于,所述处理单元具体用于:12. The electronic device according to claim 11, wherein the processing unit is specifically configured to: 确定第一时间段内的所述第一电子设备的第一电池电量的变化量,其中,所述第一时间段的时间起点为位于当前时刻之前的时刻,所述第一时间段的时间终点为所述当前时刻或所述当前时刻之前的时刻;Determine the amount of change in the first battery level of the first electronic device within a first time period, where the time start point of the first time period is a time before the current time, and the time end point of the first time period is the current moment or the moment before the current moment; 根据所述第一电池电量的变化量以及所述第一时间段,确定所述工作电流。The working current is determined according to the change amount of the first battery power and the first time period. 13.根据权利要求11所述的电子设备,其特征在于,所述处理单元具体用于:13. The electronic device according to claim 11, wherein the processing unit is specifically configured to: 获取第二时间段,所述第二时间段的时间起点为当前时刻或位于所述当前时刻之后的时刻;obtaining a second time period, where the time starting point of the second time period is the current moment or a moment after the current moment; 根据所述第二时间段获取对应的第三时间段,所述第三时间段的起始时刻和结束时刻与所述第二时间段的起始时刻和结束时刻相同,且所述第三时间段所位于的日期早于所述第二时间段所位于的日期;A corresponding third time period is obtained according to the second time period, the start time and end time of the third time period are the same as the start time and end time of the second time period, and the third time period the date on which the segment is located is earlier than the date on which the second time segment is located; 获取第三时间段内的所述第一电子设备的第二电池电量的变化量;acquiring the variation of the second battery power of the first electronic device within a third time period; 根据所述第二电池电量的变化量以及所述第三时间段,确定所述工作电流。The operating current is determined according to the amount of change in the power of the second battery and the third time period. 14.根据权利要求10所述的电子设备,其特征在于,所述处理单元还用于:14. The electronic device according to claim 10, wherein the processing unit is further configured to: 获取第二时间段,所述第二时间段的时间起点为当前时刻或位于所述当前时刻之后的时刻;obtaining a second time period, where the time starting point of the second time period is the current moment or a moment after the current moment; 根据所述第二时间段获取对应的第三时间段,所述第三时间段的起始时刻和结束时刻与所述第二时间段的起始时刻和结束时刻相同,且所述第三时间段所位于的日期早于所述第二时间段所位于的日期;A corresponding third time period is obtained according to the second time period, the start time and end time of the third time period are the same as the start time and end time of the second time period, and the third time period the date on which the segment is located is earlier than the date on which the second time segment is located; 在确定所述第一电子设备在所述第三时间段内运行目标应用的情况下,触发执行所述确定所述第一电子设备处于正向充电模式的步骤,所述目标应用为运行电量大于或等于预设值的应用。When it is determined that the first electronic device runs a target application within the third time period, triggering the execution of the step of determining that the first electronic device is in a forward charging mode, where the target application runs with a power greater than or equal to the application of the preset value. 15.根据权利要求10所述的电子设备,其特征在于,若所述第一使用时长大于所述第二使用时长,则所述接收单元还用于:接收第一指示信息,所述第一指示信息用于指示所述第一电子设备具有最高的充电优先级;15 . The electronic device according to claim 10 , wherein if the first usage duration is greater than the second usage duration, the receiving unit is further configured to: receive first indication information, the first The indication information is used to indicate that the first electronic device has the highest charging priority; 所述处理单元还用于,根据所述第一指示信息的指示,确定所述第一电子设备处于所述正向充电模式。The processing unit is further configured to, according to the indication of the first indication information, determine that the first electronic device is in the forward charging mode. 16.根据权利要求10所述的电子设备,其特征在于,若所述第一使用时长小于所述第二使用时长,则所述接收单元还用于:接收第二指示信息,所述第二指示信息用于指示所述第二电子设备具有最高的充电优先级;16 . The electronic device according to claim 10 , wherein if the first usage duration is less than the second usage duration, the receiving unit is further configured to: receive second indication information, the second The indication information is used to indicate that the second electronic device has the highest charging priority; 所述处理单元还用于,根据所述第二指示信息的指示,确定所述第一电子设备处于所述反向充电模式。The processing unit is further configured to, according to the indication of the second indication information, determine that the first electronic device is in the reverse charging mode. 17.根据权利要求10所述的电子设备,其特征在于,所述处理单元还用于,若所述第一使用时长等于所述第二使用时长,则确定所述第一电子设备处于待机模式。17 . The electronic device according to claim 10 , wherein the processing unit is further configured to determine that the first electronic device is in a standby mode if the first usage duration is equal to the second usage duration. 18 . . 18.根据权利要求10至17任一项所述的电子设备,其特征在于,所述处理单元具体用于:18. The electronic device according to any one of claims 10 to 17, wherein the processing unit is specifically configured to: 若检测到所述第一电子设备处于有线充电模式,则确定所述第一电子设备的第一使用时长为无穷大,所述有线充电模式是指有外部电源通过充电线为所述第一电子设备持续充电。If it is detected that the first electronic device is in a wired charging mode, it is determined that the first use time of the first electronic device is infinite, and the wired charging mode means that there is an external power supply for the first electronic device through a charging cable Keep charging. 19.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上执行时,使得计算机执行如权利要求1-9中任一项所述的方法。19. A computer-readable storage medium, characterized in that, a computer program is stored in the computer-readable storage medium, and when the computer program is executed on a computer, the computer is made to execute any one of claims 1-9. method described in item. 20.一种芯片,其特征在于,包括通信接口、存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于读取并执行所述存储器中存储器的所述计算机程序,以执行如权利要求1-9中任一项所述的方法。20. A chip, characterized by comprising a communication interface, a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to read and execute the computer program in the memory in the memory to execute The method of any of claims 1-9. 21.一种电子设备,其特征在于,包括收发器、存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于读取并执行所述存储器中存储器的所述计算机程序,以执行如权利要求1-9中任一项所述的方法。21. An electronic device, characterized in that it comprises a transceiver, a memory and a processor, the memory is used for storing a computer program, and the processor is used for reading and executing the computer program in the memory in the memory, to The method of any of claims 1-9 is performed.
CN201910695658.1A 2019-07-30 2019-07-30 Charging method, electronic device and storage medium Active CN112311029B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910695658.1A CN112311029B (en) 2019-07-30 2019-07-30 Charging method, electronic device and storage medium
PCT/CN2020/101929 WO2021017823A1 (en) 2019-07-30 2020-07-14 Charging method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910695658.1A CN112311029B (en) 2019-07-30 2019-07-30 Charging method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112311029A true CN112311029A (en) 2021-02-02
CN112311029B CN112311029B (en) 2023-02-03

Family

ID=74228346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910695658.1A Active CN112311029B (en) 2019-07-30 2019-07-30 Charging method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN112311029B (en)
WO (1) WO2021017823A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112821515A (en) * 2021-02-20 2021-05-18 北京小米移动软件有限公司 Charging method, device and system
CN116707048A (en) * 2022-09-06 2023-09-05 荣耀终端有限公司 OTG-based charging control method and related device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301111B (en) * 2021-11-29 2024-11-05 中控技术股份有限公司 Charging method, system and storage medium of split process calibrator

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106375561A (en) * 2016-08-29 2017-02-01 上海摩软通讯技术有限公司 Mobile terminal and method of detecting surplus use time thereof
CN108235795A (en) * 2017-12-20 2018-06-29 深圳前海达闼云端智能科技有限公司 Charging method, device, terminal device and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105098273B (en) * 2015-07-20 2018-11-02 小米科技有限责任公司 charging method and device
CN105680510A (en) * 2016-01-29 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Charging control method and charging control device used for electronic equipment
US20180269702A1 (en) * 2017-03-15 2018-09-20 Halo2Cloud, LLC Portable power charger with customizable aesthetic feature

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106375561A (en) * 2016-08-29 2017-02-01 上海摩软通讯技术有限公司 Mobile terminal and method of detecting surplus use time thereof
CN108235795A (en) * 2017-12-20 2018-06-29 深圳前海达闼云端智能科技有限公司 Charging method, device, terminal device and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112821515A (en) * 2021-02-20 2021-05-18 北京小米移动软件有限公司 Charging method, device and system
CN112821515B (en) * 2021-02-20 2024-07-02 北京小米移动软件有限公司 Charging method, device and system
CN116707048A (en) * 2022-09-06 2023-09-05 荣耀终端有限公司 OTG-based charging control method and related device

Also Published As

Publication number Publication date
CN112311029B (en) 2023-02-03
WO2021017823A1 (en) 2021-02-04

Similar Documents

Publication Publication Date Title
CN111817390B (en) Electronic device and battery charging/discharging control method thereof
CN105743158B (en) Apparatus and method for charging an electronic device having a battery
CN110168483B (en) Shortcut menu for displaying different applications on different screens
CN110225167B (en) Terminal and processing method
CN110320991B (en) Power management method and device for mobile terminal
CN106021606B (en) A kind of fingerprint template update method and terminal device
US11297477B2 (en) Tethering distribution apparatus, control method thereof, and central mediator
JP6616896B2 (en) Fingerprint recognition method and electronic device
CN106708554B (en) Program operating method and device
CN106505699B (en) Charging control method and device and terminal
CN107870666B (en) Terminal control method and terminal
CN112311029B (en) Charging method, electronic device and storage medium
CN111371705B (en) Download task execution method and electronic device
CN106127152A (en) A kind of fingerprint template update method and terminal unit
US9749455B2 (en) Electronic device and method for sending messages using the same
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN107832131A (en) Closing application program method, apparatus, storage medium and electronic equipment
US20150102670A1 (en) Method for operating booting and electronic device thereof
CN107277906B (en) Mode selection method, device, terminal and computer readable storage medium
CN107317917B (en) Application control methods and related products
CN111596827B (en) Icon display control method and device, storage medium and mobile terminal
CN106371896B (en) Virtual machine memory configuration method and device and mobile terminal
CN107291213A (en) Mode Selection Method, Device, Terminal, and Computer-Readable Storage Medium
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN106506623B (en) Data transmission method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant