Battery replacement data processing method and device, electronic equipment and readable storage medium
By analyzing electricity price information and battery swapping orders, and rationally planning the number of reserve batteries and charging strategies, the problem of high battery charging costs at battery swapping stations has been solved, resulting in cost reduction and improved user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHEJIANG XIAOJU GREEN ENERGY TECHNOLOGY CO LTD
- Filing Date
- 2025-01-13
- Publication Date
- 2026-07-21
AI Technical Summary
Existing battery swapping stations suffer from high charging costs, poor user experience, and an inability to effectively utilize electricity price trends to plan charging strategies.
By analyzing electricity price trends and historical battery swapping orders, we can determine time intervals and order distribution parameters, rationally plan the number of reserve batteries, utilize periods of low electricity prices for charging, reduce the number of reserve batteries during periods of high electricity prices, and dynamically adjust the charging strategy based on the number of battery swapping queues.
This reduces the overall battery charging cost of battery swapping stations, improves user battery swapping efficiency and experience, and enhances the profitability of battery swapping station operators.
Smart Images

Figure CN122434583A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery swapping station technology, and specifically to a battery swapping data processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] As the new energy vehicle market gradually expands, the demand for battery replenishment is becoming increasingly common. Meanwhile, battery swapping stations, as a method of replenishing electric vehicles, can centrally charge and manage batteries. Compared to charging stations, battery swapping stations have significant advantages in terms of replenishment and utilization efficiency, providing users with greater convenience for battery swapping.
[0003] However, since the battery charging cost of existing battery swapping stations is usually determined based on the electricity price at the time of charging, the overall charging cost is high and the user experience is poor. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a battery swapping data processing method, apparatus, electronic device, and readable storage medium to reduce charging costs.
[0005] In a first aspect, embodiments of the present invention aim to provide a battery swapping data processing method, the method comprising:
[0006] At least one time interval is determined based on the trend of electricity price information, wherein the time interval is an upward interval or a downward interval;
[0007] Analyze historical battery swapping order information to determine the order distribution parameters of the battery swapping station. The order distribution parameters are used to characterize the number of battery swapping orders at different times.
[0008] The number of reserve batteries at a corresponding time is determined based on the time interval and the order distribution parameters. The number of reserve batteries is the number of batteries in the battery swapping station with remaining power sufficient for swapping.
[0009] Further, determining the number of reserve batteries at a corresponding time based on the time interval and the order distribution parameters includes:
[0010] Determine the target time interval in which the target moment falls;
[0011] In response to the target time interval being an increasing interval, the corresponding number of reserve batteries is determined based on the number of charging bays at the battery swapping station and the first battery swapping parameter. The first battery swapping parameter is the number of battery swapping orders from the target time to the first reference time. The first reference time is determined based on the end time of the target time interval and the expected charging time. The expected charging time is the charging time from the start of charging to the remaining battery capacity reaching the swappable capacity.
[0012] In response to the target time interval being a decreasing interval, the corresponding number of reserve batteries is determined based on the number of charging bays and the second battery swapping parameter, where the second battery swapping parameter is the number of battery swapping orders from the target time to the second reference time, and the second reference time is determined based on the target time and the expected charging time.
[0013] Furthermore, the method also includes:
[0014] Obtain the number of battery swap queues at different times;
[0015] The number of reserve batteries at the corresponding time is adjusted according to the number of battery swapping queues.
[0016] Furthermore, adjusting the number of reserve batteries at the corresponding time based on the number of battery swapping queue members includes:
[0017] The adjustment parameters are determined based on the number of battery swapping queues, the number of charging bays at the battery swapping station, and the number of reserve batteries at the corresponding time.
[0018] The number of reserve batteries is adjusted according to the adjustment parameters.
[0019] Furthermore, the method also includes:
[0020] The charging command is issued according to the number of reserve batteries at different times;
[0021] The battery to be charged is charged based on the charging command, so that the number of reserve batteries at the corresponding time is not less than the number of reserve batteries.
[0022] Further, the step of charging the battery to be charged based on the charging command includes:
[0023] Based on the charging command, the batteries to be charged are charged in descending order of remaining power.
[0024] Secondly, embodiments of the present invention aim to provide a battery swapping data processing device, the device comprising:
[0025] A segmentation unit is used to determine at least one time interval based on the changing trend of electricity price information, wherein the time interval is an upward interval or a downward interval;
[0026] The determination unit is used to analyze historical battery swapping order information and determine the order distribution parameters of the battery swapping station. The order distribution parameters are used to characterize the number of battery swapping orders at different times.
[0027] The processing unit is used to determine the number of reserve batteries at a corresponding time based on the time interval and the order distribution parameters, wherein the number of reserve batteries is the number of batteries in the battery swapping station with remaining power sufficient for swapping.
[0028] Thirdly, embodiments of the present invention aim to provide a computer program product, the computer program product including a computer program / instruction, which, when executed by a processor, implements the method described in any of the preceding claims.
[0029] Fourthly, embodiments of the present invention aim to provide an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any of the preceding claims.
[0030] Fifthly, embodiments of the present invention aim to provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any of the preceding claims.
[0031] The technical solution of this invention determines at least one time interval based on the changing trend of electricity price information, analyzes historical battery swapping order information, determines the order distribution parameters that represent the number of battery swapping orders at different times for the battery swapping station, and determines the number of reserve batteries at the corresponding time based on the time interval and the order distribution parameters. This can meet the battery swapping demand while making reasonable use of the electricity price changing trend and reducing the overall battery charging cost of the battery swapping station. Attached Figure Description
[0032] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings, in which:
[0033] Figure 1 This is a flowchart of the battery swapping data processing method according to an embodiment of the present invention;
[0034] Figure 2 This is a schematic diagram illustrating the trend of electricity price information changes according to an embodiment of the present invention;
[0035] Figure 3 This is a flowchart illustrating the determination of the number of reserve batteries according to an embodiment of the present invention;
[0036] Figure 4 This is a flowchart of the charging control method according to an embodiment of the present invention;
[0037] Figure 5 This is a flowchart illustrating the correction of the number of reserve batteries according to an embodiment of the present invention;
[0038] Figure 6 This is a schematic diagram illustrating the generation and execution process of the battery swapping station charging strategy according to an embodiment of the present invention;
[0039] Figure 7 This is a schematic diagram of the battery swapping data processing device according to an embodiment of the present invention;
[0040] Figure 8 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0041] The present application is described below based on embodiments, but it is not limited to these embodiments. In the detailed description of the present application below, certain specific details are described in detail. Those skilled in the art can fully understand the present application without these details. To avoid obscuring the substance of the present application, well-known methods, processes, flows, elements, and circuits are not described in detail.
[0042] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.
[0043] Unless the context explicitly requires it, words such as "including" or "contains" throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".
[0044] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0045] The solutions described in this specification and embodiments, if involving information acquisition, will collect data under legal and compliant conditions, ensuring the legality of the data source, and will take appropriate technical and management measures to ensure data security. If involving personal information processing, processing will be carried out under legal grounds (e.g., obtaining the consent of the personal information subject, or being necessary for contract performance), and will only be conducted within the prescribed or agreed scope. A user's refusal to process personal information beyond what is necessary for basic functions will not affect the user's use of basic functions.
[0046] The terms used in this embodiment are explained as follows:
[0047] Battery swapping stations are energy stations that provide battery replacement services. They centrally store, charge, and distribute a large number of batteries through centralized charging stations. The core function of battery swapping stations is to enable rapid energy replenishment for electric vehicles, allowing them to meet their range requirements by directly swapping batteries instead of using traditional charging methods. This model separates the vehicle and the battery, improving energy replenishment efficiency and also aiding in battery maintenance and energy storage.
[0048] Reserve batteries: Fully charged batteries and replaceable batteries in the battery swapping station (i.e., the total amount of swappable capacity when the state of charge (SOC) reaches the required level).
[0049] Charging compartment: also known as battery compartment, is a dedicated space in a battery swapping station used to charge depleted batteries (i.e., batteries that are not fully charged) and to store fully charged and depleted batteries.
[0050] Since the charging cost of existing battery swapping stations is usually determined based on the electricity price at the time of charging, the overall charging cost is high and the user experience is poor. In view of this, the embodiments of the present invention aim to provide a battery swapping data processing method, which rationally plans and executes charging strategies by utilizing the differences in electricity prices at different times. This method can meet the battery swapping demand while making reasonable use of electricity price change trends to reduce the electricity purchase cost of battery swapping stations, thereby improving the profitability of battery swapping station operators.
[0051] Figure 1 This is a flowchart of the battery swapping data processing method according to an embodiment of the present invention. Figure 1 As shown, the battery swapping data processing method in this embodiment includes the following steps.
[0052] In step S110, at least one time interval is determined based on the changing trend of electricity price information. The time interval is either an upward interval or a downward interval.
[0053] In this embodiment, considering that the trend of electricity price information usually has a fixed time period, when determining at least one time interval based on the trend of electricity price information, the upward trend segment and downward trend segment within a time period are first determined based on the trend of electricity price information. Then, the upward interval and downward interval within the corresponding time period are determined according to each upward trend segment and downward trend segment, so as to facilitate the subsequent determination of the time interval where each moment is located as the upward interval or the downward interval.
[0054] Optionally, since existing electricity prices are typically calculated on a daily basis, electricity prices are divided into peak-hour prices, off-peak prices, and normal-hour prices based on changes in electricity demand at different times of the day. Some regions may also have extra peak-hour prices. Peak-hour prices are the highest, followed by mid-peak prices, with off-peak prices being the lowest, and normal-hour prices falling between peak and off-peak prices. In this embodiment, at least one time interval is determined based on the price change trends of each price segment within a given time period.
[0055] Figure 2 This is a schematic diagram illustrating the trend of electricity price information changes according to an embodiment of the present invention. Figure 2The diagram shows the trend of electricity price changes over a time period (e.g., one day). Within this time period, there are nine electricity price segments, including peak-valley price segment ①, off-peak price segments ②, ⑤, and ⑨, peak price segments ③, ⑥, and ⑧, and high-peak price segments ④ and ⑦. Based on the price changes over time for each segment, it can be determined that this time period includes two upward trend segments and two downward trend segments. The upward trend segments include the time periods corresponding to price segments ①-②-③-④ and ⑤-⑥-⑦. The downward trend segments include the time periods corresponding to price segments ④-⑤ and ⑦-⑧-⑨-①' (①' being the peak-valley price segment ① for the next time period).
[0056] After determining the upward and downward trend segments within a time period, this embodiment determines the trend attributes of each electricity price segment based on the distribution of the upward and downward trend segments, and determines the upward and downward intervals within the corresponding time period based on the trend attributes of each electricity price segment.
[0057] Optionally, the trend attribute of the electricity price segment in this embodiment is determined based on the trend attribute of the trend segment to which the corresponding electricity price segment belongs. Specifically, for an electricity price segment that belongs to only one trend segment, the trend attribute of that electricity price segment is the same as the trend attribute of the trend segment it belongs to. For example, if the trend segment to which electricity price segment ① belongs is an upward trend segment, then the trend attribute corresponding to electricity price segment ① is an upward trend. If the trend segment to which electricity price segment ⑧ belongs is a downward trend segment, then the trend attribute corresponding to electricity price segment ⑧ is a downward trend.
[0058] Meanwhile, for a price segment that simultaneously belongs to both an upward and downward trend segment, the trend attribute of this segment can be either the trend attribute of the earlier-occurring trend segment or the trend attribute of the later-occurring trend segment. Furthermore, in this embodiment, the right trend can be prioritized, and the trend attribute of the later-occurring trend segment can be determined as the trend attribute of the price segment. For example, if price segment ④ is simultaneously in an upward and downward trend segment, and the downward trend segment occurs later than the upward trend segment, then the trend attribute corresponding to price segment ④ is a downward trend. Similarly, the trend attribute corresponding to price segment ⑤ is an upward trend.
[0059] Furthermore, after determining the trend attributes of each electricity price segment, when determining the upward and downward intervals within the corresponding time period based on the trend attributes of each electricity price segment, in one optional implementation method, this embodiment will be as follows: Figure 2As shown, consecutive electricity price segments with the same attributes are integrated into a single time interval. That is, consecutive electricity price segments with an upward trend are merged into an upward interval, and consecutive electricity price segments with a downward trend are merged into a downward interval. Therefore, in this embodiment, a time period includes two upward intervals (electricity price segments ①-②-③ and ⑤-⑥) and two downward intervals (electricity price segments ④ and ⑦-⑧-⑨).
[0060] In another alternative implementation, this embodiment can also set each electricity price segment as a time interval, and define the electricity price segments with an upward trend as the upward interval, and the electricity price segments with a downward trend as the downward interval. Thus, this embodiment can obtain... Figure 2 The time periods shown correspond to the rising intervals of electricity price segments ①, ②, ③, ⑤, and ⑥, and the falling intervals of electricity price segments ④, ⑦, ⑧, and ⑨.
[0061] In step S120, the historical battery swapping order information is analyzed to determine the order distribution parameters of the battery swapping station. The order distribution parameters are used to characterize the number of battery swapping orders at different times.
[0062] In this embodiment, the historical battery swapping order information includes the number of battery swapping orders at different historical times. By obtaining historical battery swapping orders and classifying each historical battery swapping order according to the battery swapping time (which can be the start time of the battery swapping order), the number of battery swapping orders at each time point is determined.
[0063] Optionally, in this embodiment, the order distribution parameters of the battery swapping station are determined by analyzing historical battery swapping order information using a preset algorithm. The preset algorithm can be an LSTM algorithm or other prediction algorithms; the type of preset algorithm is not limited here.
[0064] Furthermore, in this embodiment, the LSTM algorithm is used to determine the order distribution parameters of the battery swapping station. By inputting historical battery swapping order information into a pre-trained LSTM model for processing, the number of battery swapping orders at each time point in the future (e.g., within one day) can be predicted based on the number of battery swapping orders at different historical times, and the predicted number of battery swapping orders at different times can be output.
[0065] Optionally, to further improve the operability and reliability of the subsequently determined battery swapping strategy, this embodiment pre-divides the time period into multiple decision time points, using the battery swapping time corresponding to each battery swapping operation as the time interval. Each decision time point has a corresponding time representation. That is, assuming the average battery swapping time for a user to complete one swap is t... v Then, based on this average battery swapping time t vDividing a time period into time intervals results in multiple decision time points, each represented by a corresponding moment.
[0066] Furthermore, assuming an average battery swapping time of t v If the time period is 3 minutes and one day is a time cycle, then the 24 hours of a day will be divided into 480 decision time points. The time corresponding to each decision time point can be denoted as t. i The value of i is 1, 2, ..., 480.
[0067] When determining the order distribution parameters for a battery swapping station, the number of battery swaps at each moment can be represented by the number of battery swapping orders in the time period from the current moment to the next moment. Furthermore, in determining the order distribution parameters for a given day, this embodiment can use the number of battery swapping orders at each moment of the previous day to predict the number of battery swapping orders at the corresponding moment of the current day, thereby determining the order distribution parameters for that day. This allows for the subsequent determination of the charging strategy for each moment (i.e., the decision time point) based on these order distribution parameters.
[0068] In step S130, the number of reserve batteries at the corresponding time is determined based on the time interval and order distribution parameters. The number of reserve batteries is the number of batteries in the battery swapping station with remaining power that has reached the swappable power level.
[0069] In this embodiment, the number of reserve batteries at different times corresponds to the charging strategy for those times. When determining the number of reserve batteries at each time, this embodiment considers the trend attribute of the time interval (i.e., whether the time interval is rising or falling) and the number of battery swapping orders at that time in the order distribution parameters. This ensures that during the rising trend from low to high electricity prices, a sufficient number of reserve batteries are fully charged in the low-price segment to meet subsequent battery swapping needs. Conversely, during the falling trend from high to low electricity prices, the number of reserve batteries remaining for charging in the high-price segment is reduced, thereby lowering the charging cost of reserve batteries and the overall charging cost of battery swapping. Simultaneously, by predicting user battery swapping needs, batteries can be charged in advance as needed, and when the demand arrives, the required number of batteries are charged to a swappable capacity, facilitating timely battery swapping, reducing waiting time, improving battery swapping efficiency, and providing a better user experience.
[0070] Optionally, in this embodiment, the number of reserve batteries at a given time is determined based on the trend attributes of the time interval in which each time point is located, the number of battery swapping orders at the corresponding time point, the number of charging bays in the battery swapping station, and the charging time of the battery.
[0071] Figure 3 This is a flowchart illustrating the determination of the number of reserve batteries according to an embodiment of the present invention. Figure 3As shown, in this embodiment, the number of reserve batteries at different times is determined by the following method.
[0072] In step S310, the target time interval in which the target time is located is determined.
[0073] In this embodiment, the number of reserve batteries corresponding to a specific moment is used as an example for explanation. The target moment can be any moment within the aforementioned determined electricity price change time period. When determining the number of reserve batteries at the target moment, the target moment is first matched with multiple time intervals within the aforementioned determined time period to determine the target time interval in which the target moment is located. The number of reserve batteries at the corresponding moment is then determined based on the trend attributes of the target time interval.
[0074] In step S320, in response to the target time interval being an ascending interval, the corresponding number of reserve batteries is determined based on the number of charging bays at the battery swapping station and the first battery swapping parameters.
[0075] In this embodiment, when the target time interval is an ascending interval, the number of reserve batteries for the corresponding target time is determined based on the number of charging bays at the battery swapping station and the first battery swapping parameter. The first battery swapping parameter is the number of battery swapping orders from the target time to the first reference time. The first reference time is determined based on the end time of the target time interval and the expected charging time. The expected charging time is the charging duration from the start of charging to the battery reaching a swappable capacity, and can be represented by the expected time (i.e., average charging time) from the start of charging to the battery reaching a swappable capacity.
[0076] In step S330, in response to the target time interval being a decreasing interval, the corresponding number of reserve batteries is determined based on the number of charging bays and the second battery swapping parameters.
[0077] In this embodiment, when the target time interval is a decreasing interval, the corresponding number of reserve batteries is determined based on the number of charging bays and the second battery swapping parameter. The second battery swapping parameter is the number of battery swapping orders from the target time to the second reference time, and the second reference time is determined based on the target time and the expected charging time.
[0078] Optionally, in this embodiment, the number of reserve batteries at the target time is determined based on the following reserve battery count:
[0079]
[0080] Among them, R charge-i B represents the number of reserve batteries at the target time; charge This refers to the number of charging bays at the battery swapping station; Order_p(t a ,t b ) indicates the time range of the prediction [t]a , t b Number of battery swapping orders (t) i The target time is represented by the value of i, which is determined by the number of time periods within a time cycle; t p-up Indicates the ascending interval; t p-up-end t represents the end time of the target time interval; charge Indicates the expected charging time.
[0081] Therefore, this embodiment determines the number of reserve batteries at each time point using the above method, thereby determining the charging strategy for the battery swapping station. This allows the decision-making process to comprehensively consider charging costs and user experience, minimizing overall charging costs while also ensuring a good user experience, enabling users to complete battery swaps promptly and reducing waiting time. Furthermore, while determining the charging strategy for the battery swapping station, the implementation also optimizes the operability of the charging strategy, making it more valuable.
[0082] Optionally, to further improve battery swapping efficiency, this embodiment typically uses a time period as the processing unit, batch-determining the number of reserve batteries at each moment within a time period, and executing the battery charging process within the corresponding time period based on the charging strategy corresponding to these reserve battery numbers. Taking a time period of one day as an example, in this embodiment, on the day the charging strategy is executed, the battery charging process will be performed according to the charging strategy [R] generated the previous day. charge-1 ,R charge-2 ,…,R charge-i ,…,R charge-n This is used to control the charging of the batteries to be charged, so that the number of reserve batteries present at the corresponding time is at least equal to the number of reserve batteries at the corresponding time, thus meeting the battery swapping needs at the corresponding time.
[0083] Furthermore, in this embodiment, by means of... Figure 4 The charging control method shown executes the charging strategy for the corresponding time period, specifically including the following steps.
[0084] In step S410, a charging command is issued according to the number of reserve batteries at different times.
[0085] Optionally, in this embodiment, each moment corresponds to a charging decision time point. When issuing a charging command, a charging command corresponding to a decision time point is issued every preset time interval, and the duration of the preset time interval is consistent with the duration of each moment interval, so as to ensure that the number of reserve batteries at the corresponding moment interval is not less than the number of reserve batteries.
[0086] Furthermore, considering that there may be discrepancies between the predicted battery swapping demand (i.e., the number of battery swapping orders) and the real-time battery swapping demand, in order to ensure the user's battery swapping experience, this embodiment will adjust the number of reserve batteries in real time during the execution of the charging strategy.
[0087] Figure 5 This is a flowchart illustrating the modification of the number of reserve batteries according to an embodiment of the present invention. Figure 5 As shown, in this embodiment, the number of reserve batteries is corrected using the following method to execute a charging strategy based on the final number of reserve batteries determined after correction.
[0088] In step S510, the number of battery swapping queues at different times is obtained.
[0089] In this embodiment, the number of battery swap queues can directly reflect the amount of battery swap demand. Therefore, by obtaining the number of battery swap queues at different times, the actual battery swap demand can be accurately determined. Specifically, the number of battery swap queues can be determined based on the number of battery swap orders scheduled for different times on the battery swapping platform and / or the number of vehicles waiting in line for battery swaps at the battery swapping station.
[0090] Optionally, in this embodiment, when obtaining the number of battery swapping queues at different times, the number of battery swapping queues at the battery swapping station can be obtained once every preset time interval. This can improve the accuracy of the number of battery swapping demands while avoiding the negative impact of frequently obtaining the number of battery swapping queues on the overall charging efficiency.
[0091] In step S520, the number of reserve batteries at the corresponding time is adjusted according to the number of battery swapping queues.
[0092] In this embodiment, after obtaining the number of battery swap queues at different times, the number of reserve batteries at each time is adjusted according to the number of battery swap queues at each time. This makes the adjusted number of reserve batteries more in line with the actual battery swapping needs, thereby meeting the user's battery swapping needs while further improving the overall battery swapping efficiency.
[0093] Optionally, when adjusting the number of reserve batteries at each time point, taking one time point as an example, in this embodiment, the adjustment parameters are first determined based on the number of battery swapping queues, the number of charging bays at the battery swapping station, and the number of reserve batteries at the corresponding time point; then the number of reserve batteries is adjusted based on the adjustment parameters.
[0094] Furthermore, the adjustment parameters in this embodiment can be determined using the following formula:
[0095] R charge-adjust =min(B charge ,max(R charge V line ))
[0096] Among them, R charge-adjust The adjustment parameter for the current number of reserve batteries; R charge V represents the number of reserve batteries at the current moment. line This represents the number of battery swapping queues at the current battery swapping station.
[0097] After determining the adjustment parameters at each time point, this embodiment will adjust the original number of reserve batteries based on the adjustment parameters at each time point, and determine the number corresponding to the adjustment parameters as the final number of reserve batteries.
[0098] Therefore, in this embodiment, the number of reserve batteries at each time moment is corrected by the above method, so that the corrected number of reserve batteries can better meet the actual battery swapping needs.
[0099] In step S420, the battery to be charged is charged based on the charging command so that the number of reserve batteries at the corresponding time is not less than the number of reserve batteries.
[0100] Optionally, in this embodiment, the batteries to be charged are charged according to the order of remaining power from high to low based on the charging command, so that a reserve battery that meets the battery swapping needs can be obtained in the shortest possible time.
[0101] The technical solution of this embodiment determines at least one time interval based on the changing trend of electricity price information, analyzes historical battery swapping order information, determines the order distribution parameters that represent the number of battery swapping orders at different times for the battery swapping station, and determines the number of reserve batteries at the corresponding time based on the time interval and the order distribution parameters. This can meet the battery swapping demand while making reasonable use of the electricity price changing trend and reducing the overall battery charging cost of the battery swapping station.
[0102] Figure 6 This is a schematic diagram illustrating the generation and execution process of the battery swapping station charging strategy according to an embodiment of the present invention. Figure 6 As shown, in this embodiment, before generating a charging strategy for the battery swapping station, the electricity price of the day is pre-divided into an upward trend segment and a downward trend segment based on the distribution of each electricity price segment and the electricity price change trend. Furthermore, the day's upward and downward intervals are further divided based on these upward and downward trend segments. Simultaneously, the average battery swapping time t for a user to complete one battery swapping operation is used as the basis for the calculation. v As a time interval, the time of day is divided into multiple charging decision time points, with each charging decision time point corresponding to a time t. i Therefore, by dividing the electricity price trend into segments and time intervals, the overall charging strategy processing can be simplified and the computational cost reduced.
[0103] Subsequently, based on the LSTM algorithm, the historical battery swapping information of the target battery swapping station on the day before the charging strategy is executed is processed, and the number of battery swapping orders at each time on the day the charging strategy is executed is predicted, thereby determining the order distribution parameters on the day the charging strategy is executed.
[0104] Furthermore, when generating the charging strategy for the day of execution, this embodiment determines the number of reserve batteries at each moment of the day of execution based on the rising and falling ranges of the charging strategy execution and the order distribution parameters of that day. This allows for the determination of the charging strategy for the battery swapping station by combining electricity price information and battery swapping demand. While meeting the battery swapping demand, it also makes reasonable use of electricity price trends to reduce the electricity purchase cost of the battery swapping station and improve the profitability of the battery swapping station operator.
[0105] In determining the number of reserve batteries at each time point, this embodiment selects each time point as the target time point in sequence according to the occurrence time of each time point, and determines the number of reserve batteries R at the target time point. charge-i This determines the number of reserve batteries at each time point on the day the charging strategy is executed, i.e., the charging strategy for the day the charging strategy is executed. [R] charge-1 ,R charge-2 ,…,R charge-i ,…,R charge-n ].
[0106] The number of reserve batteries R at the target time is determined. charge-i In this embodiment, the target time interval containing the target time will first be determined as either an ascending or descending interval. If the target time interval is an ascending interval, the number of battery swapping orders (Order_p(t)) from the target time to the first reference time will be determined first. i ,t p-up-end +t charge / 2), then compare the number of battery swap orders with the number of charging bays at the battery swap station B. charge The two values are compared, and the smaller value is determined as the number of reserve batteries at the corresponding time.
[0107] When the target time interval is a decreasing interval, this embodiment will first determine the number of battery swapping orders (Order_p(t)) from the target time to the second reference time. i ,t i +t charge Then, the number of battery swapping orders is compared with the number of charging bays at the battery swapping station (B). charge The two values are compared, and the smaller value is determined as the number of reserve batteries at the corresponding time. Therefore, this embodiment determines the number of reserve batteries at each time by using the above method, thereby determining the charging strategy for the battery swapping station. This allows the decision-making of the charging strategy to comprehensively consider charging costs and user experience, minimizing overall charging costs while also ensuring a good user experience, guaranteeing that users can complete battery swaps promptly and reducing waiting time. Furthermore, while determining the charging strategy for the battery swapping station, the operability of the charging strategy can also be optimized, making the charging strategy more valuable.
[0108] After determining the charging strategy to be executed on the current day, this embodiment will, according to the charging strategy generated the previous day, execute the charging strategy every preset time interval t. v Issue a charging command to ensure that the number of reserve batteries at each time point is not less than the corresponding number of reserve batteries R. charge-i Furthermore, considering that the remaining charge of the battery that the user replaces may be greater than the remaining charge of the battery that is being charged, this embodiment will charge the batteries to be charged in descending order of remaining charge, prioritizing the charging of batteries with larger remaining charge, thereby improving battery charging efficiency and battery utilization, and enabling the availability of reserve batteries to meet the battery swapping needs in the shortest possible time.
[0109] Furthermore, in this embodiment, every preset time interval (e.g., 3t) is also added. v Get the number of battery swapping queues V at a single battery swapping station. line And based on the current battery swapping queue size V line Number of charging bays at the battery swapping station (B) charge and the number of reserve batteries R at the corresponding time. charge-i The adjustment parameters are determined, and the quantities corresponding to these parameters are ultimately set as the final number of reserve batteries. Therefore, during strategy execution, the charging plan is dynamically adjusted by acquiring real-time information on the queuing status and reserve battery quantity at battery swapping stations. This ensures that the final number of reserve batteries better meets actual battery swapping needs, thereby guaranteeing the timeliness and accuracy of the user's battery swapping experience.
[0110] Figure 7 This is a schematic diagram of a battery swapping data processing device according to an embodiment of the present invention. Figure 7 As shown, the battery swapping data processing device in this embodiment includes a segmentation unit 71, a determination unit 72, and a processing unit 73. The segmentation unit 71 is used to determine at least one time interval based on the changing trend of electricity price information; the time interval can be an upward or downward trend. The determination unit 72 is used to analyze historical battery swapping order information to determine the order distribution parameters of the battery swapping station; the order distribution parameters characterize the number of battery swapping orders at different times. The processing unit 73 is used to determine the number of reserve batteries at the corresponding time based on the time interval and the order distribution parameters; the number of reserve batteries is the number of batteries in the battery swapping station with remaining charge sufficient for swapping.
[0111] Optionally, in this embodiment, when determining the number of reserve batteries at a corresponding time based on the time interval and order distribution parameters, the processing unit 72 is further configured to determine the target time interval in which the target time is located; in response to the target time interval being an ascending interval, determine the corresponding number of reserve batteries based on the number of charging bays at the battery swapping station and the first battery swapping parameter; and in response to the target time interval being a descending interval, determine the corresponding number of reserve batteries based on the number of charging bays and the second battery swapping parameter. The first battery swapping parameter is the number of battery swapping orders from the target time to the first reference time, and the first reference time is determined based on the end time of the target time interval and the expected charging time, where the expected charging time is the charging duration from the start of charging to the battery's remaining charge reaching the swappable capacity; the second battery swapping parameter is the number of battery swapping orders from the target time to the second reference time, and the second reference time is determined based on the target time and the expected charging time.
[0112] Optionally, in this embodiment, the processing unit 72 is further configured to obtain the number of battery swapping queues at different times; and adjust the number of reserve batteries at the corresponding time according to the number of battery swapping queues. Further, when adjusting the number of reserve batteries at the corresponding time according to the number of battery swapping queues, the processing unit 72 is specifically configured to determine adjustment parameters based on the number of battery swapping queues, the number of charging bays at the battery swapping station, and the number of reserve batteries at the corresponding time; and adjust the number of reserve batteries according to the adjustment parameters.
[0113] Furthermore, the processing unit 72 in this embodiment is also used to issue a charging command corresponding to the number of reserve batteries at different times; and to charge the battery to be charged based on the charging command, so that the number of reserve batteries at the corresponding time is not less than the number of reserve batteries. Even further, when charging the battery to be charged based on the charging command, the processing unit 72 is specifically used to charge the battery to be charged in descending order of remaining charge based on the charging command.
[0114] Figure 8 This is a schematic diagram of an electronic device according to an embodiment of the present invention. (For example...) Figure 8 As shown, Figure 8The illustrated electronic device is a general-purpose data processing device, comprising a general-purpose computer hardware architecture, including at least a processor 81 and a memory 82. The processor 81 and memory 82 are connected via a bus 83. The memory 82 is adapted to store instructions or programs executable by the processor 81. The processor 81 can be a standalone microprocessor or a collection of one or more microprocessors. Thus, the processor 81 executes the instructions stored in the memory 82, thereby performing the method flow of the embodiments of the present invention as described above to process data and control other devices. The bus 83 connects the aforementioned components together, and also connects these components to a display controller 84, a display device, and an input / output (I / O) device 85. The input / output (I / O) device 85 can be a mouse, keyboard, modem, network interface, touch input device, motion-sensing input device, printer, and other devices known in the art. Typically, the input / output device 85 is connected to the system via an input / output (I / O) controller 86.
[0115] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus (devices), or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0116] This application is described with reference to flowchart illustrations of methods, apparatus (devices), and computer program products according to embodiments of this application. It should be understood that each step in the flowchart can be implemented by computer program instructions.
[0117] These computer program instructions may be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction means, the implementation process of which is described in the instruction means. Figure 1 The function specified in one or more processes.
[0118] These computer program instructions may also be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, produce instructions for implementing processes. Figure 1 A device for a function specified in one or more processes.
[0119] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program for use by a computer to execute some or all of the above-described method embodiments.
[0120] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program specifying the relevant hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0121] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A battery swapping data processing method, characterized in that, The method includes: At least one time interval is determined based on the trend of electricity price information, wherein the time interval is an upward interval or a downward interval; Analyze historical battery swapping order information to determine the order distribution parameters of the battery swapping station. The order distribution parameters are used to characterize the number of battery swapping orders at different times. The number of reserve batteries at a corresponding time is determined based on the time interval and the order distribution parameters. The number of reserve batteries is the number of batteries in the battery swapping station with remaining power sufficient for swapping.
2. The method according to claim 1, characterized in that, The step of determining the number of reserve batteries at a corresponding moment based on the time interval and the order distribution parameters includes: Determine the target time interval in which the target moment falls; In response to the target time interval being an increasing interval, the corresponding number of reserve batteries is determined based on the number of charging bays at the battery swapping station and the first battery swapping parameter. The first battery swapping parameter is the number of battery swapping orders from the target time to the first reference time. The first reference time is determined based on the end time of the target time interval and the expected charging time. The expected charging time is the charging time from the start of charging to the remaining battery capacity reaching the swappable capacity. In response to the target time interval being a decreasing interval, the corresponding number of reserve batteries is determined based on the number of charging bays and the second battery swapping parameter, where the second battery swapping parameter is the number of battery swapping orders from the target time to the second reference time, and the second reference time is determined based on the target time and the expected charging time.
3. The method according to claim 1, characterized in that, The method further includes: Obtain the number of battery swap queues at different times; The number of reserve batteries at the corresponding time is adjusted according to the number of battery swapping queues.
4. The method according to claim 3, characterized in that, The adjustment of the number of reserve batteries at a corresponding moment based on the number of battery swapping queues includes: The adjustment parameters are determined based on the number of battery swapping queues, the number of charging bays at the battery swapping station, and the number of reserve batteries at the corresponding time. The number of reserve batteries is adjusted according to the adjustment parameters.
5. The method according to claim 1, characterized in that, The method further includes: The charging command is issued according to the number of reserve batteries at different times; The battery to be charged is charged based on the charging command, so that the number of reserve batteries at the corresponding time is not less than the number of reserve batteries.
6. The method according to claim 5, characterized in that, The charging of the battery to be charged based on the charging command includes: Based on the charging command, the batteries to be charged are charged in descending order of remaining power.
7. A battery swapping data processing device, characterized in that, The device includes: A segmentation unit is used to determine at least one time interval based on the changing trend of electricity price information, wherein the time interval is an upward interval or a downward interval; The determination unit is used to analyze historical battery swapping order information and determine the order distribution parameters of the battery swapping station. The order distribution parameters are used to characterize the number of battery swapping orders at different times. The processing unit is used to determine the number of reserve batteries at a corresponding time based on the time interval and the order distribution parameters, wherein the number of reserve batteries is the number of batteries in the battery swapping station with remaining power sufficient for swapping.
8. A computer program product, characterized in that, The computer program product includes a computer program / instruction that, when executed by a processor, implements the method of any one of claims 1-6.
9. An electronic device comprising a memory and a processor, characterized in that, The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any one of claims 1-6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1-6.