Method and device for determining shared trolleybus parking point battery replacement threshold

By dynamically adjusting the battery swapping threshold at shared electric vehicle parking spots based on historical and real-time data, the problems of high battery swapping costs and low efficiency of shared electric vehicles have been solved, achieving more efficient resource utilization and cost control.

CN115860395BActive Publication Date: 2026-05-19NINGBO XIAOLIU SHARING INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NINGBO XIAOLIU SHARING INFORMATION TECH CO LTD
Filing Date
2022-12-08
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing shared electric vehicle battery swapping solutions suffer from high costs and low efficiency, especially due to resource waste caused by the random distribution of electric vehicles.

Method used

By determining the maximum and minimum battery swapping capacity and riding demand based on historical scanning and riding data at the current parking location, and combining this with the real-time available and total number of vehicles in stock, the battery swapping threshold is dynamically adjusted to optimize the battery swapping strategy.

Benefits of technology

While meeting user needs, it has reduced the frequency and cost of battery swapping, improved battery swapping efficiency, and reduced resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115860395B_ABST
    Figure CN115860395B_ABST
Patent Text Reader

Abstract

The application provides a shared trolleybus parking point battery replacement threshold determination method and device, relates to the shared trolleybus field, and the method comprises the following steps: firstly, according to historical code scanning and riding data of a current parking point, the maximum battery replacement power, the minimum battery replacement power and the hourly riding demand of the current parking point are determined; then, according to the riding data and historical parking driving-in data of the current parking point, the real-time available inventory vehicle number and the total current inventory vehicle number of the current parking point are determined; when the real-time available inventory vehicle number is not less than the riding demand, the minimum battery replacement power is determined as the battery replacement threshold of the current parking point; when the real-time available inventory vehicle number is less than the riding demand, then the total current inventory vehicle number is used to determine the battery replacement threshold of the current parking point. Through the method, the problems of high cost and low efficiency in the existing shared bicycle battery replacement scheme can be alleviated, and the effect of reducing the battery replacement frequency and cost on the basis of meeting the user demand to the maximum extent is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of shared electric vehicle technology, and more specifically, to a method and apparatus for determining the battery swapping threshold at shared electric vehicle parking spots. Background Technology

[0002] Currently, shared electric vehicles primarily rely on their own batteries for power. For ease of management, these vehicles must generally be parked at designated parking spots (i.e., fenced areas). Since these spots don't allow for self-charging, operators must manually provide battery swapping services for vehicles with low battery levels. Existing swapping strategies typically involve checking and swapping low-battery vehicles one by one. Due to the significant randomness of vehicle distribution, some vehicles may naturally lose power after prolonged periods of inactivity, making such swapping a waste of resources. Therefore, reducing the frequency and cost of battery swapping while maximizing user satisfaction is a pressing issue for shared electric vehicle management. In other words, existing battery swapping solutions for shared bicycles suffer from high costs and low efficiency. Summary of the Invention

[0003] The purpose of this invention is to provide a method and apparatus for determining the battery swapping threshold at shared electric vehicle parking spots, so as to solve the problems of high cost and low efficiency in existing battery swapping solutions for shared bicycles.

[0004] One aspect provides a method for determining the battery swapping threshold at shared electric vehicle parking spots, including:

[0005] Based on the historical scanning and riding data of the current parking spot, determine the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand for the current parking spot.

[0006] Based on the riding data and historical parking entry data of the current parking location, determine the real-time available inventory number and the total number of current inventory vehicles at the current parking location.

[0007] When the number of available electric vehicles in real time is not less than the riding demand, the battery swapping threshold of the current parking point is determined as the minimum battery swapping capacity; the battery swapping threshold is used to determine whether the shared electric vehicles at the current parking point need to be swapped.

[0008] When the number of available bicycles in real time is less than the riding demand, the battery swapping threshold for the current parking spot is determined based on the total number of bicycles currently in stock. Using this method, the battery swapping threshold for a parking spot can be determined based on historical data and vehicle data. Shared bicycles below this threshold need to be swapped, thus proposing an optimization strategy for the parking spot battery swapping threshold. This alleviates the problems of high cost and low efficiency in existing shared bicycle battery swapping solutions, reducing the frequency and cost of battery swapping while maximizing user satisfaction.

[0009] In one implementation, before determining the real-time available inventory number and the current total inventory number of vehicles at the current parking point based on the riding data and historical parking entry data, the method further includes: obtaining the real-time vehicle count and battery distribution at the current parking point at each hour, determining the total number of vehicles at the current parking point and a first number of vehicles with a battery capacity not less than the maximum battery swapping capacity; predicting the planned number of vehicles entering the current parking point each hour in the future based on historical data; and predicting a second number of vehicles with a battery capacity not less than the maximum battery swapping capacity among the planned vehicle counts based on the battery distribution.

[0010] In one implementation, the step of determining the real-time available inventory number and the current total inventory number of vehicles at the current parking point based on the riding data and historical parking entry data of the current parking point includes: determining the previous total inventory number of vehicles based on the total number of vehicles at the current parking point and the planned number of vehicles; and determining the real-time available inventory number of vehicles at the current parking point based on the first number of vehicles with a battery swapping capacity not less than the maximum battery swapping capacity and the second number of vehicles with a battery swapping capacity not less than the maximum battery swapping capacity.

[0011] In one implementation, the steps of determining the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand for the current parking location based on historical QR code scanning and riding data include: obtaining the probability of scanning and riding electric vehicles with different battery capacities based on historical QR code scanning and riding data for the current parking location; determining a battery capacity not less than a first threshold of the aforementioned scanning and riding probability as the maximum battery swapping capacity for the current parking location; determining a minimum battery depletion threshold as the minimum battery swapping capacity for the current parking location; and determining the hourly riding demand for the current parking location based on historical data.

[0012] In one implementation, a preset multiple of the above-mentioned vehicle usage demand is determined as the cycling demand; the preset multiple is greater than 1.

[0013] In one implementation, when the number of available inventory vehicles in real time is less than the riding demand, the battery swapping threshold of the current parking point is determined based on the total number of current inventory vehicles, including: when the number of available inventory vehicles in real time is less than the riding demand, determining the size of the total number of current inventory vehicles and the riding demand.

[0014] In one embodiment, the method further includes: if the total number of current inventory vehicles is not less than the riding demand, then determining the minimum battery swapping capacity when the riding demand is equal to the sum of the number of vehicles to be swapped and the number of real-time available inventory vehicles, as the battery swapping threshold of the current parking point; if the total number of current inventory vehicles is less than the riding demand, then determining the battery swapping threshold of the current parking point as the maximum battery swapping capacity.

[0015] On the other hand, a device for determining the battery swapping threshold at shared electric vehicle parking spots is provided, the device comprising:

[0016] The first determining module is used to determine the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand for the current parking location based on the historical scanning and riding data of the current parking location.

[0017] The second determining module is used to determine the real-time available inventory number and the total number of inventory vehicles at the current parking point based on the riding data and historical parking entry data of the current parking point.

[0018] The battery swapping threshold determination module is used to determine the minimum battery swapping capacity of the current parking point when the number of available inventory vehicles in real time is not less than the riding demand. The battery swapping threshold is used to determine whether the shared electric vehicles at the current parking point need to be swapped. When the number of available inventory vehicles in real time is less than the riding demand, the battery swapping threshold of the current parking point is determined based on the total number of inventory vehicles.

[0019] On the other hand, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the steps of the method described in any of the first aspects above.

[0020] On the other hand, a computer-readable storage medium is provided that stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to perform the method described in any one of the first aspects.

[0021] This invention provides a method and apparatus for determining the battery swapping threshold at shared electric vehicle parking spots. The method includes: determining the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand at the current parking spot based on historical scanning and riding data; determining the real-time available inventory number and the current total inventory number of vehicles at the current parking spot based on riding data and historical parking entry data; determining the minimum battery swapping capacity as the battery swapping threshold when the real-time available inventory number is not less than the riding demand; the battery swapping threshold is used to determine whether the shared electric vehicles at the current parking spot need to be swapped; when the real-time available inventory number is less than the riding demand, the battery swapping threshold is determined based on the current total inventory number of vehicles. Through this method, the battery swapping threshold for a parking spot can be determined based on historical data and vehicle data. Shared electric vehicles below this threshold need to be swapped, thus proposing an optimization strategy for the battery swapping threshold at parking spots. This alleviates the problems of high cost and low efficiency in existing battery swapping solutions for shared electric vehicles, achieving the effect of reducing the frequency and cost of battery swapping while maximizing user satisfaction. Attached Figure Description

[0022] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0023] Figure 1 A flowchart illustrating a method for determining the battery swapping threshold at a shared electric vehicle parking spot, provided by an embodiment of the present invention;

[0024] Figure 2 A flowchart illustrating another method for determining the battery swapping threshold at a shared electric vehicle parking spot, provided by an embodiment of the present invention;

[0025] Figure 3 This is a schematic diagram of a device for determining the battery swapping threshold at a shared electric vehicle parking spot, provided in an embodiment of the present invention.

[0026] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0027] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0028] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0029] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Some embodiments of the present invention will now be described in detail with reference to the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0030] Currently, shared electric vehicles primarily rely on their own batteries for power. For ease of management, these vehicles must generally be parked at designated parking spots (i.e., fenced areas). Since these spots don't allow for self-charging, operators must manually provide battery swapping services for vehicles with low battery levels. Existing swapping strategies typically involve checking and swapping low-battery vehicles one by one. Due to the significant randomness in vehicle distribution, some vehicles may naturally lose power after prolonged periods of inactivity, making such swapping a waste of resources. Therefore, reducing swapping frequency and cost while maximizing user satisfaction is a pressing issue for shared electric vehicle management. In other words, existing battery swapping solutions for shared electric vehicles suffer from high costs and low efficiency. Based on this, this invention provides a method and apparatus for determining the battery swapping threshold at shared electric vehicle parking spots to address these problems.

[0031] To facilitate understanding of this embodiment, a method for determining the battery swapping threshold at shared electric vehicle parking spots, as disclosed in this embodiment of the invention, will first be described in detail. (See [link to relevant documentation]). Figure 1 The diagram shows a method for determining the battery swapping threshold at a shared electric vehicle parking spot. This method can be executed by an electronic device and mainly includes the following steps S110 to S140:

[0032] S110: Based on the historical scanning and riding data of the current parking spot, determine the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand of the current parking spot;

[0033] Among them, parking spots are the fixed parking areas (i.e., fences) for shared bicycles. They are generally set up in areas with high usage frequency of shared bicycles, such as subway entrances, bus stops, commercial streets, and office buildings, to facilitate standardized parking and management.

[0034] In this embodiment, historical scanning data can be data on users scanning codes to use bikes at the current parking spot within a recent period, as well as actual riding data, including the probability that a bike with each battery level is scanned and then ridden away.

[0035] For example, at a certain parking spot, the probability of a bike being scanned and ridden away at each battery level is as follows: a bike with 95% battery has a 100% probability of being scanned and ridden away; a bike with 50% battery has a 90% probability; a bike with 30% battery has an 85% probability, and so on. Based on the probability of each battery level being scanned and ridden away, a minimum battery level with a probability of at least 85% is determined as the maximum battery level E for the fenced-off battery swapping system. To prevent the bikes from running out of power, the battery should generally be swapped when it reaches 2%. Therefore, 2% can be defined as the minimum battery level e for fenced-off battery swapping.

[0036] S120: Based on the current riding data and historical parking entry data of the current parking point, determine the real-time available inventory number of vehicles and the current total inventory number of vehicles at the current parking point;

[0037] S130: When the number of available electric vehicles in real time is not less than the riding demand, the battery swapping threshold of the current parking point is determined as the minimum battery swapping capacity; the battery swapping threshold is used to determine whether the shared electric vehicles at the current parking point need to be swapped.

[0038] S140: When the number of available inventory vehicles in real time is less than the riding demand, the battery swapping threshold for the current parking point is determined based on the total number of inventory vehicles.

[0039] Using the above method, the battery swapping threshold for a parking spot can be determined based on historical data and vehicle data. Shared bicycles below the battery swapping threshold need to be swapped, thus proposing an optimization strategy for the battery swapping threshold at parking spots. This strategy can alleviate the problems of high cost and low efficiency in existing shared bicycle battery swapping solutions, and reduce the frequency and cost of battery swapping while maximizing the satisfaction of user needs.

[0040] In one embodiment, before determining the real-time available inventory number and the total number of current inventory vehicles at the current parking point based on the current parking point's riding data and historical parking entry data, the method further includes: obtaining the real-time vehicle count and battery distribution at the current parking point at each hour, determining the total number of vehicles at the current parking point and a first number of vehicles with a battery capacity not less than the highest battery capacity for battery swapping; predicting the planned number of vehicles entering the current parking point each hour in the future based on historical data; and predicting a second number of vehicles with a battery capacity not less than the highest battery capacity for battery swapping based on the battery distribution.

[0041] The total number of vehicles at the current parking spot is M. The first vehicle count is the number m of vehicles at the current parking spot with a battery charge greater than or equal to the maximum battery charge E for battery swapping. The second vehicle count is the number n of vehicles at the current parking spot with a battery charge greater than or equal to the maximum battery charge E for battery swapping, out of the predicted planned number of vehicles N.

[0042] In one embodiment, the step of determining the real-time available inventory number and the current total inventory number of vehicles at the current parking point based on the current parking point's riding data and historical parking entry data includes: determining the current total inventory number of vehicles based on the current total number of vehicles at the current parking point and the planned number of vehicles; and determining the real-time available inventory number of vehicles at the current parking point based on a first number of vehicles with a battery swapping capacity not less than the maximum battery swapping capacity and a second number of vehicles with a battery swapping capacity not less than the maximum battery swapping capacity.

[0043] In other words, based on the total number of vehicles M at the current parking point P and the planned number of vehicles N, the total number of vehicles in stock (M+N) is determined; based on the number of vehicles m with a battery swap capacity of not less than the maximum battery swap capacity E and the number of vehicles n with a battery swap capacity of not less than the maximum battery swap capacity E, the real-time available number of vehicles in stock at the current parking point (m+n) is determined.

[0044] In one embodiment, the steps of determining the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand at the current parking spot based on historical scanning and riding data include: obtaining the scanning and riding probability of electric vehicles with different battery capacities based on historical scanning and riding data at the current parking spot; determining a battery capacity not less than a first threshold of the scanning and riding probability as the maximum battery swapping capacity at the current parking spot; determining a minimum battery depletion threshold as the minimum battery swapping capacity at the current parking spot; and determining the hourly riding demand at the current parking spot based on historical data.

[0045] The preset multiple for determining the demand for vehicles is the cycling demand; the preset multiple is greater than 1. As a specific example, based on historical data, the hourly demand for vehicles at the current parking point is determined as C. To ensure that vehicles can meet the needs of users, the cycling demand at point P can be determined to be 1.2 times the demand for vehicles at point P, which is 1.2C.

[0046] In one embodiment, when the number of available inventory vehicles in real time is less than the riding demand, the battery swapping threshold of the current parking point is determined based on the total number of inventory vehicles in the current inventory, including: when the number of available inventory vehicles in real time is less than the riding demand, judging the size of the total number of inventory vehicles in the current inventory and the riding demand.

[0047] In this embodiment, the method further includes: if the current total number of vehicles in stock is not less than the riding demand, then the minimum battery swapping capacity when the riding demand is equal to the sum of the number of vehicles to be swapped and the number of vehicles available in stock in real time is determined as the battery swapping threshold of the current parking point; if the current total number of vehicles in stock is less than the riding demand, then the battery swapping threshold of the current parking point is determined as the maximum battery swapping capacity.

[0048] In other words, if the current number of available electric bikes at a parking spot does not meet the riding demand (m+n) < 1.2C, then the total number of available electric bikes (M+N) needs to be assessed. If the total number of available electric bikes meets the riding demand (M+N) ≥ 1.2C, but the number of bikes meeting the battery requirement threshold E is insufficient, then the minimum battery swapping capacity e needs to be determined to satisfy "number of bikes waiting to be swapped + m+n = 1.2C". This capacity is the battery swapping capacity for this point P in this hour. If the total number of available electric bikes does not meet the riding demand, then the current battery swapping threshold is the maximum battery swapping capacity E. This battery swapping threshold refers to the battery swapping cutoff value for shared electric bikes; that is, shared electric bikes below the battery swapping threshold need to be swapped.

[0049] As a specific example, this embodiment provides a method for determining the battery swapping threshold at shared electric vehicle parking spots. See [link to relevant documentation]. Figure 2 As shown, the method includes the following steps:

[0050] S210: Determine the probability of scanning the code but not riding the bike;

[0051] 1. Eliminate faulty vehicles; 2. Calculate the probability of scanning and riding at each battery level over the past 7 days; 3. Determine the minimum battery level at which the riding probability is greater than or equal to 85% as the maximum battery swapping threshold E; 4. Determine the minimum battery swapping threshold e to ensure that the battery does not starve.

[0052] S220: Determine vehicle inventory;

[0053] 1. Obtain the number of vehicles M at each parking point P at each hour in real time; 2. Determine the number m of vehicles in the inventory that are greater than or equal to the maximum battery swapping threshold E.

[0054] S230: Determine the number of vehicles entering the area;

[0055] 1. Obtain the number of vehicles N flowing into the station at each point P per hour for the past 7 days; 2. Predict the battery distribution of incoming vehicles based on the percentage of vehicle battery distribution at this point in time; 3. Determine the number n of incoming vehicles with a battery level greater than or equal to the maximum battery swapping value E.

[0056] S240: Determine the number of vehicles leaving the area;

[0057] 1. Obtain the number of vehicles dispatched per hour at each point p over the past 7 days; 2. Use this number of vehicles as the vehicle demand C for this hour at this point p.

[0058] S250: Determine the hourly battery swapping threshold for each parking point P;

[0059] 1. Ensure that the number of vehicles meeting the electricity demand (e) at each point P per hour is 1.2 times the number of vehicles leaving the site (demand for use); 2. If m+n>=1.2C, there are enough vehicles to ensure that the electricity supply is sufficient, and the battery swapping threshold is the minimum electricity level e; 3. If m+n<1.2C, M+N>=1.2C, the total number of vehicles is sufficient, but the number of vehicles meeting the E threshold is insufficient, and the battery swapping threshold is the minimum e. The threshold increases until the number of vehicles requiring swapping + m+n = 1.2C, which is the battery swapping threshold for that point; 4. If m+n<1.2C, M+N<1.2C, the total number of vehicles is insufficient for riding, and the battery swapping threshold is the maximum swapping capacity E.

[0060] This invention provides a method for determining the battery swapping threshold at shared electric vehicle parking spots. The method includes: determining the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand at the current parking spot based on historical scanning and riding data; determining the real-time available inventory number and the current total inventory number of vehicles at the current parking spot based on riding data and historical parking entry data; determining the minimum battery swapping capacity as the battery swapping threshold when the real-time available inventory number is not less than the riding demand; the battery swapping threshold is used to determine whether the shared electric vehicles at the current parking spot need battery swapping; when the real-time available inventory number is less than the riding demand, the battery swapping threshold is determined based on the current total inventory number of vehicles. This method allows for the determination of the battery swapping threshold at a parking spot based on historical data and vehicle data. Shared electric vehicles with batteries below this threshold require battery swapping, thus providing an optimized strategy for determining the battery swapping threshold at parking spots. This alleviates the problems of high cost and low efficiency in existing battery swapping solutions for shared electric vehicles, achieving the effect of reducing battery swapping frequency and cost while maximizing user satisfaction.

[0061] Furthermore, embodiments of the present invention also provide a device for determining the battery swapping threshold at shared electric vehicle parking spots, see [link to relevant documentation]. Figure 3 As shown, the device includes:

[0062] The first determining module 310 is used to determine the maximum battery swapping capacity, the minimum battery swapping capacity, and the hourly riding demand at the current parking point based on the historical scanning and riding data of the current parking point.

[0063] The second determining module 320 is used to determine the real-time available inventory number of vehicles and the total number of vehicles in inventory at the current parking point based on the current parking point's riding data and historical parking entry data.

[0064] The battery swapping threshold determination module 330 is used to determine the minimum battery swapping capacity of the current parking point when the number of available inventory vehicles in real time is not less than the riding demand. The battery swapping threshold is used to determine whether the shared electric vehicles at the current parking point need to be swapped. When the number of available inventory vehicles in real time is less than the riding demand, the battery swapping threshold of the current parking point is determined based on the total number of inventory vehicles.

[0065] The device for determining the battery swapping threshold at shared trolley parking spots provided in this application embodiment can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in this application embodiment are the same as those in the foregoing method embodiments. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the foregoing method embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can all be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. The device for determining the battery swapping threshold at shared trolley parking spots provided in this application embodiment has the same technical features as the method for determining the battery swapping threshold at shared trolley parking spots provided in the foregoing embodiments, and therefore can solve the same technical problems and achieve the same technical effects.

[0066] This application also provides an electronic device, specifically, the electronic device includes a processor and a storage device; the storage device stores a computer program, and the computer program, when run by the processor, executes the method described in any of the above embodiments.

[0067] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 400 includes: a processor 40, a memory 41, a bus 42, and a communication interface 43. The processor 40, the communication interface 43, and the memory 41 are connected through the bus 42. The processor 40 is used to execute executable modules, such as computer programs, stored in the memory 41.

[0068] The memory 41 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 43 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.

[0069] Bus 42 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0070] The memory 41 is used to store programs. After receiving an execution instruction, the processor 40 executes the program. The method executed by the device for defining the flow process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 40 or implemented by the processor 40.

[0071] Processor 40 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 40 or by instructions in software form. Processor 40 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 41. The processor 40 reads the information in memory 41 and, in conjunction with its hardware, completes the steps of the above method.

[0072] Corresponding to the above method, this application embodiment also provides a computer-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and run by a processor, the machine-executable instructions cause the processor to perform the steps of the above method.

[0073] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

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

[0075] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0076] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0077] It should be noted that similar reference numerals and letters in the accompanying drawings indicate similar items. Therefore, once an item is defined in one accompanying drawing, it does not need to be further defined and explained in subsequent accompanying drawings. In addition, the terms "first," "second," "third," etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

[0079] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.

Claims

1. A method for determining the battery swapping threshold at shared electric vehicle parking spots, characterized in that, include: Based on the historical scanning and riding data of the current parking spot, determine the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand of the current parking spot; Based on the riding data and historical parking entry data of the current parking point, determine the real-time available inventory number of vehicles and the current total inventory number of vehicles at the current parking point; When the number of available vehicles in real time is not less than the riding demand, the battery swapping threshold of the current parking point is determined as the minimum battery swapping capacity. The battery swapping threshold is used to determine whether the shared electric vehicle at the current parking spot needs a battery swap. When the number of available vehicles in real time is less than the riding demand, the battery swapping threshold of the current parking point is determined based on the total number of vehicles in current inventory. Before the step of determining the real-time available number of vehicles and the total number of vehicles in stock at the current parking location based on the riding data and historical parking entry data, the method further includes: Get the real-time number of vehicles and battery distribution at the current parking point at each hour, and determine the total number of vehicles at the current parking point and the number of the first vehicle with a battery swapping capacity not less than the highest battery swapping capacity. Predict the number of vehicles planned to enter the current parking spot each hour in the future based on historical data; Based on the power distribution, it is predicted that the number of vehicles with a power level not less than the highest battery swapping power level among the planned number of vehicles; The steps of determining the real-time available inventory number and the current total inventory number of vehicles at the current parking location based on the riding data and historical parking entry data include: The total number of vehicles currently in stock is determined based on the total number of vehicles at the current parking location and the planned number of vehicles. The real-time available inventory of vehicles at the current parking point is determined based on the first number of vehicles with a battery swap capacity of not less than the maximum battery swap capacity and the second number of vehicles with a battery swap capacity of not less than the maximum battery swap capacity. When the number of available vehicles in real time is less than the riding demand, the battery swapping threshold for the current parking spot is determined based on the total number of vehicles currently in stock, including: When the number of available vehicles in real time is less than the riding demand, the size of the current total number of vehicles in inventory and the riding demand are determined. If the current total number of vehicles in stock is not less than the riding demand, then the minimum battery swapping capacity when the riding demand is equal to the sum of the number of vehicles waiting to be swapped and the number of vehicles available in stock in real time is determined as the battery swapping threshold of the current parking point. If the total number of vehicles currently in stock is less than the riding demand, then the battery swapping threshold of the current parking spot is determined to be the maximum battery swapping capacity.

2. The method for determining the battery swapping threshold at shared electric vehicle parking spots as described in claim 1, characterized in that, The steps for determining the maximum battery swapping capacity, minimum battery swapping capacity, and hourly riding demand at the current parking location based on historical QR code scanning and riding data include: Based on the historical scanning and riding data of the current parking point, obtain the probability of scanning and riding electric vehicles with different battery levels. The battery level not less than a first threshold value for the probability of scanning the code to ride is determined as the maximum battery swapping capacity at the current parking location; The minimum threshold for battery depletion is determined as the minimum battery capacity required for battery swapping at the current parking location; Determine the hourly vehicle demand at the current parking spot based on historical data.

3. The method for determining the battery swapping threshold at shared electric vehicle parking spots as described in claim 2, characterized in that, The preset multiple of the vehicle usage demand is determined as the cycling demand; the preset multiple is greater than 1.

4. A device for determining the battery swapping threshold at shared electric vehicle parking spots, characterized in that, The device includes: The first determining module is used to determine the maximum battery swapping capacity, the minimum battery swapping capacity, and the hourly riding demand of the current parking point based on the historical scanning and riding data of the current parking point. The second determining module is used to determine the real-time available inventory number and the current total number of inventory vehicles at the current parking point based on the riding data and historical parking entry data at the current parking point. The battery swapping threshold determination module is used to determine the minimum battery swapping capacity of the current parking point when the number of available inventory vehicles in real time is not less than the riding demand; the battery swapping threshold is used to determine whether the shared electric vehicles at the current parking point need to be swapped; when the number of available inventory vehicles in real time is less than the riding demand, the battery swapping threshold of the current parking point is determined based on the total number of inventory vehicles. This device is also used for: Get the real-time number of vehicles and battery distribution at the current parking point at each hour, and determine the total number of vehicles at the current parking point and the number of the first vehicle with a battery swapping capacity not less than the highest battery swapping capacity. Predict the number of vehicles planned to enter the current parking spot each hour in the future based on historical data; Based on the power distribution, it is predicted that the number of vehicles with a power level not less than the highest battery swapping power level among the planned number of vehicles; The second determining module is also used for: The total number of vehicles currently in stock is determined based on the total number of vehicles at the current parking location and the planned number of vehicles. The real-time available inventory of vehicles at the current parking point is determined based on the first number of vehicles with a battery swap capacity of not less than the maximum battery swap capacity and the second number of vehicles with a battery swap capacity of not less than the maximum battery swap capacity. The battery swapping threshold determination module is also used for: When the number of available vehicles in real time is less than the riding demand, the size of the current total number of vehicles in inventory and the riding demand are determined. If the current total number of vehicles in stock is not less than the riding demand, then the minimum battery swapping capacity when the riding demand is equal to the sum of the number of vehicles waiting to be swapped and the number of vehicles available in stock in real time is determined as the battery swapping threshold of the current parking point. If the total number of vehicles currently in stock is less than the riding demand, then the battery swapping threshold of the current parking spot is determined to be the maximum battery swapping capacity.

5. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method according to any one of claims 1 to 3.