A charging pile management and control system and method with double redundancy lines
The charging pile management system with dual redundant lines enables local backup of charging pile data and automatic selection of proxy charging piles, solving the problems of data loss and business interruption when the network is interrupted, and improving the reliability and security of the system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NINGBO DIGITAL TWIN (EASTERN UNIV OF TECH) RES INST
- Filing Date
- 2026-01-06
- Publication Date
- 2026-05-12
AI Technical Summary
Charging stations cannot operate offline in the event of equipment failure, hacker attacks, or natural disasters, resulting in data loss and business interruption. Existing technologies lack effective local data redundancy and automatic recovery mechanisms, posing business and security risks.
The charging pile management system adopts dual redundant lines, which realizes data synchronous backup and automatic selection of agent charging piles through two communication lines, ensuring data reliability and security in the event of network interruption.
It improves the security of charging pile data and the communication reliability of the charging system throughout the region, ensuring normal operation even in the event of network anomalies and avoiding data loss and business interruption.
Smart Images

Figure CN121461525B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of charging pile management and control technology, specifically to a charging pile management and control system and method with dual redundant lines. Background Technology
[0002] With the rapid popularization of new energy vehicles in China, the construction of charging piles has also entered a period of rapid growth. At the same time, attacks targeting charging piles both domestically and internationally are also on the rise. In the event of network outages due to equipment failure, hacker attacks, or natural disasters, charging piles need to have offline operation capabilities and be able to store complete business data locally. Otherwise, basic charging services cannot be provided, and critical transaction and user data may be permanently lost. Given that charging piles generally adopt an architecture of independent operation and reliance on remote servers for centralized management, it is necessary to establish local data redundancy and automatic recovery mechanisms. Otherwise, once the equipment is damaged or the storage medium fails, the data stored inside will be unrecoverable, causing business and security risks. Summary of the Invention
[0003] The purpose of this invention is to provide a charging pile management system and method with dual redundant lines. By using two redundant communication lines, the security of the charging pile's own data can be improved, and the communication reliability between all charging piles and the charging system server in the entire area can be improved.
[0004] In a first aspect of the present invention, a charging pile management and control system with dual redundant lines is provided, comprising: multiple charging piles and a charging system server; each charging pile is provided with a charging control module and an auxiliary control module; each charging control module includes a charging control unit, a data acquisition unit electrically connected to the charging control unit, and a communication transmission unit electrically connected to both the charging control unit and the data acquisition unit; each auxiliary control module includes an auxiliary control unit electrically connected to the charging control unit in the charging control module located in the same charging pile, a regional data storage area electrically connected to the auxiliary control unit, a local data storage area electrically connected to the auxiliary control unit, and an auxiliary communication unit electrically connected to the auxiliary control unit; all auxiliary communication units are connected via a dedicated regional encrypted communication line; all communication transmission units are electrically connected to the charging system server via a universal communication line.
[0005] In a second aspect of the embodiments of the present invention, a charging pile management and control method with dual redundant lines is provided, employing the charging pile management and control system provided in the first aspect, the method comprising:
[0006] Each charging pile independently transmits and receives data commands from the charging system server via a universal communication line; at the same time, each charging pile sends data from its own data storage area to other charging piles via a dedicated encrypted communication line for the area, and each charging pile stores the data received from other charging piles into the area data storage area.
[0007] The method also includes performing the following steps periodically:
[0008] The charging pile performs a first Ping operation on the charging system server. If the first Ping operation is successful, the Ping server duration is recorded as the result of the first Ping operation; if the first Ping operation fails, the timeout is recorded as the result of the first Ping operation.
[0009] The charging pile performs a second ping operation on other charging piles. If the second ping operation is successful, the ping duration is recorded as the result of the second ping operation; if the second ping operation fails, the timeout is recorded as the result of the second ping operation.
[0010] The charging pile determines the resource load status of the machine.
[0011] The charging pile forms a network status data packet based on the first Ping operation result, local resource load status, local ID, and area ID, and sends it to other charging piles through a dedicated encrypted communication line in the area.
[0012] After receiving network status data packets from other charging piles, the charging pile writes the charging pile data in the network status data packet into the network normal charging pile data table or the network abnormal charging pile data table based on the first Ping operation result in the network status data packet: if the first Ping operation result is a timeout, the charging pile data in the corresponding network status data packet is written into the network abnormal charging pile data table; if the first Ping operation result is the Ping server duration, the charging pile data in the corresponding network status data packet is written into the network normal charging pile data table.
[0013] The charging station checks its internal network abnormal charging station data table and network normal charging station data table. If charging station data exists in both the network abnormal charging station data table and the network normal charging station data table, then the agent charging station determination step is executed.
[0014] As a preferred embodiment of the present invention, the step of determining the proxy charging pile specifically includes:
[0015] The comprehensive score of each normal charging pile in the network is calculated based on the charging pile data in the network normal charging pile data table.
[0016] Based on the comprehensive score of normal charging piles in the network and the results of the second Ping operation, N local IDs are selected from the normal charging pile data table for voting and marking.
[0017] The charging pile will send the network normal charging pile data table that has completed the voting mark to other charging piles through the dedicated encrypted communication line of the area;
[0018] After receiving the network normal charging pile data table sent by other charging piles, the charging pile determines the agent charging pile based on all the network normal charging pile data tables.
[0019] As a preferred embodiment of the present invention, the comprehensive score of each normal charging pile in the network is calculated based on the charging pile data in the network normal charging pile data table, specifically including:
[0020] Determine the maximum and minimum ping server times for the normally functioning charging piles in the network data table. Then, determine the ping server time for the charging pile to be calculated. Finally, obtain the normalized network quality value for the charging pile to be calculated using the following formula:
[0021]
[0022] in, The network quality normalized value of the charging pile to be calculated is... The ping time of the charging pile to be calculated is the time taken to reach the server. This refers to the maximum ping time for charging piles that are currently in normal network operation, as shown in the table of normal network operation charging piles. This is the minimum Ping server duration for charging piles that are currently in normal network conditions, as shown in the table of normal network charging piles.
[0023] The CPU utilization rate of the charging pile to be calculated is determined based on the local resource load status, and the CPU utilization rate of the charging pile to be calculated is used as the normalized value of the service capacity of the charging pile to be calculated.
[0024] The comprehensive score of the charging pile to be calculated is obtained based on the network quality normalization value and service capability normalization value of the charging pile to be calculated, and using the following formula:
[0025]
[0026] in, This is the overall score for the charging station to be calculated. The network quality normalized value of the charging pile to be calculated is... This is the normalized value of the service capacity of the charging pile to be calculated. Preset weights for the network quality normalization value, Preset weights for the normalized values of service capabilities.
[0027] As a preferred embodiment of the present invention, the charging pile selects N local IDs from the network normal charging pile data table for voting based on the comprehensive score of network normal charging piles and the result of the second Ping operation, specifically including:
[0028] Based on the principle of selecting N local IDs from the network's normal charging pile data table in ascending order of comprehensive score and ensuring that the second Ping operation does not time out, N local IDs are selected for voting and marking.
[0029] As a preferred embodiment of the present invention, determining the proxy charging pile based on all the network normal charging pile data tables specifically includes:
[0030] The charging pile system counts the number of votes for each voting charging pile based on the network normal charging pile data table. The network normal charging pile with the most votes is determined as the proxy charging pile. If there is more than one network normal charging pile with the most votes, the network normal charging pile with the lowest comprehensive score among the network normal charging piles with the most votes is selected as the proxy charging pile.
[0031] As a preferred embodiment of the present invention, the charging pile checks its internal network abnormal charging pile data table and network normal charging pile data table. If there is no data for the charging pile in the network normal charging pile data table, the cumulative count value of the counter set in the auxiliary control unit is incremented by one; otherwise, the cumulative count value is cleared to zero. After the cumulative count value is incremented by one, it is determined whether the cumulative count value is equal to a preset cumulative threshold. When the cumulative count value is equal to the preset cumulative threshold, the emergency charging pile determination step is executed.
[0032] As a preferred embodiment of the present invention, the emergency charging pile determination step specifically includes:
[0033] The charging piles calculate a comprehensive score for each abnormal charging pile based on the charging pile data in the network abnormal charging pile data table.
[0034] Based on the comprehensive score of charging piles with network anomalies and the results of the second Ping operation, M local IDs are selected from the data table of charging piles with network anomalies for voting and marking.
[0035] The charging pile will send the network abnormal charging pile data table, which has been marked with a vote, to other charging piles through the dedicated encrypted communication line in the area.
[0036] After receiving the network abnormal charging pile data table sent by other charging piles, the charging pile determines the emergency charging pile based on all the network abnormal charging pile data tables.
[0037] As a preferred embodiment of the present invention, the comprehensive score of each abnormal charging pile calculated based on the charging pile data in the abnormal charging pile data table specifically includes:
[0038] The CPU utilization rate of the charging pile to be calculated is determined based on the local resource load status, and the CPU utilization rate of the charging pile to be calculated is used as the comprehensive score of the charging pile to be calculated.
[0039] As a preferred embodiment of the present invention, it further includes:
[0040] When a charging pile does not receive network status data packets from other charging piles within a preset time threshold, it is determined that the area-dedicated encrypted communication line is abnormal. When the area-dedicated encrypted communication line is abnormal, the charging pile sends the data in its local data storage area and the data in the area data storage area to the charging system server through the general communication line. The charging system server merges the received data and deletes duplicate data to obtain processed data, and sends the processed data to each charging pile through the general communication line. The charging pile deletes the data in the processed data that is the same as the data in its local data storage area, and stores the remaining data in the processed data in the area data storage area.
[0041] In summary, the present invention has the following beneficial effects:
[0042] 1. Two communication lines are provided: one is a general communication line connecting the charging pile to the charging system server, and the other is a dedicated encrypted communication line connecting all charging piles in the same area. The redundant two communication lines enable each charging pile in the same area to synchronously back up the data of other charging piles. Unless all charging piles in the same area are damaged, the historical data of all charging piles in the area can be obtained through any charging pile, thereby improving the security of the charging pile's own data.
[0043] 2. When communication failures occur between some charging piles and the charging system server, the optimal proxy charging pile can be identified in a timely manner. The proxy charging pile can then replace the charging pile with communication failure to continue sending and receiving data commands with the charging system server, thereby effectively improving the communication reliability between all charging piles and the charging system server in the entire area.
[0044] 3. When the charging system server malfunctions, the optimal emergency charging pile can be identified and used as a temporary server to perform data command transmission and reception operations, thereby improving the reliability of the charging pile management system.
[0045] Further or more detailed beneficial effects will be described in conjunction with specific embodiments in the detailed implementation. Attached Figure Description
[0046] Figure 1 A diagram illustrating the composition of a dual-redundant charging pile management system according to an embodiment of the present invention is shown. Detailed Implementation
[0047] Embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. While some embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the invention. It should be understood that the accompanying drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the invention.
[0048] In the description of embodiments of the present invention, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0049] Figure 1 A diagram illustrating the composition of a dual-redundant charging pile management system according to an embodiment of the present invention is shown. The system includes:
[0050] The system comprises multiple charging piles and a charging system server. Each charging pile is equipped with a charging control module and an auxiliary control module. Each charging control module includes a charging control unit, a data acquisition unit electrically connected to the charging control unit, and a communication transmission unit electrically connected to both the charging control unit and the data acquisition unit. Each auxiliary control module includes an auxiliary control unit electrically connected to the charging control unit in the same charging pile, a regional data storage area electrically connected to the auxiliary control unit, a local data storage area electrically connected to the auxiliary control unit, and an auxiliary communication unit electrically connected to the auxiliary control unit. All auxiliary communication units are connected via a dedicated encrypted communication line for the area. All communication transmission units are electrically connected to the charging system server via a universal communication line.
[0051] The charging pile management system in this embodiment is equipped with a dedicated encrypted communication line for a specific area. This dedicated encrypted communication line is a separate data line (such as fiber optic cable, twisted pair cable, or coaxial cable) or a wireless connection (such as Zigbee, Bluetooth, Wi-Fi, or 2-5G) independent of general communication lines. Through this dedicated encrypted communication line, all charging piles within the same area will have redundant connections. Each charging pile can broadcast various data generated by itself, such as ledgers and status parameters, to other charging piles in real time via this dedicated encrypted communication line. Simultaneously, each charging pile can receive and store various data sent in real time from other charging piles through this dedicated encrypted communication line.
[0052] The local data storage area is used to store important data such as ledgers and status parameters generated by this charging station. The regional data storage area is used to store important backup data such as ledgers and status parameters sent from other charging stations within the region. After decrypting the data downloaded to the auxiliary communication unit, the charging station re-encrypts it using the storage key before storing it in the regional data storage area; the data in the local data storage area is encrypted using the communication key, loaded into the auxiliary communication unit, and then sent to the auxiliary communication units of other charging stations through the dedicated encrypted communication line for the region.
[0053] When the universal communication line is working properly, each charging pile can communicate directly with the charging system server (to send and receive commands and data) using the universal communication line. At the same time, all charging piles in the area will synchronize the data generated in real time and the commands and execution status issued by the server to all other charging piles in the area through the auxiliary control unit using the area-specific encrypted communication line for real-time backup. In case of malfunction or damage to the charging pile itself, all the data stored in the local data storage area can be found in the area data storage area of other charging piles in the area.
[0054] The charging pile management system in this embodiment includes two communication lines. One is a general communication line that connects the charging pile to the charging system server, and the other is a dedicated encrypted communication line that connects all charging piles in the same area. By using the two redundant communication lines, each charging pile in the same area can synchronously back up the data of other charging piles. Unless all charging piles in the same area are completely destroyed, the historical data of all charging piles in the area can be obtained through any charging pile, thereby improving the security performance of the charging pile's own data.
[0055] This invention also provides a charging pile management and control method with dual redundant lines, using the charging pile management and control system in the first embodiment. The method includes:
[0056] Each charging pile independently transmits and receives data commands with the charging system server via a universal communication line; at the same time, each charging pile sends data from its own data storage area to other charging piles via a dedicated encrypted communication line for the area, and each charging pile stores the data received from other charging piles into its regional data storage area.
[0057] In the charging pile management method of this embodiment, when the charging pile communicates with the charging system server, the charging pile will also synchronize the data generated in real time to all other charging piles in the area through a dedicated encrypted communication line for real-time backup. In case of local malfunction or damage, all data stored in the local data storage area can be found in the regional data storage area of other charging piles in the area, thereby improving the security performance of the charging pile's own data.
[0058] The charging pile management method in this embodiment also includes the following steps performed periodically (repeatedly and regularly at preset time intervals (e.g., 1 minute):
[0059] Step 11. The charging pile performs a first Ping operation on the charging system server. If the first Ping operation is successful, the Ping server duration is recorded as the result of the first Ping operation; if the first Ping operation fails, the timeout is recorded as the result of the first Ping operation.
[0060] Taking charging pile #1 as an example, the first Ping operation performed by charging pile #1 on the charging system server means that charging pile #1 sends an ICMP Echo Request data packet to the charging system server via the network tool ping (Packet Internet Groper). (The current system time T1 is recorded when sending the data packet.) It then waits for the charging system server to return an ICMP Echo Reply data packet. (The current system time T2 is recorded when the data packet is received.) Charging pile #1 has a pre-set Ping server duration threshold. If server #1 receives the echo reply data packet within the Ping server duration threshold (i.e., the first Ping operation is successful), the Ping server duration can be directly calculated by subtracting time T1 from time T2. This Ping server duration is then used as the result of the first Ping operation. If server #1 does not receive the echo reply data packet within the Ping server duration threshold (i.e., the first Ping operation fails), then "timeout" is directly used as the result of the first Ping operation.
[0061] The same procedure applies to other charging stations.
[0062] Step 12. The charging pile performs a second Ping operation on other charging piles. If the second Ping operation is successful, the Ping duration is recorded as the result of the second Ping operation; if the second Ping operation fails, the timeout is recorded as the result of the second Ping operation.
[0063] Taking charging pile #1 as an example, when charging pile #1 performs the first Ping operation on the charging system server, it will also simultaneously perform a second Ping operation on the other charging piles. This embodiment assumes a total of 10 charging piles: charging pile #1, charging pile #2, charging pile #3, charging pile #4, charging pile #5, charging pile #6, charging pile #7, charging pile #8, charging pile #9, and charging pile #10. Then, charging pile #1 will also perform a second Ping operation on charging piles #2, #3, #4, #5, #6, #7, #8, #9, and #10 respectively. The specific working principle of the second Ping operation is the same as that of the first Ping operation. Charging pile #1 will ultimately receive 9 second Ping operation results. The second Ping operation result may be "timeout" or the ping duration of the charging piles.
[0064] The same procedure applies to other charging stations.
[0065] Step 13. The charging pile determines the resource load status of the machine.
[0066] Taking charging pile No. 1 as an example, after completing steps 11 and 12, charging pile No. 1 will also automatically determine the local resource load status, which may include indicators such as CPU utilization, memory usage, and storage space.
[0067] The same procedure applies to other charging stations.
[0068] Step 14. Based on the result of the first Ping operation, the local resource load status, the local ID, and the area ID, the charging pile forms a network status data packet and sends it to other charging piles through the area-dedicated encrypted communication line.
[0069] Taking charging pile No. 1 as an example, charging pile No. 1 will form a network status data packet based on the result of the first Ping operation, the local resource load status, the local ID, and the area ID, and send the network status data packet No. 1 to other charging piles (charging pile No. 2, charging pile No. 3...charging pile No. 10) through the area-dedicated encrypted communication line.
[0070] The same procedure applies to other charging stations.
[0071] Step 15. After receiving network status data packets from other charging piles, the charging pile writes the charging pile data in the network status data packet into the network normal charging pile data table or the network abnormal charging pile data table based on the first Ping operation result in the network status data packet: if the first Ping operation result is timeout, the charging pile data in the corresponding network status data packet is written into the network abnormal charging pile data table; if the first Ping operation result is Ping server duration, the charging pile data in the corresponding network status data packet is written into the network normal charging pile data table.
[0072] Taking charging pile #1 as an example, when sending its first network status data packet, charging pile #1 will also receive network status data packets (network status data packets #2, #3, ... #10) from other charging piles (charging pile #2, #3, ... #10). Ultimately, charging pile #1 will have 10 network status data packets. Charging pile #1 will process these 10 network status data packets sequentially: if the first Ping operation result in a network data packet is a timeout, then the charging pile data (including the first Ping operation result, local resource load status, local ID, and region ID) in the corresponding network status data packet will be written to the charging pile data table for network anomalies in charging pile #1; if the first Ping operation result in a network data packet is a Ping server duration, then the charging pile data (including the first Ping operation result, local resource load status, local ID, and region ID) in the corresponding network status data packet will be written to the charging pile data table for network normal operation in charging pile #1.
[0073] The same procedure applies to other charging stations.
[0074] Step 16. Check the charging pile's internal network abnormal charging pile data table and network normal charging pile data table. If charging pile data exists in both the network abnormal charging pile data table and the network normal charging pile data table, then proceed with the agent charging pile determination step.
[0075] Taking charging pile #1 as an example, after charging pile #1 completes step 15, it can view its internal data tables for charging piles with network anomalies and charging piles with normal operation. If there is no charging pile data in the data table for charging piles with network anomalies, it means that all charging piles can communicate normally with the charging system server through the universal communication line. In this case, charging pile #1 only needs to wait until the next time point to re-execute steps 11 to 16.
[0076] If charging pile data exists in both the abnormal charging pile data table and the normal charging pile data table of Network 1, it indicates that some charging piles cannot communicate normally with the charging system server through the general communication line (when the communication transmission unit of a charging pile malfunctions or the line between the communication transmission unit and the general communication line malfunctions, the corresponding charging pile will be unable to communicate normally with the charging system server through the general communication line). For example, when charging pile 10 has a communication malfunction, the abnormal charging pile data table of Network 1 will contain charging pile data for charging pile 10, while the normal charging pile data table of Network 1 will contain charging pile data for charging piles 2-9. In this case, charging pile 1 needs to determine one proxy charging pile from charging piles 1-9, so that the charging pile that cannot communicate normally with the charging system server through the general communication line (i.e., charging pile 10) can communicate with the charging system server through the proxy charging pile.
[0077] The same procedure applies to other charging stations.
[0078] In this embodiment, the step of determining the proxy charging station specifically includes:
[0079] Step 21. The charging piles calculate the comprehensive score of each normal charging pile in the network based on the charging pile data in the network normal charging pile data table.
[0080] Taking charging pile #1 as an example, charging pile #1 can calculate the comprehensive score of each normally functioning charging pile in the network based on the charging pile data in its network normally functioning charging pile data table. In this embodiment, the calculation of the comprehensive score of each normally functioning charging pile based on the charging pile data in the network normally functioning charging pile data table specifically includes:
[0081] Step 211. Determine the maximum and minimum ping server times for the normally functioning charging piles in the network data table. Determine the ping server time for the charging pile to be calculated. Obtain the normalized network quality value for the charging pile to be calculated using the following formula:
[0082]
[0083] in, The network quality normalized value of the charging pile to be calculated is... The ping time of the charging pile to be calculated is the time taken to reach the server. This refers to the maximum ping time for charging piles that are currently in normal network operation, as shown in the table of normal network operation charging piles. This refers to the minimum ping server duration for charging piles that are currently in normal network operation, as shown in the table of normal network charging piles. The ping server duration for the charging pile to be calculated, the maximum ping server duration for normal network charging piles, and the minimum ping server duration for normal network charging piles can be obtained directly from the charging pile data in this table.
[0084] Step 212. Determine the CPU utilization of the charging pile to be calculated based on the local resource load status, and use the CPU utilization of the charging pile to be calculated as the normalized value of the service capacity of the charging pile. The CPU utilization of the charging pile to be calculated can be obtained directly from the charging pile data in the network normal charging pile data table.
[0085] Step 213. Based on the network quality normalization value and service capability normalization value of the charging pile to be calculated, obtain the comprehensive score of the charging pile to be calculated using the following formula:
[0086]
[0087] in, This is the overall score for the charging station to be calculated. The network quality normalized value of the charging pile to be calculated is... This is the normalized value of the service capacity of the charging pile to be calculated. Preset weights for the network quality normalization value, The preset weights for the normalized values of service capabilities. The preset weights for the normalized values of network quality and service capabilities are both preset and are empirical values. The sum of the preset weights for the normalized values of network quality and service capabilities is 1 (for example, the preset weights for the normalized values of network quality and service capabilities can both be 0.5).
[0088] When there are charging pile data for 9 charging piles in the normal charging pile data table of charging pile No. 1 in network No. 1, you only need to execute steps 211 to 213 above 9 times to get the comprehensive score of the 9 charging piles. The lower the comprehensive score, the better.
[0089] The same procedure applies to other charging stations.
[0090] Step 22. Based on the comprehensive score of normal charging piles in the network and the results of the second Ping operation, select N local IDs from the normal charging pile data table for voting and marking.
[0091] In this embodiment, the charging pile selects N local IDs from the network's normal charging pile data table for voting based on the comprehensive score of network normal charging piles and the result of the second Ping operation. Specifically, this includes:
[0092] Step 221. Select N local IDs from the network's normal charging pile data table for voting, based on the principle of ranking them from smallest to largest comprehensive score and ensuring that the second Ping operation result does not time out. In this embodiment, the value of N can be 5.
[0093] Taking charging pile No. 1 as an example, after charging pile No. 1 obtains the comprehensive score of 9 charging piles (charging pile No. 1, charging pile No. 2...charging pile No. 9), it will also combine the results of 9 second Ping operations (the second Ping operation result with charging pile No. 2, the second Ping operation result with charging pile No. 3...the second Ping operation result with charging pile No. 10) to select 5 local IDs from the network normal charging pile data table for voting and marking.
[0094] The ping duration threshold for charging pile #1 to perform a second ping operation with other charging piles is pre-set, and this threshold is less than the ping server duration threshold. When the communication between charging pile #1 and another charging pile is good, the result of the second ping operation is the ping duration; when the communication between charging pile #1 and another charging pile is average, the result of the second ping operation is "timeout". Assuming the second ping operation between charging pile #1 and charging pile #2 results in a "timeout", charging pile #2 is ignored (even if its overall score is low, because the communication between charging pile #2 and charging pile #1 is not good, charging pile #1 will not choose charging pile #2 as a proxy charging pile). Instead, the five charging piles with the lowest overall scores from the remaining eight charging piles (charging pile #1, charging pile #3...charging pile #9) are selected, and their local IDs are used for voting. For example, in this embodiment, charging pile 1 votes and marks the local IDs of charging piles 1, 3, 4, 5, and 7 in the normal charging pile data table of network 1.
[0095] The same procedure applies to the other charging stations. That is, while charging station 1 executes steps 21 and 22, the other nine charging stations will also simultaneously execute steps 21 and 22. Ultimately, each charging station will vote on the local IDs of five charging stations in its network's normal charging station data table. Although each charging station receives the same overall score from the nine charging stations (charging station 1, 2...9), the results of the second Ping operation between each charging station and the other charging stations may differ. Therefore, the local IDs of the five charging stations ultimately selected by each charging station may be different.
[0096] Step 23. The charging pile sends the network normal charging pile data table that has completed the voting mark to other charging piles through the area-specific encrypted communication line.
[0097] Taking charging pile No. 1 as an example, after completing step 22, charging pile No. 1 will send the data table of normal charging piles in the No. 1 network to other charging piles No. 2-9 through the area-dedicated encrypted communication line.
[0098] The other charging stations operate similarly. That is, when charging station 1 executes step 23, the other 9 charging stations will also execute step 23 simultaneously. Each charging station will receive 9 tables of network-normal charging station data, and each charging station will ultimately have 10 tables of network-normal charging station data.
[0099] Step 24. After receiving the network normal charging pile data table sent by other charging piles, the charging pile determines the agent charging pile based on all the network normal charging pile data tables.
[0100] Taking charging pile #1 as an example, when charging pile #1 sends its network-normal charging pile data table, it also receives network-normal charging pile data tables (data tables for charging piles #2, #3, ..., #10) from other charging piles (charging pile #2, #3, ..., #10). Ultimately, charging pile #1 has 10 network-normal charging pile data tables. Then, charging pile #1 will determine the appropriate charging pile based on these 10 data tables.
[0101] In this embodiment, determining the proxy charging pile based on the complete network normal charging pile data table specifically includes:
[0102] Step 241. Based on the network normal charging pile data table, the number of votes for each voting charging pile is counted. The network normal charging pile with the most votes is determined as the proxy charging pile. If there is more than one network normal charging pile with the most votes, the network normal charging pile with the lowest comprehensive score is selected from the network normal charging piles with the most votes as the proxy charging pile.
[0103] Taking charging pile #1 as an example, charging pile #1 will count the number of charging piles with voting tags in its database of all network-normal charging piles. For example, charging pile #1 has 1 vote, charging pile #2 has 8 votes, charging pile #4 has 10 votes, charging pile #5 has 10 votes, charging pile #6 has 10 votes, charging pile #8 has 10 votes, and charging pile #9 has 1 vote. Since there are four network-normal charging piles with the most votes (charging pile #4, charging pile #5, charging pile #6, and charging pile #8), it is necessary to find the network-normal charging pile with the lowest overall score from these four charging piles as the proxy charging pile. Assuming that charging pile #6 has the lowest overall score, then charging pile #6 will be determined as the proxy charging pile.
[0104] The same procedure applies to other charging stations. Since the data tables for the 10 normally functioning charging stations in each charging station are identical, the agent charging station ultimately selected for each charging station is the same (all are charging station number 6).
[0105] Once the designated proxy charging station is selected, it will replace the charging stations experiencing communication problems to conduct data communication with the charging system server. Furthermore, only one proxy charging station is selected per execution cycle. Regardless of how many charging stations experience communication problems during that cycle, the selected proxy charging station will handle all data communication. For example, if the selected proxy charging station is charging station number 6, and charging stations 1, 5, and 7 all experience communication problems with the charging system server, then charging station number 6 will replace charging stations 1, 5, and 7 in conducting data communication with the charging system server.
[0106] The charging pile management method of this embodiment can promptly identify the optimal proxy charging pile when communication abnormalities occur between some charging piles and the charging system server. The proxy charging pile can then replace the charging pile with communication abnormalities to continue data command transmission and reception operations with the charging system server, thereby effectively improving the communication reliability between all charging piles and the charging system server in the entire area.
[0107] Furthermore, the charging pile management method in this embodiment also includes:
[0108] The charging station checks its internal network abnormal charging station data table and network normal charging station data table. If there is no data for a charging station in the network normal charging station data table, the accumulated count value of the counter set in the auxiliary control unit is incremented by one; otherwise, the accumulated count value is cleared to zero. After incrementing the accumulated count value, it is determined whether the accumulated count value is equal to a preset accumulated threshold. When the accumulated count value is equal to the preset accumulated threshold, the emergency charging station determination step is executed. In this embodiment, the preset accumulated threshold can be 3.
[0109] Taking charging pile #1 as an example, if charging pile #1 finds that its data is missing from the network's normal charging pile data table (indicating that all charging piles may be unable to communicate normally with the charging system server via the universal communication line), it increments the cumulative count by one. Then, it checks if the cumulative count equals 3. If it does, it means that all charging piles are unable to communicate normally with the charging system server via the universal communication line. For example, when the charging system server malfunctions, a situation may occur where no charging pile data is found in the network's normal charging pile data table for each charging pile.
[0110] When the accumulated count value equals 3, the emergency charging station determination step needs to be performed. In this embodiment, the emergency charging station determination step specifically includes:
[0111] Step 31. The charging pile calculates a comprehensive score for each network abnormal charging pile based on the charging pile data in the network abnormal charging pile data table.
[0112] Taking charging pile #1 as an example, charging pile #1 can calculate the comprehensive score of each abnormal charging pile in its network data table. In this embodiment, the calculation of the comprehensive score of each abnormal charging pile based on the charging pile data in the network data table specifically includes:
[0113] Step 311. Determine the CPU utilization of the charging pile to be calculated based on the local resource load status, and use the CPU utilization of the charging pile to be calculated as the comprehensive score of the charging pile with network abnormality. The CPU utilization of the charging pile to be calculated can be obtained directly from the charging pile data in the network abnormal charging pile data table.
[0114] When there are charging pile data for 10 charging piles in the No. 1 network abnormal charging pile data table, you only need to execute steps 311 to 312 above 10 times to get the comprehensive score of the 10 network abnormal charging piles. The lower the comprehensive score, the better.
[0115] The same procedure applies to other charging stations.
[0116] Step 32. Based on the comprehensive score of charging piles with network anomalies and the results of the second Ping operation, select M local IDs from the charging pile data table with network anomalies for voting and marking.
[0117] In this embodiment, the charging pile selects M local IDs from the network abnormal charging pile data table for voting and marking based on the comprehensive score of network abnormal charging piles and the result of the second Ping operation. Specifically, this includes:
[0118] Step 321. Select M local IDs from the network abnormal charging pile data table for voting and marking, based on the principle of ranking them from smallest to largest comprehensive score and ensuring that the second Ping operation result does not time out. In this embodiment, the value of M can be 4.
[0119] Taking charging pile No. 1 as an example, after charging pile No. 1 obtains the comprehensive score of 10 charging piles (charging pile No. 1, charging pile No. 2, ... charging pile No. 10), it will also combine the results of 9 second Ping operations (the second Ping operation results with charging pile No. 2, the second Ping operation results with charging pile No. 3, ... the second Ping operation results with charging pile No. 10) to select 4 local IDs from the network abnormal charging pile data table for voting and marking.
[0120] Assuming the second ping operation between charging pile 1 and charging pile 2 results in a "timeout," charging pile 2 is ignored (even if its overall score is low, it won't be selected as an emergency charging pile because of the poor communication between it and charging pile 1). Instead, four charging piles with the lowest overall scores are selected from the remaining nine (charging piles 1, 3...10), and their local IDs are used for voting. For example, in this embodiment, charging pile 1 votes for the local IDs of charging piles 1, 3, 4, and 5 in the network abnormal charging pile data table.
[0121] The other charging piles are processed similarly. That is, while charging pile 1 executes steps 31 and 32, the other nine charging piles will also simultaneously execute steps 31 and 32. Ultimately, each charging pile will vote on the local IDs of the four charging piles in its network anomaly charging pile data table. Although the overall score obtained by each charging pile from the ten charging piles (charging pile 1, charging pile 2...charging pile 10) is the same, the results of the second Ping operation between each charging pile and the other charging piles may differ. Therefore, the local IDs of the four charging piles ultimately selected by each charging pile may be different.
[0122] Step 33. The charging pile will send the network abnormal charging pile data table that has completed the voting mark to other charging piles through the area-specific encrypted communication line.
[0123] Taking charging pile No. 1 as an example, after completing step 32, charging pile No. 1 will send the data table of charging pile No. 1 with network abnormality to other charging piles No. 2-10 through the area-dedicated encrypted communication line.
[0124] The other charging stations operate similarly. That is, when charging station 1 executes step 33, the other 9 charging stations will also execute step 33 simultaneously. Each charging station will receive 9 data tables of charging stations with network abnormalities, and each charging station will eventually have 10 data tables of charging stations with network abnormalities.
[0125] Step 34. After receiving the network abnormal charging pile data table sent by other charging piles, the charging pile determines the emergency charging pile based on all the network abnormal charging pile data tables.
[0126] Taking charging pile #1 as an example, when charging pile #1 sends its network-normal charging pile data table, it also receives network-normal charging pile data tables (data tables for charging piles #2, #3, ..., #10) from other charging piles (charging pile #2, #3, ..., #10). Ultimately, charging pile #1 has 10 network-normal charging pile data tables. Then, charging pile #1 will determine the appropriate charging pile based on these 10 data tables.
[0127] In this embodiment, determining the emergency charging pile based on all the network abnormal charging pile data tables specifically includes:
[0128] Step 341. Based on the network abnormal charging pile data table, the number of votes for each voting charging pile is counted. The network abnormal charging pile with the most votes is determined as the emergency charging pile. If there is more than one network abnormal charging pile with the most votes, the network abnormal charging pile with the lowest comprehensive score among the network abnormal charging piles with the most votes is selected as the emergency charging pile.
[0129] Taking charging pile #1 as an example, charging pile #1 will count the number of charging piles with voting tags in its database of all network abnormal charging piles. For example, charging pile #1 has 6 votes, charging pile #2 has 4 votes, charging pile #4 has 10 votes, charging pile #5 has 10 votes, and charging pile #6 has 10 votes. Since there are 3 network normal charging piles with the most votes (charging pile #4, charging pile #5, and charging pile #6), it is necessary to find the network abnormal charging pile with the lowest overall score among these 3 charging piles as the emergency charging pile. Assuming that charging pile #5 has the lowest overall score, then charging pile #5 will be determined as the emergency charging pile.
[0130] The same procedure applies to other charging stations. Since the data tables for the 10 abnormal charging stations in each charging station are identical, the emergency charging station ultimately selected for each charging station is the same (charging station number 5).
[0131] Once the emergency charging stations are selected, they will serve as temporary servers to exchange data and commands with other charging stations. Additionally, in this embodiment, each charging station will be equipped with a small host (about the size of a mobile phone) to enable it to function as a regular server (simply able to send simple commands to other charging stations and receive and store data returned by them).
[0132] In this embodiment of the charging pile management method, when the charging system server malfunctions, the optimal emergency charging pile can be determined, and the emergency charging pile can replace the charging system server as a temporary server to perform data command transmission and reception operations, thereby improving the reliability of the charging pile management system.
[0133] Furthermore, the charging pile management method in this embodiment also includes:
[0134] When a charging pile does not receive network status data packets from other charging piles within a preset time threshold, it is determined that the area-dedicated encrypted communication line is abnormal. When the area-dedicated encrypted communication line is abnormal, the charging pile sends the data in its local data storage area and the data in the area data storage area to the charging system server through the general communication line. The charging system server merges the received data and deletes duplicate data to obtain processed data, and sends the processed data to each charging pile through the general communication line. The charging pile deletes the data in the processed data that is the same as the data in its local data storage area, and stores the remaining data in the processed data in the area data storage area.
[0135] When the dedicated encrypted communication line in a given area malfunctions, all charging piles within the area become unable to access the status of other charging piles. In this situation, each charging pile sends its own data and the data from the area's data storage area before the encrypted communication line malfunction to the charging system server via a general communication line. After receiving the charging pile's own data and the redundant data from other charging piles within the area, the charging system server performs deduplication and addition on the data from a global perspective, creating the latest dataset for all charging piles in the area. This dataset is then sent back to all charging piles via the general communication line for redundant backup. This method achieves absolutely reliable data storage through multi-location, multi-machine redundant backup. Unless all charging piles are simultaneously damaged, as long as one charging pile is functioning normally, all data within the area can be accessed, thus effectively improving the security of data from all charging piles within the same area.
[0136] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A charging pile management and control method with dual redundant lines, employing a charging pile management and control system, characterized in that, The charging pile management and control system includes: The system comprises multiple charging piles and a charging system server. Each charging pile is equipped with a charging control module and an auxiliary control module. Each charging control module includes a charging control unit, a data acquisition unit electrically connected to the charging control unit, and a communication transmission unit electrically connected to both the charging control unit and the data acquisition unit. Each auxiliary control module includes an auxiliary control unit electrically connected to the charging control unit in the same charging pile, a regional data storage area electrically connected to the auxiliary control unit, a local data storage area electrically connected to the auxiliary control unit, and an auxiliary communication unit electrically connected to the auxiliary control unit. All auxiliary communication units are connected via a dedicated regional encrypted communication line. All communication transmission units are electrically connected to the charging system server via a universal communication line. The method includes: Each charging pile independently transmits and receives data commands from the charging system server via a universal communication line; at the same time, each charging pile sends data from its own data storage area to other charging piles via a dedicated encrypted communication line for the area, and each charging pile stores the data received from other charging piles into the area data storage area. The method also includes performing the following steps periodically: The charging pile performs a first Ping operation on the charging system server. If the first Ping operation is successful, the Ping server duration is recorded as the result of the first Ping operation; if the first Ping operation fails, the timeout is recorded as the result of the first Ping operation. The charging pile performs a second ping operation on other charging piles. If the second ping operation is successful, the ping duration is recorded as the result of the second ping operation; if the second ping operation fails, the timeout is recorded as the result of the second ping operation. The charging pile determines the resource load status of the machine. The charging pile forms a network status data packet based on the result of the first Ping operation, the local resource load status, the local ID, and the area ID, and sends it to other charging piles through a dedicated encrypted communication line in the area; among them, the local resource load status includes CPU utilization. After receiving network status data packets from other charging piles, the charging pile writes the charging pile data in the network status data packet into the network normal charging pile data table or the network abnormal charging pile data table based on the first Ping operation result in the network status data packet: if the first Ping operation result is a timeout, the charging pile data in the corresponding network status data packet is written into the network abnormal charging pile data table; if the first Ping operation result is the Ping server duration, the charging pile data in the corresponding network status data packet is written into the network normal charging pile data table. The charging pile checks its internal network abnormal charging pile data table and network normal charging pile data table. If charging pile data exists in both the network abnormal charging pile data table and the network normal charging pile data table, the proxy charging pile determination step is executed. In this step, the proxy charging pile replaces the charging pile with communication failure and continues to send and receive data commands with the charging system server.
2. The method according to claim 1, characterized in that, The steps for determining the designated charging station specifically include: The comprehensive score of each normal charging pile in the network is calculated based on the charging pile data in the network normal charging pile data table. Based on the comprehensive score of normal charging piles in the network and the results of the second Ping operation, N local IDs are selected from the normal charging pile data table for voting and marking. The charging pile will send the network normal charging pile data table that has completed the voting mark to other charging piles through the dedicated encrypted communication line of the area; After receiving the network normal charging pile data table sent by other charging piles, the charging pile determines the agent charging pile based on all the network normal charging pile data tables.
3. The method according to claim 2, characterized in that, The comprehensive score for each charging pile in the network is calculated based on the charging pile data in the network's normal charging pile data table. Specifically, it includes: Determine the maximum and minimum ping server times for the normally functioning charging piles in the network data table. Then, determine the ping server time for the charging pile to be calculated. Finally, obtain the normalized network quality value for the charging pile to be calculated using the following formula: in, Here is the normalized value of the network quality of the charging pile to be calculated. The ping time of the charging pile to be calculated is the time taken to reach the server. This refers to the maximum ping time for charging stations that are currently in normal network operation, as shown in the table of normal network charging station data. This is the minimum Ping server duration for charging piles that are currently in normal network conditions, as shown in the table of normal network charging piles. The CPU utilization rate of the charging pile to be calculated is determined based on the local resource load status, and the CPU utilization rate of the charging pile to be calculated is used as the normalized value of the service capacity of the charging pile to be calculated. The comprehensive score of the charging pile to be calculated is obtained based on the network quality normalization value and service capability normalization value of the charging pile to be calculated, and using the following formula: in, This is the overall score for the charging pile to be calculated. The network quality normalized value of the charging pile to be calculated is... This is the normalized value of the service capacity of the charging pile to be calculated. Preset weights for the network quality normalization value, Preset weights for the normalized values of service capabilities.
4. The method according to claim 2, characterized in that, The charging pile is selected from the network's normal charging pile data table based on a comprehensive score and the results of the second Ping operation, and N local IDs are voted on and marked. Specifically, this includes: Based on the principle of selecting N local IDs from the network's normal charging pile data table in ascending order of comprehensive score and ensuring that the second Ping operation does not time out, these IDs will be used for voting and marking.
5. The method according to claim 2, characterized in that, Based on the complete list of normal charging piles in the network, the specific types of proxy charging piles are determined as follows: The charging pile system counts the number of votes for each voting charging pile based on the network normal charging pile data table. The network normal charging pile with the most votes is determined as the proxy charging pile. If there is more than one network normal charging pile with the most votes, the network normal charging pile with the lowest comprehensive score among the network normal charging piles with the most votes is selected as the proxy charging pile.
6. The method according to claim 1, characterized in that, The charging pile checks its internal network abnormal charging pile data table and network normal charging pile data table. If there is no data for the charging pile in the network normal charging pile data table, the count accumulation value of the counter set in the auxiliary control unit is incremented by one; otherwise, the count accumulation value is cleared to zero. After incrementing the cumulative count value by one, it is determined whether the cumulative count value is equal to a preset cumulative threshold. When the cumulative count value is equal to the preset cumulative threshold, the emergency charging pile determination step is executed. In this step, the emergency charging pile replaces the charging system server as a temporary server to perform data command transmission and reception operations.
7. The method according to claim 6, characterized in that, The steps for determining the emergency charging station specifically include: The charging piles calculate a comprehensive score for each abnormal charging pile based on the charging pile data in the network abnormal charging pile data table. Based on the comprehensive score of charging piles with network anomalies and the results of the second Ping operation, M local IDs are selected from the data table of charging piles with network anomalies for voting and marking. The charging pile will send the network abnormal charging pile data table, which has been marked with a vote, to other charging piles through the dedicated encrypted communication line in the area. After receiving the network abnormal charging pile data table sent by other charging piles, the charging pile determines the emergency charging pile based on all the network abnormal charging pile data tables.
8. The method according to claim 7, characterized in that, The comprehensive score for each charging pile with network anomalies is calculated based on the charging pile data in the network anomaly charging pile data table, specifically including: The CPU utilization rate of the charging pile to be calculated is determined based on the local resource load status, and the CPU utilization rate of the charging pile to be calculated is used as the comprehensive score of the charging pile to be calculated.
9. The method according to claim 1, characterized in that, Also includes: If a charging pile does not receive network status data packets from other charging piles within a preset time threshold, the area-specific encrypted communication line is deemed abnormal. When the dedicated encrypted communication line in the area is abnormal, the charging pile will send the data in its own data storage area and the data in the area data storage area to the charging system server through the general communication line. The charging system server merges the received data and removes duplicate data to obtain processed data, and sends the processed data to each charging pile through a general communication line; the charging pile deletes the data in the processed data that is the same as the data in its local data storage area, and stores the remaining data in the processed data to the regional data storage area.