Charging control method and mobile power supply
By detecting device connection status and power consumption data, intelligent charging and discharging mode management between mobile devices is achieved, solving the problem of power resource waste under the one-way charging mechanism and improving power utilization efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2026-06-16
AI Technical Summary
In existing technologies, mobile devices use a one-way charging mechanism, which prevents the effective recycling of electrical resources, reducing power utilization efficiency and user flexibility and convenience.
By detecting the device connection status, determining the charging and discharging mode based on power consumption data, and obtaining the device's charging curve to accurately adjust the output power, bidirectional power transmission and intelligent power management between devices are achieved.
It improves energy efficiency, enhances user experience and device flexibility, avoids energy waste and device damage, and ensures the stability and safety of the charging process.
Smart Images

Figure CN122225627A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mobile power supplies, and more particularly to charging control methods and mobile power supplies. Background Technology
[0002] In related technologies, mobile devices often use a one-way charging mechanism to transfer power. However, the one-way charging mechanism limits the ability to share power between devices, resulting in the inability to effectively circulate power resources among multiple devices. This limitation not only reduces power utilization efficiency, but also makes users lack flexibility and convenience when facing scenarios where multiple devices need to be charged at the same time, thus affecting the user experience. Summary of the Invention
[0003] This application provides a charging control method and a mobile power supply, aiming to improve the efficiency of electrical energy utilization. The technical solution is as follows:
[0004] In a first aspect, this application provides a charging control method, comprising: if a first device is detected to be connected to a second device, determining the charging and discharging mode of the first device based on the operating data of the first device; if the charging and discharging mode is a discharging mode, acquiring the charging curve of the second device, determining the target output power of the first device based on the charging curve, wherein the charging curve is used to determine the target charging power corresponding to the current charging stage of the second device; and controlling the first device to output electrical energy to the second device based on the target output power.
[0005] In the above technical solution, intelligent power management is achieved by detecting the connection status between the first and second devices and determining the charging / discharging mode of the first device based on the connection status. When the charging / discharging mode is discharging mode, the charging curve of the second device is further acquired. Based on this charging curve, the target output power of the first device can be accurately determined, thereby ensuring that the first device can output power according to the actual needs of the second device during the discharging process, thus improving power utilization efficiency and enhancing the user experience.
[0006] In combination with the first aspect and the above implementation methods, in some possible implementation methods, determining the charging and discharging mode of the first device includes: acquiring first power consumption data of the first device and second power consumption data of the second device; and determining the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data.
[0007] In combination with the first aspect and the above implementation methods, in some possible implementation methods, determining the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data includes: if the first power consumption value is less than the second power consumption value, then determining the charging and discharging mode of the first device as a discharging mode; if the first power consumption value is greater than the second power consumption value, then determining the charging and discharging mode as a charging mode.
[0008] In combination with the first aspect and the above implementation methods, in some possible implementation methods, determining the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data includes: if the first remaining power is greater than the second remaining power, then the charging and discharging mode of the first device is determined to be the discharging mode; if the first remaining power is less than the second remaining power, then the charging and discharging mode is determined to be the charging mode.
[0009] In combination with the first aspect and the above implementation methods, in some possible implementation methods, determining the charging and discharging mode of the first device includes: receiving a mode control command triggered by the user, and then determining the charging and discharging mode of the first device based on the mode control command.
[0010] In the aforementioned technical solution, the charging and discharging states are automatically adjusted by acquiring the actual energy consumption of the devices, avoiding the tediousness of manual settings. Secondly, automatic mode adjustment helps optimize energy distribution, ensuring efficient use of electrical energy and reducing waste. Furthermore, when the first device has low power consumption and high remaining battery power, it automatically switches to discharging mode to fully utilize its remaining energy to provide power support for other devices; conversely, when power consumption is high and battery power is insufficient, it switches to charging mode to ensure its own energy supply. Simultaneously, the system allows users to issue mode control commands by triggering physical buttons or interactive applications, increasing operational flexibility and convenience, thereby enhancing the user experience.
[0011] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, if the first device is in discharge mode, the method further includes: if a triggered mode switching command is detected, sending a level pull-down request to the second device based on the connection with the second device; if no response signal is received from the second device within a preset time, controlling the first device to maintain the discharge mode; if a response signal is received within a preset time, controlling the first device to switch from the discharge mode to the charging mode.
[0012] In the above technical solution, intelligent charging and discharging mode management can be achieved by detecting the user-triggered mode switching command and sending a level pull-down request to the second device based on the connection with the second device. Furthermore, if no response signal is received from the second device within a preset time, the first device is controlled to maintain the current charging mode to ensure the stability and safety of the charging process. If a response signal is successfully received within a specified time, the first device is promptly controlled to switch from charging mode to discharging mode to meet the user's actual needs. This not only improves the flexibility and response speed of the device but also avoids energy waste and equipment damage caused by frequent switching. At the same time, the preset time limit further enhances system stability.
[0013] In combination with the first aspect and the above implementation methods, in some possible implementation methods, obtaining the charging curve of the second device and determining the target output power of the first device based on the charging curve includes: if the second device is a newly added device, generating the charging curve of the second device based on the historical working data of the second device; and determining the target output power of the first device based on the charging curve.
[0014] Combining the first aspect and the above-described implementation methods, in some possible implementations, generating a charging curve for the second device based on its historical operating data includes: obtaining the initial charging power of the second device and the power consumption values of the second device in each power range; determining the power compensation value corresponding to each power range based on the power consumption values; and obtaining the target charging power for each power range based on the power compensation value and the initial charging power. The charging curve for the second device is then generated based on each power range and the target charging power corresponding to each power range.
[0015] In the above technical solution, by obtaining the initial charging power of the second device and the power consumption value corresponding to each power range, the needs of the device at different charging stages can be accurately determined. By determining the power compensation value required for each power range through the power consumption value, the charging efficiency of the device can be improved. By combining the initial charging power and the power compensation value, the target charging power of each power range can be determined. By integrating each power range and its corresponding target charging power, the charging curve of the device can be generated. This enables precise adjustment of the output power according to the actual needs of the device, which improves charging efficiency and extends the battery life of the device.
[0016] In combination with the first aspect and the above implementation methods, in some possible implementation methods, determining the target output power of the first device based on the charging curve includes: determining the power range corresponding to the second remaining power of the second device in the charging curve, and determining the target charging power corresponding to the power range; and determining the target output power of the first device based on the target charging power.
[0017] In the above technical solution, by pre-calculating the correspondence between each power range and the target charging power in the charging curve, the target charging power that matches the second remaining power can be quickly found and the charging equipment can be controlled to output power at the target charging power, thereby determining the charging efficiency of the charging equipment. This not only improves the efficiency and stability of the charging process, but also avoids energy waste or equipment damage caused by power mismatch, thereby further enhancing the user experience.
[0018] In combination with the first aspect and the above implementation methods, in some possible implementation methods, controlling the first device to output electrical energy to the second device based on the target output power includes: obtaining the initial output power of the first device; if the initial output power is greater than the target output power, reducing the initial output power to the target output power; if the initial output power is less than the target output power, increasing the initial output power to the target output power; and controlling the first device to output electrical energy to the second device based on the target output power.
[0019] In the above technical solution, by acquiring the initial output power of the first device and comparing it with the target output power, the power level of the electrical energy output can be intelligently adjusted. If the initial output power is higher than the target value, the power is automatically reduced to the target level to avoid energy waste and potential equipment damage risks; conversely, if the initial output power is lower than the target value, the power is increased to the target level to ensure that the second device can obtain sufficient electrical energy for efficient charging. By controlling the first device to output electrical energy based on the adjusted target output power, not only is the efficiency and stability of the charging process improved, but also the accurate transmission and utilization of electrical energy is ensured, thereby further enhancing the user experience.
[0020] Secondly, this application provides a portable power bank, comprising:
[0021] The mode determination unit is used to determine the charging and discharging mode of the first device based on the operating data of the first device if the first device is detected to be connected to the second device.
[0022] The power determination unit is used to obtain the charging curve of the second device if the charging and discharging mode is the discharging mode, and determine the target output power of the first device based on the charging curve. The charging curve is used to determine the target charging power corresponding to the current charging stage of the second device.
[0023] The power output unit is used to control the first device to output electrical energy to the second device based on the target output power.
[0024] Thirdly, this application provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the charging control method as described above.
[0025] Fourthly, this application provides a computer-readable storage medium storing a computer program, which, when executed, implements the charging control method as described above. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a system architecture diagram of a charging control method provided in an embodiment of this application;
[0028] Figure 2 This is a schematic flowchart of a charging control method provided in an embodiment of this application;
[0029] Figure 3 This is a schematic flowchart of a charging control method provided in an embodiment of this application;
[0030] Figure 4 This is a schematic flowchart of a charging control method provided in an embodiment of this application;
[0031] Figure 5 This is a schematic flowchart of a charging control method provided in an embodiment of this application;
[0032] Figure 6 This is a schematic diagram of a charging control method provided in an embodiment of this application;
[0033] Figure 7 This is a schematic flowchart of a charging control method provided in an embodiment of this application;
[0034] Figure 8 This is a schematic flowchart of a charging control method provided in an embodiment of this application;
[0035] Figure 9 This is a schematic diagram of the structure of a mobile power supply provided in an embodiment of this application;
[0036] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0037] To make the features and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0038] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0039] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0040] In related technologies, unidirectional charging mechanisms are commonly used between mobile devices. However, this mechanism limits the ability to share power between devices. Because electricity can only flow in one direction, it cannot be effectively recycled among multiple devices, leading to a waste of power resources. Furthermore, unidirectional charging mechanisms reduce power utilization efficiency. In actual use, some devices often have excess power while others have insufficient power. The unidirectional mechanism cannot optimize power allocation, preventing users from flexibly utilizing existing power for cross-device charging, thus impacting the user experience.
[0041] To improve the power efficiency of different devices, this application provides a charging control method, which can be executed by a power bank or a mobile device. Detailed descriptions are provided below. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments. Please refer to... Figure 1 , Figure 1 This is a system architecture diagram of a charging control method provided in an embodiment of this application. The specific flow of the charging control method is as follows:
[0042] Figure 1 This is a system architecture diagram of a charging control method provided in an embodiment of this application.
[0043] like Figure 1 As shown, the execution module in this solution includes multiple user devices. The types of user devices include, but are not limited to, mobile devices that support power charging and discharging, such as power banks, mobile phones, computers, and smart distribution devices. The number of user devices can be multiple, and no specific limitation is made here.
[0044] In this embodiment, multiple user devices can be connected via a Type-C interface and the PC (Personal Computer Interface) protocol, and information and command interactions can be achieved through the interactive application.
[0045] User devices utilize Power Delivery (PD) to achieve bidirectional power transfer between similar and dissimilar devices, providing varying power outputs based on user needs for the power bank or device. Simultaneously, it can adjust the power flow between power banks or devices in real time to achieve optimal energy distribution, thus enhancing the overall charging experience.
[0046] Specifically, the device with the lowest power consumption and the largest remaining power is selected as the first device from among the user devices, and the charging and discharging mode of the first device is set to the discharging mode. Then, among the user devices connected to the first device, the user device with the highest power consumption or the smallest remaining power is selected as the second device, and the charging and discharging mode of the second device is set to the charging mode. At this time, power can be output from the first device to the second device.
[0047] Meanwhile, users can control the charging and discharging mode of the first device by triggering the mode switching physical button of the first device or by sending a control signal to the first device through the main control device. When the charging and discharging mode of the first device is the discharging mode, the user device with the smallest remaining power is found among the user devices connected to the first device and identified as the second device. At this time, power can be output from the first device to the second device. The device types of the first device and the second device can include mobile devices that support power charging and discharging, such as power banks, mobile phones, computers, and smart distribution devices, which are not limited here.
[0048] To improve the energy utilization rate among devices, in this embodiment, the power compensation value required by each device in different power ranges will be determined based on the power consumption value of each device in different power ranges. This takes into account the energy consumption differences of each device in different power states. By combining the initial charging power of each device with the power compensation value, the target charging power corresponding to each charging stage when each device is in charging mode will be determined. This target charging power will be determined as the target output power of the device connected to it and in discharging mode, so as to correct the initial charging power of the device in discharging mode and achieve optimal power output.
[0049] based on Figure 1 The system architecture diagram shown below will be used in conjunction with... Figures 2-7 This application provides a detailed description of a charging control method provided in its embodiments.
[0050] Based on the above, this application proposes a charging control method. Please refer to [link / reference]. Figure 2 , Figure 2 This is a schematic flowchart of a charging control method provided in an embodiment of this application. Figure 2 As shown, the method in this application embodiment may include the following steps S101-S103.
[0051] S101, if the first device is detected to be connected to the second device, the charging and discharging mode of the first device is determined based on the operating data of the first device.
[0052] In this embodiment, the first device and the second device are connected via a wired connection through a Type-C interface or a PC protocol. Both the first and second devices have a preset interactive application, which can achieve wireless communication between the first and second devices via Bluetooth. When the connection between the first and second devices is detected, the operating data of the first and second devices can be obtained through wired or wireless communication, and the power consumption data of the first and second devices can be further extracted from the operating data.
[0053] Specifically, the first device acquires its own power consumption data and records it as the first power consumption data. Since the first device and the second device have established a communication connection, the first device can acquire the power consumption data of the second device and record it as the second power consumption data. The first power consumption data includes the first power consumption value and the first remaining power of the first device, and the second power consumption data includes the second power consumption value and the second remaining power of the second device.
[0054] After obtaining the first power consumption data and the second power consumption data, the charging and discharging mode of the first device can be determined by comparing the first power consumption value of the first device and the second power consumption value of the second device, or by comparing the first remaining power of the first device and the second remaining power of the second device, or by combining the power consumption value and the remaining power to determine the charging and discharging mode of the first device. The specific implementation method can be set according to the actual needs of the user and is not specifically limited here.
[0055] When determining the charging / discharging mode of the first device by comparing the first power consumption value of the first device with the second power consumption value of the second device, if the first power consumption value is less than the second power consumption value, it indicates that the second device is in a high-power usage state, and the charging / discharging mode of the first device is determined to be the charging mode. If the first power consumption value is greater than the second power consumption value, it indicates that the first device is in a low-power usage state, and the charging / discharging mode of the first device is determined to be the discharging mode.
[0056] When comparing the first remaining power of the first device with the second remaining power of the second device, if the first remaining power is greater than the second remaining power, the charging / discharging mode of the first device is determined to be the discharging mode; if the first remaining power is less than the second remaining power, the charging / discharging mode of the first device is determined to be the charging mode.
[0057] When determining the charging and discharging mode of the first device by combining power consumption value and remaining power, the order of determining power consumption value and remaining power can be set according to the actual scenario, and is not specifically limited here.
[0058] For example, firstly, it is determined whether the first power consumption value is less than or greater than the second power consumption value, and then it is determined whether the first remaining battery power is greater than or less than the second remaining battery power. If the first power consumption value is less than the second power consumption value and the first remaining battery power is greater than the second remaining battery power, then the charging / discharging mode of the first device is determined to be the discharging mode. If the first power consumption value is greater than the second power consumption value and the first remaining battery power is less than the second remaining battery power, then the charging / discharging mode of the first device is determined to be the charging mode.
[0059] In one feasible embodiment, when the first power consumption value is less than the second power consumption value and the first remaining power is less than the second remaining power, it is further detected whether the power value of the first remaining power is lower than a preset power threshold. If it is lower than the preset power threshold, the charging and discharging mode of the first device is determined to be the charging mode.
[0060] For example, the first device has a first power consumption of 5 watts and a first remaining battery level of 10%; the second device has a second power consumption of 10 watts and a second remaining battery level of 20%. In this case, the first power consumption (5 watts) is less than the second power consumption (10 watts) and the first remaining battery level (10%) is less than the second remaining battery level (20%). Therefore, it is further detected whether the first remaining battery level of the first device is lower than a preset battery level threshold, assuming that the threshold is 15%. Since the remaining battery level of the first device (10%) is lower than the preset battery level threshold (15%), it can be determined that the charging / discharging mode of the first device is a charging mode.
[0061] Meanwhile, users can manually control the charging and discharging modes of the first or second device by triggering the physical mode switching button of the first or second device or by issuing mode control commands wirelessly through a preset interactive application.
[0062] S102, if the charging / discharging mode is the discharging mode, then obtain the charging curve of the second device, and determine the target output power of the first device based on the charging curve.
[0063] In this embodiment, the charging curve is used to describe the target charging power required by the second device in different power ranges.
[0064] Specifically, the initial charging power of the second device and the power consumption values corresponding to each power level range are obtained. The initial charging power is the initial power when the first device begins charging the second device, and the power consumption values represent the power consumed by the second device during charging at different power levels. Based on the power consumption values, the power levels corresponding to different power levels of the second device are determined, and the power compensation value required for each charging stage of the second device within that power level range is determined. The power compensation value for each power level range is then combined with the initial charging power to determine the target charging power for each charging stage of the second device, thereby generating the charging curve for the second device.
[0065] In real-world scenarios, when a second device connects to a first device and prepares to charge, the first device determines the remaining battery level of the second device based on the charging curve and sets a corresponding target charging power. This target charging power is then determined as the first device's target output power, ensuring that the first device can accurately output power according to the second device's actual needs. This not only improves charging efficiency and battery life but also provides users with a more convenient and safer charging experience.
[0066] If the first device is in discharge mode, the second device needs to be switched from discharge mode to charging mode. During this process, the first device will send a request to the second device via wired or wireless communication to control the second device to switch from discharge mode to charging mode. If no response signal is received from the second device within a preset time, it means that the second device cannot switch from discharge mode to charging mode. In this case, the first device will be controlled to maintain charging mode. If a response signal is received from the second device within a preset time, it means that the second device has switched from discharge mode to charging mode. In this case, the first device will output power to the second device in discharge mode.
[0067] S103, control the first device to output electrical energy to the second device based on the target output power.
[0068] In this embodiment of the application, when the first device determines the target charging power through the above S102, it needs to adjust the initial charging power according to the power difference between the initial charging power and the target charging power to ensure that the first device can maintain the target charging power to output electrical energy to the second device.
[0069] Specifically, the initial output power of the first device is obtained and compared with the target output power. If the initial output power is higher than the target output power, the first device is controlled to reduce its output power to the target output power; conversely, if the initial output power is lower than the target output power, the output power is increased to reach the target output power. In this way, the electrical power output from the first device to the second device can be precisely controlled, ensuring that the output power of the first device remains consistent with the target output power, thereby achieving efficient and safe power transmission.
[0070] As shown above, intelligent power management is achieved by detecting the connection status between the first and second devices and determining the charging / discharging mode of the first device based on the connection status. When the charging / discharging mode is discharging mode, the charging curve of the second device is further obtained. Based on this charging curve, the target output power of the first device can be accurately determined, thereby ensuring that the first device can output power according to the actual needs of the second device during the discharging process, thus improving power utilization efficiency and enhancing the user experience.
[0071] Because device power consumption and remaining battery level fluctuate during actual use, timely charging is necessary for devices with high power consumption or low battery levels. Please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a schematic flowchart of a charging control method provided in an embodiment of this application. Figure 3 As shown, the method in this application embodiment may include the following steps S201-S208.
[0072] S201, determine the charging and discharging mode of the first device based on the operating data of the first device.
[0073] In this embodiment, the specific execution flow of S201 is the same as that of S101 above, and will not be repeated here.
[0074] S202, Obtain the first power consumption data of the first device and the second power consumption data of the second device from the operation data.
[0075] Specifically, the first power consumption data includes the first power consumption value and the first remaining power of the first device, and the second power consumption data includes the second power consumption value and the second remaining power of the second device.
[0076] For example, the first device has a first power consumption of 1.2 watts per hour and a first remaining battery level of 30%, and a second power consumption of 2.4 watts per hour and a second remaining battery level of 20%.
[0077] S203, determine the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data.
[0078] In this embodiment of the application, after obtaining the first power consumption data and the second power consumption data, the charging and discharging mode of the first device can be determined by comparing the first power consumption value of the first device and the second power consumption value of the second device, or by comparing the first remaining power of the first device and the second remaining power of the second device, or by combining the power consumption value and the remaining power to determine the charging and discharging mode of the first device. The specific implementation method can be set according to the actual needs of the user and is not specifically limited here.
[0079] S204, if the first power consumption value is less than the second power consumption value, then the charging and discharging mode of the first device is determined to be the discharging mode.
[0080] S205, if the first power consumption value is greater than the second power consumption value, then the charging / discharging mode is determined to be the charging mode.
[0081] Specifically, in S204-S205, the first power consumption value is the power consumed by the first device within a preset unit time, and the second power consumption value is the power consumed by the second device within a preset unit time.
[0082] For example, if the first power consumption of the first device is 1.2 watts and the second power consumption of the second device is 2.4 watts, then since the first power consumption is less than the second power consumption, the charging / discharging mode of the first device is determined to be the discharging mode. As another example, if the first power consumption of the first device is 2.4 watts and the second power consumption of the second device is 1.2 watts, then since the first power consumption is greater than the second power consumption, the charging / discharging mode of the first device is determined to be the charging mode.
[0083] S206, if the first remaining power is greater than the second remaining power, then the charging and discharging mode of the first device is determined to be the discharging mode.
[0084] S207, if the first remaining power is less than the second remaining power, then the charging / discharging mode is determined to be the charging mode.
[0085] Specifically, in S206-S207, the first remaining power is the real-time power of the first device, and the second remaining power is the real-time power of the second device.
[0086] For example, if the first remaining battery level is 80% and the second remaining battery level is 10%, since the first remaining battery level is greater than the second remaining battery level, the charging / discharging mode of the first device is determined to be the discharging mode. As another example, if the first remaining battery level is 20% and the second remaining battery level is 70%, since the first remaining battery level is less than the second remaining battery level, the charging / discharging mode of the first device is determined to be the charging mode.
[0087] Optionally, the charging and discharging mode of the first device can be determined by combining power consumption value and remaining power.
[0088] For example, the first device has a first power consumption value of 3 watts and a first remaining power of 40%, and the second device has a second power consumption value of 1 watt and a second remaining power of 10%. Since the first power consumption value is greater than the second power consumption value, and the first remaining power of the first device is also higher than the second remaining power of the second device, the charging and discharging mode of the first device is determined to be the discharging mode.
[0089] S208, upon receiving a mode control command triggered by the user, the charging / discharging mode of the first device is determined based on the mode control command.
[0090] In this embodiment, a user can select the charging / discharging mode of a first device or a second device through an interactive application of the master user equipment. The master user equipment refers to a device that plays a controlling and coordinating role in a scenario involving multiple user devices interacting. In this embodiment, the master user equipment specifically refers to a user equipment where the user selects and manages the charging / discharging modes of other devices (such as the first or second device) through an interactive application. This master user equipment has control functions, enabling the user to operate within the device mode selection interface, thereby controlling the charging / discharging modes of other user devices.
[0091] After the user selects the charging mode of the first or second device, a corresponding mode control command will be generated and sent to the first or second device via Bluetooth communication by the interactive application of the main control user device, thereby realizing remote wireless control of the charging and discharging mode switching of the first or second device.
[0092] Since both the first and second devices are equipped with Bluetooth communication modules, after receiving the mode control command, the first or second device will exchange its real-time data, such as charging power, battery level, and device model, with other terminals via Bluetooth communication.
[0093] Specifically, when the user presses the mode switching physical button of the first or second device, a corresponding mode control command will be generated. After receiving the mode control command, the first or second device will switch its own charging and discharging mode according to the corresponding mode control command.
[0094] For example, when the first device and the second device are electrically connected and the first device's initial charging / discharging mode is either the discharging mode or the charging mode, the user triggers the physical button for mode switching on the first device or selects the charging / discharging mode of the first device as the charging mode through the interactive application of the first device. At this time, the mode control module of the first device switches the first device to the charging mode and sends a pull-down request to the second device to switch the second device from the charging mode to the discharging mode.
[0095] If a user issues a mode control command through the application of the main control user device, the mode switching command will be sent to the mode control module of the first or second device via Bluetooth communication to switch the first or second device to the corresponding charging and discharging mode.
[0096] For example, the master user device is a mobile phone. The user remotely controls the charging and discharging modes of the first and second devices via Bluetooth through an interactive application on the mobile phone. When the user finds that the remaining power of the first device is lower than that of the second device, the user selects the charging and discharging mode of the first device as charging mode and the charging and discharging mode of the second device as discharging mode in the device mode selection interface of the interactive application. At this time, a mode control command is generated and sent to the first and second devices via Bluetooth communication. The first device will then start to output power to the second device, and during the power output, the real-time data of the first and second devices will be shared in real time via Bluetooth communication.
[0097] As shown above, automatically adjusting the charging and discharging state by acquiring the actual energy consumption of the devices avoids the tediousness of manual settings. Secondly, automatic mode adjustment helps optimize energy distribution, ensuring efficient use of electrical energy and reducing waste. Furthermore, when the first device has low power consumption and high remaining battery power, it automatically switches to discharging mode to fully utilize its remaining energy to provide power support for other devices; conversely, when power consumption is high and battery power is insufficient, it switches to charging mode to ensure its own energy supply. Simultaneously, the system also allows users to issue mode control commands by triggering physical buttons or interactive applications, increasing operational flexibility and convenience, thereby enhancing the user experience.
[0098] Because some devices in real-world scenarios do not support bidirectional mode switching, timely device testing is necessary to ensure the stability of the charging process. Please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic flowchart of a charging control method provided in an embodiment of this application. Figure 4 As shown, the method in this application embodiment may include the following steps S301-S304.
[0099] S301, upon receiving a mode control command triggered by the user, the charging and discharging mode of the first device is determined based on the mode control command.
[0100] For details on the specific execution process of S301, please refer to step S208 above, which will not be repeated here.
[0101] S302, if the triggered mode switching command is detected, a pull-down request is sent to the second device based on the connection with the second device.
[0102] In this embodiment of the application, the mode switching command is a mode switching command triggered by the user according to actual usage needs.
[0103] Specifically, when the mode switching command is a discharge mode switching command, the charging / discharging mode of the first device is switched to the discharge mode. At this time, the mode conversion module of the first device will first detect whether a circuit connection has been established with other devices. If a circuit connection has been established with other devices, the circuits of other devices will be disconnected, and a high-level signal will be generated and sent to the mode conversion module to keep the mode conversion module in a high-level state.
[0104] When the mode conversion module of the first device is at a high level, a pull-down request is sent to the second device through a bidirectional signal line. The pull-down request is used to control the mode conversion module of the second device to be at a low level so that the second device enters the charging mode.
[0105] S303: If no response signal is received from the second device within a preset time, the first device is controlled to maintain the charging mode.
[0106] In this embodiment, the preset time can be set according to the actual usage scenario and is not specifically limited here. The response signal is used to indicate whether the mode conversion module of the second device is in a low-level state.
[0107] For example, the preset time is 5 seconds. If no response signal is received from the second device within 5 seconds, it means that the second device does not support bidirectional mode switching. That is, the second device is in fixed discharge mode. At the same time, the first device is controlled to send a low-level signal to the mode switching module so that the first device is in a low-level state to the mode switching module. At this time, the first device will maintain the discharge mode.
[0108] S304 If a response signal is received within a preset time, the first device is controlled to switch from charging mode to discharging mode.
[0109] For example, if a response signal from the second device is successfully received within a 5-second timeframe, it indicates that the second device has a bidirectional mode switching function and its mode switching module has successfully switched to a low-level state, indicating that the second device is currently in charging mode. At this time, the first device outputs power to the second device based on the discharging mode.
[0110] As shown above, by detecting user-triggered mode switching commands and sending a pull-down request to the second device based on the connection, intelligent charging and discharging mode management can be achieved. Furthermore, if no response signal is received from the second device within a preset time, the first device is controlled to maintain its current charging mode, ensuring the stability and safety of the charging process. If a response signal is successfully received within a specified time, the first device is promptly controlled to switch from charging mode to discharging mode to meet the user's actual needs. This not only improves the flexibility and response speed of the device but also avoids energy waste and equipment damage caused by frequent switching. Simultaneously, the preset time limit further enhances system stability.
[0111] If the charging power during the charging process does not meet the device's operating conditions, it will damage the device's battery. Therefore, the charging power needs to be adjusted while the device is charging. Please refer to [link / reference]. Figure 5 , Figure 5 This is a schematic flowchart of a charging control method provided in an embodiment of this application. Figure 5 As shown, the method in this application embodiment may include the following steps S401-S406.
[0112] S401, If the second device is a newly added device, then the charging curve of the second device is generated based on the historical working data of the second device.
[0113] In this embodiment of the application, the historical working data is the historical power consumption data of the newly added terminal device, wherein the historical power consumption data includes historical power consumption value and historical charging power.
[0114] Specifically, based on the historical power consumption and charging power of the second terminal device in different historical power consumption ranges, the target charging power for the second terminal device in each power consumption range is determined, thereby generating a charging curve for the second terminal device. The charging curve indicates the appropriate charging power for the second terminal device in different power consumption ranges. The target charging power is the specific power value set for each power consumption range to achieve the desired charging effect. Each point on the charging curve corresponds to a power consumption range and its target charging power.
[0115] S402, determine the target output power of the first device based on the charging curve.
[0116] Specifically, please refer to step S102 above for S402, which will not be repeated here.
[0117] S403, obtain the initial charging power of the second device and the power consumption value of the second device in each power range.
[0118] In this embodiment of the application, the initial charging power is the initial power when the first device starts charging the second device, and the power consumption value represents the power consumed by the second device when charging at different power levels.
[0119] For example, the second device consumes 8 watts when the battery level is between 0% and 20%; 12 watts when the battery level is between 20% and 40%; and 9 watts when the battery level is between 40% and 80%.
[0120] S404 determines the power compensation value corresponding to each power consumption range based on the power consumption value.
[0121] S405, based on the power compensation value and the initial charging power, obtains the target charging power for each power range.
[0122] Specifically, in S404-S405, the initial charging power is the initial power output value received by the second device from the first device.
[0123] For example, when the battery level is between 0% and 20%, the power consumption of the second device is 8 watts. According to the power compensation algorithm, the required power compensation value for this range is 2 watts. At this time, the initial charging power is 10 watts, so the target charging power for the battery level range of 0% to 20% is determined to be 12 watts.
[0124] S406, Based on each power range and the target charging power corresponding to each power range, generate the charging curve of the second device.
[0125] For example, when the second device's battery level is between 0% and 20%, its power consumption is 8 watts, and the required power compensation is 2 watts. Combined with the initial charging power of 10 watts, the target charging power for the 0% to 20% battery level range is 12 watts. Similarly, when the battery level is between 20% and 40%, the second device's power consumption is 12 watts, and the power compensation is 3 watts; therefore, the target charging power for the 20% to 40% battery level range is 13 watts. This process continues to obtain the target charging power for each battery level range. Finally, these target charging powers are combined with the corresponding battery level ranges to generate the charging curve for the second terminal device. This charging curve is used to match the charging stage of the second device while it is charging to obtain the target charging power corresponding to the current charging stage. The charging stage of the second device is determined based on the battery level range corresponding to the current battery level of the second device.
[0126] Please refer to the following: Figure 6 , Figure 6This is a schematic diagram illustrating a charging control method provided in an embodiment of this application. Figure 6 As shown, the target output power is 120 watts when the battery level is 0% to 30%, 120 watts to 100 watts when the battery level is 30% to 50%, 100 watts to 80 watts when the battery level is 50% to 80%, and 80 watts to 40 watts when the battery level is 80% to 100%.
[0127] Optionally, the system monitors the temperature changes of the second device in real time during charging and compares the monitored temperature data with multiple pre-set temperature thresholds. If the current temperature exceeds the upper limit of the safe temperature, the system controls the first device to significantly reduce its charging power to prevent overheating and potential safety hazards. If the temperature is within the warning range, the system controls the first device to moderately reduce its charging power to slow the temperature rise and ensure a smooth charging process. When the temperature returns to the normal operating range, the system gradually adjusts the charging power according to actual needs, ensuring both charging efficiency and device safety. During this process, the system continuously collects relevant data on the operating temperature and power adjustment of the second device to optimize the adjustment strategy, thereby achieving intelligent adjustment of the charging temperature and charging power of the second device.
[0128] As shown above, by obtaining the initial charging power of the second device and the power consumption value corresponding to each power range, the device's needs at different charging stages can be accurately specified. By determining the power compensation value required for each power range through the power consumption value, the charging efficiency of the device can be improved. By combining the initial charging power and the power compensation value, the target charging power for each power range can be determined. By integrating each power range and its corresponding target charging power, the charging curve of the device can be generated. This enables precise adjustment of the output power according to the actual needs of the device, which improves charging efficiency and extends the battery life of the device.
[0129] If the charging power during the charging process does not meet the device's operating conditions, it will damage the device's battery. Therefore, the charging power needs to be adjusted while the device is charging. Please refer to [link / reference]. Figure 7 , Figure 7 This is a schematic flowchart of a charging control method provided in an embodiment of this application. Figure 7 As shown, the method in this application embodiment may include the following steps S501-S502.
[0130] S501, determine the power range corresponding to the second remaining power of the second device in the charging curve, and determine the target charging power corresponding to the power range.
[0131] S502, determine the target output power of the first device by setting the target charging power.
[0132] For example, in S501-S502, the second remaining power of the second device is 40%. The charging curve of the second device shows that the target output power corresponding to the power range of 30% to 50% is 120 watts to 100 watts. Since the second remaining power of the second device is 40% at this time, 120 watts to 100 watts is determined as the target charging power of the second device. The first device can further select a target charging power in the range of 120 watts to 100 watts according to the current operating temperature of the second device. For example, 110 watts can be determined as the target output power of the first device.
[0133] As can be seen from the above, by pre-calculating the correspondence between each power range and the target charging power in the charging curve, the target charging power that matches the second remaining power can be quickly found and the charging equipment can be controlled to output power at the target charging power. This determines the charging efficiency of the charging equipment, which not only improves the efficiency and stability of the charging process, but also avoids energy waste or equipment damage caused by power mismatch, thereby further enhancing the user experience.
[0134] Because a mismatch between the output power of the discharging device and the target output power will affect the charging efficiency of the charging device, it is necessary to adjust the output power of the discharging device in a timely manner. Please refer to [link / reference needed]. Figure 8 , Figure 8 This is a schematic flowchart of a charging control method provided in an embodiment of this application. Figure 8 As shown, the method in this application embodiment may include the following steps S601-S604.
[0135] S601, obtain the initial output power of the first device.
[0136] In this embodiment of the application, the initial output power of the first device is the initial power output by the first device to the second device.
[0137] For example, when the first device is in discharge mode and the second device is in charging mode, the first device is controlled to output power to the second device at a power of 20 watts, where 20 watts is the initial output power of the first device.
[0138] S602, if the initial output power is greater than the target output power, then reduce the initial output power to the target output power.
[0139] For example, the initial output power of the first device is 100 watts. At this time, it can be seen from the charging curve of the second device that the target output power of the second device is 80 watts. Since the initial output power is greater than the target output power, a power adjustment signal is sent to the power adjustment module of the first device to adjust the initial output power of 100 watts to the target output power of 80 watts.
[0140] S603: If the initial output power is less than the target output power, then increase the initial output power to the target output power.
[0141] For example, the initial output power of the first device is 20 watts. At this time, it can be seen from the charging curve of the second device that the target output power of the second device is 80 watts. Since the initial output power is less than the target output power, a power adjustment signal is sent to the power adjustment module of the first device to adjust the initial output power of 20 watts to the target output power of 80 watts.
[0142] S604 controls the first device to output electrical energy to the second device based on the target output power.
[0143] Specifically, please refer to step S103 above for step S604, which will not be repeated here.
[0144] S605, determine the power range of the second device based on the current power level of the second device.
[0145] S606, determine the charging stage corresponding to the second device when it is in the power range, and determine the target charging power corresponding to the charging stage from the charging curve.
[0146] Specifically, in steps S605-S606, the current battery level of the second device is used to determine its corresponding battery level range, and based on this range, the current charging stage of the second device is determined. Different battery levels correspond to different charging stages, and each stage requires a different charging power. Therefore, the ideal target charging power for this specific charging stage is found from the charging curve of the first device.
[0147] For example, if the second device currently has 30% battery, it is determined that it falls within the 20%-40% battery range, which corresponds to the fast charging phase. The target charging power for the fast charging phase is found to be 50 watts in the pre-generated charging curve. Therefore, this 50 watts will be used as the target charging power for the current phase to ensure that the charging process is both efficient and safe, while also considering battery life.
[0148] As shown above, by obtaining the initial output power of the first device and comparing it with the target output power, the power level of the electrical energy output can be intelligently adjusted. If the initial output power is higher than the target value, the power is automatically reduced to the target level to avoid energy waste and potential equipment damage risks; conversely, if the initial output power is lower than the target value, the power is increased to the target level to ensure that the second device can obtain sufficient electrical energy for efficient charging. By controlling the first device to output electrical energy based on the adjusted target output power, not only is the efficiency and stability of the charging process improved, but also the accurate transmission and utilization of electrical energy is ensured, thereby further enhancing the user experience. Furthermore, by accurately determining the energy range of the second device based on its current energy level, and then defining the charging stage based on this range, and obtaining the corresponding target charging power from the charging curve, precise charging control can be achieved, avoiding overcharging or undercharging, thereby effectively extending battery life. At the same time, matching appropriate target charging power according to different energy levels improves charging efficiency.
[0149] based on Figure 1 The system architecture will be discussed below. Figure 9 This application provides a detailed description of the portable power bank provided in its embodiments. It should be noted that... Figure 9 The mobile power supply in the present application is used to perform this application. Figures 2-8 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figures 2-8 In the embodiment shown, the power bank 700 may include a mode determination unit 701, a power determination unit 702, and a power output unit 703, as detailed below:
[0150] The mode determination unit 701 is used to determine the charging and discharging mode of the first device based on the operating data of the first device if the first device is detected to be connected to the second device.
[0151] The power determination unit 702 is used to obtain the charging curve of the second device if the charging and discharging mode is the discharging mode, and determine the target output power of the first device based on the charging curve. The charging curve is used to determine the target charging power corresponding to the current charging stage of the second device.
[0152] The power output unit 703 is used to control the first device to output electrical energy to the second device based on the target output power.
[0153] In some embodiments, the mode determination unit 701 further includes an electricity data acquisition unit and a first mode determination unit.
[0154] The power consumption data acquisition unit is used to acquire first power consumption data of the first device and second power consumption data of the second device from the operation data;
[0155] The first mode determination unit is used to determine the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data.
[0156] In some embodiments, the mode determination unit 701 further includes a first power consumption value comparison unit and a second power consumption value comparison unit.
[0157] The first power consumption value comparison unit is used to determine that the charging and discharging mode of the first device is the discharging mode if the first power consumption value is less than the second power consumption value.
[0158] The second power consumption comparison unit is used to determine the charging / discharging mode as charging mode if the first power consumption value is greater than the second power consumption value.
[0159] In some embodiments, the mode determination unit 701 further includes a first power comparison unit and a second power comparison unit.
[0160] The first power comparison unit is used to determine that the charging and discharging mode of the first device is the discharging mode if the first remaining power is greater than the second remaining power.
[0161] The second power comparison unit is used to determine the charging / discharging mode as charging mode if the first remaining power is less than the second remaining power.
[0162] In some embodiments, the mode determination unit 701 further includes an instruction receiving unit.
[0163] The instruction receiving unit is used to receive the mode control instruction triggered by the user, and then determine the charging and discharging mode of the first device based on the mode control instruction.
[0164] In some embodiments, the mode power determination unit 702 further includes an instruction control unit, a first determination unit, and a second determination unit.
[0165] The instruction control unit is used to send a level pull-down request to the second device based on the connection with the second device if a triggered mode switching instruction is detected.
[0166] The first determination unit is used to control the first device to maintain the charging mode if no response signal is received from the second device within a preset time.
[0167] The second determination unit is used to control the first device to switch from charging mode to discharging mode if a response signal is received within a preset time.
[0168] In some embodiments, the power output unit 703 further includes a device detection unit and a power unit.
[0169] The device detection unit is used to generate a charging curve for the second device based on its historical operating data if the second device is a newly added device.
[0170] A power unit is used to determine the target output power of the first device based on the charging curve.
[0171] In some embodiments, the power output unit 703 further includes a power consumption value determination unit, a compensation value determination unit, a second power acquisition unit, and a generation unit.
[0172] A power consumption value determination unit is used to obtain the initial charging power of the second device and the power consumption value of the second device in each power range.
[0173] The compensation value determination unit is used to determine the power compensation value corresponding to each power consumption range based on the power consumption value.
[0174] The second power acquisition unit is used to generate the target charging power for each power range based on the power compensation value and the initial charging power.
[0175] The generation unit is used to generate the charging curve of the second device based on each power range and the target charging power corresponding to each power range.
[0176] In some embodiments, the power output unit 703 further includes a device detection unit and a power unit.
[0177] The power matching unit is used to determine the power range corresponding to the second remaining power of the second device in the charging curve, and to determine the target charging power corresponding to the power range.
[0178] The power determination subunit is used to determine the target output power of the first device from the target charging power.
[0179] In some embodiments, the power output unit 703 further includes an initial power acquisition unit, a first power adjustment unit, a second power adjustment unit, and an output unit.
[0180] An initial power acquisition unit is used to acquire the initial output power of the first device;
[0181] The first power adjustment unit is used to reduce the initial output power to the target output power if the initial output power is greater than the target output power.
[0182] The second power adjustment unit is used to increase the initial output power to the target output power if the initial output power is less than the target output power.
[0183] The output unit is used to control the first device to output electrical energy to the second device based on the target output power.
[0184] In some embodiments, the power output unit 703 further includes an interval determination unit and a power determination unit.
[0185] The interval determination unit is used to determine the power interval of the second device based on the current power level of the second device.
[0186] The power determination unit is used to determine the charging stage corresponding to the second device within the power range, and to determine the target charging power corresponding to the charging stage from the charging curve.
[0187] In this embodiment, intelligent power management is achieved by detecting the connection status between the first and second devices and determining the charging / discharging mode of the first device based on the connection status. When the charging / discharging mode is the discharging mode, the charging curve of the second device is further obtained. Based on this charging curve, the target output power of the first device can be accurately determined, thereby ensuring that the first device can output power according to the actual needs of the second device during the discharging process, thus improving power utilization efficiency and enhancing the user experience.
[0188] Furthermore, the mobile power supply provided in the above embodiments and the embodiment of a charging control method belong to the same concept, and the implementation process can be found in the method embodiment, which will not be repeated here.
[0189] The sequence numbers of the embodiments described above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0190] Please see Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 10 As shown, the electronic device 800 includes a processor 801 and a memory 802. The processor 801 and the memory 802 are electrically connected.
[0191] The processor 801 is the control center of the electronic device 800 and may include one or more processing cores. The processor 801 connects to various parts of the electronic device using various interfaces and lines. By running or calling computer programs stored in the memory 802, and by calling data stored in the memory 802, it executes various functions and processes data of the electronic device, thereby providing overall control over the electronic device. Optionally, the processor 801 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 801 may integrate one or more of the following: CPU, Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user page, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 801 and may be implemented separately using a communication chip.
[0192] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the computer programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function, etc.; the data storage area may store data created according to the use of the electronic device, etc.
[0193] Furthermore, memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 802 may also include a memory controller to provide processor 801 with access to memory 802.
[0194] In this embodiment, the processor 801 in the electronic device 800 loads the instructions corresponding to the processes of one or more computer programs into the memory 802 according to the following steps, and the processor 801 runs the computer programs stored in the memory 802 to realize various functions, as follows:
[0195] If the first device is detected to be connected to the second device, the charging and discharging mode of the first device is determined based on the operating data of the first device. If the charging and discharging mode is the discharging mode, the charging curve of the second device is obtained, and the target output power of the first device is determined based on the charging curve. The charging curve is used to determine the target charging power corresponding to the current charging stage of the second device. The first device is controlled to output electrical energy to the second device based on the target output power.
[0196] Optionally, the processor 801, when executing the process of determining the charging and discharging mode of the first device based on the operating data of the first device, specifically performs the following: obtaining first power consumption data of the first device and second power consumption data of the second device from the operating data; and determining the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data.
[0197] Optionally, the processor 801, when executing the determination of the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data, specifically executes: if the first power consumption value is less than the second power consumption value, then the charging and discharging mode of the first device is determined to be the discharging mode; if the first power consumption value is greater than the second power consumption value, then the charging and discharging mode is determined to be the charging mode.
[0198] Optionally, the processor 801, when executing the determination of the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data, specifically executes: if the first remaining power is greater than the second remaining power, then the charging and discharging mode of the first device is determined to be the discharging mode; if the first remaining power is less than the second remaining power, then the charging and discharging mode is determined to be the charging mode.
[0199] Optionally, when the processor 801 executes the process of determining the charging and discharging mode of the first device based on the operating data of the first device, it specifically executes the following: receiving a mode control instruction triggered by the user, and then determining the charging and discharging mode of the first device based on the mode control instruction.
[0200] Optionally, after executing the command if the first device is in discharge mode, the processor 801 specifically performs the following: if a triggered mode switching instruction is detected, a pull-down request is sent to the second device based on the connection with the second device; if no response signal is received from the second device within a preset time, the first device is controlled to maintain charging mode; if a response signal is received within a preset time, the first device is controlled to switch from charging mode to discharge mode.
[0201] Optionally, the processor 801, when executing the process of acquiring the charging curve of the second device and determining the target output power of the first device based on the charging curve, specifically performs the following: if the second device is a newly added device, then the charging curve of the second device is generated based on the historical working data of the second device; and the target output power of the first device is determined based on the charging curve.
[0202] Optionally, the processor 801 generates a charging curve for the second device based on the historical working data of the second device, specifically by: obtaining the initial charging power of the second device and the power consumption value of the second device in each power range; determining the power compensation value for each power range based on the power consumption value; and obtaining the target charging power for each power range based on the power compensation value and the initial charging power.
[0203] Based on each power range and the target charging power corresponding to each power range, a charging curve for the second device is generated.
[0204] Optionally, the processor 801, when executing the determination of the target output power of the first device based on the charging curve, specifically performs the following: determining the power range corresponding to the second remaining power of the second device in the charging curve, and determining the target charging power corresponding to the power range; and determining the target charging power as the target output power of the first device.
[0205] Optionally, the processor 801, when executing the control of the first device to output power to the second device based on the target output power, specifically performs the following: obtaining the initial output power of the first device; if the initial output power is greater than the target output power, reducing the initial output power to the target output power; if the initial output power is less than the target output power, increasing the initial output power to the target output power; and controlling the first device to output power to the second device based on the target output power.
[0206] Optionally, the processor 801, when executing the determination of the target output power of the first device based on the charging curve, specifically performs the following: determining the power range of the second device based on the current power level of the second device; determining the charging stage corresponding to the second device within the power range; and determining the target charging power corresponding to the charging stage from the charging curve.
[0207] In this embodiment, intelligent power management is achieved by detecting the connection status between the first and second devices and determining the charging / discharging mode of the first device based on the connection status. When the charging / discharging mode is the discharging mode, the charging curve of the second device is further obtained. Based on this charging curve, the target output power of the first device can be accurately determined, thereby ensuring that the first device can output power according to the actual needs of the second device during the discharging process, thus improving power utilization efficiency and enhancing the user experience.
[0208] In addition, the mobile power supply provided in this application embodiment may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, it can enable the chip to execute a charging control method provided in the above embodiment.
[0209] This application also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement a charging control method provided in the above embodiments.
[0210] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement a charging control method provided in the above embodiments.
[0211] In this application, the mobile power supply, computer-readable storage medium, computer program product or chip provided in the embodiments are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0212] Through the above description of the implementation methods, those skilled in the art can understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the power bank can be divided into different functional modules to complete all or part of the functions described above.
[0213] In the embodiments provided in this application, it should be understood that the disclosed power bank and method can be implemented in other ways. For example, the power bank embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another power bank, or some features may be ignored or not executed. Furthermore, the related couplings or direct couplings or communication connections shown or discussed may be through some interfaces, and the indirect couplings or communication connections between power banks or units may be electrical, mechanical, or other forms.
[0214] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A charging control method, characterized in that, Applied to a first device, the method includes: If the first device is detected to be connected to the second device, the charging and discharging mode of the first device is determined based on the operating data of the first device; If the charging / discharging mode is the discharging mode, then the charging curve of the second device is obtained, and the target output power of the first device is determined based on the charging curve. The charging curve is used to determine the target charging power corresponding to the current charging stage of the second device. The first device is controlled to output electrical energy to the second device based on the target output power.
2. The method according to claim 1, characterized in that, Determining the charging and discharging mode of the first device based on its operating data includes: Obtain the first power consumption data of the first device and the second power consumption data of the second device from the operating data; The charging and discharging mode of the first device is determined based on the first power consumption data and the second power consumption data.
3. The method according to claim 2, characterized in that, The first power consumption data is a first power consumption value, and the second power consumption data is a second power consumption value; Determining the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data includes: If the first power consumption value is less than the second power consumption value, then the charging / discharging mode of the first device is determined to be the discharging mode; If the first power consumption value is greater than the second power consumption value, then the charging / discharging mode is determined to be a charging mode.
4. The method according to claim 2, characterized in that, The first power consumption data is the first remaining power, and the second power consumption data is the second remaining power. Determining the charging and discharging mode of the first device based on the first power consumption data and the second power consumption data includes: If the first remaining power is greater than the second remaining power, then the charging / discharging mode of the first device is determined to be the discharging mode; If the first remaining power is less than the second remaining power, then the charging / discharging mode is determined to be the charging mode.
5. The method according to claim 1, characterized in that, Determining the charging and discharging mode of the first device based on its operating data includes: Upon receiving a mode control command triggered by the user, the charging and discharging mode of the first device is determined based on the mode control command.
6. The method according to claim 1, characterized in that, If the first device is in discharge mode, the method further includes: If a triggered mode switching command is detected, a pull-down request is sent to the second device based on the connection with the second device; If no response signal is received from the second device within a preset time, the first device is controlled to maintain the charging mode. If the response signal is received within the preset time, the first device is controlled to switch from the charging mode to the discharging mode.
7. The method according to claim 1 or 4, characterized in that, The step of obtaining the charging curve of the second device and determining the target output power of the first device based on the charging curve includes: If the second device is a newly added device, then a charging curve for the second device is generated based on the historical working data of the second device; The target output power of the first device is determined based on the charging curve.
8. The method according to claim 7, characterized in that, The step of generating the charging curve of the second device based on its historical operating data includes: Obtain the initial charging power of the second device and the power consumption value of the second device in each power range; Based on the power consumption value, determine the power compensation value corresponding to each of the power consumption ranges; Based on the power compensation value and the initial charging power, the target charging power for each of the power ranges is obtained; Based on each of the power ranges and the target charging power corresponding to each of the power ranges, a charging curve for the second device is generated.
9. The method according to claim 7, characterized in that, Determining the target output power of the first device based on the charging curve includes: In the charging curve, determine the power range corresponding to the second remaining power of the second device, and determine the target charging power corresponding to the power range; The target charging power is used to determine the target output power of the first device.
10. The method according to claim 1, characterized in that, The control of the first device to output electrical energy to the second device based on the target output power includes: Obtain the initial output power of the first device; If the initial output power is greater than the target output power, then the initial output power is reduced to the target output power; If the initial output power is less than the target output power, then the initial output power is increased to the target output power; The first device is controlled to output electrical energy to the second device based on the target output power.
11. The method according to claim 1, characterized in that, Determining the target output power of the first device based on the charging curve includes: The power range of the second device is determined based on the current power level of the second device; The charging stage corresponding to the second device in the specified power range is determined, and the target charging power corresponding to the charging stage is determined from the charging curve.
12. A portable power bank, characterized in that, include: The mode determination unit is used to determine the charging and discharging mode of the first device based on the operating data of the first device if the first device is detected to be connected to the second device. A power determination unit is used to obtain the charging curve of the second device if the charging and discharging mode is a discharging mode, and determine the target output power of the first device based on the charging curve. The charging curve is used to represent the target charging power of the second device in each power range. A power output unit is used to control the first device to output electrical energy to the second device based on the target output power.