Charging method and device, electronic equipment, storage medium and product
Patent Information
- Application Number
- CN202510223401.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2026-08-28
AI Technical Summary
目前的反向充电方式的充电功率较低,充电速度慢,影响用户的使用体验
[0055] The method described in this disclosure has the following beneficial effects: After charging the charging device using the first charging parameters, the method can switch the current charging parameters from the first charging parameters to a second charging parameter with higher charging power based on parameters related to the battery of the power supply device and the battery of the charging device. Thus, by switching the first charging parameters to the second charging parameters, the charging power and charging speed can be increased, allowing the charging device to quickly reach the desired charge level, thereby improving the user experience.
Smart Images

Figure CN122660144A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of charging technology, and in particular to a charging method, apparatus, electronic device, storage medium, and product. Background Technology
[0002] With the continuous development of battery technology, the battery capacity of electronic devices is gradually increasing, and the functions of electronic devices are no longer limited to communication and entertainment. Reverse charging, as an emerging technology, is receiving increasing attention. Reverse charging refers to an electronic device outputting its own electrical energy to other devices, such as a mobile phone outputting its own electrical energy to Bluetooth headsets, smartwatches, or another mobile phone. Currently, reverse charging methods have low charging power and slow charging speeds, affecting the user experience. 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 product.
[0004] According to a first aspect of the present disclosure, a charging method is provided, comprising:
[0005] In response to the current charging parameters being the first charging parameters, the charging device is charged using the first charging parameters;
[0006] Based on the first attribute information and the second attribute information, the current charging parameter is switched from the first charging parameter to the second charging parameter; the first attribute information includes parameters related to the battery of the power supply device, the second attribute information includes parameters related to the battery of the charging device, and the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter;
[0007] The charging device is charged using the second charging parameters.
[0008] In some embodiments, switching the current charging parameter from the first charging parameter to the second charging parameter based on the first attribute information and the second attribute information includes:
[0009] Based on the first attribute information and the second attribute information, the charging parameter information is broadcast, and the charging parameter information includes the second charging parameter.
[0010] In response to receiving a first charging request from the charging device, the current charging parameters are switched from the first charging parameters to the second charging parameters; the first charging request is a charging request generated by the charging device based on the second charging parameters after receiving the charging parameter information, and the first charging request is used to request that the charging device be charged using the second charging parameters.
[0011] In some embodiments, the charging parameter information further includes the first charging parameter, and the method further includes:
[0012] In response to receiving a second charging request from the charging device, the charging device continues to be charged using the first charging parameters; the second charging request is a charging request generated by the charging device based on the first charging parameters after receiving the charging parameter information, and the second charging request is used to request that the charging device be charged using the first charging parameters.
[0013] In some embodiments, broadcasting charging parameter information based on the first attribute information and the second attribute information includes:
[0014] In response to the first attribute information satisfying a first condition and the second attribute information satisfying a second condition, the charging parameter information is broadcast; the first attribute information satisfying the first condition is used to indicate that the parameters included in the first attribute information have reached a corresponding first threshold, and the second attribute information satisfying the second condition is used to indicate that the parameters included in the second attribute information have reached a corresponding second threshold.
[0015] In some embodiments, the method further includes:
[0016] Obtain the authentication information of the charging device; the authentication information includes at least the device identifier of the charging device.
[0017] The charging device is authenticated based on the authentication information to obtain an authentication result; the authentication result is used to characterize the device type of the charging device.
[0018] Based on the authentication results, the first threshold and the second threshold are determined.
[0019] In some embodiments, before broadcasting the charging parameter information, the method further includes:
[0020] Perform a soft reset; the soft reset is used to re-establish power transmission communication between the power supply device and the charging device.
[0021] The broadcast charging parameter information includes:
[0022] Upon completion of the soft reset, the charging parameter information is broadcast.
[0023] In some embodiments, the first attribute information further includes the temperature parameter of the power supply device, the parameters related to the battery of the power supply device include at least the battery parameters of the power supply device, and the parameters related to the battery of the charging device include at least the battery parameters of the charging device. The battery parameters include at least one of the following: battery capacity parameter, battery voltage parameter, battery health parameter, and battery temperature parameter.
[0024] In some embodiments, the method further includes:
[0025] At preset time intervals, the first attribute information and the second attribute information are obtained.
[0026] In some embodiments, charging the charging device using the first charging parameters includes:
[0027] The charging device is charged using the first charging parameters and a boost circuit.
[0028] In some embodiments, charging the charging device using the second charging parameters includes:
[0029] The charging device is charged using a second charging parameter via a charge pump circuit.
[0030] According to a second aspect of the present disclosure, a charging method is provided, comprising:
[0031] When the current charging parameters of the power supply equipment are the first charging parameters, charging is performed based on the first charging parameters;
[0032] The device receives charging parameter information broadcast by the power supply device based on first attribute information and second attribute information; the charging parameter information includes a second charging parameter, the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter, the first attribute information includes parameters related to the battery of the power supply device, and the second attribute information includes parameters related to the battery of the charging device;
[0033] Based on the second charging parameters, a first charging request is generated and sent to the power supply device, so that the power supply device responds to the first charging request and switches the current charging parameters from the first charging parameters to the second charging parameters; the first charging request is used to request the power supply device to charge the charging device using the second charging parameters;
[0034] When the current charging parameter is the second charging parameter, charging is performed based on the second charging parameter.
[0035] In some embodiments, the charging parameter information further includes the first charging parameter, and the method further includes:
[0036] Based on the first charging parameters, a second charging request is generated and sent to the power supply device; the second charging request is used to request the power supply device to charge the charging device using the first charging parameters;
[0037] If the power supply device receives the second charging request and continues to charge the charging device using the first charging parameters, charging is performed based on the first charging parameters.
[0038] In some embodiments, the method further includes:
[0039] The power supply device sends authentication information to the power supply device so that the power supply device authenticates the charging device based on the authentication information and obtains an authentication result; wherein, the authentication information includes at least the device identifier of the charging device and the authentication result is used to characterize the device type of the charging device.
[0040] According to a third aspect of the present disclosure, a charging device is provided, characterized in that it includes:
[0041] The first charging module is configured to charge the charging device using the first charging parameter in response to the current charging parameter.
[0042] The processing module is configured to switch the current charging parameter from the first charging parameter to the second charging parameter based on the first attribute information and the second attribute information; the first attribute information includes parameters related to the battery of the power supply device, the second attribute information includes parameters related to the battery of the charging device, and the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter.
[0043] The second charging module is configured to charge the charging device using the second charging parameters.
[0044] According to a fourth aspect of the present disclosure, a charging device is provided, characterized in that it includes:
[0045] The third charging module is configured to charge the power supply device based on the first charging parameter when the current charging parameter of the power supply device is the first charging parameter.
[0046] The transceiver module is configured to receive charging parameter information broadcast by the power supply device based on first attribute information and second attribute information; the charging parameter information includes a second charging parameter, the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter, the first attribute information includes parameters related to the battery of the power supply device, and the second attribute information includes parameters related to the battery of the charging device;
[0047] The transceiver module is further configured to generate a first charging request based on the second charging parameters and send the first charging request to the power supply device, so that the power supply device responds to the first charging request and switches the current charging parameters from the first charging parameters to the second charging parameters; the first charging request is used to request the power supply device to charge the charging device using the second charging parameters;
[0048] The fourth charging module is configured to charge based on the second charging parameter when the current charging parameter is the second charging parameter.
[0049] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising:
[0050] processor;
[0051] Memory used to store processor-executable instructions;
[0052] The processor is configured to perform the charging method as described in the first aspect of this disclosure.
[0053] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the charging method as described in the first aspect of the present disclosure.
[0054] According to a seventh aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the charging method as described in the first aspect of the present disclosure.
[0055] The method described in this disclosure has the following beneficial effects: After charging the charging device using the first charging parameters, the method can switch the current charging parameters from the first charging parameters to a second charging parameter with higher charging power based on parameters related to the battery of the power supply device and the battery of the charging device. Thus, by switching the first charging parameters to the second charging parameters, the charging power and charging speed can be increased, allowing the charging device to quickly reach the desired charge level, thereby improving the user experience.
[0056] 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
[0057] 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.
[0058] Figure 1 This is a flowchart illustrating a charging method according to an exemplary embodiment.
[0059] Figure 2 This is a flowchart illustrating a charging method according to an exemplary embodiment.
[0060] Figure 3 This is a flowchart illustrating a charging method according to an exemplary embodiment.
[0061] Figure 4 This is a flowchart illustrating a charging method according to an exemplary embodiment.
[0062] Figure 5 This is a flowchart illustrating a charging method according to an exemplary embodiment.
[0063] Figure 6 This is a flowchart illustrating a charging method according to an exemplary embodiment.
[0064] Figure 7 This is a block diagram illustrating a charging device according to an exemplary embodiment.
[0065] Figure 8 This is a block diagram illustrating a charging device according to an exemplary embodiment.
[0066] Figure 9 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0067] 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.
[0068] With the continuous development of battery technology, the battery capacity of electronic devices is gradually increasing, and the functions of electronic devices are no longer limited to communication and entertainment. Reverse charging, as an emerging technology, is receiving increasing attention. Reverse charging refers to an electronic device outputting its own electrical energy to other devices, such as a mobile phone outputting its own electrical energy to Bluetooth headsets, smartwatches, or another mobile phone. Currently, reverse charging methods have low charging power and slow charging speeds, affecting the user experience.
[0069] For example, overcurrent protection chips typically limit the charging current to between 500mA and 1500mA. Correspondingly, when the charging voltage is a low 5V, the reverse charging power ranges from 2.5W to 7.5W. Furthermore, inductor design affects current carrying capacity, further limiting the reverse charging power. Therefore, due to the limitations of overcurrent protection and inductors, current reverse charging methods have relatively low charging power and slow charging speeds, impacting the user experience.
[0070] To address the aforementioned issues, this disclosure provides a charging method. In embodiments of this disclosure, in response to the current charging parameter being a first charging parameter, the charging device is charged using the first charging parameter; based on first attribute information and second attribute information, the current charging parameter is switched from the first charging parameter to a second charging parameter; the first attribute information includes parameters related to the battery of the power supply device, the second attribute information includes parameters related to the battery of the charging device, and the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter; the charging device is charged using the second charging parameter.
[0071] The method provided in this disclosure can, after charging the charging device using first charging parameters, switch the current charging parameters from the first charging parameters to second charging parameters with higher charging power based on parameters related to the battery of the power supply device and parameters related to the battery of the charging device. Thus, by switching the first charging parameters to the second charging parameters, the charging power and charging speed can be increased, allowing the charging device to quickly reach the desired level of charge, thereby improving the user experience.
[0072] The charging method provided in this disclosure is executed by a power supply device, which can be a smart device such as a mobile phone, tablet computer, laptop, smart robot, or smart wearable device. The method provided in this disclosure is applicable to any electronic device that supports the Power Delivery (PD) protocol based on Universal Serial Bus (USB).
[0073] Figure 1 This is a flowchart illustrating a charging method according to an exemplary embodiment, performed by a power supply device. See also... Figure 1 The method includes the following steps:
[0074] Step S101: In response to the current charging parameter being the first charging parameter, the charging device is charged using the first charging parameter.
[0075] In some embodiments, after the charging device and the power supply device establish a charging connection, the charging device and the power supply device establish power transmission communication based on the PD protocol. In the PD protocol, the power supply device broadcasts the power data object (PDO) supported by the power supply device to the charging device. The power data object can be used to characterize the charging parameters of the power supply device.
[0076] Establishing a charging connection between the charging device and the power supply device refers to establishing a connection between the charging device and the power supply device through an external connection line, such as establishing a connection between the charging device and the power supply device through a universal serial bus.
[0077] In some embodiments, when a charging device is connected to a power supply device, the connection status parameters of the power supply device may change. Based on the change in these connection status parameters, it can be determined that a charging device has been connected to the power supply device. Alternatively, the program in the power supply device can detect the connection status of the power supply device in real time and report the connection status.
[0078] In some embodiments, the first charging parameters can be the default charging parameters of the power supply device. Correspondingly, the power supply device can broadcast the first charging parameters, and when the charging device receives the broadcast first charging parameters, it can send a second charging request to the power supply device, requesting the power supply device to charge the charging device using the first charging parameters. In response to receiving the second charging request from the charging device, the power supply device determines the first charging parameters as the current charging parameters. It should be noted that the steps performed by the charging device are not specifically described here.
[0079] Optionally, the first charging parameter may include a charging voltage parameter and a charging current parameter. For example, the charging voltage parameter of the first charging parameter may be 5V, and the charging current parameter of the first charging parameter may be 1.5A.
[0080] Step S102: Based on the first attribute information and the second attribute information, switch the current charging parameter from the first charging parameter to the second charging parameter; the first attribute information includes parameters related to the battery of the power supply device, the second attribute information includes parameters related to the battery of the charging device, and the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter.
[0081] Similarly, before switching the current charging parameters from the first charging parameter to the second charging parameter, the power supply device will also broadcast relevant information about the second charging parameter. The detailed execution process can be found in steps S201-S205 of the following embodiments, and will not be repeated here.
[0082] In some embodiments, the second charging parameter may also include a charging voltage parameter and a charging current parameter. It should be noted that the product of the charging voltage parameter and the charging current parameter in the second charging parameter (i.e., the charging power) is greater than the product of the charging voltage parameter and the charging current parameter in the first charging parameter.
[0083] In one example, when the charging voltage parameter in the second charging parameter is the same as the charging voltage parameter in the first charging parameter, the charging current parameter in the second charging parameter is greater than the charging current parameter in the first charging parameter. For example, when the charging voltage parameter in both charging parameters is 5V, the charging current parameter in the first charging parameter can be 1.5A, while the charging current parameter in the second charging parameter can be 2.2A.
[0084] Therefore, switching the current charging parameters from the first charging parameter to the second charging parameter can effectively increase the charging power of the power supply equipment, thereby increasing the charging speed.
[0085] In some embodiments, the first attribute information and the second attribute information can be comprehensively evaluated to obtain an evaluation result, and based on the evaluation result, it can be determined whether to switch the current charging parameters from the first charging parameters to the second charging parameters. The specific evaluation process can be referred to the following embodiments, which will not be described in detail here.
[0086] Step S103: Charge the charging device using the second charging parameters.
[0087] In response to switching the current charging parameters from the first charging parameter to the second charging parameter, the charging device is charged using the second charging parameter.
[0088] The method provided in this disclosure can, after charging the charging device using first charging parameters, switch the current charging parameters from the first charging parameters to second charging parameters with higher charging power based on parameters related to the battery of the power supply device and parameters related to the battery of the charging device. Thus, by switching the first charging parameters to the second charging parameters, the charging power and charging speed can be increased, allowing the charging device to quickly reach the desired level of charge, thereby improving the user experience.
[0089] In some embodiments, the process of charging the charging device using the first charging parameter and charging the charging device using the second charging parameter will be briefly described below.
[0090] For charging the charging device using the first charging parameters:
[0091] In some embodiments, a first charging parameter can be used to charge the charging device via a boost circuit. The boost circuit can raise the low voltage of the power supply device's battery, such as 3.7V, to a voltage suitable for charging other devices, such as 5V.
[0092] In some embodiments, the boost circuit can be a boost converter, which consists of components such as an inductor, a switching transistor, a diode, and an output capacitor. Its working principle is to boost the input voltage to a higher output voltage by storing and releasing energy through the inductor. During the charging phase, the switching transistor is turned on, current flows through the inductor to store energy, and the voltage across the inductor equals the input voltage. During the discharging phase, the switching transistor is turned off, the magnetic energy of the inductor is converted into electrical energy, and the current supplies power to the load through the diode or freewheeling path.
[0093] In some embodiments, the boost circuit may include an external boost circuit and / or a boost circuit integrated on a power management integrated circuit (PMIC). The following is a brief description of external boost circuits and boost circuits integrated on a power management chip.
[0094] An external boost converter is a standalone boost circuit that reduces system cost compared to an integrated solution. A boost converter integrated into a PMIC (Power Management Microcontroller) is a boost converter integrated into the power management chip. It's important to note that if the boost converter is integrated into the power management chip, it occupies some space on the chip, preventing the integration of other functions, such as wireless charging, into the power management chip of the power supply device.
[0095] Optionally, for power supply devices with other functions such as wireless charging, the first charging parameters can be used to charge the device through an external boost circuit; for power supply devices without other functions such as wireless charging, in some embodiments, the first charging parameters can be used to charge the device through an external boost circuit or a boost circuit integrated on a power management chip.
[0096] In some embodiments, the first charging parameter can be the charging parameter corresponding to the power supply passing through the boost circuit. For example, the charging voltage parameter after passing through the boost circuit is 5V, and the charging current parameter after passing through the boost circuit is 1.5V.
[0097] For charging the charging device using the second charging parameters:
[0098] In some embodiments, a second charging parameter can be used to charge the charging device via a charge pump circuit. The charge pump (CP) circuit is a circuit that achieves voltage conversion through capacitor energy storage and release. During the charging phase, the input voltage can be charged onto the capacitor in the charge pump circuit via a switch, and the capacitor stores energy. During the discharging phase, the capacitor can release the charge to the output terminal via another switch, forming an output voltage to power the load. Furthermore, since the capacitor theoretically has no energy loss during energy storage and release, and the charge pump circuit does not require an inductor, reducing inductor core and winding losses, the charge pump circuit has lower losses during charging, resulting in higher charging efficiency for charging devices.
[0099] In some embodiments, the charging device can be charged using a charge pump circuit and a direct output (bypass) mode. It should be noted that the bypass mode is a direct output mode, meaning that no boost conversion is required. Therefore, since charging the device via the charge pump circuit and the direct output (bypass) mode eliminates the need for boost conversion and directly outputs the voltage, charging efficiency can be effectively improved.
[0100] The method provided in this disclosure can use a second charging parameter to charge the charging device through a charge pump circuit. Compared to using the first charging parameter, charging the charging device through a boost circuit can increase the charging power and efficiency during the charging process, thereby increasing the charging speed and alleviating the heat generation of the power supply equipment. In addition, the charge pump circuit does not increase any hardware cost, which can effectively reduce the cost and space occupation of charging.
[0101] In some embodiments, the first attribute information further includes temperature parameters of the power supply device, and parameters related to the battery of the power supply device may include at least the battery parameters of the power supply device, and parameters related to the battery of the charging device may include at least the battery parameters of the charging device. Battery parameters include at least one of the following: battery capacity, battery voltage, battery health, and battery temperature. That is, the battery parameters are briefly described below for both the battery-related parameters of the power supply device and the battery-related parameters of the charging device.
[0102] The temperature parameter of the power supply equipment can be the overall fitted case temperature of the power supply equipment. The overall fitted case temperature refers to the actual temperature of the equipment casing that is fitted based on the temperature data of the internal heat source components of the electronic equipment through mathematical models and algorithms. The overall fitted case temperature can provide feedback on the overall temperature of the electronic equipment.
[0103] Voltage parameters refer to the battery voltage of electronic devices. Capacity parameters refer to the remaining battery capacity, a key indicator of a battery's ability to store energy and its range of operation. Capacity parameters are measured in milliampere-hours (mAh) or ampere-hours (Ah). For example, a 1000mAh battery can theoretically provide 1A of current for one hour.
[0104] A battery health parameter refers to the ratio of a battery's current performance to its initial performance, usually expressed as a percentage. For example, a 95% health parameter indicates that the battery's performance is still close to its initial state. Health parameters can be used to evaluate battery performance and lifespan.
[0105] Temperature parameters can refer to battery temperature. It's important to note that battery temperature characterizes the specific temperature of the battery, not the overall temperature of the device in which it resides; that is, the battery's temperature parameter differs from the device's temperature parameter. Furthermore, obtaining both the battery's and the device's temperature parameters allows for a more accurate reflection of their respective temperatures.
[0106] It should be noted that the above parameters related to the battery of the power supply device and the battery of the charging device are only examples. The battery-related parameters can be set and selected based on the actual situation.
[0107] In some embodiments, based on the first attribute information and the second attribute information, it can be determined whether to switch the current charging parameters. If it is determined that the current charging parameters should be switched, the second charging parameters are used to charge the charging device; if it is determined that the current charging parameters should not be switched, the first charging parameters are used to continue charging the charging device. The following describes... Figure 2 The illustrated embodiment describes the process of switching the current charging parameters from the first charging parameters to the second charging parameters based on the first attribute information and the second attribute information.
[0108] Figure 2 This is a flowchart illustrating a charging method according to an exemplary embodiment, performed by an electronic device. See also... Figure 2 The method includes the following steps:
[0109] Step S201: Determine whether the first attribute information satisfies the first condition and whether the second attribute information satisfies the second condition. If yes, that is, when the first attribute information satisfies the first condition and the second attribute information satisfies the second condition, proceed to step S202; otherwise, if no, that is, when the first attribute information does not satisfy the first condition and / or the second attribute information does not satisfy the second condition, proceed to step S205.
[0110] In one example, whether the first attribute information satisfies the first condition is used to characterize whether the parameters included in the first attribute information reach the corresponding first threshold, and whether the second attribute information satisfies the second condition is used to characterize whether the parameters included in the second attribute information reach the corresponding second threshold.
[0111] In some embodiments, the first threshold corresponding to different parameters may be different. For example, the first threshold corresponding to the power parameter and the first threshold corresponding to the voltage parameter may be different. The first threshold corresponding to the power parameter may be 3000mAh, and the first threshold corresponding to the voltage parameter may be 3.7V.
[0112] In one example, for battery voltage parameters, to avoid triggering Under-Voltage Lockout (UVLO) at low voltages, it is not recommended to broadcast high-power charging parameters. That is, when the voltage parameter is less than a certain voltage value, charging parameter information is not broadcast; conversely, when the voltage parameter is greater than or equal to a certain voltage value, charging parameter information is broadcast (subsequent parameters can be found in this example).
[0113] Regarding battery temperature parameters, the battery's inherent characteristics affect its resistance; the lower the battery temperature, the higher the battery impedance. Therefore, to avoid artificially inflated voltage, it is not recommended to broadcast high-power charging parameters when the battery temperature is low. Similarly, it is not recommended to broadcast high-power charging parameters when the battery is low.
[0114] Regarding battery health parameters, the lower the health parameter, the higher the battery's internal resistance. Therefore, it is not recommended to broadcast high-power charging parameters when the health parameter is low. In other words, when the health parameter is below a certain value, charging parameter information will not be broadcast.
[0115] If the overall casing temperature is too high, broadcasting high-power charging parameters will cause the overall temperature of the power supply equipment to rise, resulting in severe overheating. Therefore, it is not recommended to broadcast high-power charging parameters when the overall casing temperature is high.
[0116] Regarding the battery capacity parameters of the charging device, the battery capacity parameters of the power supply device are greater than those of the charging device, and the difference between the battery capacity parameters of the power supply device and the charging device is greater than a preset value.
[0117] Therefore, a first threshold related to the parameters of the power supply device's battery and a second threshold related to the parameters of the charging device's battery can be determined, thereby determining whether the first attribute information satisfies the first condition and whether the second attribute information satisfies the second condition, and thus determining whether to broadcast the charging parameter information.
[0118] For charging devices of different types, the first threshold value for the battery-related parameters of the power supply device and the second threshold value for the battery-related parameters of the charging device can be different. For example, when the charging device is from manufacturer A, the first threshold value and the second threshold value for the battery-related parameters of the power supply device can be lower than those for the charging device from manufacturer B. For instance, when the charging device is from manufacturer A, the first threshold value for the voltage parameter of the power supply device can be 3.7V, while when the charging device is from manufacturer B, the first threshold value for the voltage parameter of the power supply device can be 4V under strict standards.
[0119] In some embodiments, authentication information of the charging device can be obtained; the authentication information includes at least the device identifier of the charging device; the charging device is authenticated based on the authentication information to obtain an authentication result; the authentication result is used to characterize the device type of the charging device; based on the authentication result, a first threshold and a second threshold are determined. The device identifier can be a standard or vendor ID (SVID).
[0120] In some embodiments, authentication of the charging device is performed based on authentication information. The authentication result may include determining the device type of the charging device based on its device identifier. It should be noted that the device identifier can be used to identify devices of different device types. It should also be noted that the authentication of the charging device based on authentication information can be performed using a custom process, and is not limited here.
[0121] In some embodiments, a first threshold corresponding to each parameter in the first attribute information can be determined based on the device type of the charging device, and a second threshold corresponding to each parameter in the second attribute information can be determined.
[0122] Additionally, it should be noted that the values of the first and second thresholds need to be adjusted based on the actual situation of the device.
[0123] In step S202, in response to the first attribute information satisfying the first condition and the second attribute information satisfying the second condition, the charging parameter information is broadcast.
[0124] The first attribute information satisfies the first condition to characterize that the parameters included in the first attribute information reach the corresponding first threshold, and the second attribute information satisfies the second condition to characterize that the parameters included in the second attribute information reach the corresponding second threshold.
[0125] Before broadcasting charging parameter information, a soft reset can be performed. A soft reset is used to re-establish power transmission communication between the power supply and charging devices. It should be noted that when broadcasting charging parameter information, some devices may not respond to the power supply; for example, some devices may not receive the broadcast charging parameter information. Therefore, a soft reset can be performed to re-establish PD communication between the power supply and charging devices. Afterward, in response to the completion of the soft reset, the charging parameter information is broadcast.
[0126] Optionally, the charging parameter information includes a second charging parameter; or, the charging parameter information includes a first charging parameter and a second charging parameter.
[0127] Step S203: In response to receiving a first charging request from the charging device, the current charging parameters are switched from the first charging parameters to the second charging parameters.
[0128] The first charging request is used to request that the charging device be charged using the second charging parameters.
[0129] In some embodiments, after receiving the charging parameter information broadcast by the power supply device, the charging device may choose to charge based on the second charging parameters, and generate a first charging request based on the second charging parameters to request the power supply device to charge the charging device using the second charging parameters.
[0130] Step S204: In response to receiving the second charging request from the charging device, continue to charge the charging device using the first charging parameters.
[0131] The second charging request is used to request that the charging device be charged using the first charging parameters.
[0132] Similarly, in some embodiments, after receiving the charging parameter information broadcast by the power supply device, the charging device can also choose to charge based on the first charging parameter according to actual needs, and generate a second charging request based on the first charging parameter to request the power supply device to charge the charging device using the first charging parameter.
[0133] In this case, the current charging parameters have not changed, that is, the first charging parameters continue to be used to charge the charging device.
[0134] In step S205, in response to the first attribute information not meeting the first condition and / or the second attribute information not meeting the second condition, the charging parameter information is not broadcast, and the charging device continues to be charged using the first charging parameters.
[0135] In some embodiments, when it is determined that charging parameter information should not be broadcast, the charging device can continue to be charged using the first charging parameters without re-establishing PD communication between the power supply device and the charging device.
[0136] The method provided in this disclosure can determine a first threshold and a second threshold based on the authentication information of the charging device, and determine whether to broadcast charging parameter information based on the relationship between the parameters in the first attribute information and the first threshold, and the relationship between the parameters in the second attribute information and the second threshold. Furthermore, when broadcasting charging parameter information, the charging device can be charged based on its actual charging request. Thus, when the actual charging request is a first charging request, the charging device can be charged based on the second charging parameters, thereby improving charging power and charging speed.
[0137] In some embodiments, during the charging process, the first attribute information and the second attribute information continuously change. For example, the power parameter of the power supply device in the first attribute information may decrease, while the power parameter of the charging device in the second attribute information may increase. Accordingly, with the changes in the first attribute information and the second attribute information, the relationship between the parameter in the first attribute information and the first threshold, and the relationship between the parameter in the second attribute information and the second threshold, will also change.
[0138] In some embodiments, first attribute information and second attribute information can be acquired at preset time intervals, and step S102 and subsequent steps can be executed to determine accurate charging parameters. The preset time interval can be set and selected based on actual needs; for example, the preset time interval can be 10s, 15s, etc.
[0139] In other words, after the charging device and the power supply device establish a charging connection, in addition to the initial charging based on the first charging parameters, the power supply device can periodically acquire first attribute information and second attribute information. Based on the first and second attribute information, it can determine whether it can charge the charging device based on the second charging parameters. If it is determined that the power supply device can charge the charging device based on the second charging parameters, it can broadcast the charging parameter information to the charging device, allowing the charging device to choose whether to use the first charging parameters or the second charging parameters according to actual needs. The specific execution process will not be elaborated here.
[0140] In the method provided in this embodiment, first attribute information and second attribute information can be acquired periodically, and step S102 and subsequent steps can be executed sequentially to determine whether the first attribute information meets the first condition and whether the second attribute information meets the second condition, thereby determining whether to broadcast charging parameter information and thus determining accurate charging parameters.
[0141] Figure 3 This is a flowchart illustrating a charging method according to an exemplary embodiment, performed by an electronic device. See also... Figure 3 The method includes the following steps:
[0142] In step S301, in response to the establishment of a charging connection between the charging device and the power supply device, the first charging parameters are broadcast.
[0143] Step S302: In response to receiving a second charging request from the charging device, the first charging parameter is determined as the current charging parameter.
[0144] Step S303: In response to the current charging parameter being the first charging parameter, the charging device is charged using the first charging parameter.
[0145] Step S304: Obtain the authentication information of the charging device.
[0146] Step S305: Authenticate the charging device based on the authentication information to obtain the authentication result.
[0147] Step S306: Based on the authentication results, determine the first threshold and the second threshold.
[0148] In step S307, in response to the first attribute information satisfying the first condition and the second attribute information satisfying the second condition, the charging parameter information is broadcast.
[0149] Step S308: In response to receiving a first charging request from the charging device, the current charging parameters are switched from the first charging parameters to the second charging parameters.
[0150] Step S309: Charge the charging device using the second charging parameters.
[0151] Step S310: In response to receiving the second charging request from the charging device, continue to charge the charging device using the first charging parameters.
[0152] In step S311, in response to the first attribute information not meeting the first condition and / or the second attribute information not meeting the second condition, the charging parameter information is not broadcast, and the charging device continues to be charged using the first charging parameters.
[0153] The charging method provided in this embodiment is executed by a charging device, which can be a smart device such as a mobile phone, tablet computer, laptop, smart robot, or smart wearable device.
[0154] Figure 4 This is a flowchart illustrating a charging method according to an exemplary embodiment, performed by a charging device. See also... Figure 4 The method includes the following steps:
[0155] Step S401: If the current charging parameters of the power supply equipment are the first charging parameters, charging is performed based on the first charging parameters.
[0156] In some embodiments, in response to the establishment of a charging connection between the charging device and the power supply device, the charging device may receive a first charging parameter broadcast by the power supply device; in response to receiving the first charging parameter broadcast by the power supply device, a second charging request may be generated based on the first charging parameter, and the second charging request may be sent to the power supply device; the second charging request may be used to request the power supply device to charge the charging device using the first charging parameter; and if the power supply device receives the second charging request and determines the first charging parameter as the current charging parameter, it may charge based on the first charging parameter.
[0157] Establishing a charging connection between a charging device and a power supply device refers to establishing a connection between the charging device and the power supply device through an external connection cable, such as establishing a connection between the charging device and the power supply device through a Universal Serial Bus (USB).
[0158] Step S402: Receive charging parameter information broadcast by the power supply device based on the first attribute information and the second attribute information; the charging parameter information includes the second charging parameter.
[0159] The charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter. The first attribute information includes parameters related to the battery of the power supply device, and the second attribute information includes parameters related to the battery of the charging device.
[0160] Step S403: Based on the second charging parameters, generate a first charging request and send the first charging request to the power supply device so that the power supply device responds to the first charging request and switches the current charging parameters from the first charging parameters to the second charging parameters.
[0161] The first charging request is used to request the power supply equipment to charge the charging equipment using the second charging parameters.
[0162] Step S404: If the current charging parameters are the second charging parameters, charge based on the second charging parameters.
[0163] In some embodiments, the charging parameter information may also include a first charging parameter. When the charging parameter information also includes the first charging parameter, the charging device may generate a second charging request based on the first charging parameter and send the second charging request to the power supply device. The second charging request is used to request the power supply device to charge the charging device using the first charging parameter. If the power supply device receives the second charging request and continues to charge the charging device using the first charging parameter, charging is performed based on the first charging parameter. This process is parallel to the steps S403 and S404 described above. In actual charging, the user can choose to execute step S403 or the step of generating a second charging request based on the first charging parameter and sending the second charging request to the power supply device according to actual needs.
[0164] In some embodiments, if no charging parameter information based on the first attribute information and the second attribute information is received from the power supply device, charging is performed based on the first charging parameters.
[0165] In addition, in some embodiments, the charging device may also send authentication information to the power supply device, so that the power supply device can authenticate the charging device based on the authentication information and obtain an authentication result; wherein, the authentication information includes at least the device identifier of the charging device, and the authentication result is used to characterize the device type of the charging device.
[0166] The method provided in this disclosure can switch the current charging parameters from the first charging parameters to the second charging parameters based on the first attribute information and the second attribute information of the power supply equipment, and perform charging based on the second charging parameters, thereby improving the charging power and charging speed, and thus improving the user experience.
[0167] Figure 5 This is a flowchart illustrating a charging method according to an exemplary embodiment, performed by a charging device. See also... Figure 5 The method includes the following steps:
[0168] Step S501: In response to the establishment of a charging connection between the charging device and the power supply device, the first charging parameters broadcast by the power supply device are received.
[0169] In step S502, in response to receiving the first charging parameters broadcast by the power supply device, a second charging request is generated based on the first charging parameters, and the second charging request is sent to the power supply device.
[0170] Step S503: When the power supply device receives the second charging request and determines the first charging parameter as the current charging parameter, charging is performed based on the first charging parameter.
[0171] Step S504: Receive charging parameter information broadcast by the power supply device based on the first attribute information and the second attribute information.
[0172] The charging parameter information may include a first charging parameter and a second charging parameter. After receiving the charging parameter information, the charging device can choose to charge based on the second charging parameter or the first charging parameter according to the actual charging needs. If charging based on the second charging parameter is selected, step S505 is executed; if charging based on the first charging parameter is selected, step S506 is executed.
[0173] Step S505: Based on the second charging parameter in the charging parameter information, generate a first charging request and send the first charging request to the power supply equipment.
[0174] Step S506: When the power supply device receives the first charging request and switches the current charging parameters from the first charging parameters to the second charging parameters, charging is performed based on the second charging parameters.
[0175] Step S507: Based on the first charging parameters in the charging parameter information, generate a second charging request and send the second charging request to the power supply equipment.
[0176] Step S508: If the power supply device receives the second charging request and continues to charge the charging device using the first charging parameters, charging is performed based on the first charging parameters.
[0177] Step S509: If no charging parameter information based on the first attribute information and the second attribute information is received from the power supply device, charging is performed based on the first charging parameters.
[0178] Figure 6 This is a flowchart illustrating a charging method according to an exemplary embodiment, performed by a power supply device and a charging device. See also... Figure 6 The method includes the following steps:
[0179] In step S601, in response to the establishment of a charging connection between the charging device and the power supply device, the power supply device broadcasts the first charging parameters.
[0180] In step S602, the charging device receives the first charging parameters and sends the first confirmation information and the first charging request to the power supply device.
[0181] The first confirmation message can be a GoodCRC message, indicating successful verification. GoodCRC is a basic communication control message used to acknowledge successful reception by the sending and receiving ends. The other confirmation messages described below are the same as the first confirmation message and will not be repeated here.
[0182] In step S603, the power supply equipment receives the first confirmation information and the first charging request, sends the acceptance information, power ready information and the second confirmation information to the charging equipment, and determines the first charging parameters as the current charging parameters.
[0183] The "accept" message can be a reply from the sender to the receiver confirming acceptance of the request. The "power ready" message can be "PS_RDY," which replies to the sender that the receiver is ready to output power.
[0184] In step S604, the power supply equipment charges the charging equipment using the first charging parameters.
[0185] In step S605, the charging device receives the acceptance information and the second confirmation information.
[0186] In step S606, the charging device sends a third confirmation message to the power supply device.
[0187] Step S607: The power supply equipment sends an information acquisition request to the charging equipment.
[0188] Among them, the information acquisition request is used to obtain the second attribute information of the charging device.
[0189] In step S608, the charging device receives the information acquisition request and sends the second attribute information to the power supply device.
[0190] Step S609: The power supply equipment sends an authentication information acquisition request to the charging equipment.
[0191] The authentication information retrieval request is used to obtain the authentication information of the charging device.
[0192] In step S610, the charging device receives the authentication information acquisition request and sends the authentication information to the power supply device.
[0193] Step S611: The power supply equipment authenticates the charging equipment based on the authentication information to obtain the authentication result. Based on the authentication result, the first threshold and the second threshold are determined.
[0194] In step S612, the power supply device responds to the first attribute information satisfying the first condition and the second attribute information satisfying the second condition by broadcasting charging parameter information.
[0195] In step S613, the charging device receives the charging parameter information, generates a first charging request based on the second charging parameter in the charging parameter information, and sends the first charging request to the power supply device.
[0196] In step S614, the power supply device receives the first charging request and starts charging based on the second charging parameters.
[0197] In step S615, the charging device receives the charging parameter information, generates a second charging request based on the first charging parameter in the charging parameter information, and sends the second charging request to the power supply device.
[0198] In step S616, the power supply device receives the second charging request and starts charging based on the first charging parameters.
[0199] In step S617, the power supply device responds to the first attribute information not meeting the first condition and / or the second attribute information not meeting the second condition by not broadcasting the charging parameter information and charging based on the first charging parameters.
[0200] Figure 7 This is a block diagram illustrating a charging device configured in a power supply device according to an exemplary embodiment. See also... Figure 7 The device includes:
[0201] The first charging module 701 is configured to charge the charging device using the first charging parameter in response to the current charging parameter.
[0202] The processing module 702 is configured to switch the current charging parameter from the first charging parameter to the second charging parameter based on the first attribute information and the second attribute information; the first attribute information includes parameters related to the battery of the power supply device, the second attribute information includes parameters related to the battery of the charging device, and the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter.
[0203] The second charging module 703 is configured to charge the charging device using the second charging parameters.
[0204] In some embodiments, the processing module 702 is configured to:
[0205] Based on the first attribute information and the second attribute information, the charging parameter information is broadcast, which includes the first charging parameter and the second charging parameter.
[0206] In response to receiving a first charging request from the charging device, the current charging parameters are switched from the first charging parameters to the second charging parameters; the first charging request is a charging request generated by the charging device based on the second charging parameters after receiving the charging parameter information, and the first charging request is used to request the second charging parameters to charge the charging device.
[0207] In some embodiments, the charging parameter information further includes first charging parameters, and the first charging module 701 is further configured as follows:
[0208] In response to receiving a second charging request from the charging device, the charging device continues to be charged using the first charging parameters; the second charging request is a charging request generated by the charging device based on the first charging parameters after receiving the charging parameter information, and the second charging request is used to request that the charging device be charged using the first charging parameters.
[0209] In some embodiments, the processing module 702 is configured to:
[0210] In response to the first attribute information satisfying the first condition and the second attribute information satisfying the second condition, charging parameter information is broadcast; the first attribute information satisfying the first condition is used to indicate that the parameters included in the first attribute information have reached the corresponding first threshold, and the second attribute information satisfying the second condition is used to indicate that the parameters included in the second attribute information have reached the corresponding second threshold.
[0211] In some embodiments, the first charging module 701 is further configured to:
[0212] In response to the first attribute information not meeting the first condition, and / or the second attribute information not meeting the second condition, the charging parameter information is not broadcast, and the charging device continues to be charged using the first charging parameters.
[0213] In some embodiments, the processing module 702 is further configured to:
[0214] Obtain the authentication information of the charging device; the authentication information shall include at least the device identifier of the charging device.
[0215] The authentication information is used to authenticate the charging device and obtain the authentication result; the authentication result is used to characterize the device type of the charging device.
[0216] Based on the authentication results, the first threshold and the second threshold are determined.
[0217] In some embodiments, the processing module 702 is further configured to:
[0218] Perform a soft reset; a soft reset is used to re-establish power transmission communication between the power supply equipment and the charging equipment.
[0219] Processing module 702 is configured as follows:
[0220] Upon completion of the soft reset, charging parameter information is broadcast.
[0221] In some embodiments, the first charging module 701 is further configured to:
[0222] In response to the establishment of a charging connection between the charging device and the power supply device, the first charging parameters are broadcast.
[0223] In response to receiving a second charging request from the charging device, the first charging parameter is determined as the current charging parameter.
[0224] In some embodiments, the first attribute information further includes temperature parameters of the power supply device, parameters related to the battery of the power supply device include at least battery parameters of the power supply device, parameters related to the battery of the charging device include at least battery parameters of the charging device, and battery parameters include at least one of battery capacity parameters, battery voltage parameters, battery health parameters, and battery temperature parameters.
[0225] In some embodiments, the processing module 702 is further configured to:
[0226] At preset time intervals, obtain the first attribute information and the second attribute information.
[0227] In some embodiments, the first charging module 701 is configured as follows:
[0228] The charging device is charged using the first charging parameters and a boost circuit.
[0229] In some embodiments, the second charging module 703 is further configured to:
[0230] The charging device is charged using the second charging parameters via a charge pump circuit.
[0231] 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.
[0232] Figure 8 This is a block diagram illustrating a charging device according to an exemplary embodiment, configured in a charging apparatus, see [link to relevant documentation]. Figure 8 The device includes:
[0233] The third charging module 801 is configured to charge based on the first charging parameter when the current charging parameter of the power supply device is the first charging parameter.
[0234] The transceiver module 802 is configured to receive charging parameter information broadcast by the power supply device based on first attribute information and second attribute information; the charging parameter information includes the second charging parameter, the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter, the first attribute information includes parameters related to the battery of the power supply device, and the second attribute information includes parameters related to the battery of the charging device.
[0235] The transceiver module 802 is also configured to generate a first charging request based on the second charging parameters and send the first charging request to the power supply device, so that the power supply device responds to the first charging request and switches the current charging parameters from the first charging parameters to the second charging parameters; the first charging request is used to request the power supply device to charge the charging device using the second charging parameters;
[0236] The fourth charging module 803 is configured to charge based on the second charging parameter when the current charging parameter is the second charging parameter.
[0237] In some embodiments, the charging parameter information further includes first charging parameters, and the third charging module 801 is further configured as follows:
[0238] Based on the first charging parameters, a second charging request is generated and sent to the power supply equipment; the second charging request is used to request the power supply equipment to charge the charging equipment using the first charging parameters.
[0239] If the power supply equipment receives a second charging request and continues to charge the charging equipment using the first charging parameters, charging is performed based on the first charging parameters.
[0240] In some embodiments, the third charging module 801 is further configured to:
[0241] If no charging parameter information based on the first attribute information and the second attribute information is received from the power supply equipment, charging is performed based on the first charging parameter.
[0242] In some embodiments, the third charging module 801 is configured as follows:
[0243] In response to the establishment of a charging connection between the charging device and the power supply device, the device receives the first charging parameters broadcast by the power supply device.
[0244] In response to receiving the first charging parameters broadcast by the power supply equipment, a second charging request is generated based on the first charging parameters and sent to the power supply equipment; the second charging request is used to request the power supply equipment to charge the charging equipment using the first charging parameters;
[0245] When the power supply equipment receives a second charging request and determines the first charging parameter as the current charging parameter, it performs charging based on the first charging parameter.
[0246] In some embodiments, the fourth charging module 803 is further configured to:
[0247] The power supply equipment sends authentication information to the power supply equipment so that the power supply equipment can authenticate the charging equipment based on the authentication information and obtain the authentication result; wherein, the authentication information includes at least the device identifier of the charging equipment, and the authentication result is used to characterize the device type of the charging equipment.
[0248] 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.
[0249] This disclosure also provides an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to perform the charging method described in the above embodiments.
[0250] Figure 9 This is a block diagram of an electronic device 900 according to an exemplary embodiment.
[0251] Reference Figure 9 The electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.
[0252] Processing component 902 typically controls the overall operation of electronic device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.
[0253] Memory 904 is configured to store various types of data to support the operation of electronic device 900. Examples of this data include instructions for any application or method operating on electronic device 900, contact data, phonebook data, messages, pictures, videos, etc. Memory 904 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.
[0254] Power supply component 906 provides power to various components of electronic device 900. Power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 900.
[0255] Multimedia component 908 includes a screen that provides an output interface between the electronic device 900 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 the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the 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.
[0256] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when electronic device 900 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 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
[0257] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0258] Sensor assembly 914 includes one or more sensors for providing state assessments of various aspects of electronic device 900. For example, sensor assembly 914 can detect the on / off state of electronic device 900, the relative positioning of components such as the display and keypad of electronic device 900, changes in position of electronic device 900 or a component of electronic device 900, the presence or absence of user contact with electronic device 900, orientation or acceleration / deceleration of electronic device 900, and temperature changes of electronic device 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0259] Communication component 916 is configured to facilitate wired or wireless communication between electronic device 900 and other devices. Electronic device 900 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 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) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0260] In an exemplary embodiment, the electronic device 900 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 to perform the methods described above.
[0261] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, which can be executed by a processor 920 of an electronic device 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0262] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a charging method provided by an exemplary embodiment of this disclosure.
[0263] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the charging method described in the above embodiments.
[0264] 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 application 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 following claims.
[0265] 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: In response to the current charging parameters being the first charging parameters, the charging device is charged using the first charging parameters; Based on the first attribute information and the second attribute information, the current charging parameter is switched from the first charging parameter to the second charging parameter; the first attribute information includes parameters related to the battery of the power supply device, the second attribute information includes parameters related to the battery of the charging device, and the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter; The charging device is charged using the second charging parameters.
2. The charging method according to claim 1, characterized in that, The step of switching the current charging parameters from the first charging parameters to the second charging parameters based on the first attribute information and the second attribute information includes: Based on the first attribute information and the second attribute information, the charging parameter information is broadcast, and the charging parameter information includes the second charging parameter. In response to receiving a first charging request from the charging device, the current charging parameters are switched from the first charging parameters to the second charging parameters; the first charging request is a charging request generated by the charging device based on the second charging parameters after receiving the charging parameter information, and the first charging request is used to request that the charging device be charged using the second charging parameters.
3. The charging method according to claim 2, characterized in that, The charging parameter information also includes the first charging parameter, and the method further includes: In response to receiving a second charging request from the charging device, the charging device continues to be charged using the first charging parameters; the second charging request is a charging request generated by the charging device based on the first charging parameters after receiving the charging parameter information, and the second charging request is used to request that the charging device be charged using the first charging parameters.
4. The charging method according to claim 2, characterized in that, The step of broadcasting charging parameter information based on the first attribute information and the second attribute information includes: In response to the first attribute information satisfying a first condition and the second attribute information satisfying a second condition, the charging parameter information is broadcast; the first attribute information satisfying the first condition is used to indicate that the parameters included in the first attribute information have reached a corresponding first threshold, and the second attribute information satisfying the second condition is used to indicate that the parameters included in the second attribute information have reached a corresponding second threshold.
5. The charging method according to claim 4, characterized in that, The method further includes: Obtain the authentication information of the charging device; the authentication information includes at least the device identifier of the charging device. The charging device is authenticated based on the authentication information to obtain an authentication result; the authentication result is used to characterize the device type of the charging device. Based on the authentication results, the first threshold and the second threshold are determined.
6. The charging method according to claim 2, characterized in that, Before broadcasting the charging parameter information, the method further includes: Perform a soft reset; the soft reset is used to re-establish power transmission communication between the power supply device and the charging device. The broadcast charging parameter information includes: Upon completion of the soft reset, the charging parameter information is broadcast.
7. The charging method according to claim 1, characterized in that, The first attribute information also includes the temperature parameter of the power supply device, the parameters related to the battery of the power supply device include at least the battery parameters of the power supply device, the parameters related to the battery of the charging device include at least the battery parameters of the charging device, and the battery parameters include at least one of the following: battery capacity parameter, battery voltage parameter, battery health parameter, and battery temperature parameter.
8. The charging method according to claim 1, characterized in that, The method further includes: At preset time intervals, the first attribute information and the second attribute information are obtained.
9. The charging method according to any one of claims 1-8, characterized in that, The step of charging the charging device using the first charging parameters includes: The charging device is charged using the first charging parameters and a boost circuit.
10. The charging method according to any one of claims 1-8, characterized in that, The step of charging the charging device using the second charging parameters includes: The charging device is charged using a second charging parameter via a charge pump circuit.
11. A charging method, characterized in that, include: When the current charging parameters of the power supply equipment are the first charging parameters, charging is performed based on the first charging parameters; Receive charging parameter information broadcast by the power supply equipment based on the first attribute information and the second attribute information; The charging parameter information includes a second charging parameter, the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter, the first attribute information includes parameters related to the battery of the power supply device, and the second attribute information includes parameters related to the battery of the charging device. Based on the second charging parameter, a first charging request is generated and sent to the power supply device, so that the power supply device responds to the first charging request and switches the current charging parameter from the first charging parameter to the second charging parameter; The first charging request is used to request the power supply device to charge the charging device using the second charging parameters; When the current charging parameter is the second charging parameter, charging is performed based on the second charging parameter.
12. The charging method according to claim 11, characterized in that, The charging parameter information also includes the first charging parameter, and the method further includes: Based on the first charging parameters, a second charging request is generated and sent to the power supply device; the second charging request is used to request the power supply device to charge the charging device using the first charging parameters; If the power supply device receives the second charging request and continues to charge the charging device using the first charging parameters, charging is performed based on the first charging parameters.
13. The charging method according to claim 11, characterized in that, The method further includes: The power supply device sends authentication information to the power supply device so that the power supply device can authenticate the charging device based on the authentication information and obtain an authentication result; wherein, the authentication information includes at least the device identifier of the charging device, and the authentication result is used to characterize the device type of the charging device.
14. A charging device, characterized in that, include: The first charging module is configured to charge the charging device using the first charging parameter in response to the current charging parameter. The processing module is configured to switch the current charging parameter from the first charging parameter to the second charging parameter based on the first attribute information and the second attribute information; the first attribute information includes parameters related to the battery of the power supply device, the second attribute information includes parameters related to the battery of the charging device, and the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter. The second charging module is configured to charge the charging device using the second charging parameters.
15. A charging device, characterized in that, include: The third charging module is configured to charge the power supply device based on the first charging parameter when the current charging parameter of the power supply device is the first charging parameter. The transceiver module is configured to receive charging parameter information broadcast by the power supply device based on first attribute information and second attribute information; The charging parameter information includes a second charging parameter, the charging power corresponding to the second charging parameter is greater than the charging power corresponding to the first charging parameter, the first attribute information includes parameters related to the battery of the power supply device, and the second attribute information includes parameters related to the battery of the charging device. The transceiver module is further configured to generate a first charging request based on the second charging parameter and send the first charging request to the power supply device, so that the power supply device responds to the first charging request and switches the current charging parameter from the first charging parameter to the second charging parameter; The first charging request is used to request the power supply device to charge the charging device using the second charging parameters; The fourth charging module is configured to charge based on the second charging parameter when the current charging parameter is the second charging parameter.
16. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the charging method as described in any one of claims 1-10 or the charging method as described in any one of claims 11-13.
17. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the charging method as described in any one of claims 1-10 or the charging method as described in any one of claims 11-13.
18. A computer program product, characterized in that, It includes a computer program, which, when executed by a processor, implements the charging method as described in any one of claims 1-10 or performs the charging method as described in any one of claims 11-13.