Charging position allocation method, system, device and storage medium based on buses
By establishing a correspondence between charging emergency signs and charging muzzle sequences for buses and rationally arranging charging muzzles, the problem of irrational allocation of charging resources for buses is solved, and charging efficiency and resource utilization are improved.
Patent Information
- Application Number
- CN202310861612.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-13
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2043-07-13
AI Technical Summary
There are unreasonable problems in the allocation of charging resources for public buses, which results in some vehicles being unable to obtain charging resources in a timely manner, affecting departure times.
By obtaining the charging emergency sign of the bus, the corresponding relationship between the charging gun and the bus is established, and the charging position prompt information is output according to the charging emergency sign and the preset charging gun sequence, and the charging gun is arranged reasonably.
The charging efficiency of buses is improved, ensuring that vehicles in urgent need can obtain charging resources in a timely manner, reducing waiting time and resource waste.
Smart Images

Figure CN116653677B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile charging, and in particular to a method, system, device, and storage medium for allocating charging positions for buses. Background Art
[0002] Currently, buses select charging stations on a first-come, first-served basis, with no managed relationship between buses and charging stations. This means there's no established correspondence between buses and charging stations in parking lots. This can lead to irrational allocation of charging resources, resulting in buses not meeting their usage needs at the time of departure. For example, buses that depart early and return to the parking lot late are more likely to need charging stations, but due to their late arrival, they may need to wait for a vacant charging station or choose a station with less remaining power.
[0003] The above-mentioned related technical solutions have the following defects: the allocation of bus charging piles is unreasonable. Summary of the Invention
[0004] In order to improve the problem of unreasonable allocation of charging piles for buses, the present application provides a method, system, device and storage medium for allocating charging positions based on buses.
[0005] In a first aspect of the present application, a method for allocating charging stations on buses is provided. The method comprises:
[0006] Obtaining a charging emergency indicator of the bus, wherein the charging emergency indicator indicates the urgency with which the bus needs to be charged;
[0007] According to the preset charging muzzle sequence and the charging emergency mark, a corresponding relationship between the charging muzzle and the bus is established and charging position prompt information is output.
[0008] It can be seen from the above technical solution that by obtaining the charging emergency sign of the bus and establishing a correspondence between the charging emergency sign and the preset charging muzzle sequence, a reasonable charging muzzle is arranged for the bus, which improves the problem of unreasonable distribution of bus charging piles and improves the charging efficiency of the bus.
[0009] In a possible implementation, the bus's charging emergency indicator is obtained by the following method:
[0010] Get the earliest departure time and latest return time of the bus;
[0011] Calculating the parking duration, where the parking duration is the difference between the earliest departure time and the latest return time;
[0012] The charging emergency indicator is calculated according to the earliest departure time and the parking time, and the charging emergency indicator is the sum of the earliest departure time increased by a preset multiple and the parking time.
[0013] From the above technical solution, it can be seen that the parking time is obtained by calculating the earliest departure time and the latest return time, and then the earliest departure time is multiplied by a preset multiple and summed with the parking time to obtain the charging emergency mark. While retaining the data characteristics of the earliest departure time and parking time, the charging emergency mark is obtained, which improves the data processing efficiency to a certain extent.
[0014] In a possible implementation, the preset multiple is obtained by the following method:
[0015] Obtain the integer number n of the parking time, where n is a natural number;
[0016] The preset multiple is greater than or equal to 10 n .
[0017] It can be seen from the above technical solution that by limiting the range of the preset multiples, the accuracy of the charging emergency sign in indicating the earliest departure time and parking time can be improved.
[0018] In one possible implementation, the preset charging muzzle sequence is obtained by the following method:
[0019] Get the type sequence of the charging pile type and the charging power of the charging pile;
[0020] According to the charging power, the muzzles of each charging pile type in the type sequence are sorted to obtain a type muzzle sequence;
[0021] The type muzzle sequence is sorted according to the type sequence to obtain a charging muzzle sequence.
[0022] From the above technical solution, it can be seen that the charging muzzles in the charging piles are sorted according to the charging pile type and the charging power of the charging piles to obtain a charging muzzle sequence, which provides a data basis for matching muzzles for buses.
[0023] In one possible implementation, establishing a correspondence between a charging gun and a bus and outputting charging location prompt information based on a preset charging gun sequence and the charging emergency identifier includes:
[0024] Sort the buses in ascending order according to the charging emergency identifier to obtain a bus sequence;
[0025] According to the bus sequence, sequentially obtain the charging guns in the charging gun sequence and establish a correspondence between the charging guns and the buses;
[0026] According to the corresponding relationship, charging position prompt information is output, and the charging position prompt information includes the position information of the charging muzzle.
[0027] From the above technical solution, it can be seen that a bus sequence is established through charging emergency signs, and then the charging muzzles in the charging muzzle sequence are obtained in sequence and a correspondence is established between the charging muzzles and the buses. The charging position prompt information is output according to the correspondence, which improves the problem of unreasonable allocation of bus charging piles and improves the charging efficiency of buses.
[0028] In a possible implementation, the method further includes:
[0029] When the charging guns are all in use;
[0030] The nearest parking spaces corresponding to the charging guns in the charging gun sequence are obtained in sequence, and parking prompt information is output.
[0031] It can be seen from the above technical solution that after arranging buses that need urgent charging, suitable parking spaces are arranged for buses that temporarily have no charging guns, that is, the nearest parking spaces corresponding to the charging guns in the charging gun sequence are obtained in sequence, so as to achieve the effect of facilitating buses to charge at idle charging guns in time.
[0032] In a possible implementation, sequentially obtaining the nearest parking spaces corresponding to the charging guns in the charging gun sequence includes:
[0033] Obtaining location data of a parking space, where the parking space does not include a charging gun port;
[0034] respectively obtaining the muzzle positions of the charging muzzles in the charging muzzle sequence, and calculating the distance between the position data and the muzzle positions;
[0035] The parking space corresponding to the position data of the minimum distance is the nearest parking space.
[0036] In a second aspect of the present application, a bus-based charging station allocation system is provided. The system comprises:
[0037] A data acquisition module is used to obtain a charging emergency indicator of a bus, wherein the charging emergency indicator indicates the urgency with which the bus needs to be charged;
[0038] The relationship establishment module is used to establish a corresponding relationship between the charging muzzle and the bus and output charging position prompt information according to the preset charging muzzle sequence and the charging emergency mark.
[0039] In a third aspect of the present application, an electronic device is provided, comprising: a memory and a processor, wherein the memory stores a computer program, and the processor implements the above method when executing the program.
[0040] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method according to the first aspect of the present application is implemented.
[0041] In summary, this application includes at least one of the following beneficial technical effects:
[0042] 1. By obtaining the charging emergency logo of the bus and establishing a correspondence between the charging emergency logo and the preset charging gun sequence, a reasonable charging gun is arranged for the bus, which improves the problem of unreasonable allocation of bus charging piles and improves the charging efficiency of the bus;
[0043] 2. The charging emergency indicator is obtained by using the earliest departure time and the latest return time. This improves data processing efficiency to a certain extent while retaining the data characteristics of the earliest departure time and parking duration.
[0044] 3. By limiting the range of preset multiples, the accuracy of the charging emergency sign in indicating the earliest departure time and parking duration can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a flow chart of the bus-based charging position allocation method provided in this application.
[0046] Figure 2 This is a structural diagram of the bus-based charging space allocation system provided in this application.
[0047] Figure 3 It is a structural diagram of the electronic device provided in this application.
[0048] In the figure, 200 is a bus-based charging station allocation system; 201 is a data acquisition module; 202 is a relationship establishment module; 301 is a CPU; 302 is a ROM; 303 is a RAM; 304 is an I / O interface; 305 is an input part; 306 is an output part; 307 is a storage part; 308 is a communication part; 309 is a drive; and 310 is a removable medium. DETAILED DESCRIPTION
[0049] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0050] In this document, the term "and / or" simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document, unless otherwise specified, generally indicates an "or" relationship between the related objects.
[0051] The embodiments of the present application are described in further detail below with reference to the accompanying drawings.
[0052] An embodiment of the present application provides a method for allocating charging positions on a bus, and the main process of the method is described as follows.
[0053] like Figure 1 As shown:
[0054] Step S101: Obtain the charging emergency mark of the bus.
[0055] Specifically, each bus has its own corresponding charging emergency sign, which indicates the urgency with which the bus needs to be charged. Each bus has an earliest departure time and a latest return time. The earliest departure time refers to the departure time of the earliest bus of the day, and the latest return time refers to the time when the latest bus returns to the depot after the end of the last bus. It can be understood that the earlier the earliest departure time, the more urgent the need for charging. If the earliest departure time remains the same, the later the return time, the more urgent the need for charging.
[0056] The charging emergency sign of the above buses can be obtained through the following methods:
[0057] First, obtain the bus's earliest departure time and latest return time. Then, calculate the bus's parking duration based on the earliest departure time and latest return time: parking duration = earliest departure time minus latest return time. Once the bus's parking duration is determined, calculate the charging emergency indicator based on the earliest departure time and latest return time. The earliest departure time is multiplied by a preset factor, and then added to the parking duration. The resulting sum is the charging emergency indicator.
[0058] The calculation process above shows that the charging emergency indicator is a string composed of the earliest departure time and the parking duration. The earlier the earliest departure time, the smaller the corresponding digit of the charging emergency indicator, indicating a more urgent charging situation. Conversely, the later the earliest departure time, the larger the corresponding digit, indicating a relatively relaxed charging situation. If the earliest departure time is the same, indicating the same first few digits of the charging emergency indicator, the shorter the parking duration, the more urgent the charging situation.
[0059] By calculating the earliest departure time and the latest return time to obtain the charging emergency mark, the characteristics of the earliest departure time and the latest return time are integrated into the charging emergency mark. When sorting the charging needs of buses, there is no need to compare the earliest departure time and the latest return time every time, only the charging emergency marks need to be compared, which improves the efficiency of data processing to a certain extent.
[0060] It is understandable that when the preset multiple is 10 m If the number of digits in the parking duration is greater than m, the accuracy of the charging emergency indicator will be reduced. For example, if the earliest departure time is 300 (indicating a departure 300 minutes after midnight, i.e., 5:00 AM) and the parking duration is 420 (indicating a 420-minute parking period, i.e., returning to the parking lot at 10:00 AM the previous day), and n is 1, meaning the preset multiplier is 10, the bus's charging emergency indicator will be 3000 + 420 = 3420. This approach can also reflect the charging emergency situation, but because it does not fully separate the earliest departure time from the parking duration, its accuracy is lower. The unit format for the earliest departure time, latest return time, and parking duration is not restricted, as long as they can achieve comparable results. For example, based on the above example, the units can be converted to hours or seconds.
[0061] A better method for determining the preset multiple is to obtain the integer number n of the parking time, where n is a natural number and the preset multiple is greater than or equal to 10. n In this way, the earliest departure time and parking time can be completely separated, improving the accuracy of the charging emergency sign.
[0062] Step S102: According to the preset charging muzzle sequence and charging emergency mark, a corresponding relationship between the charging muzzle and the bus is established and charging location prompt information is output.
[0063] Specifically, according to the above-mentioned charging emergency signs, the buses are sorted in ascending order to obtain a bus sequence; according to the above-mentioned bus sequence, the charging muzzles in the above-mentioned charging muzzle sequence are obtained in turn and a correspondence between the above-mentioned charging muzzles and the buses is established; according to the above-mentioned correspondence, the charging position prompt information is output, and the above-mentioned charging position prompt information includes the position information of the charging muzzle.
[0064] It will be understood that each bus has a corresponding unique identification code, which can be a license plate number or another unique identification code that uniquely identifies the bus. Buses are sorted in ascending order based on their emergency charging indicators. The charging requirements of each bus in the bus sequence are sequentially decreasing. The charging guns in the charging gun sequence are then assigned to the buses in the bus sequence. Once assigned, a correspondence between the guns and buses is established, and charging location information is output to the buses, indicating the location of the corresponding charging guns.
[0065] The above preset charging muzzle sequence is obtained by the following method:
[0066] Obtain a type sequence of charging pile types and a charging power of the charging pile; sort the muzzles of each charging pile type in the type sequence according to the charging power to obtain a type muzzle sequence; sort the type muzzle sequence according to the type sequence to obtain a charging muzzle sequence.
[0067] Specifically, the above-mentioned type sequence includes but is not limited to single-barrel charging piles, dual-barrel charging piles, and quad-barrel charging piles. It is understood that a single-barrel charging pile only supports charging for one bus, while dual-barrel and quad-barrel charging piles can support multiple buses charging simultaneously. When multiple buses use a single charging pile for charging, charging resources may be competed for. This means that the charging efficiency of dual-barrel and quad-barrel charging piles varies depending on the number of vehicles connected. When a quad-barrel charging pile is connected to four buses, the charging efficiency per bus is lower than when it is connected to three buses, two buses, and one bus. The more vehicles connected, the lower the average charging efficiency per vehicle. Therefore, for buses with urgent charging needs, single-barrel charging piles are prioritized. Similarly, when single-barrel charging piles are unavailable, dual-barrel charging piles are prioritized. The charging pile types in the type sequence are sorted in ascending order based on the number of barrels on the charging pile. For charging piles with the same single muzzle but different charging powers, if all are single muzzle charging piles, they are sorted according to the size of the charging power, and sorted in descending order of charging power. After sorting by charging power, the charging muzzle sequence can be obtained.
[0068] It can be understood that the charging efficiency of the muzzles in the charging muzzle sequence decreases successively, so a correspondence is established between the first muzzle in the charging muzzle sequence and the first vehicle in the bus sequence, so that the vehicle with the most urgent charging need can get the muzzle with the highest charging efficiency. Similarly, a correspondence is established between other muzzles in the charging muzzle sequence and other vehicles in the bus sequence.
[0069] The bus-based charging station allocation method also includes:
[0070] Get the total number of vehicles and charging stations in the parking lot. If the total number of vehicles is greater than the total number of charging stations, it means that not every parking space has a corresponding charging station. When all charging stations are in use, it is also necessary to consider how to arrange parking spaces for vehicles without charging stations.
[0071] First, the location data of the parking spaces in the parking lot must be obtained. The above-mentioned parking spaces are parking spaces that do not include charging muzzles. When the above-mentioned charging muzzles are all in use, the muzzle positions of the charging muzzles in the above-mentioned charging muzzle sequence are obtained respectively, and the distance between the above-mentioned location data and the above-mentioned muzzle positions is calculated. The parking space with the location data corresponding to the minimum value of the above-mentioned distance is the nearest parking space, and parking prompt information is output.
[0072] The parking space location data refers to the location of the parking space within the parking lot. This location data can be obtained using a satellite positioning system, or by establishing a coordinate system to represent the location information of each parking space. For example, a parking lot coordinate system can be established, with the center coordinates of each parking space used as the parking space location data. The muzzle position can also be represented using coordinates. Calculating the distance between the muzzle position and the location data is equivalent to calculating the distance between the two coordinate points. For example, a charging muzzle sequence includes a first muzzle and a second muzzle. The distances between the muzzle position of the first muzzle and all the aforementioned location data are calculated. The minimum distance is used as the target parking space, and a stop prompt message is output to prompt the bus to park at the target parking space. The distances between the second muzzle and the location data other than the target parking space are calculated again. The minimum distance is used as the new target parking space, and a stop prompt message is output. This process is repeated in this manner until all buses have parked.
[0073] It's understandable that the order in the charging gun sequence is based on the charging efficiency of the charging guns, so the order in which charging tasks are completed also aligns with the order in the charging gun sequence, that is, charging tasks are completed sequentially according to the order in the charging gun sequence. Therefore, calculating the nearest parking space in the order of the charging gun sequence can also improve the charging efficiency of all buses and minimize the time spent searching for charging spaces.
[0074] The embodiment of the present application provides a charging station allocation system 200 based on a bus, referring to Figure 2 The bus-based charging station allocation system 200 includes:
[0075] The data acquisition module 201 is used to obtain the charging emergency mark of the bus, wherein the charging emergency mark indicates the urgency of the bus needing to charge;
[0076] The relationship establishing module 202 is used to establish a corresponding relationship between the charging muzzle and the bus according to the preset charging muzzle sequence and the charging emergency mark and output charging position prompt information.
[0077] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0078] The embodiment of the present application discloses an electronic device. Figure 3 The electronic device includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 307 to the random access memory (RAM) 303. Various programs and data required for system operation are also stored in the RAM 303. The CPU 301, ROM 302 and RAM 303 are connected to each other through a bus. The input / output (I / O) interface 304 is also connected to the bus.
[0079] The following components are connected to the I / O interface 304: an input section 305 including a keyboard, a mouse, and the like; an output section 306 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 307 including a hard disk and the like; and a communication section 308 including a network interface card such as a local area network (LAN) card or a modem. The communication section 308 performs communication processing via a network such as the Internet. A drive 309 is also connected to the I / O interface 304 as needed. Removable media 310, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like, are installed in the drive 309 as needed so that computer programs read therefrom can be installed into the storage section 307 as needed.
[0080] In particular, according to the embodiment of the present application, the above reference flow chart Figure 1The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product comprising a computer program carried on a machine-readable medium, the computer program containing program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 308 and / or installed from a removable medium 310. When the computer program is executed by the central processing unit (CPU) 301, the above-mentioned functions defined in the apparatus of the present application are performed.
[0081] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination thereof.
[0082] The above description is merely a preferred embodiment of the present application and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of application involved in this application is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the aforementioned application concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions applied for in this application.
Claims
1. A bus-based charging station allocation method, characterized in that: include: Obtaining a charging emergency indicator of the bus, wherein the charging emergency indicator indicates the urgency with which the bus needs to be charged; The bus's charging emergency sign is obtained by the following method: Get the earliest departure time and latest return time of the bus; Calculate the parking time, where the parking time is the difference between the earliest departure time and the latest return time; Calculate the charging emergency indicator based on the earliest departure time and the parking duration, where the charging emergency indicator is the sum of the earliest departure time multiplied by a preset multiple and the parking duration; The preset multiple is obtained by the following method: Obtain the integer number n of the parking time, where n is a natural number; The preset multiple is greater than or equal to 10 n ; According to the preset charging gun sequence and the charging emergency mark, the corresponding relationship between the charging gun and the bus is established and the charging position prompt information is output, including: Sort the buses in ascending order according to the charging emergency identifier to obtain a bus sequence; According to the bus sequence, sequentially obtain the charging guns in the charging gun sequence and establish a correspondence between the charging guns and the buses; Outputting charging position prompt information according to the corresponding relationship, wherein the charging position prompt information includes the position information of the charging muzzle; The preset charging muzzle sequence is obtained by the following method: Get the type sequence of the charging pile type and the charging power of the charging pile; The type sequence includes single muzzle charging pile, double muzzle charging pile and quad muzzle charging pile; According to the charging power, the muzzles of each charging pile type in the type sequence are sorted respectively to obtain a type muzzle sequence; The type muzzle sequence is sorted according to the type sequence to obtain a charging muzzle sequence.
2. The bus-based charging station allocation method according to claim 1, characterized in that: The method further includes: When the charging guns are all in use; The nearest parking spaces corresponding to the charging guns in the charging gun sequence are obtained in sequence, and parking prompt information is output.
3. The bus-based charging station allocation method according to claim 2, characterized in that: The sequentially obtaining the nearest parking spaces corresponding to the charging guns in the charging gun sequence includes: Obtaining location data of a parking space, where the parking space does not include a charging gun port; respectively obtaining the muzzle positions of the charging muzzles in the charging muzzle sequence, and calculating the distance between the position data and the muzzle positions; The parking space corresponding to the position data of the minimum distance is the nearest parking space.
4. A bus-based charging station allocation system for loading and executing a computer program according to any one of claims 1 to 3, characterized in that: include: A data acquisition module (201) is used to acquire a charging emergency mark of a bus, wherein the charging emergency mark indicates the urgency of the bus needing to be charged; The relationship establishment module (202) is used to establish a corresponding relationship between the charging muzzle and the bus according to the preset charging muzzle sequence and the charging emergency mark and output charging position prompt information.
5. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Public transportation new energy pure trolley bus charging power dynamic allocation method
CN106427654A
Multi-gun charging pile group charging power control device and control method
CN110654263A