Charging method and device, electronic equipment, storage medium and computer program product

CN122801529APending Publication Date: 2026-09-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510316090.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-17
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

以解决充电过程中,充电设备温度影响充电速率和充电效率,进而影响用户的使用体验感和使用安全性的问题

Benefits of technology

[0057]本公开实施例提出的充电方法中,在第一设备与供电设备电连接,且第二设备位于第一设备的无线充电范围的情况下,即在电源适配器模式下,可以基于第二设备的电池参数控制供电设备通过第二设备为第一设备进行无线充电,和/或,基于第一设备的温度参数,控制供电设备为第一设备充电。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122801529A_ABST
    Figure CN122801529A_ABST
Patent Text Reader

Abstract

This disclosure relates to a charging method, apparatus, electronic device, storage medium, and computer program product. The method includes: when a first device is electrically connected to a power supply device and a second device is within the wireless charging range of the first device, acquiring battery parameters of the second device; based on the battery parameters, controlling the power supply device to charge the first device via the second device; and / or, based on the temperature parameters of the first device, controlling the power supply device to charge the first device. Specifically, in power adapter mode, based on the battery parameters of the second device and the temperature parameters of the first device, a charging strategy is determined for the power supply device to wirelessly charge the second device via the first device or for the power supply device to charge the first device, respectively. This ensures that the determined charging strategy matches the battery and temperature parameters, so that even if the temperature of the first device is too high, the charging rate and efficiency are not affected, thereby improving the user experience and safety of using the first device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of charging, and more particularly to a charging method, apparatus, electronic device, storage medium, and computer program product. Background Technology

[0002] With the rapid development of wireless charging technology, wireless charging devices can now support not only wired charging and discharging but also wireless charging, providing users with diverse charging options. However, because these devices lack heat dissipation measures, excessively high temperatures during charging can affect charging speed and efficiency, consequently impacting user experience and safety. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this disclosure provides a charging method, apparatus, electronic device, storage medium, and computer program product. This addresses the issue that during the charging process, the temperature of the charging device affects the charging rate and efficiency, thereby impacting the user experience and safety.

[0004] According to a first aspect of the present disclosure, a charging method is provided, comprising:

[0005] When the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, the battery parameters of the second device are obtained.

[0006] Based on battery parameters, the power supply device is controlled to wirelessly charge the second device through the first device; and / or, based on the temperature parameters of the first device, the power supply device is controlled to charge the first device.

[0007] In some embodiments, the battery parameters include: battery capacity; controlling the power supply device to wirelessly charge the second device through the first device based on the battery parameters; and / or controlling the power supply device to charge the first device based on the temperature parameters of the first device, including:

[0008] When the battery level is less than or equal to a preset power threshold, the power supply device is controlled to wirelessly charge the second device through the first device until the battery level reaches the preset power threshold, at which point the wireless charging of the second device stops.

[0009] When wireless charging of the second device is stopped and the temperature parameter of the first device is less than the first temperature threshold, the power supply device is controlled to charge the first device.

[0010] In some embodiments, obtaining the battery parameters of the second device includes:

[0011] During the wireless charging process of the second device, the first charging power for wireless charging of the second device is acquired and / or the first information sent by the second device is received.

[0012] The battery level is determined based on the first charging power and / or the battery level is obtained from the first information;

[0013] Specifically, when the duration of the first charging power being less than the preset power threshold is greater than the first duration threshold, the battery level reaches the preset power threshold.

[0014] In some embodiments, when the battery level reaches a preset power threshold, wireless charging of the second device is stopped, including:

[0015] When the battery level reaches a preset power threshold, acquire the first sampling current for wireless charging of the second device.

[0016] If the duration for which the first sampling current is less than a preset current threshold is greater than a second duration threshold, wireless charging of the second device is stopped.

[0017] In some embodiments, the control power supply device charges the first device, including:

[0018] The second charging power is determined based on the temperature parameters of the first device and a preset first mapping relationship; wherein the first mapping relationship is used to indicate the correspondence between the temperature parameters and the charging power.

[0019] The power supply equipment is controlled to charge the first device according to the second charging power.

[0020] In some embodiments, the method further includes:

[0021] During the process of controlling the power supply equipment to charge the first device, the second sampling current of the power supply equipment charging the first device is acquired;

[0022] If the duration for which the second sampling current is less than the preset current threshold is greater than the third duration threshold, and the temperature parameter of the first device is less than the second temperature threshold, the charging of the first device by the power supply device shall be stopped.

[0023] In some embodiments, the method further includes:

[0024] When the power supply device stops charging the first device and the second device is within the wireless charging range of the first device, the power supply device is controlled to wirelessly charge the second device through the first device.

[0025] In some embodiments, the method further includes:

[0026] When the battery level of the first device reaches a preset power threshold and there is no second device within the wireless charging range of the first device, the power supply device is controlled to continue charging the first device based on a preset charging current.

[0027] According to a second aspect of the present disclosure, a charging device is provided, comprising:

[0028] The acquisition module is configured to acquire the battery parameters of the second device when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device.

[0029] The control module is configured to control the power supply device to wirelessly charge the second device through the first device based on battery parameters; and / or to control the power supply device to charge the first device based on the temperature parameters of the first device.

[0030] In some embodiments, the apparatus further includes:

[0031] When the battery level is less than or equal to a preset power threshold, the power supply device is controlled to wirelessly charge the second device through the first device until the battery level reaches the preset power threshold, at which point the wireless charging of the second device stops.

[0032] When wireless charging of the second device is stopped and the temperature parameter of the first device is less than the first temperature threshold, the power supply device is controlled to charge the first device.

[0033] In some embodiments, the apparatus further includes:

[0034] During the wireless charging process of the second device, the first charging power for wireless charging of the second device is acquired and / or the first information sent by the second device is received.

[0035] The battery level is determined based on the first charging power and / or the battery level is obtained from the first information;

[0036] Specifically, when the duration of the first charging power being less than the preset power threshold is greater than the first duration threshold, the battery level reaches the preset power threshold.

[0037] In some embodiments, the apparatus further includes:

[0038] When the battery level reaches a preset power threshold, acquire the first sampling current for wireless charging of the second device.

[0039] If the duration for which the first sampling current is less than a preset current threshold is greater than a second duration threshold, wireless charging of the second device is stopped.

[0040] In some embodiments, the apparatus further includes:

[0041] The second charging power is determined based on the temperature parameters of the first device and a preset first mapping relationship; wherein the first mapping relationship is used to indicate the correspondence between the temperature parameters and the charging power.

[0042] The power supply equipment is controlled to charge the first device according to the second charging power.

[0043] In some embodiments, the apparatus further includes:

[0044] During the process of controlling the power supply equipment to charge the first device, the second sampling current of the power supply equipment charging the first device is acquired;

[0045] If the duration for which the second sampling current is less than the preset current threshold is greater than the third duration threshold, and the temperature parameter of the first device is less than the second temperature threshold, the charging of the first device by the power supply device shall be stopped.

[0046] In some embodiments, the apparatus further includes:

[0047] When the power supply device stops charging the first device and the second device is within the wireless charging range of the first device, the power supply device is controlled to wirelessly charge the second device through the first device.

[0048] In some embodiments, the apparatus further includes:

[0049] When the battery level of the first device reaches a preset power threshold and there is no second device within the wireless charging range of the first device, the power supply device is controlled to continue charging the first device based on a preset charging current.

[0050] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0051] processor;

[0052] Memory used to store computer programs or instructions;

[0053] The processor executes the computer program or instructions to implement the steps of the method described in any one of the first aspects above.

[0054] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, the storage medium storing a computer program or instructions that, when executed by a processor, implement the steps of the method described in any one of the first aspects.

[0055] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of the method described in any one of the first aspects.

[0056] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0057] In the charging method proposed in this embodiment, when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, i.e. in power adapter mode, the power supply device can be controlled to wirelessly charge the first device through the second device based on the battery parameters of the second device, and / or, the power supply device can be controlled to charge the first device based on the temperature parameters of the first device.

[0058] By using the battery parameters of the second device and the temperature parameters of the first device, a charging strategy is determined for the power supply device to wirelessly charge the second device via the first device or for the power supply device to charge the first device. Based on the battery parameters of the second device, wireless charging of the second device via the first device can be achieved, and / or charging of the first device can be achieved based on the temperature parameters of the first device. This ensures that the determined charging strategy matches the battery parameters of the second device and the temperature parameters of the first device. Even if the temperature of the first device is too high, it will not affect the charging rate and charging efficiency, thereby improving the user experience and safety of using the first device.

[0059] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0060] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0061] Figure 1 This is a flowchart illustrating a charging method according to an exemplary embodiment.

[0062] Figure 2 This is a flowchart illustrating a charging method according to an embodiment of the present disclosure.

[0063] Figure 3 This is a block diagram illustrating a charging device according to an exemplary embodiment.

[0064] Figure 4 This is a frame of an apparatus shown according to an exemplary embodiment. Figure 1 .

[0065] Figure 5 This is a frame of an apparatus shown according to an exemplary embodiment. Figure 2 . Detailed Implementation

[0066] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0067] Figure 1 This is a flowchart illustrating a charging method according to an exemplary embodiment. Figure 1 As shown, the method mainly includes the following steps:

[0068] In step 101, when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, the battery parameters of the second device are obtained.

[0069] In step 102, based on battery parameters, the power supply device is controlled to wirelessly charge the second device through the first device; and / or, based on the temperature parameters of the first device, the power supply device is controlled to charge the first device.

[0070] Here, the first device can be a charging device, which can be a wireless charging device or a wired charging device. Taking a power bank as an example, the power bank can be a magnetic power bank.

[0071] The power supply device can be connected to a power source. For example, the power supply device can be a power adapter, which is a device that converts AC power to DC power and can directly charge the first device and / or the second device. The second device can be an electronic device, which can be a terminal device that supports wireless charging, such as a mobile terminal. The mobile terminal can include devices such as mobile phones, tablets, laptops, and wearable electronic devices.

[0072] The first device being electrically connected to the power supply means that the first device and the power supply are connected so that the first device can receive electrical energy from the power supply to charge itself or transmit electrical energy to other devices for charging.

[0073] For example, the first device is electrically connected to the power supply device, and the first device can act as a wireless charging dock to charge the second device.

[0074] The first device can be electrically connected to the power supply device in ways including, but not limited to, wired connection, wireless connection, and contact connection. For example, the first device can be wired to the power supply device via a USB interface, wirelessly connected via electromagnetic induction technology, or connected via magnetic attraction.

[0075] The wireless charging range refers to the distance or area within which the second device can receive wireless charging from the first device. For example, if the first and second devices can be connected magnetically and wirelessly charged, the distance between them is 0 mm, and the corresponding wireless charging range is 0 mm. The wireless charging range can be between 0 and 30 mm.

[0076] It should be noted that the first device can send a low-power magnetic field signal to the second device, and the response of the second device determines whether the second device is within the wireless charging range of the first device. Alternatively, if the second device supports wireless charging and has communication capabilities, it can wirelessly notify the first device that it has entered the wireless charging range, thus confirming its presence within the first device's wireless charging range. The first device can detect the presence of the second device within its wireless charging range using a proximity sensor or determine its distance from the second device using a distance sensor, thus defining the wireless charging range between the two devices. Direct contact between the surfaces of the first and second devices can also determine whether the second device is within the first device's wireless charging range.

[0077] The battery parameters of the second device can be parameters representing battery characteristics and status. Battery parameters may include, but are not limited to: battery capacity, battery voltage, battery current, battery charging power, battery charging status, battery charge / discharge cycles, and battery temperature.

[0078] It should be noted that the battery parameters of the second device can be obtained through data communication via the communication protocol between the first and second devices, or the battery parameters can be provided to the first device by the power management chip of the second device so that the first device can obtain the battery parameters of the second device, or the battery parameters of the second device can be obtained through data exchange between the first and second devices.

[0079] For example, the first device is wired to the power supply device via a USB-C interface, and sends a low-power magnetic field signal to the second device. When the second device responds and it is determined that the second device is within the wireless charging range of the first device, data communication is performed through the communication protocol between the first device and the second device to obtain the battery parameters of the second device.

[0080] The temperature parameters of the first device can be represented as temperature-related parameters during the operation or charging process of the first device. They can be used to indicate the temperature status of the first device and ensure the safety of charging.

[0081] It should be noted that the temperature parameters of the first device can be determined by detecting the temperature at a preset location of the first device. The preset location may include: the surface of the first device's outer casing and the internal central region of the first device, wherein the internal central region of the first device may contain the battery of the first device.

[0082] The temperature parameters of the first device can be the highest temperature, lowest temperature, and average temperature at a preset location on the first device. It should be noted that the temperature parameters at the preset location on the first device can be detected using a built-in temperature sensor.

[0083] For example, the battery parameter of the second device is the battery capacity, and the temperature parameter of the first device is the highest temperature of the surface of the first device's casing. The battery capacity of the second device is determined through data communication via the communication protocol between the first and second devices. The highest temperature of the surface of the first device's casing is determined by the temperature sensor built into the first device, and the power supply device is controlled to charge the first device or the first device can charge the second device.

[0084] It is understandable that, when the second device is connected to the first device via a power supply device, and the second device is within the wireless charging range of the first device (i.e., in power adapter mode), and based on the temperature parameters of the first device, the power supply device is controlled to wirelessly charge the second device via the first device; and / or, based on the battery parameters of the second device, the power supply device is controlled to charge the first device. By determining the charging strategy—whether the power supply device wirelessly charges the second device via the first device or charges the first device—based on the battery parameters of the second device and the temperature parameters of the first device, it is possible to achieve wireless charging of the second device via the first device, and / or charging of the first device based on the temperature parameters of the first device. This ensures that the determined charging strategy matches the battery parameters of the second device and the temperature parameters of the first device, so that even if the temperature of the first device is too high, it will not affect the charging rate and efficiency, thereby improving the user experience and safety of using the first device.

[0085] In the charging method proposed in this embodiment, when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, i.e. in power adapter mode, the power supply device can be controlled to wirelessly charge the first device through the second device based on the battery parameters of the second device, and / or, the power supply device can be controlled to charge the first device based on the temperature parameters of the first device.

[0086] By using the battery parameters of the second device and the temperature parameters of the first device, a charging strategy is determined for the power supply device to wirelessly charge the second device via the first device or for the power supply device to charge the first device. Based on the battery parameters of the second device, wireless charging of the second device via the first device can be achieved, and / or charging of the first device can be achieved based on the temperature parameters of the first device. This ensures that the determined charging strategy matches the battery parameters of the second device and the temperature parameters of the first device. Even if the temperature of the first device is too high, it will not affect the charging rate and charging efficiency, thereby improving the user experience and safety of using the first device.

[0087] In some embodiments, battery parameters include: battery capacity; based on the battery parameters, controlling the power supply device to wirelessly charge the second device through the first device; and / or, based on the temperature parameters of the first device, controlling the power supply device to charge the first device, including:

[0088] When the battery level is less than or equal to a preset power threshold, the power supply device is controlled to wirelessly charge the second device through the first device until the battery level reaches the preset power threshold, at which point the wireless charging of the second device stops.

[0089] When wireless charging of the second device is stopped and the temperature parameter of the first device is less than the first temperature threshold, the power supply device is controlled to charge the first device.

[0090] The preset power threshold can be determined based on the device manufacturer. For example, the preset power threshold can be the case where the second device's battery power is 100%, i.e., the second device has completed the wireless charging process.

[0091] Once the battery level reaches a preset threshold, indicating that the second device has completed the wireless charging process, wireless charging for the second device will stop.

[0092] It should be noted that the battery current and voltage can be determined by the current sensor and voltage sensor of the first device, and the battery capacity can be determined based on the current and voltage.

[0093] For example, when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, the current and voltage of the battery are determined by the current sensor and the voltage sensor. Then, based on the current and voltage, the battery power is determined to be less than a preset power threshold. The power supply device is controlled to wirelessly charge the second device through the first device. When the battery power reaches the preset power threshold, the wireless charging process of the second device is completed, and the wireless charging of the second device is stopped.

[0094] Understandably, when the second device is connected to the first device via a power supply and is within the wireless charging range of the first device (i.e., in power adapter mode, where the second device is placed on the first device and the first device's USB-C port is plugged into the power supply), the second device is wirelessly charged first to meet the user's primary need. Moreover, since the first device is not charged at this time, the rate at which the temperature of the first device rises is reduced, resulting in better control over the temperature rise of the first device. Furthermore, the second device is charged with a higher wireless charging power, increasing the charging rate and shortening the charging time.

[0095] It should be noted that the temperature parameter of the first device can be the average temperature of different areas on the surface of the first device's casing. The temperature parameter of the first device can be determined by the main control chip of the first device based on the temperature sensor.

[0096] For example, the main control chip of the first device detects the temperature of different areas on the surface of the first device's casing using a temperature sensor, and determines the average temperature of these different areas as the temperature parameter of the first device. The temperature sensor can be a negative temperature coefficient thermistor (NTC).

[0097] The first temperature threshold can be determined through multiple tests and experiments. For example, the first temperature threshold could be 43°C. When the temperature parameter of the first device is lower than the first temperature threshold, charging safety and charging efficiency are higher.

[0098] For example, when wireless charging of the second device is stopped and the temperature parameter of the first device is determined by the temperature sensor to be less than 43°C, the power supply device is controlled to charge the first device.

[0099] Understandably, by judging the battery level of the second device, if the battery level is below a preset temperature threshold, the second device is prioritized for charging to meet the user's primary need. When the battery level reaches the preset temperature threshold, wireless charging of the second device stops, and the power supply device starts charging the first device when its temperature parameters meet the preset temperature threshold. In other words, by optimizing the charging logic through battery and temperature parameters, a sequential charging method is implemented, prioritizing wireless charging of the second device and charging of the first device subsequently. Compared to parallel charging of the first and second devices, this method better controls the temperature of the first device, reducing the pressure on its temperature regulation. Furthermore, it allows for the definition of higher wireless and wired charging power, enabling both devices to complete the charging process sequentially in a shorter time, improving user experience while ensuring charging safety. Moreover, this power adapter mode can be applied to scenarios where users charge their devices overnight while sleeping, and both devices are fully charged by the time they wake up in the morning.

[0100] In some embodiments, when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, the power supply device is controlled to wirelessly charge the second device through the first device with a higher charging power. Conversely, when the temperature parameter of the first device is lower than a preset temperature threshold, the power supply device can be controlled to simultaneously charge the first device with a lower charging power. This allows the second device to complete charging with a higher charging power first, meeting the user's primary need, while the first device is charged with a lower charging power when its temperature parameter is lower than the preset temperature threshold. In other words, charging of the first device is achieved while controlling the temperature, and the safety of charging the first device is ensured.

[0101] Understandably, in related technologies, wired charging of the first device and wireless charging of the second device are performed in parallel. In this charging method, the charging power is minimized as much as possible within temperature limits. However, parallel charging can cause the first device, which lacks heat dissipation measures, to experience a faster temperature rise, thus affecting the charging rate. In this embodiment of the present disclosure, in power adapter mode, based on the battery parameters of the second device and the temperature parameters of the first device, a sequential charging method is implemented, prioritizing wireless charging of the second device and charging of the first device subsequently. This better controls the temperature of the first device, ensuring that the surface temperature of the first device does not rise rapidly, and also improves the charging power.

[0102] In this embodiment, when the battery level is less than or equal to a preset power threshold, the power supply device is controlled to wirelessly charge the second device through the first device until the battery level reaches the preset power threshold, at which point wireless charging of the second device stops. When wireless charging of the second device stops and the temperature parameter of the first device is less than a first temperature threshold, the power supply device is controlled to charge the first device. That is, in power adapter mode, wireless charging of the second device is prioritized to meet the user's primary need. Specifically, by optimizing the charging logic through battery and temperature parameters, a sequential charging method is implemented, prioritizing wireless charging of the second device and charging of the first device. Compared to parallel charging of the first and second devices, this method better controls the temperature of the first device, improves charging power and efficiency, and allows both the second and first devices to complete the charging process sequentially in a shorter time, enhancing user experience while ensuring charging safety.

[0103] In some embodiments, obtaining the battery parameters of the second device includes:

[0104] During the wireless charging process of the second device, the first charging power for wireless charging of the second device is acquired and / or the first information sent by the second device is received.

[0105] The battery level is determined based on the first charging power and / or the battery level is obtained from the first information;

[0106] Specifically, when the duration of the first charging power being less than the preset power threshold is greater than the first duration threshold, the battery level reaches the preset power threshold.

[0107] It should be noted that during the wireless charging of the second device, the first charging power can be continuously detected through the wireless charging control chip of the first device.

[0108] The first information may be information indicating the battery level of the second device. For example, the first information may be a power packet sent by the second device.

[0109] It should be noted that the first device and the second device communicate by sending power packets. Therefore, the first device can obtain the battery power of the second device by the second device sending power packets at regular intervals.

[0110] For example, during the wireless charging of the second device, the first charging power for wireless charging of the second device is obtained through the wireless charging control chip of the first device to determine the battery level, or the battery level is obtained from the battery level packets (i.e., first information) sent by the second device at regular intervals.

[0111] For example, the preset power threshold can be 5W, and the first duration threshold can be 2 minutes.

[0112] For example, the first device obtains the first charging power for wirelessly charging the second device through the wireless charging control chip. When the first charging power is less than 5W and the duration of the first charging power being less than 5W is greater than 2 minutes, it determines that the battery level is greater than a preset power threshold.

[0113] It should be noted that when the first information sent by the second device is received, and the current state of charge (CHS) determined by the first information is a preset state, and wireless charging is performed for a preset duration, the battery level is determined to be greater than a preset power threshold. For example, the current state of charge represents the current battery percentage of the second device, the preset state could be when the current battery percentage of the second device is 100%, and the preset duration could be 20 minutes.

[0114] For example, when the first device receives a first message sent by the second device at a time, and the first message determines that the current battery percentage of the second device is 100%, and after another 20 minutes of wireless charging, if the battery level is determined to have reached a preset battery threshold, then the wireless charging process for the second device is turned off.

[0115] In this embodiment of the disclosure, during the wireless charging of the second device, a first charging power for wireless charging of the second device is obtained and / or first information sent by the second device is received; the battery level is determined based on the first charging power and / or the battery level is obtained from the first information; the wireless charging process for the second device is determined based on the battery level, and then the power supply device is controlled to charge the first device, so that the first device and the second device complete the charging process in a short time, thereby improving the user experience.

[0116] In some embodiments, when the battery level reaches a preset power threshold, wireless charging of the second device is stopped, including:

[0117] When the battery level reaches a preset power threshold, acquire the first sampling current for wireless charging of the second device.

[0118] If the duration for which the first sampling current is less than a preset current threshold is greater than a second duration threshold, wireless charging of the second device is stopped.

[0119] The first sampling current can be the current value of the wireless charging of the second device. The first sampling current can ensure precise control of the wireless charging process to avoid misjudgment caused by determining the battery level based on the first charging power or first information, and then stopping the wireless charging process of the second device based on the battery level.

[0120] It should be noted that when the battery level reaches the preset power threshold, the current can be sampled through the sampling circuit built into the main control chip of the first device to obtain the first sampled current.

[0121] For example, when the battery level of the second device reaches a preset power threshold, the power management chip of the first device sends a command to the main control chip to turn off wireless charging. For example, the command to turn off wireless charging could be a disWPC command. After receiving the disWPC command, the main control chip of the first device samples the current through its built-in sampling circuit to obtain a first sampled current.

[0122] For example, the preset current threshold can be 300mA, and the second duration threshold can be 2 minutes.

[0123] It should be noted that wireless charging of the second device can be stopped by turning off the switch of the metal-oxide-semiconductor field-effect transistor in the wireless charging circuit.

[0124] For example, the current is sampled by the sampling circuit built into the main control chip to obtain a first sampling current. When the duration of the first sampling current being less than 300mA is greater than 2 minutes, the wireless charging of the second device is stopped by turning off the switch MOS Q1 of the metal oxide semiconductor field-effect transistor in the wireless charging circuit.

[0125] Understandably, by sampling the wireless charging current to obtain the first sampling current, the main control chip of the first device can monitor the current magnitude in the wireless charging circuit in real time. Since determining the battery level of the second device based on the first charging power and first information, and then determining whether the wireless charging process has been completed based on the battery level, may not be accurate enough, the introduction of the first sampling current allows for a more accurate determination of whether the second device has completed the wireless charging process. This, in turn, more accurately determines when to shut down the wireless charging process for the second device, thus reducing unnecessary energy consumption. In other words, through a dual judgment mechanism using both battery level and the first sampling current, the safety and effectiveness of the charging process are ensured.

[0126] In this embodiment, when the battery level reaches a preset power threshold, a first sampling current for wireless charging of the second device is acquired; if the duration for which the first sampling current is less than a preset current threshold is greater than a second duration threshold, wireless charging of the second device is stopped. Through this dual judgment mechanism of battery level and first sampling current, the safety and effectiveness of the charging process are ensured while reducing unnecessary energy consumption.

[0127] In some embodiments, controlling the power supply device to charge the first device includes:

[0128] The second charging power is determined based on the temperature parameters of the first device and a preset first mapping relationship; wherein the first mapping relationship is used to indicate the correspondence between the temperature parameters and the charging power.

[0129] The power supply equipment is controlled to charge the first device according to the second charging power.

[0130] It should be noted that the temperature parameter of the first device can be the highest temperature of different areas on the surface of the first device's casing. The temperature parameter of the first device can be determined by the main control chip of the first device based on the temperature sensor.

[0131] For example, the main control chip of the first device detects the temperature of different areas on the surface of the first device's outer casing using a temperature sensor, and determines the highest temperature of different areas on the outer casing surface as the temperature parameter of the first device.

[0132] The first mapping relationship can be determined based on historical temperature parameters and historical charging power.

[0133] The second charging power can be the charging power of the power supply equipment for wired charging of the first device.

[0134] It should be noted that different temperature parameters can correspond to different second charging powers.

[0135] Understandably, adjusting the secondary charging power of the first device based on its temperature parameters can prevent unnecessary energy loss due to overheating or overcooling, thus extending battery life and reducing energy waste during charging. Furthermore, when the temperature of the first device is below a preset threshold, its battery can accept a higher charging power, up to 30W, thereby shortening charging time to 4 hours and 38 minutes and improving charging efficiency. Moreover, different secondary charging powers can be applied to different temperature parameters, enabling dynamic charging of the first device. This dynamic optimization of the charging process ensures the battery is charged safely and efficiently, increasing user trust and satisfaction with the charging process.

[0136] It should be noted that the power supply device can be controlled to charge the first device according to the second charging power by turning on the switch of the metal-oxide-semiconductor field-effect transistor that charges the battery of the first device.

[0137] For example, when wireless charging of the second device is stopped, the highest temperature of different areas of the casing of the first device is determined by a temperature sensor. When the highest temperature is less than 43°C, the switch MOS Q2 of the metal oxide semiconductor field-effect transistor that charges the battery of the first device is turned on. Based on the first mapping relationship, the second charging power corresponding to the temperature parameter of the first device is determined, and the power supply device is controlled to charge the first device according to the second charging power.

[0138] In this embodiment, a second charging power is determined based on the temperature parameters of the first device and a preset first mapping relationship; the power supply device is controlled to charge the first device according to the second charging power. Based on the first mapping relationship, a first charging power corresponding to different temperature parameters of the first device is determined, realizing a dynamic charging process for the first device. This achieves dynamic optimization of the charging process of the first device, ensuring that the battery of the first device is charged under both safe and efficient conditions, thereby improving user trust and satisfaction with the charging process.

[0139] In some embodiments, the method further includes:

[0140] During the process of controlling the power supply equipment to charge the first device, the second sampling current of the power supply equipment charging the first device is acquired;

[0141] If the duration for which the second sampling current is less than the preset current threshold is greater than the third duration threshold, and the temperature parameter of the first device is less than the second temperature threshold, the charging of the first device by the power supply device shall be stopped.

[0142] The second sampling current can be the current value of the power supply device charging the first device.

[0143] It should be noted that the current can be sampled through the sampling circuit built into the main control chip of the first device to obtain the second sampled current.

[0144] For example, during the process of controlling the power supply equipment to charge the first device, the current is sampled by the sampling circuit built into the main control chip of the first device to obtain the second sampled current.

[0145] Understandably, by sampling the current of the first device to obtain a second sampling current, and based on this second sampling current, it can be determined whether the battery level of the first device has reached a preset power threshold, thus stopping the charging of the first device by the power supply device. This not only avoids unnecessary power loss and saves energy, but also protects battery health. Moreover, stopping the charging of the first device by the power supply device through the second sampling current allows the second and first devices to complete charging sequentially within a shorter time, improving the user experience.

[0146] It should be noted that if the duration for which the second sampling current is less than the preset current threshold is greater than the third duration threshold, it indicates that the charging current of the first device has decreased, and the battery level of the first device has reached the preset capacity threshold. By determining the temperature parameters of the first device again based on the temperature sensor, it can be ensured that during the process of stopping wired charging of the first device and switching to wireless charging of the second device, the temperature of the first device will not rise sharply due to charging interruption, thus effectively avoiding potential safety risks. In other words, through temperature monitoring and current sampling mechanisms, the safety and reliability of the charging process can be maintained.

[0147] For example, the preset current threshold can be 200mA, the third duration threshold can be 2 minutes, and the second temperature threshold can be 38°C.

[0148] For example, if the duration of the second sampling current being less than 200mA is greater than 2 minutes and the battery power of the first device reaches a preset power threshold, the temperature parameter of the first device is determined by a temperature sensor. If the temperature parameter of the first device is less than 38°C, the switch MOS Q2 of the metal oxide semiconductor field-effect transistor that charges the battery of the first device is turned off, and the charging of the first device by the power supply device is stopped.

[0149] In this embodiment, during the process of controlling the power supply device to charge the first device, a second sampling current for charging the first device is acquired. If the duration for which the second sampling current is less than a preset current threshold is greater than a third duration threshold, and the temperature parameter of the first device is less than a second temperature threshold, charging of the first device by the power supply device is stopped. This ensures that during the process of stopping charging of the first device and switching to wireless charging of the second device, the temperature of the first device will not suddenly rise due to the sudden change in the charging terminal, effectively avoiding potential safety risks. In other words, through temperature monitoring and current sampling mechanisms, the safety and reliability of the charging process can be maintained.

[0150] In some embodiments, the method further includes:

[0151] When the power supply device stops charging the first device and the second device is within the wireless charging range of the first device, the power supply device is controlled to wirelessly charge the second device through the first device.

[0152] It should be noted that wireless PING detection can be used to determine whether the second device is within the wireless charging range of the first device.

[0153] For example, the first device determines the state of the second device based on data collected by sensors. The state of the second device can be either an adsorbed state (i.e., the second device is within the wireless charging range of the first device) or a detached state (i.e., the second device is far from the wireless charging range of the first device) where the second device is attached to the adsorbed area. The first device initiates a wireless PING test to the second device to further determine its state. If the PING fails, the state of the second device is determined to be detached. If the PING succeeds, the state of the second device is determined to be attached.

[0154] It should be noted that wireless charging of the second device can be stopped by turning off the switch of the metal-oxide-semiconductor field-effect transistor (MOSFET) that powers the first device's wireless charging circuit, while the power supply device can wirelessly charge the second device through the first device by turning on the switch of the MOSFET that powers the first device's wireless charging circuit.

[0155] For example, when the charging of the first device by the power supply device is stopped by turning off the switch MOS Q2 of the metal oxide semiconductor field-effect transistor, and the second device is determined to be within the wireless charging range of the first device by wireless PING detection, the power supply device is controlled to wirelessly charge the second device through the first device by turning on the switch MOS Q1 of the metal oxide semiconductor field-effect transistor.

[0156] Understandably, when the power supply stops charging the first device and the second device is within the wireless charging range of the first device, controlling the power supply to wirelessly charge the second device through the first device—that is, charging the second device after stopping charging the first device—can achieve a charging cycle. Furthermore, stopping charging the first device when its battery level reaches a preset threshold can prevent overcharging and thus extend the battery life of the first device.

[0157] In this embodiment, when the power supply device stops charging the first device and the second device is within the wireless charging range of the first device, the power supply device is controlled to wirelessly charge the second device through the first device. Charging the second device after stopping charging the first device allows for a charging cycle. Furthermore, stopping charging the first device when its battery level reaches a preset threshold avoids overcharging and extends the battery life of the first device.

[0158] In some embodiments, the method further includes:

[0159] When the battery level of the first device reaches a preset power threshold and there is no second device within the wireless charging range of the first device, the power supply device is controlled to continue charging the first device based on a preset charging current.

[0160] The preset power threshold can be the case where the battery power of the first device is 100%.

[0161] It should be noted that wireless PING detection can be used to determine that there is no second device within the wireless charging range of the first device.

[0162] For example, if the wireless PING detection fails, it is determined that there is no second device within the wireless charging range of the first device.

[0163] It should be noted that the first device can send a low-power magnetic field signal to the second device, and if the second device does not respond, it can be determined that the second device is not within the wireless charging range of the first device. Alternatively, based on the communication protocol between the first and second devices, the first device can actively inquire or request whether surrounding devices are ready to receive wireless charging; if the second device does not respond to the request, it can be determined that the second device is not within the wireless charging range of the first device. Furthermore, proximity sensors or distance sensors can be used to detect the presence of a second device in the wireless charging area; if the second device is not present, it can be determined that the second device is not within the wireless charging range of the first device.

[0164] The preset charging current can be a trickle charging current, which can be between 10% and 20% of the battery's rated capacity. For example, the trickle charging current can be between 0.1A and 0.5A.

[0165] Understandably, trickle charging is used to continue charging a first device's battery with a very low current when the battery level is close to or has reached a preset charge threshold. This continuous low-current charging helps prevent battery aging or failure, thus extending the battery's lifespan. Because the trickle charging current is small, it generates less heat, helping to lower the device's temperature during charging and improving charging safety. Furthermore, the small current and slow charging speed of trickle charging ensure that the first device's battery level remains at the preset charge threshold without overcharging.

[0166] For example, when the battery power of the first device reaches 100% and it is determined by wireless PING detection that there is no second device within the wireless charging range of the first device, the power supply device is controlled to continue charging the first device based on trickle charging current.

[0167] In this embodiment, when the battery level of the first device reaches a preset power threshold and there is no second device within the wireless charging range of the first device, the power supply device continues to charge the first device based on a preset charging current. This can prevent the battery of the first device from aging or failing, thereby extending the battery life of the first device. It also helps to reduce the temperature of the first device during charging, thus improving the charging safety of the first device. Furthermore, the slow charging speed ensures that the battery level of the first device remains at the preset power threshold without overcharging.

[0168] Figure 2 This is a flowchart illustrating a charging method according to an embodiment of this disclosure. Figure 2 As shown, the method mainly includes the following steps:

[0169] In step 201, when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, the power supply device is controlled to charge the second device through the first device.

[0170] In step 202, the first charging power is continuously detected by the wireless charging control chip of the first device.

[0171] In step 203, the battery level is determined based on the first charging power and / or the battery level is obtained through the first information sent by the second device.

[0172] When the first charging power is less than 5W for more than 2 minutes, the battery level reaches the preset power threshold, meaning the second device is fully charged. The second device sends a first message (power packet) to the first device. Once the first message confirms that the current state of charge is 100%, a 20-minute charging process is performed to determine that the second device's battery level has reached the preset power level.

[0173] In step 204, when the battery level of the second device reaches a preset power threshold, a command to turn off wireless charging is sent to the main control chip of the first device, and the first sampling current is determined based on the sampling circuit of the main control chip.

[0174] When the battery level reaches a preset threshold, the power management chip of the first device sends a command to the main control chip to disable wireless charging. For example, the wireless charging command could be a dis WPC command. After receiving the dis WPC command, the main control chip of the first device samples the current through its built-in sampling circuit to obtain the first sampled current.

[0175] In step 205, if the duration of the first sampling current being less than a preset current threshold is greater than a second duration threshold, wireless charging of the second device is stopped.

[0176] When the duration of the first sampling current being less than 300mA is greater than 2 minutes, wireless charging of the second device is stopped by turning off the metal-oxide-semiconductor field-effect transistor MOS Q1 of the wireless charging circuit.

[0177] In step 206, the temperature parameters of the first device are determined while the power supply to the first device is stopped.

[0178] When the power supply to the first device is stopped, the main control chip of the first device detects the temperature of different areas on the surface of the first device's casing using a temperature sensor, and determines the highest temperature on the casing surface as the temperature parameter of the first device. The temperature sensor can be a negative temperature coefficient thermistor (NTC).

[0179] In step 207, based on the temperature parameters of the first device and the preset first mapping relationship, the second charging power is determined, and the power supply device is controlled to charge the first device according to the second charging power.

[0180] In step 208, during the process of controlling the power supply equipment to charge the first device, a second sampling current for charging the first device by the power supply equipment is acquired.

[0181] During the process of controlling the power supply equipment to charge the first device, the current is sampled by the sampling circuit built into the main control chip of the first device to obtain the second sampled current.

[0182] In step 209, if the duration of the second sampling current being less than the preset current threshold is greater than the third duration threshold, the temperature parameter of the first device is detected, and if the temperature parameter of the first device is less than the second temperature threshold, the charging of the first device by the power supply device is stopped.

[0183] If the duration of the second sampling current being less than 200mA is greater than 2 minutes, the battery power of the first device reaches a preset power threshold. The temperature parameter of the first device is determined by the temperature sensor. If the temperature parameter of the first device is less than 38°C, the charging of the first device by the power supply device is stopped.

[0184] In step 210, when the power supply device stops charging the first device and the second device is within the wireless charging range of the first device, the power supply device is controlled to wirelessly charge the second device through the first device.

[0185] When the power supply device stops charging the first device, and the second device is determined to be within the wireless charging range of the first device by wireless PING detection, the power supply device is controlled to wirelessly charge the second device through the first device.

[0186] In step 211, when the battery level of the first device reaches a preset power threshold and there is no second device within the wireless charging range of the first device, the power supply device is controlled to continue charging the first device based on a preset charging current.

[0187] When the battery level of the first device reaches a preset power threshold and there is no second device within the wireless charging range of the first device, the power supply device is controlled to continue charging the first device based on trickle charging current.

[0188] Figure 3 This is a block diagram illustrating a charging device according to an exemplary embodiment. Figure 3 As shown, the device mainly includes:

[0189] The acquisition module 301 is configured to acquire the battery parameters of the second device when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device.

[0190] The control module 302 is configured to control the power supply device to wirelessly charge the second device through the first device based on battery parameters; and / or to control the power supply device to charge the first device based on the temperature parameters of the first device.

[0191] In some embodiments, the device 300 further includes:

[0192] When the battery level is less than or equal to a preset power threshold, the power supply device is controlled to wirelessly charge the second device through the first device until the battery level reaches the preset power threshold, at which point the wireless charging of the second device stops.

[0193] When wireless charging of the second device is stopped and the temperature parameter of the first device is less than the first temperature threshold, the power supply device is controlled to charge the first device.

[0194] In some embodiments, the device 300 further includes:

[0195] During the wireless charging process of the second device, the first charging power for wireless charging of the second device is acquired and / or the first information sent by the second device is received.

[0196] The battery level is determined based on the first charging power and / or the battery level is obtained from the first information;

[0197] Specifically, when the duration of the first charging power being less than the preset power threshold is greater than the first duration threshold, the battery level reaches the preset power threshold.

[0198] In some embodiments, the device 300 further includes:

[0199] When the battery level reaches a preset power threshold, acquire the first sampling current for wireless charging of the second device.

[0200] If the duration for which the first sampling current is less than a preset current threshold is greater than a second duration threshold, wireless charging of the second device is stopped.

[0201] In some embodiments, the device 300 further includes:

[0202] The second charging power is determined based on the temperature parameters of the first device and a preset first mapping relationship; wherein the first mapping relationship is used to indicate the correspondence between the temperature parameters and the charging power.

[0203] The power supply equipment is controlled to charge the first device according to the second charging power.

[0204] In some embodiments, the device 300 further includes:

[0205] During the process of controlling the power supply equipment to charge the first device, the second sampling current of the power supply equipment charging the first device is acquired;

[0206] If the duration for which the second sampling current is less than the preset current threshold is greater than the third duration threshold, and the temperature parameter of the first device is less than the second temperature threshold, the charging of the first device by the power supply device shall be stopped.

[0207] In some embodiments, the device 300 further includes:

[0208] When the power supply device stops charging the first device and the second device is within the wireless charging range of the first device, the power supply device is controlled to wirelessly charge the second device through the first device.

[0209] In some embodiments, the device 300 further includes:

[0210] When the battery level of the first device reaches a preset power threshold and there is no second device within the wireless charging range of the first device, the power supply device is controlled to continue charging the first device based on a preset charging current.

[0211] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0212] Figure 4 This is a structural block diagram illustrating a device 400 according to an exemplary embodiment. For example, device 400 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0213] Reference Figure 4 The device 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input / output (I / O) interface 412, sensor component 414, and communication component 416.

[0214] Processing component 402 typically controls the overall operation of device 400, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

[0215] Memory 404 is configured to store various types of data to support operation on device 400. Examples of such data include at least one of the following: instructions for any application or method operating on device 400, contact data, phonebook data, messages, pictures, and videos. Memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0216] Power supply component 406 provides power to various components of device 400. Power supply component 406 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 400.

[0217] Multimedia component 408 includes a screen that provides an output interface between device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a Touch Panel, the screen may be implemented as a touchscreen to receive input signals from the user. The Touch Panel includes one or more touch sensors to sense touches, swipes, and gestures on the Touch Panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 408 includes a front-facing camera and / or a rear-facing camera. When device 400 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0218] Audio component 410 is configured to output and / or input audio signals. For example, audio component 410 includes a microphone (MIC) configured to receive external audio signals when device 400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 404 or transmitted via communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.

[0219] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0220] Sensor assembly 414 includes one or more sensors for providing state assessments of various aspects of device 400. For example, sensor assembly 414 may detect the on / off state of device 400, the relative positioning of components such as the display and keypad of device 400, changes in the position of device 400 or one of its components, the presence or absence of user contact with device 400, the orientation or acceleration / deceleration of device 400, and temperature changes of device 400. Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 414 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 414 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.

[0221] Communication component 416 is configured to facilitate wired or wireless communication between device 400 and other devices. Device 400 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 416 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), Bluetooth (BT), and other technologies.

[0222] In an exemplary embodiment, device 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0223] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including executable instructions or a computer program, which can be executed by the processor 420 of the device 400 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0224] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the charging methods described in the embodiments of this disclosure. For example, the method includes:

[0225] When the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, the battery parameters of the second device are obtained.

[0226] Based on battery parameters, the power supply device is controlled to wirelessly charge the second device through the first device; and / or, based on the temperature parameters of the first device, the power supply device is controlled to charge the first device.

[0227] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the charging methods described in this disclosure. Figure 5This is a block diagram illustrating a charging device 500 according to an exemplary embodiment. For example, device 500 may be provided as a server. (Refer to...) Figure 5 The device 500 includes a processing component 522, which further includes one or more processors, and memory resources represented by memory 532 for storing instructions executable by the processing component 522, such as application programs. The application programs stored in memory 532 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 522 is configured to execute instructions to perform any of the charging methods described above. For example, the method includes:

[0228] When the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, the battery parameters of the second device are obtained.

[0229] Based on battery parameters, the power supply device is controlled to wirelessly charge the second device through the first device; and / or, based on the temperature parameters of the first device, the power supply device is controlled to charge the first device.

[0230] Device 500 may also include a power supply component 526 configured to perform power management of device 500, a wired or wireless network interface 550 configured to connect device 500 to a network, and an input / output (I / O) interface 558. Device 500 can operate an operating system stored in memory 532, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.

[0231] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0232] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A charging method, characterized in that, include: When the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device, the battery parameters of the second device are obtained. Based on the battery parameters, the power supply device is controlled to wirelessly charge the second device through the first device; and / or, based on the temperature parameters of the first device, the power supply device is controlled to charge the first device.

2. The charging method according to claim 1, characterized in that, The battery parameters include: battery capacity; the step of controlling the power supply device to wirelessly charge the second device through the first device based on the battery parameters; and / or, controlling the power supply device to charge the first device based on the temperature parameters of the first device, includes: When the battery level is less than or equal to a preset power threshold, the power supply device is controlled to wirelessly charge the second device through the first device until the battery level reaches the preset power threshold, at which point the wireless charging of the second device stops. When wireless charging of the second device is stopped and the temperature parameter of the first device is less than a first temperature threshold, the power supply device is controlled to charge the first device.

3. The charging method according to claim 2, characterized in that, The step of obtaining the battery parameters of the second device includes: During the wireless charging process of the second device, the first charging power for wireless charging of the second device is obtained and / or the first information sent by the second device is received; The battery charge is determined based on the first charging power and / or the battery charge is obtained from the first information; Wherein, if the duration of the first charging power being less than the preset power threshold is greater than the first duration threshold, the battery charge reaches the preset charge threshold.

4. The charging method according to claim 2, characterized in that, When the battery level reaches the preset power threshold, wireless charging of the second device is stopped, including: When the battery level reaches the preset power threshold, a first sampling current for wireless charging of the second device is obtained; If the duration for which the first sampling current is less than a preset current threshold is greater than a second duration threshold, wireless charging of the second device is stopped.

5. The charging method according to claim 2, characterized in that, The control of the power supply device to charge the first device includes: The second charging power is determined based on the temperature parameters of the first device and a preset first mapping relationship; wherein, the first mapping relationship is used to indicate the correspondence between the temperature parameters and the charging power. The power supply equipment is controlled to charge the first device according to the second charging power.

6. The charging method according to claim 2, characterized in that, The method further includes: During the process of controlling the power supply device to charge the first device, a second sampling current of the power supply device charging the first device is acquired; If the duration for which the second sampling current is less than a preset current threshold is greater than a third duration threshold, and the temperature parameter of the first device is less than a second temperature threshold, the charging of the first device by the power supply device shall be stopped.

7. The charging method according to claim 6, characterized in that, The method further includes: When the power supply device stops charging the first device and the second device is within the wireless charging range of the first device, the power supply device is controlled to wirelessly charge the second device through the first device.

8. The charging method according to claim 6, characterized in that, The method further includes: When the battery level of the first device reaches the preset power threshold and there is no second device within the wireless charging range of the first device, the power supply device is controlled to continue charging the first device based on a preset charging current.

9. A charging device, characterized in that, include: The acquisition module is configured to acquire the battery parameters of the second device when the first device is electrically connected to the power supply device and the second device is within the wireless charging range of the first device. The control module is configured to control the power supply device to wirelessly charge the second device through the first device based on the battery parameters; and / or to control the power supply device to charge the first device based on the temperature parameters of the first device.

10. An electronic device, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 8.