Charging methods, apparatus, equipment, media and process products

By introducing a controller area network and a serial peripheral interface into the new energy vehicle charging system, it is expanded into two independent charging CAN buses. Current is distributed according to the actual capacity of the charging pile, which solves the efficiency and safety problems of multi-gun charging and improves charging balance and safety.

CN121157708BActive Publication Date: 2026-03-13CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-21
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

How to effectively control multiple charging guns to charge new energy vehicles simultaneously, improve charging efficiency and ensure safety, and avoid problems such as reduced charging efficiency or current overload caused by uneven current distribution.

Method used

By introducing a controller area network and a serial peripheral interface to connect with the charging gun, it is expanded into two independent charging CAN buses. Current is distributed according to the actual charging capacity of the charging pile, realizing coordinated management of multi-gun charging, including average distribution and priority distribution of current, to ensure charging balance and safety.

Benefits of technology

It improves the efficiency and safety of multi-gun charging, reduces system overload and charging efficiency reduction caused by uneven current distribution, and lowers control difficulty and risk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121157708B_ABST
    Figure CN121157708B_ABST
Patent Text Reader

Abstract

This application relates to a charging method, apparatus, device, medium, and program product. The method includes: obtaining the actual charging capacity of charging piles corresponding to at least two charging guns charging a device to be charged; the device to be charged being connected to the at least two charging guns via a controller local area network and / or a serial peripheral interface; distributing the total charging demand current evenly to each charging gun or preferentially to one charging gun according to the actual charging capacity of each charging pile, obtaining the requested current allocated to each charging gun, and sending a charging request according to the requested current allocated to each charging gun. Using this application enables efficient coordination of multi-gun charging, thereby improving charging efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of charging technology, specifically to a charging method, apparatus, device, medium, and program product. Background Technology

[0002] With the development of new energy vehicles, optimizing charging technology has become a key aspect of improving product quality and user experience. Currently, to increase charging speed, some new energy vehicles are equipped with multiple charging ports, allowing multiple charging guns to charge the vehicle simultaneously. Therefore, how to control multiple charging guns simultaneously has become a pressing technical problem to be solved. Summary of the Invention

[0003] To address the aforementioned issues, this application provides a charging method, apparatus, device, medium, and program product that enables efficient coordination of multi-gun charging, thereby improving charging efficiency.

[0004] In a first aspect, this application provides a charging method, the method comprising:

[0005] Obtain the actual charging capacity of the charging piles corresponding to at least two charging guns that are charging the device to be charged; the charging device is connected to at least two charging guns through a controller area network and / or a serial peripheral interface.

[0006] Based on the actual charging capacity of each charging pile, the total charging demand current is evenly distributed to each charging gun or preferentially allocated to one charging gun to obtain the requested current allocated to each charging gun, and a charging request is sent according to the requested current allocated to each charging gun.

[0007] The first charging pile is connected via a controller local area network (LAN), and the second charging pile is connected via a serial peripheral interface. Based on the actual charging capacity of each charging pile, the total charging demand current is evenly distributed to each charging gun or preferentially allocated to one charging gun, resulting in the requested current allocated to each charging gun, including:

[0008] If the total charging demand current is not greater than the preset current threshold, the requested current allocated to the first charging pile is determined to be the total charging demand current, and the second charging pile is not allocated the requested current.

[0009] When the total charging demand current is less than the actual charging capacity of the first charging pile, the total charging demand current is divided equally to obtain the first equal-shared current, and the requested current allocated to each charging gun of the first charging pile is determined as the first equal-shared current.

[0010] In the technical solution of this application embodiment, a serial peripheral interface chip is introduced into the charging system, expanding the communication architecture to two independent charging CAN buses, thereby supporting the communication requirements of multi-gun charging. Furthermore, based on supporting two charging CAN buses, coordinated management of multi-gun charging is performed according to the actual charging capacity of the charging pile and different current distribution scenarios. This improves the balance and safety of the charging current of each charging gun, reducing problems such as decreased charging efficiency or current overload caused by uneven distribution. Moreover, when the total charging current demand is relatively small, current distribution is primarily performed using the first charging pile, eliminating the need for the serial peripheral interface charging CAN bus, thus reducing the control complexity of multi-gun charging.

[0011] In some embodiments, the total charging demand current is evenly distributed to each charging gun or preferentially distributed to one charging gun according to the actual charging capacity of each charging pile, to obtain the requested current allocated to each charging gun, including:

[0012] Based on the actual charging capacity of each charging pile, the first charging pile and the second charging pile are determined from the charging piles corresponding to at least two charging guns; the first charging pile is the charging pile with priority in current allocation.

[0013] Based on the total charging demand current and the actual charging capacity of the charging piles with priority current allocation, the requested current allocated to the first charging gun and the second charging gun is determined; wherein, the first charging gun corresponds to the first charging pile, and the second charging gun corresponds to the second charging pile.

[0014] In the technical solution of this application embodiment, in the scenario where the total charging demand current is preferentially allocated to a charging gun, the actual charging capacity of the charging pile that is preferentially allocated the current can be fully utilized for current distribution, which can improve charging efficiency and ensure charging safety.

[0015] In some embodiments, determining the requested current allocated to the first charging gun and the second charging gun based on the total charging demand current and the actual charging capacity of the charging pile with priority current allocation includes:

[0016] The current and value are calculated based on the actual charging capacity of the first charging pile and the preset minimum requested current.

[0017] If the total charging demand current is not less than the sum of currents, or if the total charging demand current is less than the minimum requested current, the requested current allocated to the first charging gun is determined to be the smaller value between the total charging demand current and the actual charging capacity of the first charging pile.

[0018] The first remaining current is calculated based on the total charging demand current and the requested current allocated to the first charging gun.

[0019] The requested current allocated to the second charging gun is determined to be the smaller value between the first residual current and the actual charging capacity of the second charging pile.

[0020] In the technical solution of this application embodiment, if it is determined that the first charging pile can be given priority in current allocation, and the total charging demand current is too small or too large, the actual charging capacity of the first charging pile is used as a constraint to give priority to current allocation to the first charging pile, and then the second charging pile is used to supplement it. This can make full use of the charging capacity of the first charging pile, thereby improving charging efficiency.

[0021] In some embodiments, the method further includes:

[0022] If the total charging demand current is not less than the minimum requested current and is less than the sum of the current values, the requested current allocated to the second charging gun is determined to be the smaller of the minimum requested current and the actual charging capacity of the second charging pile.

[0023] The second residual current is calculated based on the total charging demand current and the requested current allocated to the second charging gun.

[0024] The requested current allocated to the first charging gun is determined to be the smaller value between the second residual current and the actual charging capacity of the first charging pile.

[0025] In the technical solution of this application embodiment, if it is determined that the first charging pile can be given priority in current allocation, and if the total charging demand current is moderate, a smaller requested current is allocated to the second charging pile first, and then the remaining larger requested current is allocated to the first charging pile. In this way, the charging capacity of the first charging pile can be fully utilized, thereby improving charging efficiency.

[0026] In some embodiments, the method further includes:

[0027] If the total charging demand current is greater than the preset current threshold, the total charging demand current is divided equally to obtain the second equal-divided current.

[0028] Based on the second equal-sharing current, the total charging demand current, the actual charging capacity of the first charging pile, and the actual charging capacity of the second charging pile, determine the requested current allocated to each charging pile and the requested current allocated to each charging gun.

[0029] In the technical solution of this application embodiment, when the total charging demand current is large, the actual charging capacity of each charging pile is fully considered, and the two-way charging CAN bus is used to coordinate and manage the multi-gun charging. This not only meets the communication requirements of multi-gun charging, but also improves the balance and safety of the charging current of each charging gun, and reduces problems such as reduced charging efficiency or current overload caused by equal distribution.

[0030] In some embodiments, determining the requested current allocated to each charging pile and the requested current allocated to each charging gun based on the second shared current, the total charging demand current, the actual charging capacity of the first charging pile, and the actual charging capacity of the second charging pile includes:

[0031] If the second shared current is less than the actual charging capacity of the first charging pile and less than the actual charging capacity of the second charging pile, the requested current allocated to the first charging pile and the second charging pile is determined to be the second shared current.

[0032] The second equal-divided current is divided into three equal-divided currents to obtain the third equal-divided current, and it is determined that the requested current allocated to each charging gun of the first charging pile and each charging gun of the second charging pile is the third equal-divided current.

[0033] In the technical solution of this application embodiment, when the average current distribution can be adapted to the charging capacity of the charging pile, the average distribution can improve the current balance among multiple charging guns and reduce the control difficulty of multiple charging guns.

[0034] In some embodiments, determining the requested current allocated to each charging pile and the requested current allocated to each charging gun based on the second shared current, the total charging demand current, the actual charging capacity of the first charging pile, and the actual charging capacity of the second charging pile includes:

[0035] If the second shared current is greater than the actual charging capacity of the first charging pile, the requested current allocated to the first charging pile is determined based on the actual charging capacity of the first charging pile.

[0036] The third residual current is calculated based on the total charging demand current and the actual charging capacity of the first charging pile.

[0037] The requested current allocated to the second charging pile is determined based on the smaller of the third residual current and the actual charging capacity of the second charging pile.

[0038] In the technical solution of this application embodiment, when the average current distribution cannot be adapted to the charging capacity of the first charging pile, the current distribution is made with full consideration of the capacity of the first charging pile, which can improve the safety of charging multiple charging guns.

[0039] In some embodiments, determining the requested current allocated to each charging pile based on the second shared current, the total charging demand current, the actual charging capacity of the first charging pile, and the actual charging capacity of the second charging pile includes:

[0040] If the second shared current is greater than the actual charging capacity of the second charging pile, the requested current allocated to the second charging pile shall be determined according to the actual charging capacity of the second charging pile.

[0041] The fourth residual current is calculated based on the total charging demand current and the actual charging capacity of the second charging pile.

[0042] The requested current allocated to the first charging pile is determined based on the smaller of the fourth residual current and the actual charging capacity of the first charging pile.

[0043] In the technical solution of this application embodiment, when the average current distribution cannot be adapted to the charging capacity of the second charging pile, the current distribution is made with full consideration of the capacity of the second charging pile, which can improve the safety of charging multiple charging guns.

[0044] In some embodiments, determining the requested current allocated to each charging pile based on the second shared current, the total charging demand current, the actual charging capacity of the first charging pile, and the actual charging capacity of the second charging pile includes:

[0045] If the second shared current is greater than the actual charging capacity of the first charging pile and greater than the actual charging capacity of the second charging pile, the requested current allocated to the first charging pile is determined based on the actual charging capacity of the first charging pile, and the requested current allocated to the second charging pile is determined based on the actual charging capacity of the second charging pile.

[0046] In the technical solution of this application embodiment, when the average current distribution cannot be adapted to the charging capacity of the first charging pile and the second charging pile, the current distribution fully considers the capacity of the first charging pile and the second charging pile, which can reduce the current overload problem and improve the safety of charging multiple charging guns.

[0047] In some embodiments, the method further includes:

[0048] For each charging gun, if a charging fault is detected, the corresponding charging limitation process is executed according to the fault type. The fault types include Class I faults and Class II faults. Class I faults include charging socket overheating (Level I); Class II faults include at least one of the following: gun signal loss, charging socket overheating (Level II), charging socket thermistor failure, charging relay sticking, and charging relay open circuit.

[0049] In the technical solution of this application embodiment, the battery management system can quickly identify and isolate faulty charging guns, and perform corresponding charging limitation processing according to the fault type of the charging fault, so as to ensure stable and safe charging operation.

[0050] In some embodiments, appropriate charging limitation processing is performed based on the type of charging failure, including:

[0051] In the case of a Class I fault, the charging power of the charging station corresponding to the charging gun is limited according to a preset ratio.

[0052] In the event of a Class II fault, the charging station corresponding to the charging gun will stop charging.

[0053] In the technical solution of this application embodiment, only the charging power is limited in the case of low-risk faults, and charging is stopped in the case of high-risk faults, which can greatly reduce the charging risk and improve the charging reliability.

[0054] Secondly, this application also provides a charging device, which includes:

[0055] The capability acquisition module is used to acquire the actual charging capacity of the charging piles corresponding to at least two charging guns that are charging the device to be charged; the device to be charged is connected to at least two charging guns through a controller area network and / or a serial peripheral interface.

[0056] The current distribution module is used to distribute the total charging demand current equally to each charging gun or preferentially to one charging gun according to the actual charging capacity of each charging pile, obtain the requested current allocated to each charging gun, and send a charging request according to the requested current allocated to each charging gun.

[0057] The first charging pile is connected via a controller local area network, and the second charging pile is connected via a serial peripheral interface. The current distribution module is specifically used to determine the requested current allocated to the first charging pile as the total charging demand current when the total charging demand current is not greater than a preset current threshold for current distribution, and to determine that the second charging pile is not allocated the requested current; when the total charging demand current is less than the actual charging capacity of the first charging pile, the total charging demand current is distributed equally to obtain a first equal distribution current, and the requested current allocated to each charging gun of the first charging pile is determined as the first equal distribution current.

[0058] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method of any one of the first aspects.

[0059] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of any one of the first aspects.

[0060] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the method of any one of the first aspects. Attached Figure Description

[0061] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the alternative embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0062] Figure 1 This is a schematic diagram of the application environment of an embodiment of this application;

[0063] Figure 2 This is a schematic flowchart of a charging method according to an embodiment of this application;

[0064] Figure 3 This is a flowchart illustrating the steps of determining the requested current allocated to each charging gun according to an embodiment of this application.

[0065] Figure 4 This is a flowchart illustrating the first case of priority current allocation according to an embodiment of this application;

[0066] Figure 5 This is a flowchart illustrating the second case of priority current allocation according to an embodiment of this application;

[0067] Figure 6 This is a flowchart illustrating the first case of average current distribution according to an embodiment of this application.

[0068] Figure 7 This is a flowchart illustrating the second case of average current distribution according to an embodiment of this application;

[0069] Figure 8 This is a structural block diagram of a charging device according to an embodiment of this application;

[0070] Figure 9 This is a structural block diagram of a charging method according to an embodiment of this application;

[0071] Figure 10 This is an internal structural diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0072] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.

[0073] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0074] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0075] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0076] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0077] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0078] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0079] With the development of new energy vehicles, optimizing charging technology has become a key aspect of improving product quality and user experience. To increase charging speed, some new energy vehicles are equipped with multiple charging ports, allowing multiple charging guns to charge the vehicle simultaneously.

[0080] Currently, to enable multiple charging guns to charge simultaneously, an additional CAN device is required for charging message conversion. This setup has several drawbacks: the external CAN device is expensive, the overall vehicle space layout is difficult, the wiring harness between the CAN device and the Battery Management Unit (BMU) results in low reliability, and an additional set of charging messages is required, leading to a high risk of message loss and errors.

[0081] The additional CAN device has many drawbacks, which also increases the difficulty of controlling multiple charging guns charging simultaneously.

[0082] To address the aforementioned problems, this application provides a charging method. This method connects to at least one charging gun of a charging pile via a Controller Area Network (CAN) and / or a Serial Peripheral Interface (SPI). It supports two independent charging CAN buses, providing support for efficient coordination of multi-gun charging and thus improving charging efficiency. Furthermore, based on the actual charging capacity of each charging pile, the total charging demand current is evenly distributed to each charging gun or preferentially allocated to one charging gun to obtain the requested current allocated to each charging gun. Charging requests are then sent based on the requested current allocated to each charging gun, which can improve the balance and safety of multi-gun charging and reduce problems such as system overload and reduced charging efficiency caused by uneven current distribution.

[0083] The charging method provided in this application embodiment can be applied to, for example... Figure 1The application environment shown includes a vehicle 11 and at least one charging pile 12. The vehicle 11 includes a battery management unit 111, a battery pack 112, and multiple charging interfaces 113. The battery management unit 111 includes a microcontroller unit (MCU), a controller area network (CAN) chip, and a serial peripheral interface (SPI) chip. The MCU is connected to both the CAN chip and the SPI chip. The CAN chip is connected to at least one charging interface 113, and the SPI chip is also connected to at least one charging interface 113. The SPI chip supports communication protocol conversion between the MCU and the charging pile, specifically CAN message conversion. After the charging gun is inserted into the charging interface, the MCU can interact with the charging pile 12 via the CAN chip and the charging gun, and also via the SPI chip and the charging gun. Thus, the CAN chip and the SPI chip provide two independent charging CAN buses, supporting the communication needs of multi-gun charging and enabling efficient coordination of multi-gun charging, thereby improving charging efficiency and shortening charging time. Furthermore, the two CAN buses operate independently without interference, reducing charging interruptions or malfunctions caused by communication conflicts or insufficient bandwidth. Moreover, through the controller area network chip and serial peripheral interface chip, more charging gun charging solutions can be expanded, giving the charging system architecture excellent compatibility and scalability.

[0084] According to some embodiments of this application, refer to Figure 2 A charging method is provided, which is applied to Figure 1 Taking the battery management unit in the image as an example, this method may include the following steps:

[0085] Step 201: Obtain the actual charging capacity of the charging piles corresponding to at least two charging guns that are charging the device to be charged.

[0086] In this embodiment, the device to be charged is connected to at least two charging guns via a controller area network (CLAN) and / or a serial peripheral interface. In some embodiments, the device to be charged includes a new energy vehicle, which is connected to at least one charging pile via a CLAN and / or a serial peripheral interface, including at least one of the following: connected to multiple charging guns of a first charging pile via a CLAN; connected to multiple charging guns of a second charging pile via a serial peripheral interface; connected to at least one charging gun of the first charging pile via a CLAN; and connected to at least one charging gun of the second charging pile via a serial peripheral interface.

[0087] For example, the charging guns of the first charging pile can be connected via a controller area network (Controller Area Network); or, the charging guns of the second charging pile can be connected via a serial peripheral interface; or, the charging guns of the first charging pile and the second charging pile can be connected via a controller area network; or, the charging guns of the first charging pile and the second charging pile can be connected via a serial peripheral interface; or, the charging guns of the first charging pile and the second charging pile can be connected via a controller area network; or, the charging guns of the first charging pile and the second charging pile can be connected via a serial peripheral interface. By expanding the serial peripheral interface, connections can be made for single-pile dual-gun, dual-pile dual-gun, dual-pile triple-gun, and dual-pile quad-gun configurations.

[0088] After the charging gun is inserted into the charging interface, the battery management system can detect whether the electrical connection between the charging interface and the charging gun is normal. If the electrical connection is normal, a communication connection is established with the charging gun through the controller area network and / or serial peripheral interface. After the communication connection is successfully established, the charging message sent by the charging pile is obtained, and the actual charging capacity of the charging pile is determined based on the charging message.

[0089] The actual charging capacity is determined based on the charging pile's power capacity, current capacity, and permissible charging capacity. Power capacity and current capacity both characterize the charging pile's maximum discharge capacity, which varies depending on the actual conditions of the charging pile. Permissible charging capacity is a safe current set based on the specifications of the charging gun cable. In some embodiments, the battery management system can determine the actual charging capacity as the minimum value among the power capacity, current capacity, and permissible charging capacity.

[0090] It should be noted that if the actual charging capacity of the charging station can be obtained, then the charging station is determined to be a valid charging station. If there are problems such as abnormal electrical connection between the charging interface and the charging gun, failure to establish communication connection with the charging gun, or the charging station failing to start the charging process, then the charging station corresponding to the charging interface is determined to be an invalid charging station.

[0091] Step 202: Distribute the total charging demand current equally to each charging gun or prioritize it to one charging gun according to the actual charging capacity of each charging pile, obtain the requested current allocated to each charging gun, and send a charging request according to the requested current allocated to each charging gun.

[0092] The total charging current demand refers to the total current required for charging the battery pack.

[0093] In the priority allocation scenario, the total charging demand current is preferentially allocated to one charging gun of one of the charging piles, and the other charging piles and charging guns supplement the remaining demand current.

[0094] In scenarios where the charging current demand is not evenly distributed, the total charging demand current is divided equally, and the evenly distributed current is allocated to each charging gun. In some embodiments, the requested current allocated to each charging gun is determined based on the total charging demand current, the actual charging capacity of the first charging pile, the actual charging capacity of the second charging pile, and a preset current threshold for current equalization. This process may include: if the total charging demand current is not greater than the preset current threshold, the requested current allocated to the first charging pile is determined as the total charging demand current, and the second charging pile is not allocated any requested current; if the total charging demand current is less than the actual charging capacity of the first charging pile, the total charging demand current is evenly divided to obtain a first evenly distributed current, and the requested current allocated to each charging gun of the first charging pile is determined as the first evenly distributed current.

[0095] It is important to emphasize that the constraints in the allocation process include: the requested current allocated to each charging gun cannot exceed the actual charging capacity of the charging station. Furthermore, each charging gun can be controlled independently, supporting independent charging parameter configuration and status monitoring, ensuring the flexibility and safety of multi-gun charging.

[0096] In the above embodiments, the actual charging capacity of the charging piles corresponding to at least two charging guns charging the device to be charged is obtained; the total charging demand current is evenly distributed to each charging gun or preferentially allocated to one charging gun according to the actual charging capacity of each charging pile to obtain the requested current allocated to each charging gun, and a charging request is sent according to the requested current allocated to each charging gun. In the technical solution of this application embodiment, a serial peripheral interface chip is introduced into the charging system, expanding the communication architecture to two independent charging CAN buses, thereby supporting the communication needs of multi-gun charging. Furthermore, based on supporting two charging CAN buses, the coordinated management of multi-gun charging according to the actual charging capacity of the charging piles and different current distribution scenarios can improve the balance and safety of the charging current of each charging gun, and reduce problems such as decreased charging efficiency or current overload caused by equal distribution.

[0097] According to some embodiments of this application, refer to Figure 3 In the above embodiment, "distributing the total charging demand current equally to each charging gun or preferentially allocating it to one charging gun according to the actual charging capacity of each charging pile, and obtaining the requested current allocated to each charging gun" may include the following steps:

[0098] Step 301: Based on the actual charging capacity of each charging pile, determine the first charging pile and the second charging pile from the charging piles corresponding to at least two charging guns.

[0099] The first charging station is the one that receives priority in current allocation.

[0100] When the total charging demand current is preferentially allocated to one charging gun, the validity of each charging station is determined based on its actual charging capacity. It should be noted that a charging station is considered invalid if no actual charging capacity is obtained, if obtaining the actual charging capacity fails, or if the obtained actual charging capacity is 0.

[0101] Based on whether each charging station is effective, the charging stations that are given priority in current allocation can be determined as follows, as shown in Table 1:

[0102] Table 1

[0103]

[0104] It should be noted that if both charging pile 1 and charging pile 2 are invalid, charging pile 1 still has priority in allocation. Once charging pile 1 becomes valid, the requested current can be allocated to charging pile 1 first.

[0105] Step 302: Determine the requested current allocated to the first charging gun and the second charging gun based on the total charging demand current and the actual charging capacity of the charging pile with priority current allocation.

[0106] The first charging gun corresponds to the first charging station, and the second charging gun corresponds to the second charging station.

[0107] In a dual-pile, dual-gun scenario, the total charging demand current is allocated based on the actual charging capacity of the charging pile with priority current allocation, resulting in the requested current of the first charging gun on the first charging pile and the requested current of the second charging gun on the second charging pile.

[0108] Due to differences in the total charging current demand, the current priority allocation of charging piles, and the actual charging capacity of charging piles, there are various situations in current allocation.

[0109] The first scenario, refer to... Figure 4 It may include the following steps:

[0110] Step 401: Calculate the current and value based on the actual charging capacity of the first charging pile and the preset minimum requested current.

[0111] Step 402: If the total charging demand current is not less than the sum of currents, or if the total charging demand current is less than the minimum requested current, determine that the requested current allocated to the first charging gun is the smaller value between the total charging demand current and the actual charging capacity of the first charging pile.

[0112] Step 403: Calculate the first remaining current based on the total charging demand current and the requested current allocated to the first charging gun.

[0113] Step 404: Determine that the requested current allocated to the second charging gun is the smaller value between the first residual current and the actual charging capacity of the second charging pile.

[0114] Assuming the first charging station receives priority current allocation, and its actual charging capacity is A, the second charging station's actual charging capacity is B, and the minimum requested current is X, then the sum of the currents is A+X. If the total charging demand current (Total) is greater than or equal to the sum of currents (A+X), or if the total charging demand current (Total) is less than the minimum requested current (X), the smaller value between the total charging demand current (Total) and the actual charging capacity (A) is taken as the requested current allocated to the first charging station. Then, the difference between the total charging demand current (Total) and the requested current allocated to the first charging station is calculated to obtain the first residual current. The smaller value between the first residual current and the actual charging capacity (B) of the second charging station is taken as the requested current allocated to the second charging station.

[0115] Understandably, if the total charging demand current is too small or too large, and the first charging pile is given priority in current allocation, then the second charging pile can be used to supplement the first charging pile, given that the first charging pile has the actual charging capacity as a constraint. This fully utilizes the charging capacity of the first charging pile and improves charging efficiency.

[0116] The second scenario, refer to... Figure 5 It may include the following steps:

[0117] Step 501: If the total charging demand current is not less than the minimum requested current and is less than the sum of current values, determine that the requested current allocated to the second charging gun is the smaller of the minimum requested current and the actual charging capacity of the second charging pile.

[0118] Step 502: Calculate the second residual current based on the total charging demand current and the requested current allocated to the second charging gun.

[0119] Step 503: Determine that the requested current allocated to the first charging gun is the smaller value between the second residual current and the actual charging capacity of the first charging pile.

[0120] Assuming the first charging station receives priority current allocation, and its actual charging capacity is A, the second charging station's actual charging capacity is B, and the minimum requested current is X, then the sum of the currents is A+X. If the total charging demand current (Total) is greater than or equal to the minimum requested current, but less than the sum of the currents (A+X), the smaller of the minimum requested current (X) and the actual charging capacity (B) of the second charging station is used as the requested current allocated to the second charging station. Then, the difference between the total charging demand current and the requested current allocated to the second charging station is calculated to obtain the second residual current. The smaller of the second residual current and the actual charging capacity (A) of the first charging station is then used as the requested current allocated to the first charging station.

[0121] Understandably, if it is determined that the first charging pile can be given priority in current allocation, and if the total charging current demand is moderate, the smaller requested current is allocated to the second charging pile first, and the remaining larger requested current is allocated to the first charging pile. In this way, the charging capacity of the first charging pile can be fully utilized, thereby improving charging efficiency.

[0122] The first and second scenarios can be referenced in Table 2:

[0123] Table 2

[0124]

[0125] Similar to the case where the first charging station prioritizes current allocation, the case where the second charging station prioritizes current allocation is shown in Table 3:

[0126] Table 3

[0127]

[0128] In the above embodiments, based on the actual charging capacity of each charging pile, the charging pile with priority current allocation between the first and second charging piles is determined; based on the total charging demand current and the actual charging capacity of the charging pile with priority current allocation, the requested current allocated to the first and second charging guns is determined. In the technical solution of this application embodiment, in the scenario where the total charging demand current is preferentially allocated to one charging gun, fully utilizing the actual charging capacity of the charging pile with priority current allocation for current distribution can improve charging efficiency and ensure charging safety.

[0129] According to some embodiments of this application, the above embodiment of "distributing the total charging demand current equally to each charging gun or preferentially distributing it to one charging gun according to the actual charging capacity of each charging pile, obtaining the requested current allocated to each charging gun, and sending a charging request according to the requested current allocated to each charging gun" may include: determining the requested current allocated to each charging gun according to the total charging demand current, the actual charging capacity of the first charging pile, the actual charging capacity of the second charging pile, and a preset current threshold for current equalization.

[0130] The first charging pile is connected via a controller local area network (Controller Area Network), and the second charging pile is connected via a serial peripheral interface. There are various scenarios for connecting the first charging pile via the Controller Area Network and the second charging pile via the serial peripheral interface, such as single-pile dual-gun, dual-pile dual-gun, dual-pile four-gun, etc.

[0131] Under the current-sharing principle, the total charging demand current is evenly distributed to the first charging pile and the second charging pile, and evenly distributed to the two charging guns of the first charging pile and the two charging guns of the second charging pile. The distribution process is constrained by the actual charging capacity of the first charging pile and the actual charging capacity of the second charging pile; that is, the requested current allocated to the first charging pile cannot exceed its actual charging capacity, and the requested current allocated to the second charging pile cannot exceed its actual charging capacity.

[0132] The current sharing scenario includes a preset current threshold, based on which various distribution scenarios can occur.

[0133] The first scenario, refer to... Figure 6 It may include the following steps:

[0134] Step 601: If the total charging demand current is not greater than the preset current threshold, determine that the requested current allocated to the first charging pile is the total charging demand current, and the second charging pile is not allocated the requested current.

[0135] Step 602: When the total charging demand current is less than the actual charging capacity of the first charging pile, the total charging demand current is divided equally to obtain the first equal-shared current, and the requested current allocated to each charging gun of the first charging pile is determined as the first equal-shared current.

[0136] In a dual-charging-pile scenario, assuming a preset current threshold of 40A, if the total charging demand current (Total) is less than or equal to 40A, then the entire total charging demand current (Total) is allocated to the first charging pile, and the second charging pile receives 0 current. The actual charging capacity of the first charging pile is A. If the total charging demand current (Total) is within the capacity of the first charging pile, then the total charging demand current (Total) is evenly divided to obtain a first equalized current (Total / 2), and it is determined that both charging guns of the first charging pile receive a current (Total / 2).

[0137] Table 4

[0138]

[0139] Referring to Table 4, in a dual-charging-pile, dual-gun scenario, assuming the vehicle is connected to gun a of the first charging pile and gun c of the second charging pile, according to the above allocation, the requested current allocated to gun a is Total, and the requested current allocated to gun c is 0. In a dual-charging-pile, four-gun scenario, assuming the vehicle is connected to guns a and b of the first charging pile and guns c and d of the second charging pile, according to the above allocation, the requested current allocated to guns a and b is Total / 2, and the requested current allocated to guns c and d is 0.

[0140] Understandably, when the total charging current demand is relatively small, the first charging station can be used as the primary source for current distribution, eliminating the need to use the charging CAN bus with a serial peripheral interface, thereby reducing the control difficulty of multi-gun charging.

[0141] The second scenario, refer to... Figure 7 It may include the following steps:

[0142] Step 701: If the total charging demand current is greater than the preset current threshold, the total charging demand current is divided equally to obtain the second equal-divided current.

[0143] Step 702: Determine the requested current allocated to each charging pile and the requested current allocated to each charging gun based on the second shared current, the total charging demand current, the actual charging capacity of the first charging pile and the actual charging capacity of the second charging pile.

[0144] In a dual-charging-pile scenario, if the total charging demand current (Total) exceeds 40A, the allocation principle is to evenly distribute the total charging demand current to both the first and second charging piles. However, due to different plug-in configurations, the matching between the evenly distributed current and the actual charging capacity of each charging pile varies, resulting in multiple current allocation scenarios. Taking a dual-charging-pile, four-barrel scenario—where the vehicle connects to two charging barrels of the first charging pile via the controller area network and to two charging barrels of the second charging pile via a serial peripheral interface—as an example, the following scenarios are possible:

[0145] 1) When the second average current is less than the actual charging capacity of the first charging pile and less than the actual charging capacity of the second charging pile, the requested current allocated to the first charging pile and the second charging pile is determined to be the second average current; the second average current is divided equally to obtain the third average current, and the requested current allocated to each charging gun of the first charging pile and each charging gun of the second charging pile is determined to be the third average current.

[0146] Taking the actual charging capacity of the first charging pile as A and the actual charging capacity of the second charging pile as B as an example, if the second average current Total / 2 is less than the actual charging capacity of the first charging pile A and also less than the actual charging capacity of the second charging pile B, it indicates that the requested current allocated to each charging pile after the total charging demand current Total is evenly divided is within the capacity range of each charging pile. In this case, the second average current Total / 2 is evenly divided to obtain the third average current Total / 4, and it is determined that the requested current allocated to the four charging guns is the third average current Total / 4.

[0147] Understandably, when the average current distribution can be adapted to the charging capacity of the charging pile, the average distribution can improve the current balance among multiple charging guns and reduce the difficulty of controlling multiple charging guns.

[0148] 2) If the second average current is greater than the actual charging capacity of the first charging pile, determine the requested current allocated to the first charging pile based on the actual charging capacity of the first charging pile; calculate the third residual current based on the total charging demand current and the actual charging capacity of the first charging pile; determine the requested current allocated to the second charging pile based on the smaller value between the third residual current and the actual charging capacity of the second charging pile.

[0149] If the second average current Total / 2 is greater than the actual charging capacity A of the first charging pile, it indicates that allocating the requested current to the first charging pile after equally dividing the total charging demand current Total will exceed the capacity of the first charging pile. If the current is still evenly distributed, it will lead to current overload. In this case, the allocation is prioritized for the first charging pile. First, the requested current allocated to the first charging pile is determined based on its actual charging capacity (power capacity, current capacity, allowable charging capacity) A. Then, the difference between the total charging demand current Total and the actual charging capacity A of the first charging pile is calculated to obtain the third residual current. Then, the smaller of the third residual current and the actual charging capacity B of the second charging pile is taken as the requested current allocated to the second charging pile, i.e., the second charging pile requested current = Min[Total charging demand current Total - Pile 1 capacity A, Pile 2 capacity B].

[0150] Understandably, when the average current distribution cannot match the charging capacity of the first charging station, fully considering the capacity of the first charging station when distributing the current can improve the safety of charging multiple charging guns.

[0151] 3) If the second average current is greater than the actual charging capacity of the second charging pile, determine the requested current allocated to the second charging pile based on the actual charging capacity of the second charging pile; calculate the fourth residual current based on the total charging demand current and the actual charging capacity of the second charging pile; determine the requested current allocated to the first charging pile based on the smaller value between the fourth residual current and the actual charging capacity of the first charging pile.

[0152] If the second average current Total / 2 is greater than the actual charging capacity B of the second charging pile, it indicates that distributing the total charging demand current equally to the second charging pile would exceed its capacity. Distributing the current equally would lead to overload. In this case, the second charging pile takes the lead in the distribution. First, the requested current allocated to the second charging pile is determined based on its actual charging capacity (power capacity, current capacity, and allowable charging capacity). Then, the difference between the total charging demand current Total and the actual charging capacity B of the second charging pile is calculated to obtain the fourth residual current. Then, the smaller of the fourth residual current and the actual charging capacity A of the first charging pile is taken as the requested current allocated to the first charging pile, i.e., the first charging pile's requested current = Min[Total charging demand current Total - Pile 2 capacity B, Pile 1 capacity A].

[0153] Understandably, when the average current distribution cannot match the charging capacity of the second charging station, fully considering the capacity of the second charging station when distributing the current can improve the safety of charging multiple charging guns.

[0154] 4) If the second average current is greater than the actual charging capacity of the first charging pile and greater than the actual charging capacity of the second charging pile, the requested current allocated to the first charging pile shall be determined according to the actual charging capacity of the first charging pile, and the requested current allocated to the second charging pile shall be determined according to the actual charging capacity of the second charging pile.

[0155] If the second shared current Total / 2 is greater than the actual charging capacity A of the first charging pile and also greater than the actual charging capacity B of the second charging pile, it indicates that distributing the total charging demand current equally among all charging piles would exceed the capacity of both the first and second charging piles. In this case, the current should be allocated according to the actual charging capacity of the first and second charging piles, i.e., the requested current for the first charging pile = capacity A of pile 1, and the requested current for the second charging pile = capacity B of pile 2.

[0156] Understandably, when the average current distribution cannot match the charging capacity of the first and second charging piles, fully considering the capabilities of the first and second charging piles when distributing the current can reduce current overload issues and improve the safety of charging with multiple charging guns.

[0157] In the above embodiments, the requested current allocated to each charging gun is determined based on the total charging demand current, the actual charging capacity of the first charging pile, the actual charging capacity of the second charging pile, and a preset current threshold for current equalization. In the technical solution of this application embodiment, in the scenario where the total charging demand current is evenly distributed among the charging guns, the balance and safety of the charging current of multiple charging guns can be improved, reducing problems such as current overload and decreased charging efficiency caused by uneven distribution or incompatibility with the charging pile's capabilities.

[0158] According to some embodiments of this application, it may also include: for each charging gun, if a charging fault is detected in the charging gun, performing corresponding charging restriction processing according to the fault type of the charging fault.

[0159] The fault types include Class I faults and Class II faults; Class I faults include charging socket overheating (Level I); Class II faults include at least one of the following: gun signal loss, charging socket overheating (Level II), charging socket thermistor (Negative Temperature Coefficient Thermistor, NTC) failure, charging relay sticking, and charging relay open circuit.

[0160] During the charging process, charging guns may experience charging malfunctions. For each charging gun, upon detecting a charging malfunction, the type of malfunction can be determined first; then, appropriate charging limitation measures can be implemented based on the malfunction type.

[0161] In some embodiments, performing corresponding charging limitation processing based on the type of charging fault may include:

[0162] 1) In the case of a fault type 1, the charging power of the charging pile corresponding to the charging gun is limited according to a preset ratio.

[0163] 2) In the event of a second type of fault, control the charging station corresponding to the charging gun to stop charging.

[0164] Table 5

[0165]

[0166]

[0167]

[0168]

[0169]

[0170] In the above embodiments, the battery management system can quickly identify and isolate faulty charging guns, and perform corresponding charging restriction processing according to the fault type of the charging fault, so as to ensure stable and safe charging operation.

[0171] It should be understood that although the steps in the flowchart above are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart above may include multiple steps or stages, which are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0172] Based on the same inventive concept, this application also provides a charging device for implementing the charging method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more charging device embodiments provided below can be found in the limitations of the charging method described above, and will not be repeated here.

[0173] According to some embodiments of this application, refer to Figure 8 A charging device is provided, the device comprising:

[0174] The capability acquisition module 801 is used to acquire the actual charging capacity of the charging piles corresponding to at least two charging guns for charging the device to be charged; the device to be charged is connected to at least two charging guns through a controller local area network and / or a serial peripheral interface.

[0175] The current distribution module 802 is used to distribute the total charging demand current equally to each charging gun or preferentially to one charging gun according to the actual charging capacity of each charging pile, obtain the requested current allocated to each charging gun, and send a charging request according to the requested current allocated to each charging gun.

[0176] The first charging pile is connected via a controller local area network, and the second charging pile is connected via a serial peripheral interface. The current distribution module 802 is specifically used to determine the requested current allocated to the first charging pile as the total charging demand current and the second charging pile not being allocated the requested current when the total charging demand current is not greater than a preset current threshold; when the total charging demand current is less than the actual charging capacity of the first charging pile, the total charging demand current is evenly distributed to obtain a first evenly distributed current, and the requested current allocated to each charging gun of the first charging pile is determined as the first evenly distributed current.

[0177] In some embodiments, the current distribution module 802 is specifically used to determine a first charging pile and a second charging pile from the charging piles corresponding to at least two charging guns based on the actual charging capacity of each charging pile; the first charging pile is the charging pile with priority current allocation; the requested current allocated to the first charging gun and the second charging gun is determined based on the total charging demand current and the actual charging capacity of the charging pile with priority current allocation; wherein, the first charging gun corresponds to the first charging pile and the second charging gun corresponds to the second charging pile.

[0178] In some embodiments, the current allocation module 802 is specifically configured to calculate the sum of currents based on the actual charging capacity of the first charging pile and a preset minimum requested current; if the total charging demand current is not less than the sum of currents, or if the total charging demand current is less than the minimum requested current, determine that the requested current allocated to the first charging gun is the smaller of the total charging demand current and the actual charging capacity of the first charging pile; calculate the first residual current based on the total charging demand current and the requested current allocated to the first charging gun; and determine that the requested current allocated to the second charging gun is the smaller of the first residual current and the actual charging capacity of the second charging pile.

[0179] In some embodiments, the current allocation module 802 is specifically configured to: determine that the requested current allocated to the second charging gun is the smaller of the minimum requested current and the actual charging capacity of the second charging pile, when the total charging demand current is not less than the minimum requested current and is less than the sum of current values; calculate the second residual current based on the total charging demand current and the requested current allocated to the second charging gun; and determine that the requested current allocated to the first charging gun is the smaller of the second residual current and the actual charging capacity of the first charging pile.

[0180] In some embodiments, the current distribution module 802 is specifically used to divide the total charging demand current equally to obtain a second equal-divided current when the total charging demand current is greater than a preset current threshold; and to determine the requested current allocated to each charging pile and the requested current allocated to each charging gun based on the second equal-divided current, the total charging demand current, the actual charging capacity of the first charging pile and the actual charging capacity of the second charging pile.

[0181] In some embodiments, the current distribution module 802 is specifically used to determine that the requested current allocated to the first charging pile and the second charging pile is the second shared current when the second shared current is less than the actual charging capacity of the first charging pile and less than the actual charging capacity of the second charging pile; to perform equalization processing on the second shared current to obtain the third shared current, and to determine that the requested current allocated to each charging gun of the first charging pile and each charging gun of the second charging pile is the third shared current.

[0182] In some embodiments, the current distribution module 802 is specifically configured to: determine the requested current allocated to the first charging pile based on the actual charging capacity of the first charging pile when the second average current is greater than the actual charging capacity of the first charging pile; calculate a third residual current based on the total charging demand current and the actual charging capacity of the first charging pile; and determine the requested current allocated to the second charging pile based on the smaller value between the third residual current and the actual charging capacity of the second charging pile.

[0183] In some embodiments, the current distribution module 802 is specifically configured to: determine the requested current allocated to the second charging pile based on the actual charging capacity of the second charging pile when the second average current is greater than the actual charging capacity of the second charging pile; calculate a fourth residual current based on the total charging demand current and the actual charging capacity of the second charging pile; and determine the requested current allocated to the first charging pile based on the smaller value between the fourth residual current and the actual charging capacity of the first charging pile.

[0184] In some embodiments, the current distribution module 802 is specifically used to determine the requested current allocated to the first charging pile based on the actual charging capacity of the first charging pile and the requested current allocated to the second charging pile based on the actual charging capacity of the second charging pile when the second average current is greater than the actual charging capacity of the first charging pile and greater than the actual charging capacity of the second charging pile.

[0185] In some embodiments, refer to Figure 9 The device also includes:

[0186] The fault handling module 803 is used to perform corresponding charging restriction processing according to the fault type when a charging fault is detected in each charging gun. The fault types include a first type of fault and a second type of fault. The first type of fault includes charging socket overheating level one. The second type of fault includes at least one of the following: gun signal loss, charging socket overheating level two, charging socket thermistor failure, charging relay sticking, and charging relay open circuit.

[0187] In some embodiments, the fault handling module 803 is specifically used to limit the charging power of the charging pile corresponding to the charging gun according to a preset ratio when the fault type is a first type of fault; and to control the charging pile corresponding to the charging gun to stop charging when the fault type is a second type of fault.

[0188] Each module in the aforementioned charging device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.

[0189] According to some embodiments of this application, an electronic device is provided, which may be a microcontroller unit (MCU) in a battery management unit (BMU), and its internal structure diagram may be as follows. Figure 10 As shown, this electronic device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores charging data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a charging method.

[0190] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0191] According to some embodiments of this application, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions that can be executed by a processor of an electronic device to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0192] According to some embodiments of this application, a computer program product is also provided, which, when executed by a processor, can implement the above-described methods. The computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, some or all of the above-described methods can be implemented, wholly or partially, according to the processes or functions described in the embodiments of this application.

[0193] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0194] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0195] The embodiments described above merely illustrate several implementation methods of this application to facilitate a detailed understanding of the technical solutions of this application, but should not be construed as limiting the scope of protection of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. It should be understood that technical solutions obtained by those skilled in the art based on the technical solutions provided in this application through logical analysis, reasoning, or limited experimentation are all within the scope of protection of the appended claims. Therefore, the scope of protection of this patent application should be determined by the content of the appended claims, and the specification and drawings can be used to interpret the content of the claims.

Claims

1. A charging method characterized by, The method comprises: obtaining the actual charging capacity of the charging piles corresponding to the at least two charging guns for charging the to-be-charged device; the to-be-charged device is connected with the at least two charging guns through a controller area network and / or a serial peripheral interface; allocating the total charging demand current to each charging gun according to the actual charging capacity of each charging pile, or preferentially allocating the total charging demand current to one charging gun, to obtain the request current allocated to each charging gun, and sending a charging request according to the request current allocated to each charging gun; wherein the first charging pile is connected through the controller area network, the second charging pile is connected through the serial peripheral interface, and the total charging demand current is allocated to each charging gun according to the actual charging capacity of each charging pile, or preferentially allocated to one charging gun, to obtain the request current allocated to each charging gun, comprising: in the case that the total charging demand current is not greater than a preset current threshold of current equal division, determining that the request current allocated to the first charging pile is the total charging demand current, and the second charging pile is not allocated to the request current; in the case that the total charging demand current is less than the actual charging capacity of the first charging pile, performing equal division processing on the total charging demand current to obtain a first equal division current, and determining that the request current allocated to each charging gun of the first charging pile is the first equal division current.

2. The method of claim 1, wherein, The total charging demand current is allocated to each charging gun according to the actual charging capacity of each charging pile, or preferentially allocated to one charging gun, to obtain the request current allocated to each charging gun, comprising: determining the first charging pile and the second charging pile from the charging piles corresponding to the at least two charging guns according to the actual charging capacity of each charging pile; the first charging pile is a charging pile preferentially allocated to current; determining the request current allocated to the first charging gun and the second charging gun according to the total charging demand current and the actual charging capacity of the charging pile preferentially allocated to current; wherein the first charging gun corresponds to the first charging pile, and the second charging gun corresponds to the second charging pile.

3. The method of claim 2, wherein, The total charging demand current is allocated to each charging gun according to the actual charging capacity of each charging pile, or preferentially allocated to one charging gun, to obtain the request current allocated to each charging gun, comprising: calculating a current sum value according to the actual charging capacity of the first charging pile and a preset minimum request current; in the case that the total charging demand current is not less than the current sum value, or the total charging demand current is less than the minimum request current, determining that the request current allocated to the first charging gun is the smaller one of the total charging demand current and the actual charging capacity of the first charging pile; calculating a first residual current according to the total charging demand current and the request current allocated to the first charging gun; determining that the request current allocated to the second charging gun is the smaller one of the first residual current and the actual charging capacity of the second charging pile.

4. The method of claim 3, wherein, The method further comprises: determining that the request current allocated to the second charging pile is the minimum request current and the actual charging capacity of the second charging pile, when the total charging demand current is not less than the minimum request current and is less than the current sum value; calculating a second residual current according to the total charging demand current and the request current allocated to the second charging gun; determining that the request current allocated to the first charging gun is the smaller one of the second residual current and the actual charging capacity of the first charging pile.

5. The method of claim 1, wherein, The method further comprises: when the total charging demand current is greater than the preset current threshold, performing equal division processing on the total charging demand current to obtain a second equal division current; determining the request current allocated to each charging pile and the request current allocated to each charging gun according to the second equal division current, the total charging demand current, the actual charging capacity of the first charging pile and the actual charging capacity of the second charging pile.

6. The method of claim 5, wherein, The method further comprises: when the second equal division current is less than the actual charging capacity of the first charging pile and less than the actual charging capacity of the second charging pile, determining that the request current allocated to the first charging pile and the second charging pile is the second equal division current; performing equal division processing on the second equal division current to obtain a third equal division current, and determining that the request current allocated to each charging gun of the first charging pile and each charging gun of the second charging pile is the third equal division current.

7. The method of claim 5, wherein, The method further comprises: when the second equal division current is greater than the actual charging capacity of the first charging pile, determining the request current allocated to the first charging pile according to the actual charging capacity of the first charging pile; calculating a third residual current according to the total charging demand current and the actual charging capacity of the first charging pile; determining the request current allocated to the second charging pile according to the smaller one of the third residual current and the actual charging capacity of the second charging pile.

8. The method of claim 5, wherein, The method further comprises: when the second equal division current is greater than the actual charging capacity of the second charging pile, determining the request current allocated to the second charging pile according to the actual charging capacity of the second charging pile; calculating a fourth residual current according to the total charging demand current and the actual charging capacity of the second charging pile; The first charging pile is assigned to a request current according to a smaller value between the fourth residual current and an actual charging capacity of the first charging pile.

9. The method of claim 5, wherein, The request current assigned to each charging pile is determined according to the second equal distribution current, the total charging demand current, the actual charging capacity of the first charging pile, and the actual charging capacity of the second charging pile, including: In a case where the second equal distribution current is greater than the actual charging capacity of the first charging pile and greater than the actual charging capacity of the second charging pile, the request current assigned to the first charging pile is determined according to the actual charging capacity of the first charging pile, and the request current assigned to the second charging pile is determined according to the actual charging capacity of the second charging pile.

10. The method according to any one of claims 1 to 9, characterized in that, The method further includes: For each charging gun, in a case where a charging fault of the charging gun is detected, a corresponding charging limiting process is performed according to a fault type of the charging fault; the fault type includes a first type of fault and a second type of fault; the first type of fault includes a first level of charging socket overheating; and the second type of fault includes at least one of a gun signal loss, a second level of charging socket overheating, a charging socket thermistor fault, a charging relay sticking, and a charging relay open circuit.

11. The method of claim 10, wherein, The corresponding charging limiting process performed according to the fault type of the charging fault includes: In a case where the fault type is the first type of fault, charging power of a charging pile corresponding to the charging gun is limited according to a preset proportion; In a case where the fault type is the second type of fault, the charging pile corresponding to the charging gun is controlled to stop charging.

12. A charging device, characterized by The apparatus includes: A capacity acquisition module configured to acquire actual charging capacities of charging piles corresponding to at least two charging guns for charging a to-be-charged device; the to-be-charged device is connected to the at least two charging guns through a controller area network and / or a serial peripheral interface; A current allocation module configured to equally distribute a total charging demand current to each charging gun or preferentially distribute the total charging demand current to one charging gun according to the actual charging capacities of the charging piles, to obtain a request current assigned to each charging gun, and to send a charging request according to the request current assigned to each charging gun. The first charging pile is connected through the controller area network, the second charging pile is connected through the serial peripheral interface, and the current allocation module is specifically configured to, in a case where the total charging demand current is not greater than a preset current threshold of current equal distribution, determine that the request current assigned to the first charging pile is the total charging demand current, and that the second charging pile is not assigned to the request current; and in a case where the total charging demand current is less than the actual charging capacity of the first charging pile, perform equal distribution processing on the total charging demand current to obtain a first equal distribution current, and determine that the request current assigned to each charging gun of the first charging pile is the first equal distribution current.

13. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the method in any one of claims 1 to 11.

14. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the method in any one of claims 1 to 11.

15. A computer program product comprising a computer program, characterized in that, The computer program, which when executed by the processor, implements the method of any one of claims 1 to 11.

Citation Information

Patent Citations

  • Managing and optimizing energy supply from grid and renewable source with electric vehicle supply equipment

    US20170088001A1

  • Methods and systems for facilitating charging sessions for electric vehicles, with improved user interface operation modes

    US20210213846A1