Charging control method and device, storage medium and charging equipment
By detecting the estimated charging time of the component to be charged and the interval between off-peak hours, the charging strategy is dynamically adjusted, which solves the problem of low charging efficiency and achieves improved charging efficiency and equipment availability while reducing costs.
Patent Information
- Application Number
- CN202510805094.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-12-12
AI Technical Summary
Existing charging technologies suffer from low charging efficiency and cannot dynamically adjust charging strategies according to the normal operating needs of devices. This results in devices being idle while waiting to charge, and when fully charged in a short time, charging is delayed until off-peak hours, wasting available time.
By detecting the estimated charging time of the component to be charged and the time interval between the current moment and the off-peak electricity consumption period, the charging strategy is dynamically adjusted, including efficiency-first strategy and cost-first strategy, to optimize charging time and resource allocation so as to charge during the off-peak electricity consumption period.
It improves charging efficiency, reduces charging costs, ensures that equipment can be supplied with power in a timely manner in emergency situations, and avoids equipment being idle while waiting to charge.
Smart Images

Figure CN121105884A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent charging technology, and in particular to a charging control method, device, storage medium, and charging equipment. Background Technology
[0002] Currently, the development of new energy technologies has driven a continuous increase in the demand for efficient and low-cost charging for equipment such as electric forklifts and electric vehicles. With the application of time-of-use pricing policies, manufacturers and users tend to charge during off-peak hours when electricity prices are lower to reduce costs.
[0003] In related technologies, peak-shaving and valley-based charging schemes are widely adopted, which trigger charging operations based on the boundary between off-peak and peak electricity consumption periods. Electrical equipment detects whether the current time is during an off-peak period and delays charging until the start of the off-peak period, at which point charging automatically begins.
[0004] However, when using the charging solutions provided by related technologies, if the component to be charged can be fully charged in a short time, delaying charging during off-peak hours will waste the available time of the component. Overall, the charging efficiency is low, and the charging strategy cannot be dynamically adjusted according to normal working needs, causing the device to be idle while waiting to charge. Summary of the Invention
[0005] The purpose of this invention is to provide a charging control method, device, storage medium, and charging equipment, thereby reducing charging costs while improving charging efficiency.
[0006] To achieve the above objectives, this application provides a charging control method, the method comprising: The estimated charging time of the component to be charged is detected. The estimated charging time refers to the time required for the component to be charged to reach a fully charged state when charged at the first power. The first power is the rated charging power of the component to be charged. Detect the time interval between the current moment and the start of the off-peak electricity consumption period; Based on the expected charging time and time interval, a charging strategy for the component to be charged is determined. The charging strategy includes an efficiency-first strategy and a cost-first strategy. The cost-first strategy aims to minimize the charging cost, while the efficiency-first strategy aims to maximize the charging speed. The charging strategy based on the component to be charged controls the charging of the component to be charged.
[0007] As a further improvement to this application, the step of determining the charging strategy for the component to be charged based on the expected charging time and time interval includes: If the expected charging time is less than or equal to the first duration threshold, the charging strategy of the component to be charged is determined based on the time interval. If the expected charging time exceeds the first time threshold, the charging strategy for the component to be charged is determined to be a cost-first strategy.
[0008] As a further improvement to this application, the step of determining the charging strategy for the component to be charged based on the time interval when the expected charging time is less than or equal to a first duration threshold includes: If the expected charging time is less than or equal to the first time threshold and the time interval is greater than the second time threshold, the charging strategy for the component to be charged is determined to be the efficiency-first strategy. If the expected charging time is less than or equal to the first time threshold and the time interval is less than or equal to the second time threshold, the charging strategy for the component to be charged is determined to be the cost-priority strategy.
[0009] As a further improvement to this application, the charging strategy based on the component to be charged controls the component to be charged to charge, including: If the charging strategy is determined to be an efficiency-first strategy, the component to be charged is immediately and continuously charged at the first power until the component to be charged is fully charged. Given that the charging strategy is determined to be a cost-first strategy, check whether the current time has reached a low-electricity consumption period; If the system detects that the current time is during a low-electricity period, it will begin to continuously charge the components to be charged.
[0010] As a further improvement to this application, the step of starting continuous charging of the component to be charged when detecting that the current time has reached a low electricity consumption period includes: If the current time is detected to be a period of low electricity demand, the charging of the component to be charged will begin at the highest power. The method further includes: When the off-peak electricity hours end and the component to be charged is not fully charged, the system switches to the second power to continuously charge the component until it is fully charged. The second power is a maintenance charging power that is lower than the first power.
[0011] As a further improvement to this application, the method of detecting the estimated charging time of the component to be charged includes: Get the total battery capacity of the component to be charged, and its current battery level; The estimated charging time is determined based on the difference between the total capacity of the component to be charged and the current capacity, as well as the first power.
[0012] As a further improvement to this application, in the case where at least two components to be charged are charging simultaneously, The method further includes: A charging priority queue is generated based on the estimated charging time, urgency of use, and historical charging efficiency data of each component to be charged. When the load on the charging device reaches the preset load threshold, the charging power of each component to be charged is adjusted and controlled according to the priority queue, and the charging power is positively correlated with the priority.
[0013] On the other hand, this application provides a charging control device, the device comprising: The detection module is used to detect the estimated charging time of the component to be charged, which is the time required for the component to reach a fully charged state when charged at the first power; and to detect the time interval between the current time and the start time of the off-peak electricity consumption period. The strategy determination module is used to determine the charging strategy of the component to be charged based on the expected charging time and time interval. The charging strategy includes an efficiency-first strategy and a cost-first strategy. The cost-first strategy aims to minimize the charging cost, while the efficiency-first strategy aims to maximize the charging speed. The charging module is used to control the charging of the component to be charged based on the charging strategy of the component to be charged.
[0014] On the other hand, this application provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, performs the charging control method as described in any of the preceding aspects.
[0015] On the other hand, this application provides a charging device, including a charging component, a memory, and a processor, the processor being configured to execute at least one computer program stored in the memory to implement the charging control method as described in any of the preceding aspects.
[0016] In this embodiment, by detecting the estimated charging time and the time interval between the current moment and the off-peak electricity period, the charging strategy of the components to be charged is dynamically adjusted, effectively solving the problem that traditional peak-shaving and off-peak charging technologies rely entirely on fixed off-peak electricity windows to start charging. By controlling the start time of charging based on the estimated charging time and the time interval, different components to be charged can be charged at different times. This reduces charging costs while ensuring the charging efficiency of some components, enabling them to supply power to devices with more urgent power needs and ensuring their normal operation. Attached Figure Description
[0017] Figure 1 A flowchart illustrating a charging control method provided in an illustrative embodiment of this application is shown. Figure 2 A flowchart illustrating a process for determining a strategy for a component to be charged, according to an illustrative embodiment of this application, is shown. Figure 3 This illustration shows a structural diagram of a charging control device provided in an illustrative embodiment of the present application; Figure 4 This is a schematic diagram of the structure of a charging device provided in an illustrative embodiment of this application. Detailed Implementation
[0018] The present invention will now be described in detail with reference to the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional modifications made by those skilled in the art based on these embodiments are included within the scope of protection of the present invention.
[0019] It should be noted that the term "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0020] Please refer to Figure 1 The diagram illustrates a flowchart of a charging control method provided in an illustrative embodiment of this application. This method, executed by a charging device, includes the following steps: Step 101: Detect the estimated charging time of the component to be charged.
[0021] The estimated charging time refers to the time required for the component to be charged to reach full charge when charged at the first power, where the first power is the rated charging power of the component to be charged.
[0022] The term "rechargeable component" refers to an energy storage unit, including industrial equipment batteries, such as electric forklift batteries and power batteries for logistics robots; transportation vehicle batteries, such as battery packs for electric vehicles and electric ships; and energy storage systems, such as distributed energy storage devices and backup power systems.
[0023] Step 102: Detect the time interval between the current time and the start time of the off-peak electricity consumption period.
[0024] Off-peak electricity hours refer to the period when electricity prices are lowest under the time-of-use pricing policy of the power grid, which is usually at night or during non-peak electricity consumption periods.
[0025] For example, if the charging device obtains the off-peak electricity consumption period as 23:00-03:00, and the current time is 18:00, then the time interval between the current time and the start time of the off-peak electricity consumption period is 5 hours.
[0026] Step 103: Determine the charging strategy for the component to be charged based on the expected charging time and time interval.
[0027] The charging strategies include efficiency-first strategy and cost-first strategy. The cost-first strategy aims to minimize charging costs by rationally planning charging times and resource allocation, and making the most of off-peak electricity hours when electricity prices are low.
[0028] The efficiency-first strategy aims to maximize charging speed by optimizing the charging process so that the components to be charged can be fully charged in a short time.
[0029] Step 104: Control the charging of the component to be charged based on the charging strategy of the component to be charged.
[0030] In summary, this embodiment of the application effectively solves the problem that traditional peak-shaving and valley-based charging technologies rely entirely on fixed valley-time windows for charging by dynamically adjusting the charging strategy of the components to be charged, based on the estimated charging duration and the time interval between the current moment and the off-peak electricity period. By controlling the charging start time based on the estimated charging duration and time interval, different components can be charged at different times, thereby reducing charging costs while ensuring the charging efficiency of some components. This allows them to supply power to devices with more urgent power needs, ensuring their normal operation.
[0031] In one possible implementation, the charging device first categorizes the components to be charged based on their expected charging time. For example, when charging a battery, if the expected charging time is detected to be long, it is difficult to fully charge and put it into use in a short time, thus hindering charging efficiency. For batteries that only require a short time to fully charge, a suitable charging time can be determined based on the time interval between the current moment and the start of the off-peak electricity consumption period.
[0032] The mechanism for determining the charging strategy of the component to be charged will be explained below through an illustrative embodiment.
[0033] Please refer to Figure 2 The diagram illustrates a flowchart of a process for determining a strategy for a component to be charged, according to an illustrative embodiment of this application. The process includes the following steps: Step 201: If the expected charging time is greater than the first duration threshold, determine that the charging strategy for the component to be charged is a cost-first strategy.
[0034] If the charging equipment determines that the estimated charging time for the component to be charged exceeds a first time threshold, it indicates that the component cannot reach a full charge in a short period of time. If the charging equipment immediately charges it, the power consumption will be high during peak electricity consumption periods, resulting in higher charging costs.
[0035] Optionally, off-peak electricity periods are typically allocated by the power grid company or energy management agency through time-of-use pricing, and their length may be 4-6 hours. The corresponding first duration threshold can be set as the length of the off-peak electricity period. That is, if the expected charging time is longer than the first duration threshold, the component to be charged cannot be fully charged within an off-peak electricity period, indicating that it cannot reach a fully charged state in a short time.
[0036] Optionally, the first duration threshold can be dynamically adjusted according to the actual application scenario, but this embodiment does not limit it.
[0037] If the component to be charged cannot be charged in a short time, the corresponding charging strategy is determined to be a cost-first strategy, which aims to reduce the charging cost as much as possible.
[0038] Step 202: If the expected charging time is less than or equal to the first duration threshold, determine the charging strategy for the component to be charged based on the time interval.
[0039] Optionally, since there may be situations in real-world applications where it is necessary to use the charging components urgently, for example, there may be multiple electric forklifts in a workshop, and the models of the electric forklifts and the charging components may be the same or interchangeable. Furthermore, there may be situations in the workshop where the number of working forklifts may be temporarily increased or they may need to be started urgently. Therefore, it is necessary to reserve a number of fully charged charging components for use.
[0040] Therefore, if the charging device determines that the expected charging time of the component to be charged is less than or equal to the first duration threshold, it is also necessary to determine its charging strategy based on the time interval.
[0041] Step 203: If the expected charging time is less than or equal to the first time threshold and the time interval is greater than the second time threshold, determine that the charging strategy for the component to be charged is an efficiency-first strategy.
[0042] Optionally, if the expected charging time is short, the charging cost will not be high even if charging is done during peak electricity consumption periods. However, if the time interval is long, the time cost of waiting to recharge during off-peak hours will be high.
[0043] Therefore, when the expected charging time is less than or equal to the first time threshold and the time interval is greater than the second time threshold, an efficiency-first strategy can be adopted to ensure charging efficiency. This allows the component to be charged to be fully charged as quickly as possible for use by the electrical equipment.
[0044] For example, if the first duration threshold is 5 hours and the second duration threshold is 4 hours, and the expected charging time for the component to be charged is 1 hour and the time interval is 8 hours, then the charging strategy for the component to be charged is determined to be an efficiency-first strategy.
[0045] Step 204: If the expected charging time is less than or equal to the first time threshold and the time interval is less than or equal to the second time threshold, determine that the charging strategy for the component to be charged is the cost-first strategy.
[0046] Optionally, if the time interval is less than the second duration threshold, it indicates that the current time is close to the off-peak electricity consumption period. If the expected charging time is less than or equal to the duration threshold, it indicates that the time required for the component to be charged to reach a fully charged state is short, and it can reach a fully charged state within the off-peak electricity consumption period.
[0047] Therefore, when the expected charging time is less than or equal to the first duration threshold and the time interval is less than or equal to the second duration threshold, a cost-first strategy can be adopted to ensure that charging costs are reduced.
[0048] For example, if the first duration threshold is 5 hours and the second duration threshold is 4 hours, and the expected charging time for the component to be charged is 1 hour, and the time interval is 1 hour, then the charging strategy for the component to be charged is determined to be a cost-first strategy.
[0049] In this embodiment, a hierarchical judgment is made based on a first duration threshold and a second duration threshold to dynamically decide on the charging strategy. For components requiring long-term charging, a cost-priority strategy is directly activated to reduce charging costs. For components requiring short-term charging, the charging strategy is flexibly selected by combining the time interval between the current time and the off-peak electricity consumption period. This avoids equipment being idle due to waiting for off-peak electricity consumption periods and also prevents increased costs due to short-term charging entering peak electricity consumption periods. Furthermore, the thresholds in this solution are programmable to adapt to different scenario requirements.
[0050] In this embodiment, after determining the charging strategy, the charging device needs to control the charging of the component to be charged based on the charging strategy. The control methods for different charging strategies will be described below through an illustrative embodiment.
[0051] Efficiency-first strategy: When the charging strategy is determined to be efficiency-first, the component to be charged is immediately and continuously charged at the first power until the component to be charged reaches a full charge.
[0052] The efficiency-first strategy prioritizes maximizing charging speed by immediately initiating charging and continuously charging the component at its highest power output until it reaches full charge. This strategy is suitable for scenarios with high availability requirements for electrical equipment, aiming to minimize downtime and ensure rapid recovery of operational capabilities.
[0053] Optionally, the first charging power can be the rated maximum power of the component to be charged.
[0054] To illustrate, suppose an electric forklift in a warehouse needs immediate use for an urgent task, but its current battery level is 30%. The charging equipment detects an estimated charging time of 2 hours, and the time interval between the current moment and the start of the off-peak electricity consumption period is 5 hours. If the first time limit is 4 hours and the second time limit is 3 hours...
[0055] Since the expected charging time is less than the first time threshold and the time interval is greater than the second time threshold, the charging equipment will start with an efficiency priority strategy and immediately charge at the maximum rated power. The forklift can be put into use after 2 hours to avoid task delays caused by waiting for off-peak electricity periods.
[0056] Cost-first strategy: Detect whether the current time has reached the off-peak electricity consumption period. If the current time has reached the off-peak electricity consumption period, start continuous charging of the components to be charged.
[0057] The cost-first strategy aims to minimize charging costs by strictly limiting charging operations to off-peak hours when electricity prices are lower, thus significantly reducing charging expenses. This strategy is suitable for cost-sensitive applications or scenarios where the charging time for components is long.
[0058] When the system determines that the component to be charged requires a long charging time, such as when the charging time is approaching or exceeds the remaining time window of the off-peak electricity consumption period, or when the current time is close to the off-peak electricity consumption period, the cost-priority strategy is activated.
[0059] In one possible implementation, if it is detected that the current time has not reached the off-peak electricity consumption period, the charging device remains powered on, but the charging of the components to be charged is suspended.
[0060] If the current time is detected to be a period of low electricity demand, the charging of the components to be charged will begin at the highest power.
[0061] Optionally, if the component to be charged has a low remaining power and its expected charging time is long, the cost-priority strategy may not be able to bring the component to a full charge during off-peak hours.
[0062] Optionally, if the off-peak electricity consumption period is detected to have ended and the component to be charged has not reached full charge, the charging power is switched to the second power to continuously charge the component until it reaches full charge. The second power is a maintenance charging power lower than the first power.
[0063] After the off-peak electricity hours end, electricity prices typically enter peak hours. Continuing to charge at the highest power level (higher power) will significantly increase electricity costs. Switching to the second highest power level (lower power) can reduce electricity consumption during peak hours, thereby lowering overall costs.
[0064] The second power is the maintenance charging power. Although it is lower than the first power, it is sufficient to continuously replenish the power and ensure that the components to be charged are fully charged, avoiding charging interruptions due to insufficient time during off-peak hours.
[0065] For example, the component to be charged is charged at 10KW (first power) during off-peak hours. If the component to be charged is not fully charged when the off-peak hours end, it is switched to 2KW (second power) to continue charging.
[0066] If the off-peak electricity consumption period ends and the component to be charged is not fully charged, charging of the component to be charged is stopped, and the estimated charging time for the component to be charged is detected. Based on the estimated charging time and the time interval, the charging strategy is re-determined, and the component is charged according to the new charging strategy.
[0067] For example, if the charging device detects an estimated charging time of 7 hours, and the time interval between the current moment and the start time of the off-peak electricity consumption period is 3 hours, and if the first time limit is 4 hours, the second time limit is 4 hours, and assuming that there is an off-peak electricity consumption period every day, lasting for 4 hours, then if the estimated charging time exceeds the first time limit, charging will be delayed until the off-peak electricity consumption period.
[0068] If the component to be charged is not fully charged at the end of the off-peak electricity period, its estimated charging time is re-detected and found to be 3 hours. At this time, the estimated charging time is less than the first time threshold, and the time interval from the off-peak electricity period is 24 hours, which is greater than the second time threshold. Therefore, the charging strategy is determined to be an efficiency-first strategy, and the charging device begins charging.
[0069] In this embodiment, high-power fast charging is used during off-peak hours to maximize the use of low-priced electricity and significantly reduce electricity costs. If the device is not fully charged by the end of the off-peak period, it switches to a second power level for continued charging. This reduces high-cost electricity consumption during wind power periods while ensuring that the components to be charged are eventually fully charged to avoid interruption of equipment use due to insufficient power. Through tiered power control, the charging task is completed while alleviating grid pressure during peak electricity demand periods.
[0070] Before determining the charging strategy for the component to be charged, the time interval between the current moment and the start of the off-peak electricity period should be determined, as well as the expected charging time.
[0071] Optionally, the charging device can obtain the precise current time through a built-in real-time display or by synchronizing with a network time protocol. Furthermore, it can pre-store event windows for off-peak electricity consumption periods based on the local power grid's time-of-use pricing policy. Alternatively, it can retrieve the latest off-peak electricity consumption period configuration in real time via the power grid API.
[0072] Optionally, in determining the estimated charging time, the total battery capacity and current battery level of the component to be charged are first obtained. For example, the current battery level can be read through the management system in the charging device. The charging device can obtain the nameplate parameters of the component to be charged, thereby obtaining the rated power for charging, which is the first power.
[0073] Subsequently, the charging device determines the estimated charging time based on the total power capacity, the current power level, and the rated power.
[0074] Optionally, during the charging process, the aging factor of the component to be charged will also affect the charging rate. Therefore, to obtain a more accurate estimated charging time, it can be calculated using the following formula:
[0075] in, Indicates the estimated charging time. Indicates the total battery capacity. Indicates the current battery level. Indicates the first power. This represents the aging factor. The aging factor can be determined by reading the historical charging data or health status data of the component being charged.
[0076] In one possible implementation, multiple components may be charging simultaneously. In the case where at least two components are charging simultaneously... A charging priority queue is generated based on the estimated charging time, urgency of use, and historical charging efficiency data of each component to be charged. When the load of the charging device reaches a preset load threshold, the charging power of each component to be charged is adjusted and controlled according to the priority queue, and the charging power is positively correlated with the priority.
[0077] The charging priority queue is arranged according to the charging priority of each component to be charged. The charging priority is negatively correlated with the expected charging time, positively correlated with the urgency of use, and positively correlated with historical charging efficiency.
[0078] Optionally, when determining charging priorities, a priority score is obtained through a weighted calculation method, and a charging priority queue is determined based on the priority score.
[0079] Optionally, a safety threshold (preset load threshold) can be set for the power of each charging device or the total power of multiple charging devices in a charging station. For example, if the total power of the charging station is 100KW, the preset load threshold can be 90KW.
[0080] During the process of adjusting the charging power of the sub-devices to be charged based on the charging priority queue, the following two situations may occur.
[0081] Scenario 1: When the load on the charging device does not reach the preset load threshold, all components to be charged are charged at the first power.
[0082] Scenario 2: Optionally, when the charging device reaches or exceeds a preset load threshold, priority will be given to charging the high-priority components to be charged.
[0083] Optionally, when the charging device reaches or exceeds a preset load threshold, different components to be charged are charged with different charging powers according to priority.
[0084] For example, the top 20% of the components in the priority queue are charged with the first power, the components in the priority queue ranked between 20% and 50% are charged with the third power, and the components in the priority queue ranked in the bottom 50% are charged with the second power, wherein the third power is less than the first power but greater than the second power.
[0085] In this embodiment, the charging power of each component to be charged is controlled based on a priority queue, thereby achieving dynamic power adjustment, ensuring that the load is always below the safety threshold, avoiding overload tripping or damage to the charging equipment.
[0086] Please refer to Figure 3 The diagram illustrates a structural diagram of a charging control device according to an illustrative embodiment of this application, the device comprising: The detection module 310 is used to detect the estimated charging time of the component to be charged, which refers to the time required for the component to be charged to reach a fully charged state when charged at the first power; and to detect the time interval between the current time and the start time of the off-peak electricity consumption period. The strategy determination module 320 is used to determine the charging strategy of the component to be charged based on the expected charging time and time interval. The charging strategy includes an efficiency-first strategy and a cost-first strategy. The cost-first strategy aims to minimize the charging cost, while the efficiency-first strategy aims to maximize the charging speed. The charging module 330 is used to control the charging of the component to be charged based on the charging strategy of the component to be charged.
[0087] Optionally, the strategy determination module 320 is further configured to determine the charging strategy of the component to be charged based on the time interval when the expected charging time is less than or equal to the first time threshold; and to determine the charging strategy of the component to be charged as a cost-priority strategy when the expected charging time is greater than the first time threshold.
[0088] Optionally, the strategy determination module 320 is further configured to determine the charging strategy of the component to be charged as an efficiency-first strategy when the expected charging time is less than or equal to a first time threshold and the time interval is greater than a second time threshold; and to determine the charging strategy of the component to be charged as a cost-first strategy when the expected charging time is less than or equal to the first time threshold and the time interval is less than or equal to the second time threshold.
[0089] Optionally, the charging module 330 is also configured to, when the charging strategy is determined to be an efficiency-first strategy, immediately and continuously charge the component to be charged at a first power until the component to be charged reaches a fully charged state; when the charging strategy is determined to be a cost-first strategy, detect whether the current time has reached an off-peak electricity consumption period; and when the current time has been detected to have reached an off-peak electricity consumption period, start continuously charging the component to be charged.
[0090] Optionally, the charging module 330 is also used to start continuously charging the component to be charged at a first power when it is detected that the current time has reached the off-peak period. The charging module 330 is also used to switch to a second power to continuously charge the component to be charged when the off-peak electricity period ends and the component to be charged has not reached a full charge state, until the component to be charged reaches a full charge state. The second power is a maintenance charging power lower than the first power.
[0091] Optionally, the detection module 310 is used to obtain the total power capacity of the component to be charged and the current power level; and to determine the estimated charging time based on the difference between the total power capacity and the current power level of the component to be charged and the first power.
[0092] Optionally, when at least two components are charging simultaneously, The charging module 330 is also used to adjust and control the charging power of each component to be charged according to the priority queue when the load of the charging device reaches the preset load threshold. The charging power is positively correlated with the priority.
[0093] In summary, this embodiment of the application effectively solves the problem that traditional peak-shaving and valley-based charging technologies rely entirely on fixed valley-time windows for charging by dynamically adjusting the charging strategy of the components to be charged, based on the estimated charging duration and the time interval between the current moment and the off-peak electricity period. By controlling the charging start time based on the estimated charging duration and time interval, different components can be charged at different times, thereby reducing charging costs while ensuring the charging efficiency of some components. This allows them to supply power to devices with more urgent power needs, ensuring their normal operation.
[0094] Please refer to Figure 4This diagram illustrates the structure of a charging device 400 according to an illustrative embodiment of this application. The charging device in this application may include one or more of the following components: a processor 410, a memory 420, and a charging assembly 430.
[0095] Optionally, the processor 410 executes the steps in the charging control method provided in any of the above embodiments by running or executing instructions, programs, code sets or instruction sets stored in the memory 420, and calling data stored in the memory 420.
[0096] In addition, the processor can also perform various functions of the device and process data. Optionally, the processor 410 can 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 410 can integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), Neural-network Processing Unit (NPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required to be displayed on the touch screen; the NPU is used to implement Artificial Intelligence (AI) functions; and the modem is used to handle wireless communication. It is understood that the aforementioned modem may also not be integrated into the processor 410 and can be implemented as a separate chip.
[0097] Memory 420 may include random access memory (RAM) or read-only memory (ROM). Optionally, memory 420 may include non-transitory computer-readable storage medium. Memory 420 may be used to store instructions, programs, code, code sets, or instruction sets. Memory 520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described below, etc.; the data storage area may store data created according to the use of the device (such as audio data, phonebook, etc.).
[0098] The charging component 430 is used to perform electrical energy conversion and transmission, and to charge the component to be charged. In addition, the charging component is used to control the charging power.
[0099] The device in this embodiment further includes a communication component and a display component (not shown in the figure). The communication component can be a Bluetooth component, a WiFi (Wireless Fidelity) component, an NFC (Near Field Communication) component, etc., used to communicate with external devices (servers or other devices) via wired or wireless networks; the display component is used to display a graphical user interface and / or receive user interaction operations.
[0100] In addition, those skilled in the art will understand that the structure of the device shown in the above figures does not constitute a limitation on the device. The device may include more or fewer components than shown, or combine certain components, or have different component arrangements. For example, the device may also include radio frequency circuits, input units, sensors, audio circuits, speakers, power supplies, etc., which will not be described in detail here.
[0101] The present invention also provides a storage medium storing a computer program thereon, which, when executed by a processor, performs the charging control method as described above. The storage medium may be a read-only memory (ROM), random access memory (RAM), magnetic disk, optical disk, or other media suitable for storing computer programs. The computer program on the storage medium contains all the instruction code required to implement the charging control method, and when executed by a processor of a computer device, it can complete all the steps of the aforementioned charging control method.
[0102] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A charge control method characterized by, The method comprises: detecting a predicted charging duration of the component to be charged, the predicted charging duration being a required duration for the component to be charged to reach a full charge state when charged at a first power, the first power being a rated charging power of the component to be charged; detecting a time interval between a current time and a start time of a valley period of electricity consumption; determining a charging strategy of the component to be charged based on the predicted charging duration and the time interval, wherein the charging strategy comprises an efficiency-first strategy and a cost-first strategy, the cost-first strategy aiming to minimize charging cost, and the efficiency-first strategy aiming to maximize charging speed; controlling the component to be charged to charge based on the charging strategy of the component to be charged.
2. The method of claim 1, wherein, The determination of the charging strategy of the component to be charged based on the predicted charging duration and the time interval comprises: in a case where the predicted charging duration is less than or equal to a first duration threshold, determining the charging strategy of the component to be charged based on the time interval; in a case where the predicted charging duration is greater than the first duration threshold, determining the charging strategy of the component to be charged as the cost-first strategy.
3. The method of claim 2, wherein, The determination of the charging strategy of the component to be charged based on the predicted charging duration and the time interval comprises: in a case where the predicted charging duration is less than or equal to the first duration threshold and the time interval is greater than a second duration threshold, determining the charging strategy of the component to be charged as the efficiency-first strategy; in a case where the predicted charging duration is less than or equal to the first duration threshold and the time interval is less than or equal to the second duration threshold, determining the charging strategy of the component to be charged as the cost-first strategy.
4. The method according to any one of claims 1 to 3, characterized in that, The control of the component to be charged to charge based on the charging strategy of the component to be charged comprises: in a case where the charging strategy is determined as the efficiency-first strategy, immediately continuously charging the component to be charged at the first power until the component to be charged reaches the full charge state; in a case where the charging strategy is determined as the cost-first strategy, detecting whether the current time reaches the valley period of electricity consumption; in a case where it is detected that the current time reaches the valley period of electricity consumption, starting to continuously charge the component to be charged.
5. The method of claim 4, wherein, The starting to continuously charge the component to be charged in a case where it is detected that the current time reaches the valley period of electricity consumption comprises: in a case where it is detected that the current time reaches the valley period of electricity consumption, starting to continuously charge the component to be charged at the first power. The method further comprises: in a case where the valley period of electricity consumption ends and the component to be charged does not reach the full charge state, switching to continuously charge the component to be charged at a second power until the component to be charged reaches the full charge state, the second power being a maintenance charging power lower than the first power.
6. The method of claim 1, wherein, The detection of the predicted charging duration of the component to be charged comprises: obtaining a total capacity of the component to be charged and a current capacity; determining the predicted charging duration based on a difference between the total capacity and the current capacity of the component to be charged and the first power.
7. The method of claim 1, wherein, In a case where there are at least two components to be charged simultaneously, The method further comprises: generating a charging priority queue based on the predicted charging duration, the use urgency and the historical charging efficiency data of each component to be charged; In a case where the load of the charging device reaches a preset load threshold, the charging power of each to-be-charged component is adjusted according to a priority queue, and the charging power is positively correlated with the priority.
8. A charge control device, characterized by comprising: The device comprises: a detection module configured to detect a predicted charging duration of the to-be-charged component, the predicted charging duration being a required duration for the to-be-charged component to reach a full-charge state when charged at a first power; and detect a time interval between a current time and a start time of a power consumption valley period; a strategy determination module configured to determine a charging strategy of the to-be-charged component based on the predicted charging duration and the time interval, wherein the charging strategy comprises an efficiency-first strategy and a cost-first strategy, the cost-first strategy aiming to minimize charging cost, and the efficiency-first strategy aiming to maximize charging speed; a charging module configured to control the to-be-charged component to charge based on the charging strategy of the to-be-charged component. 9.A computer storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to perform the charging control method according to any one of claims 1 to 7. 10.A charging device comprising a charging component, a memory and a processor, wherein the processor is configured to execute at least one computer program stored in the memory to implement the charging control method according to any one of claims 1 to 7.