Charging control method of mobile power supply and mobile power supply

By sending a broadcast message after the power bank is woken up and adjusting the light load detection duration based on feedback, the problem of power loss caused by misjudgment of the power bank is solved, thus improving battery life and charging stability.

CN122119035APending Publication Date: 2026-05-29ANKER INNOVATIONS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411718249.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing power banks enter charging protection mode when the temperature is high or when the charge reaches 80%, which increases the light load detection time and causes power loss.

Method used

After being woken up, the power bank sends a broadcast message and adjusts the light load detection duration based on whether a feedback message is received. If no feedback is received, a shorter light load detection duration is set, and the power bank enters sleep mode when the output parameters are less than the threshold within the detection duration.

Benefits of technology

It reduces power loss during light-load detection, improves the power bank's battery life and charging reliability, and avoids frequent sleep/wake cycles caused by misjudgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122119035A_ABST
    Figure CN122119035A_ABST
Patent Text Reader

Abstract

The application relates to a charging control method of a mobile power supply and the mobile power supply. The charging control method of the mobile power supply comprises the following steps: in response to the mobile power supply being woken up, a predetermined number of broadcast messages are sent; it is determined whether a feedback message for the broadcast message is received; when the feedback message is not received, a light load detection duration is set as a first duration; the first duration is lower than a preset value; it is determined whether an output parameter of the mobile power supply is continuously less than a predetermined threshold value within the light load detection duration; if the output parameter is continuously less than the predetermined threshold value within the light load detection duration, the mobile power supply is controlled to enter a sleep state after the light load detection duration. In this way, a shorter light load detection duration is set when no device is accessed, so that the light load detection for a long time when no device is accessed is avoided, and power consumption is generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mobile power bank technology, and in particular to a charging control method for a mobile power bank and a mobile power bank. Background Technology

[0002] For power banks that charge devices via Lightning cables, charging pauses for a period of time because the device enters charging protection mode when it gets hot or reaches 80% charge. To prevent the power bank from entering sleep mode immediately after the pause and interrupting charging, a light-load detection period is often set. However, the detection operations within this period often result in significant power loss. Summary of the Invention

[0003] This application provides a charging control method for a power bank and a power bank in general, to solve the technical problem of high unnecessary power loss.

[0004] In a first aspect, this application provides a charging control method for a mobile power bank, comprising:

[0005] In response to the power bank being woken up, a predetermined number of broadcast messages are sent;

[0006] Determine whether a feedback message has been received regarding the broadcast message;

[0007] When no feedback message is received, the light load detection duration is set to a first duration; the first duration is lower than a preset value.

[0008] Determine whether the output parameters of the mobile power supply remain below a predetermined threshold during the light load detection period;

[0009] If the output parameter remains below a predetermined threshold during the light load detection period, the power bank is controlled to enter a sleep state after the light load detection period.

[0010] In one possible implementation, before determining whether the output parameters of the mobile power supply remain below a predetermined threshold during the light load detection period, the method further includes:

[0011] Upon receiving the feedback message, the light load detection duration is set to a second duration, wherein the second duration is longer than the first duration.

[0012] In one possible implementation, setting the light load detection duration to a second duration includes:

[0013] Determine whether the charging protocol between the power bank and the device being charged has completed communication;

[0014] If it is determined that the charging protocol has completed communication, then the light load detection duration is set to the second duration.

[0015] In one possible implementation, the method further includes:

[0016] If it is determined that the charging protocol has not completed communication, then the light load detection duration is set to a first duration.

[0017] In one possible implementation, after setting the light load detection duration to a second duration, and before determining whether the output parameters of the power supply remain below a predetermined threshold during the light load detection duration, the method further includes:

[0018] In response to the charging line channel configuration CC pin of the power bank being at a high level, a predetermined number of broadcast messages are sent again;

[0019] Determine whether a feedback message has been received regarding the broadcast message;

[0020] If the feedback message is not received, the light load detection duration will be adjusted to the first duration.

[0021] In one possible implementation, the method further includes:

[0022] If the output parameters of the power supply are greater than or equal to a predetermined threshold within the light load detection duration, the light load detection duration is adjusted to a second duration, wherein the second duration is longer than the first duration.

[0023] In one possible implementation, the output parameters include: an output current value and a voltage value on the detection cable of the charging cable in the power bank; the predetermined threshold includes: a first threshold and a second threshold; the condition that the output parameters remain below the predetermined threshold during the light load detection period includes:

[0024] During the light load detection period, the output current value remains below the first threshold, and the voltage value remains below the second threshold.

[0025] In one possible implementation, setting the light load detection duration to a first duration when the feedback message is not received includes:

[0026] If the feedback message is not received, determine whether the output parameters of the power bank are less than a predetermined threshold.

[0027] If the output parameter is less than a predetermined threshold, then the light load detection duration is set to the first duration.

[0028] In one possible implementation, the output parameters include: the output current value and the voltage value on the detection cable of the charging cable in the power bank; the predetermined threshold includes: a first threshold and a second threshold;

[0029] The output parameter being less than a predetermined threshold includes:

[0030] The output current value is less than the first threshold, and the voltage value is less than the second threshold.

[0031] Secondly, this application provides a portable power bank, the portable power bank comprising:

[0032] The transmitting unit is configured to transmit a predetermined number of broadcast messages in response to the power bank being woken up.

[0033] The receiving unit is configured to determine whether a feedback message has been received in response to the broadcast message;

[0034] The setting unit is configured to set the light load detection duration to a first duration when no feedback message is received; the first duration is lower than a preset value.

[0035] The determining unit is configured to determine whether the output parameters of the mobile power supply are continuously less than a predetermined threshold during the light load detection period;

[0036] The control unit is configured to control the power supply to enter a sleep state after the light load detection period if the output parameter remains below a predetermined threshold for an extended period during the light load detection period.

[0037] Thirdly, this application provides an electronic device including a processor, a memory, and an executable program stored in the memory and executable by the processor, wherein the processor executes the method described in any one of the first aspects when running the executable program.

[0038] Fourthly, this application also provides a computer storage medium storing an executable program; the executable program, when executed by a processor, is capable of implementing the method described in any one of the first aspects above.

[0039] Compared with the prior art, the technical solution provided in this application has the following advantages: The method provided in this application, in response to the power bank being woken up, sends a predetermined number of broadcast messages; determines whether a feedback message is received for the broadcast messages; when no feedback message is received, sets the light load detection duration to a first duration; the first duration is lower than a preset value; determines whether the output parameters of the power bank are continuously less than a predetermined threshold within the light load detection duration; if the output parameters are continuously less than the predetermined threshold within the light load detection duration, controls the power bank to enter a sleep state after the light load detection duration. Thus, after the power bank is woken up, it determines whether a charging device has been connected for charging based on whether feedback is received for the broadcast messages. When no feedback message is received, i.e., when there is no interaction with a charging device, a shorter light load detection duration is set, reducing power loss caused by continuous detection of output parameters within the light load detection duration. Furthermore, the shorter light load detection time can improve the fault tolerance rate. It will not immediately enter the sleep state when no feedback message is received, but will enter the sleep state after the light load detection time has elapsed. This avoids the power bank being woken up immediately after just entering the sleep state if another device connects shortly after it is determined that no feedback message has been received. Attached Figure Description

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

[0041] 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, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0043] Figure 1 A schematic flowchart of a charging control method for a mobile power supply provided in an embodiment of this application;

[0044] Figure 2 A schematic flowchart of a charging control method for a mobile power supply provided in an embodiment of this application;

[0045] Figure 3 A schematic flowchart of a charging control method for a mobile power supply provided in an embodiment of this application;

[0046] Figure 4A schematic flowchart of a charging control method for a mobile power supply provided in an embodiment of this application;

[0047] Figure 5 A schematic diagram of a portable power bank provided in an embodiment of this application;

[0048] Figure 6 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of 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, 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. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.

[0050] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0051] To address the technical problem of high unnecessary power loss in existing power banks, this application provides a charging control method for power banks. Based on whether a corresponding feedback response is received for a broadcast message, a shorter light load detection duration is set when it is confirmed that no device is connected. This avoids performing prolonged light load detection when no device is connected, thereby reducing power loss and improving the power bank's battery life.

[0052] Figure 1 This is a flowchart illustrating a charging control method for a mobile power bank provided in this embodiment, as shown below. Figure 1 As shown, the method may include:

[0053] S10: In response to the power bank being woken up, send a predetermined number of broadcast messages;

[0054] S20: Determine whether a feedback message has been received for the broadcast message;

[0055] S30: When no feedback message is received, set the light load detection duration to the first duration; the first duration is lower than the preset value;

[0056] S40: Determine whether the output parameters of the mobile power supply are continuously less than a predetermined threshold during the light load detection period;

[0057] S50: If the output parameter remains below a predetermined threshold for an extended period of time during the light load detection period, the power bank will enter a sleep state after the light load detection period.

[0058] The charging control method provided in this embodiment can be applied to power banks, as well as to servers or other terminals capable of controlling power banks, such as terminal devices that connect to the power bank via Bluetooth, local area network, or other means to control it. The power bank can be a type with a built-in charging cable, a type with a charging interface requiring an external charging cable, or a wireless charging type. Here, the charging cable is a Lightning cable.

[0059] In this embodiment, the power bank being woken up can include at least one of the following: the power bank is powered on, it is connected to a charging cable, a device is connected to the charging cable, or a wireless charging device is connected. After being woken up, the power bank can be in a standby state without a device being connected to it, or in a charging state with a device connected to it. The charging cable can be the power bank's own charging cable, such as a Lightning cable. The broadcast message sent can be a broadcast message sent through the charging cable, for example, a broadcast message sent through the Configuration Channel (CC) pin of the integrated circuit (IC) on the Lightning cable.

[0060] In one embodiment, the broadcast message can also be sent via a wireless charging device, such as a broadcast message sent via a wireless charging IC.

[0061] In one embodiment, a broadcast message can be used to establish communication with the device being charged, such as establishing charging protocol communication. For example, a broadcast message can be a message used to announce information such as the power bank's own power supply capabilities, such as a SourceCap message.

[0062] In one embodiment, in response to the power bank being woken up, sending a predetermined number of broadcast messages includes: in response to the power bank being woken up, sending a predetermined number of broadcast messages at a predetermined sending period. For example, the sending period can be 5s, 10s, or 20s, etc. In this way, it is possible to periodically monitor whether a charging device is connected, thereby precisely adjusting the light load detection duration.

[0063] In one embodiment, the predetermined quantity can be 150, or it can be any other quantity. Sending the predetermined quantity of broadcast messages can include sending the predetermined quantity of broadcast messages simultaneously, or sending the predetermined quantity of broadcast messages within a third duration. For example, the third duration can be 100ms, etc. Sending the predetermined quantity of broadcast messages in batches within the third duration can avoid communication failures caused by accidental packet loss or other unforeseen circumstances during a single transmission.

[0064] In one embodiment, step S10 may include: in response to the power bank being woken up, sending a predetermined number of broadcast messages within a fourth duration after being woken up. For example, the fourth duration may be 1 second, 2 seconds, or 3 seconds, thereby enabling a quick confirmation of whether communication can be established after being woken up, and thus quickly setting the corresponding light load detection duration.

[0065] In one embodiment, a feedback message to a broadcast message can refer to a feedback message sent by the device being charged to the power bank based on the broadcast message. For example, a message responding to a SourceCap message.

[0066] In one embodiment, determining whether a feedback message has been received for a broadcast message may include determining whether a feedback message has been received for one or more target broadcast messages among a predetermined number of broadcast messages, or determining whether a feedback message has been received for all broadcast messages. Here, one or more target broadcast messages may refer to one or more broadcast messages that require a response among the predetermined number of broadcast messages sent.

[0067] In one embodiment, determining whether a feedback message has been received for a broadcast message may include determining whether a feedback message has been received within a fifth time period after a predetermined number of broadcast messages have been sent. This avoids prolonged periods of monitoring for feedback messages, thus preventing excessive power consumption.

[0068] Accordingly, "receiving a feedback message" can refer to receiving a feedback message within five time intervals after the predetermined number of broadcast messages have been sent; "not receiving a feedback message" can refer to not receiving a feedback message within five time intervals after the predetermined number of broadcast messages have been sent.

[0069] In one embodiment, the light load detection duration may also be referred to as the light load duration, etc. Output parameters may include: output current value and / or voltage value on the detection cable of the charging cable in the power bank; the predetermined threshold may include: a first threshold and / or a second threshold. After detecting that the power bank has stopped charging the device being charged, step S40 may include: determining whether the output current value of the power bank is continuously less than the first threshold during the light load detection duration, and / or determining whether the voltage value is continuously less than the second threshold during the light load detection duration. For example, it may include: determining whether the output current value is continuously lower than the first threshold; if it is continuously lower than the first threshold, it is determined that no charging operation is needed, and the power bank can be controlled to enter a sleep state, preventing charging interruption. If it is not continuously lower than the first threshold, the power bank remains in a wake-up state.

[0070] In one embodiment, the first duration is less than a preset value, for example, the preset value can be 1 minute, 45 seconds, 30 seconds, or other values. For example, the first duration is 30 seconds.

[0071] In one embodiment, "not receiving feedback messages" can include not receiving feedback messages for the one or more target broadcast messages, or not receiving feedback messages for all broadcast messages. "Not receiving feedback messages for the one or more target broadcast messages" can mean not receiving all feedback messages for the one or more target broadcast messages. "Not receiving feedback messages for all broadcast messages" can mean not receiving all feedback messages for all broadcast messages.

[0072] In one embodiment, not receiving feedback messages may include not receiving all feedback messages within a fifth time period after a predetermined number of broadcast messages have been sent. For example, not receiving all feedback messages for one or more target broadcast messages within a fifth time period after a predetermined number of broadcast messages have been sent, or not receiving all feedback messages for all broadcast messages within a fifth time period after a predetermined number of broadcast messages have been sent.

[0073] In one embodiment, if no feedback message is received for all broadcast messages or the communication is not completed, the light load detection duration is set to a first duration.

[0074] For example, if the device being charged only responds to one of the feedback messages, and does not respond to the subsequent feedback messages, then the first duration is set. For instance, after sending 150 SourceCap messages, if only 140 feedback messages are received, the light load detection duration is set to 30 seconds.

[0075] In one embodiment, sending a predetermined number of broadcast messages may include: outputting a predetermined voltage, such as 3.3V, on the cable where the CC pin is located; when the voltage of the CC pin is detected to be within the voltage range corresponding to a low level, such as 0.8 to 2V, assuming that a charging device has been inserted, and starting to output an operating voltage, such as 5V, after waiting for a predetermined time, such as 150ms; in response to the CC pin voltage value still being within the aforementioned voltage range of 0.8 to 2V after the operating voltage is detected, waiting for another predetermined time, such as 150ms, before sending a predetermined number of broadcast messages.

[0076] In one embodiment, the received feedback message may be a Request sent by the device being charged after receiving a broadcast message to request a voltage level. When the power bank receives the Request from the charging device, it determines whether the requested voltage is reasonable. If reasonable, it sends an Accept message; otherwise, it sends a Reject message. If an Accept message is received, the power bank sets the requested voltage level after 25ms. After successful voltage setting, it sends a PS_RDY message to inform the charging device that the voltage setting is complete. Successfully sending the PS_RDY message indicates that the charging protocol has been successfully established, i.e., communication is complete. If the device being charged does not respond to the protocol sent by the power bank during communication, it is determined that the charging protocol establishment has failed, i.e., communication is incomplete.

[0077] In one embodiment, after starting the light load detection period, the power bank continuously monitors output parameters, such as the output current value, to determine whether the output parameter remains below a predetermined threshold during the light load detection period. For example, whether the output current value remains below a first threshold, i.e., the light load value. If the output parameter remains below the light load value during the light load detection period, it is determined that there is no charging demand, and the power bank is controlled to enter a sleep state. The output current value can be the output current value on the charging cable.

[0078] In one embodiment, after setting the light load detection duration to a first duration, if it is detected that the device being charged is not being charged, or if it is detected that the charging of the device being charged has stopped, the light load detection duration is started, and output parameters such as the output current value are continuously detected within the light load detection duration; in response to detecting that the output parameters on the charging cable are continuously less than a predetermined threshold, for example, the output current value is continuously less than the first threshold within the light load detection duration, the power bank is controlled to enter a sleep state after the light load detection duration ends.

[0079] In one embodiment, after setting the light load detection duration to a first duration, the light load detection duration is started directly, and output parameters such as the output current value are continuously detected within the light load detection duration; in response to detecting that the output parameter is continuously less than a predetermined threshold, such as the output current value being continuously less than the first threshold within the light load detection duration, the power bank is controlled to enter a sleep state after the light load detection duration ends.

[0080] For example, if no feedback message is received, the light load detection time is set to a first duration of 30 seconds, and if the output current value remains below the first threshold within 30 seconds, the power bank is controlled to enter a sleep state.

[0081] In this way, after the power bank is woken up, it can determine whether a device has been connected for charging by checking whether a reply is received to the broadcast message. This allows for a shorter light-load detection duration when there is no device being charged, reducing power loss caused by continuous monitoring of output parameters during the light-load detection duration. Furthermore, this shorter light-load detection duration can improve fault tolerance, preventing the power bank from immediately entering sleep mode when there is no device being charged, only to be repeatedly woken up by a charging device, thus extending its lifespan.

[0082] Figure 2 This is a flowchart illustrating a charging control method for a mobile power bank provided in this embodiment, as shown below. Figure 2 As shown, the method may include:

[0083] S11: In response to the power bank being woken up, send a predetermined number of broadcast messages;

[0084] S21: Determine whether a feedback message has been received for the broadcast message;

[0085] S31: When no feedback message is received, set the light load detection duration to the first duration; the first duration is lower than the preset value;

[0086] S32: Upon receiving a feedback message, set the light load detection duration to the second duration, which is longer than the first duration;

[0087] S41: Determine whether the output parameters of the mobile power supply are continuously less than a predetermined threshold during the light load detection period;

[0088] S51: If the output parameter remains below a predetermined threshold for an extended period of time during the light load detection period, the power bank will enter a sleep state after the light load detection period.

[0089] In this embodiment, the specific implementation methods and related embodiments of steps S11-S51 can be referred to the specific implementation methods and related embodiments of steps S10-S50 in the aforementioned second embodiment, and will not be repeated here.

[0090] In one embodiment, receiving a feedback message indicates that the power bank can establish a connection with the device being charged. This can refer to receiving a feedback message for one or more target broadcast messages, or receiving feedback messages for all broadcast messages. The feedback message for one or more target broadcast messages can be a single feedback message or multiple feedback messages corresponding to multiple target broadcast messages. The feedback message for all broadcast messages can be a single feedback message or a predetermined number of feedback messages corresponding to all broadcast messages.

[0091] For example, after sending 150 SourceCap messages, when 150 feedback messages are received, the light load detection duration is set to the second duration.

[0092] In one embodiment, step S32 may include: upon receiving a feedback message for all broadcast messages and confirming that communication is complete, setting the light load detection duration to a second duration. Here, "communication complete" may refer to the completion of a full Power Delivery (PD) protocol communication.

[0093] For example, the power bank sends 150 SourceCap messages. The device being charged needs to respond and complete the full communication process before the light load detection duration is set to two hours. After the charging end responds to one SourceCap message, the power bank will not resend SourceCap messages unless a change in the CC level is detected.

[0094] In one embodiment, the second duration is longer than the first duration, and the difference between the second duration and the first duration is greater than a preset difference, such as 2 hours. For example, the second duration can be 2 hours, and the first duration can be 30 seconds.

[0095] In this way, the light load detection time can be flexibly adjusted under different conditions based on whether a feedback message is received. If a device is found to be connected when a feedback message is received, a longer light load detection time is set to prevent the device from disconnecting from charging. If no device is connected, a shorter light load detection time is set to reduce power loss, thereby comprehensively improving the charging reliability of the power bank.

[0096] In some embodiments, setting the light load detection duration to a second duration in step S32 may include:

[0097] Determine whether the charging protocol between the power bank and the device being charged has been successfully communicated.

[0098] If it is determined that the charging protocol has completed communication, then set the light load detection duration to the second duration.

[0099] In one embodiment, the charging protocol may include a power delivery (PD) protocol, etc. Once the charging protocol has completed communication, it can refer to the power bank and the device being charged exchanging charging information and establishing a connection.

[0100] In one embodiment, determining whether the charging protocol between the power bank and the device being charged has completed communication may include: determining whether the charging protocol between the power bank and the device being charged has completed communication within six hours after receiving the feedback message. This avoids premature entry into light load detection due to excessively long charging protocol establishment time, thus preventing power loss.

[0101] In one embodiment, if it is determined that the charging protocol has completed communication, then setting the light load detection duration to a second duration may include: if it is determined that the charging protocol has completed communication, then determining whether the feedback message carries the expected light load detection duration; if it does not carry the expected light load detection duration, then setting the light load detection duration to a second duration.

[0102] Optionally, the method may further include: if the desired light load detection duration is carried, then setting the light load detection duration to the desired light load detection duration. Here, the desired light load detection duration may be the desired light load detection duration set by the device being charged based on its own power level or usage.

[0103] In one embodiment, the method further includes: if it is determined that the charging protocol has not completed communication, setting the light load detection duration to a first duration.

[0104] In this way, after receiving a response to a broadcast message, by determining whether the charging protocol has completed communication, it is possible to more accurately determine whether the device being charged is fully connected, avoiding misjudgment when the device being charged is not connected, which would lead to setting the light load detection time for a long time and wasting electricity.

[0105] In some embodiments, after setting the light load detection duration to a second duration in step S32, and before determining whether the output parameters of the power supply remain below a predetermined threshold during the light load detection duration, the method may further include:

[0106] In response to the CC pin being high on the charging cable of the power bank, a predetermined number of broadcast messages are sent again;

[0107] Determine if a feedback message has been received regarding the broadcast message;

[0108] If no feedback is received, the light load detection duration will be adjusted to the first duration.

[0109] In one embodiment, the CC pin on the charging cable of the power bank being at a high level can include: the CC pin on the charging cable of the power bank remaining at a high level for a predetermined time window, and the charging protocol failing to reset. For example, the charging protocol is a Power Delivery (PD) protocol, etc. Here, the predetermined time window can be 20ms, 30ms, etc.

[0110] In one embodiment, responding to a high level on the CC pin of the power bank's charging line can include responding to a high level on the CC pin of the power bank's charging line and the power bank meeting a predetermined condition. Meeting the predetermined condition may include the power bank not charging or the power bank stopping charging. For example, meeting the predetermined condition may include a decrease in the power bank's output current value, or a decrease in the voltage of the cable used to detect the plugged-in charging device.

[0111] In one embodiment, the CC pin being at a high level can mean that the voltage value of the CC pin is within the voltage range corresponding to a high level, such as around 3.3V.

[0112] In one embodiment, a decrease in the output current of the power bank may include a reduction in the output current of the power bank itself, provided that the amount or percentage change in the output current is within a predetermined range. This allows for the exclusion of reasonable current reductions during charging, such as adjustments to charging power, thus avoiding unnecessary broadcast message transmissions.

[0113] In one embodiment, detecting a voltage drop in the cable into which the charging device is inserted can include ensuring that the voltage drop occurs within a predetermined range and that the amount or percentage of the voltage change is within a predetermined range. This allows for the exclusion of voltage drops within a reasonable range during charging, such as adjustments to charging power or loose connections, thus avoiding unnecessary broadcast message transmissions.

[0114] In one embodiment, resending a predetermined number of broadcast messages can be sending broadcast messages of the same type or content as in step S11, such as sending 150 SourceCap messages, or it can be sending broadcast messages of different types or content.

[0115] In one embodiment, step S11 may send a first broadcast message, and the feedback message in steps S21-S32 may be a first feedback message; here, the message sent again may be a second broadcast message, and the received feedback message may be a second feedback message.

[0116] In one embodiment, the relevant embodiments and related optional implementations of the second broadcast message and the second feedback message can refer to the relevant embodiments of the first broadcast message and the first feedback message in the foregoing embodiments, as well as the relevant optional implementations of steps S11-S41.

[0117] In one embodiment, after resending a predetermined number of broadcast messages, if no feedback message is received, the light load detection duration is adjusted from the second duration to the first duration, for example, from 2 hours to 30 seconds.

[0118] In one embodiment, after adjusting the light load detection duration to the first duration in the above steps, the light load detection duration timing is started directly, and the output current value is continuously detected within the light load detection duration; in response to detecting that the output current value on the charging cable is continuously less than the first threshold within the light load detection duration, the power bank is controlled to enter a sleep state after the light load detection duration timing ends.

[0119] Thus, when the communication between the power bank and the device being charged is detected to be disconnected, the high level of the CC pin indicates that the device has been removed. At this time, there is no need to perform a long light load detection. The light load detection time can be shortened in time, which can improve the flexibility of light load detection and avoid the long light load detection that is fixed at the second time for a long time after the device is removed, thus reducing unnecessary power consumption.

[0120] In some embodiments, step S30 or step S31 may include:

[0121] If no feedback message is received, determine whether the output parameters of the power bank are less than a predetermined threshold;

[0122] If the output parameter is less than the predetermined threshold, the light load detection duration is set to the first duration.

[0123] In one embodiment, the output parameters may include: the output current value and / or the voltage value on the detection cable of the charging cable in the power bank; the predetermined threshold may include: a first threshold and / or a second threshold.

[0124] Output parameters less than a predetermined threshold include:

[0125] The output current value is less than the first threshold, and / or the voltage value is less than the second threshold.

[0126] In one embodiment, determining whether the output parameters of the power bank are less than a predetermined threshold may include: determining whether the output current value is less than a first threshold, and / or determining whether the voltage value is less than a second threshold.

[0127] For example, the above steps may include: determining whether the output current value is less than a first threshold when no feedback message is received; if the output current value is less than the first threshold, setting the light load detection duration to a first duration.

[0128] In one embodiment, determining that the output current value is less than a first threshold and / or the voltage value is less than a second threshold indicates that the power bank is not currently charging. The first and / or second thresholds may be thresholds used in light-load detection to determine whether charging is in progress.

[0129] In one embodiment, if the output current value is less than a first threshold and / or the voltage value is less than a second threshold, then setting the light load detection duration to a first duration may include: if the output current value is less than the first threshold and / or the voltage value is less than the second threshold, and no feedback message is received within a seventh duration, then setting the light load detection duration to the first duration. Here, the seventh duration can be less than the first duration, for example, 3s, 5s, etc.

[0130] In this way, if no feedback message is received, the output current value is detected to determine whether a device being charged is connected. This avoids abnormal situations such as a device being connected but the feedback message being lost, which could lead to the device being disconnected due to the light load detection time being set too short.

[0131] In some embodiments, such as Figure 3 As shown, after step S40 or S41, the method may further include:

[0132] S52: If the output parameters of the power supply are greater than or equal to a predetermined threshold within the light load detection duration, adjust the light load detection duration to the second duration.

[0133] The second duration is longer than the first duration.

[0134] In one embodiment, the output parameter of the power bank being greater than or equal to a predetermined threshold may include: the duration for which the output parameter of the power bank is greater than or equal to the predetermined threshold being greater than a preset threshold value. For example, the duration for which the output current value of the power bank is greater than or equal to a first threshold value is greater than the preset threshold value. This can improve fault tolerance and prevent parameters such as the output current value from accidentally increasing due to circuit reasons, which could lead to the mistaken identification of a device connection.

[0135] Thus, after setting a shorter light load detection time, if an increase in the output current value is detected within the light load detection time, it indicates that a device has been connected for charging within that time. In this way, the light load detection time is promptly increased to a second time, thereby avoiding the device from easily disconnecting from charging due to maintaining a shorter detection time.

[0136] In some embodiments, the output parameters include: the output current value and the voltage value on the detection cable of the charging cable in the power bank; the predetermined threshold includes: a first threshold and a second threshold. In step S50, if the output parameter remains below the predetermined threshold for an extended period of light load detection, it may include:

[0137] The output current value remains below the first threshold during the light load detection period, and the voltage value remains below the second threshold during the light load detection period.

[0138] In one embodiment, the detection cable can be a cable used to detect the insertion of a charging device, such as a DPDM cable corresponding to the D+ and D- interfaces of a charging cable. A voltage value consistently below a second threshold indicates that the DPDM cable is continuously in a low-level state, and it can be considered that no charging device has been inserted.

[0139] Here, the first threshold can be 10mA, 20mA, etc., and the second threshold can be 100mV, 200mV, etc.

[0140] In this way, by shortening the light load detection time, it is possible to further confirm whether a charging device has been connected based on DPDM cable detection when the light load detection time is short, thus avoiding misjudgment caused by the short light load detection time and resulting in charging interruption, thereby improving charging stability.

[0141] In some embodiments, receiving feedback messages includes receiving a predetermined number of feedback messages.

[0142] In one embodiment, receiving a predetermined number of feedback messages can refer to receiving a predetermined number of feedback messages for all broadcast messages. Each feedback message can correspond to one broadcast message, and different feedback messages can correspond to different broadcast messages. For example, after sending 150 SourceCap messages, receiving 150 corresponding feedback messages allows setting the light load detection duration to a second duration.

[0143] Thus, confirming the establishment of a communication connection with the device being charged after receiving a reply to all broadcast messages can further improve the accuracy of the judgment and avoid misjudgment caused by accidental or brief connections by the device being charged, which would then set the first duration and waste electricity.

[0144] As one possible implementation, a charging strategy with a built-in Lightning cable is provided for a power bank, which can ensure that Apple devices do not experience charging interruptions during the charging process, while also avoiding unnecessary power loss of the power bank due to the Lightning cable.

[0145] Even when no charging device is connected, the power bank with the built-in Lightning cable will always output voltage through the Lightning cable. This is because the Lightning cable has an IC that pulls down the voltage of the CC cable and DPDM cable that detect the device being plugged in, causing the device to mistakenly think that a device is plugged in and thus output voltage.

[0146] 1. Changes in the CC cable after connecting to Lightning and actually connecting a charging device: After the power bank wakes up, it outputs 3.3V on the CC cable of the output port. When a Lightning cable is detected connected to this port, the CC voltage of this port is pulled down to between 0.8V and 2V. When the CC voltage of the port is detected within this voltage range, it is considered that a charging device has been inserted. After waiting for 150ms, it starts to output 5V. During this time, if the CC level is still stable in the 0.8V-2V voltage range, it will wait another 150ms before sending Source Cap. If it is the device being charged, it will send Request to request a voltage level after receiving Source Cap. When the power bank receives the Request sent by the charging device, it will determine whether the requested voltage is reasonable. If it is reasonable, it will send Accept; if it is unreasonable, it will send Reject. If Accept is received, the power bank will set the voltage level requested by the charging device after 25ms. After the voltage setting is successful, it will send PS_RDY to tell the charging device that the voltage setting is complete. Successful sending of PS_RDY indicates that the PD protocol handshake is successful. If the charging device does not respond to the protocol packet sent by the power bank during communication, the PD protocol handshake is considered to have failed.

[0147] 2. Changes in the DPDM cable after connecting to Lightning and actually connecting a charging device: After connecting to the Lightning cable, the DPDM voltage will be pulled down to 0V. When the actual charging device is plugged in, there are three states of the DPDM: the second is that both DPDMs are around 2.5V, the third is that both DPDMs are around 0.8V, and the fourth is that DP is 0.8V and DM is 0V. When the charging device is unplugged, the DPDM will be pulled down to 0V again. The DPDM voltage state can also help determine whether there is a device charging.

[0148] 3. Based on the changing patterns of CC cables and DPDM cables being connected to and removed from equipment, such as... Figure 4As shown, this embodiment specifically includes: After a successful PD protocol handshake, it is determined that there is a charging device on the Lightning cable. At this time, the light load detection time is set to 2 hours, and the light load threshold, i.e., the second threshold, is 10mA. This prevents charging from stopping due to two situations: the charging device not drawing current because of temperature rise or not drawing current after the battery reaches 80% charge and battery charging optimization is activated. When the device on the Lightning cable is physically removed, the Lightning cable will resume a period of pull-up and then pull down again to detect the cable voltage. After detecting a CC level pull-up exceeding 20ms, the PD protocol will perform a reset. When the Lightning cable pulls down the CC cable voltage again, the power bank will restart to determine whether to perform a PD protocol handshake. At this time, since there is no device on the Lightning cable, no PD protocol communication will occur, and the light load time will return to 30 seconds. If the port current is continuously detected to be less than the light load detection threshold of 10mA, and the voltage on the DPDM cable is lower than 200mV (when the PD protocol is set to light load for 2 hours, the DPDM voltage status is not checked to prevent failure to enter sleep mode), or no PD protocol communication occurs, and this continues for 30 seconds, the power bank will enter sleep mode.

[0149] This charging strategy, which dynamically sets the light load time by detecting the PD protocol and determines whether the device has been removed by detecting the DPDM voltage, not only ensures the stability of Apple devices during charging but also optimizes the power management efficiency of the power bank, improving user experience and device reliability.

[0150] like Figure 5 As shown, this application embodiment provides a portable power bank, which may include:

[0151] The transmitting unit 110 is configured to transmit a predetermined number of broadcast messages in response to the power bank being woken up.

[0152] The receiving unit 210 is configured to determine whether a feedback message for the broadcast message has been received;

[0153] Setting unit 310 is configured to set the light load detection duration to a first duration when no feedback message is received; the first duration is lower than a preset value.

[0154] The determining unit 410 is configured to determine whether the output parameters of the mobile power supply are continuously less than a predetermined threshold during the light load detection period.

[0155] The control unit 510 is configured to control the power supply to enter a sleep state after the light load detection period if the output parameter is continuously less than a predetermined threshold during the light load detection period.

[0156] In one embodiment, before determining whether the output parameters of the mobile power supply remain below a predetermined threshold during the light-load detection period, the setting unit 310 is further configured to:

[0157] Upon receiving feedback, the light load detection duration is set to a second duration, which is longer than the first duration.

[0158] In one possible implementation, the setting unit 310 is configured to:

[0159] Determine whether the charging protocol between the power bank and the device being charged has been successfully communicated.

[0160] If it is determined that the charging protocol has completed communication, then set the light load detection duration to the second duration.

[0161] In one possible implementation, the setting unit 310 is further configured to:

[0162] If it is determined that the charging protocol has not completed communication, then set the light load detection duration to the first duration.

[0163] In one possible implementation, after setting the light load detection duration to a second duration, and before determining whether the output parameters of the mobile power supply remain below a predetermined threshold during the light load detection duration, the setting unit 310 is further configured to:

[0164] In response to the charging cable channel configuration CC pin being high, a predetermined number of broadcast messages are sent again;

[0165] Determine if a feedback message has been received regarding the broadcast message;

[0166] If no feedback is received, the light load detection duration will be adjusted to the first duration.

[0167] In one possible implementation, the setting unit 310 is further configured to:

[0168] If the output parameters of the power supply are greater than or equal to a predetermined threshold within the light load detection duration, the light load detection duration will be adjusted to a second duration, wherein the second duration is longer than the first duration.

[0169] In one possible implementation, the output parameters include: the output current value and the voltage value on the detection cable of the charging cable in the power bank; the predetermined thresholds include: a first threshold and a second threshold;

[0170] The control unit 510 is configured to output parameters that are continuously less than a predetermined threshold during the light load detection period, including: output current value that is continuously less than a first threshold during the light load detection period, and voltage value that is continuously less than a second threshold during the light load detection period.

[0171] In one possible implementation, the setting unit 310 is specifically configured as follows:

[0172] If no feedback message is received, determine whether the output parameters of the power bank are less than a predetermined threshold;

[0173] If the output parameter is less than the predetermined threshold, the light load detection duration is set to the first duration.

[0174] In one possible implementation, the output parameters include: the output current value and the voltage value on the detection cable of the charging cable in the power bank; the predetermined thresholds include: a first threshold and a second threshold;

[0175] Setting unit 310 is specifically configured such that the output parameters are less than a predetermined threshold, including: the output current value is less than a first threshold and the voltage value is less than a second threshold.

[0176] like Figure 6 As shown in the figure, this application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0177] Memory 113 is used to store computer programs;

[0178] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the charging control method for a mobile power bank provided in any of the aforementioned method embodiments, including: in response to the mobile power bank being woken up, sending a predetermined number of broadcast messages; determining whether a feedback message for the broadcast messages is received; when no feedback message is received, setting a light load detection duration to a first duration; the first duration being lower than a preset value; determining whether the output parameters of the mobile power bank are continuously less than a predetermined threshold within the light load detection duration; if the output parameters are continuously less than the predetermined threshold within the light load detection duration, controlling the mobile power bank to enter a sleep state after the light load detection duration.

[0179] In one possible implementation, before determining whether the output parameters of the power supply remain below a predetermined threshold during the light load detection period, the method further includes: upon receiving a feedback message, setting the light load detection period to a second duration, wherein the second duration is longer than the first duration.

[0180] In one possible implementation, the light load detection duration is set to a second duration, which includes: determining whether the charging protocol between the power bank and the device being charged has completed communication; if it is determined that the charging protocol has completed communication, then the light load detection duration is set to the second duration.

[0181] In one possible implementation, the method further includes: if it is determined that the charging protocol has not completed communication, then setting the light load detection duration to a first duration.

[0182] In one possible implementation, after setting the light load detection duration to a second duration and before determining whether the output parameters of the power bank remain below a predetermined threshold during the light load detection duration, the method further includes: retransmitting a predetermined number of broadcast messages in response to the charging line channel configuration CC pin of the power bank being at a high level; determining whether a feedback message for the broadcast messages is received; and adjusting the light load detection duration to a first duration if no feedback message is received.

[0183] In one possible implementation, the method further includes: if the output parameters of the power supply are greater than or equal to a predetermined threshold during the light load detection duration, adjusting the light load detection duration to a second duration, wherein the second duration is longer than the first duration.

[0184] In one possible implementation, the output parameters include: an output current value and a voltage value on the detection cable of the charging cable in the power bank; the predetermined thresholds include: a first threshold and a second threshold; the output parameters being continuously less than the predetermined thresholds during the light load detection period includes: the output current value being continuously less than the first threshold and the voltage value being continuously less than the second threshold during the light load detection period.

[0185] In one possible implementation, when no feedback message is received, the light load detection duration is set to a first duration, including: when no feedback message is received, determining whether the output parameters of the power bank are less than a predetermined threshold; if the output parameters are less than the predetermined threshold, then setting the light load detection duration to the first duration.

[0186] In one possible implementation, the output parameters include: the output current value and the voltage value on the detection cable of the charging cable in the power bank; the predetermined thresholds include: a first threshold and a second threshold;

[0187] Output parameters less than a predetermined threshold include:

[0188] The output current value is less than the first threshold, and the voltage value is less than the second threshold.

[0189] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the charging control method for a mobile power supply as provided in any of the foregoing method embodiments.

[0190] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0191] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general-purpose hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.

[0192] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.

[0193] Unless otherwise specified, each step in a particular implementation or embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, the solution after removing some steps in a particular implementation or embodiment can also be implemented as an independent embodiment, and the order of the steps in a particular implementation or embodiment can be arbitrarily interchanged. In addition, the optional methods or examples in a particular implementation or embodiment can be arbitrarily combined. Furthermore, the implementations or embodiments can be arbitrarily combined with each other. For example, some or all of the steps in different implementations or embodiments can be arbitrarily combined, and a particular implementation or embodiment can be arbitrarily combined with the optional methods or examples of other implementations or embodiments.

[0194] The above are merely specific embodiments of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A charging control method for a mobile power bank, characterized in that, The method includes: In response to the power bank being woken up, a predetermined number of broadcast messages are sent; Determine whether a feedback message has been received regarding the broadcast message; When no feedback message is received, the light load detection duration is set to a first duration; the first duration is lower than a preset value. Determine whether the output parameters of the mobile power supply remain below a predetermined threshold during the light load detection period; If the output parameter remains below a predetermined threshold during the light load detection period, the power bank is controlled to enter a sleep state after the light load detection period.

2. The method according to claim 1, characterized in that, Before determining whether the output parameters of the mobile power supply remain below a predetermined threshold during the light load detection period, the method further includes: Upon receiving the feedback message, the light load detection duration is set to a second duration, wherein the second duration is longer than the first duration.

3. The method according to claim 2, characterized in that, Setting the light load detection duration to a second duration includes: Determine whether the charging protocol between the power bank and the device being charged has completed communication; If it is determined that the charging protocol has completed communication, then the light load detection duration is set to the second duration.

4. The method according to claim 3, characterized in that, The method further includes: If it is determined that the charging protocol has not completed communication, then the light load detection duration is set to a first duration.

5. The method according to claim 2, characterized in that, After setting the light load detection duration to a second duration, and before determining whether the output parameters of the power supply remain below a predetermined threshold during the light load detection duration, the method further includes: In response to the charging line channel configuration CC pin of the power bank being at a high level, a predetermined number of broadcast messages are sent again; Determine whether a feedback message has been received regarding the broadcast message; If the feedback message is not received, the light load detection duration will be adjusted to the first duration.

6. The method according to claim 1, characterized in that, The method further includes: If the output parameters of the power supply are greater than or equal to a predetermined threshold within the light load detection duration, the light load detection duration is adjusted to a second duration, wherein the second duration is longer than the first duration.

7. The method according to claim 1, characterized in that, The output parameters include: the output current value and the voltage value on the detection cable of the charging cable in the power bank; the predetermined thresholds include: a first threshold and a second threshold; The condition that the output parameter remains below a predetermined threshold during the light load detection period includes: During the light load detection period, the output current value remains below the first threshold, and the voltage value remains below the second threshold.

8. The method according to claim 1, characterized in that, The step of setting the light load detection duration to a first duration when no feedback message is received includes: If the feedback message is not received, determine whether the output parameters of the power bank are less than a predetermined threshold. If the output parameter is less than a predetermined threshold, then the light load detection duration is set to the first duration.

9. The method according to claim 8, characterized in that, The output parameters include: the output current value and the voltage value on the detection cable of the charging cable in the power bank; the predetermined thresholds include: a first threshold and a second threshold; The output parameter being less than a predetermined threshold includes: The output current value is less than the first threshold, and the voltage value is less than the second threshold.

10. A portable power bank, characterized in that, The portable power bank includes: The transmitting unit is configured to transmit a predetermined number of broadcast messages in response to the power bank being woken up. The receiving unit is configured to determine whether a feedback message has been received in response to the broadcast message; The setting unit is configured to set the light load detection duration to a first duration when no feedback message is received; the first duration is lower than a preset value. The determining unit is configured to determine whether the output parameters of the mobile power supply are continuously less than a predetermined threshold during the light load detection period; The control unit is configured to control the power supply to enter a sleep state after the light load detection period if the output parameter remains below a predetermined threshold for an extended period during the light load detection period.