A method and system for shutting off the charging gun in an AC charging station

By adjusting the current through interaction between the AC charging pile and the new energy vehicle, disconnecting the relay and recording encrypted logs, the problem of sparks and arcs during the charging gun shutdown process is solved, improving safety and data storage security.

CN119840452BActive Publication Date: 2026-07-31FUZHOU YUANJIN CHUANNENG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FUZHOU YUANJIN CHUANNENG TECH CO LTD
Filing Date
2024-12-11
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Traditional AC charging stations are prone to sparks or arcs during the charging gun shutdown process, which affects safety and lifespan.

Method used

By interacting with the AC charging station and the new energy vehicle, the load current is adjusted to the target value, the relay is disconnected and the shutdown log is recorded. Combined with multiple encryption algorithms and security measures, the charging gun is safely shut down.

Benefits of technology

It effectively avoids sparks or arcs at the moment of relay shutdown, improves the safety and reliability of charging gun shutdown, and ensures data security through encrypted log storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119840452B_ABST
    Figure CN119840452B_ABST
Patent Text Reader

Abstract

This invention provides a method and system for shutting off the charging gun in an AC charging pile. The method includes: Step S1, the AC charging pile obtains a user-inputted charging gun shutdown request and verifies the request; Step S2, based on the shutdown request, the AC charging pile sends a current adjustment command to the new energy vehicle via a CP signal; Step S3, based on the current adjustment command, the new energy vehicle adjusts the current of the load connected to the charging gun and feeds back the adjustment result to the AC charging pile; Step S4, based on the adjustment result, the AC charging pile disconnects the relay connected to the charging gun; Step S5, the AC charging pile verifies the shutdown status of the charging gun; Step S6, the AC charging pile records the shutdown log of the charging gun in real time, encrypts the log into an encrypted log, and stores and backs up the encrypted log. The advantage of this invention is that it greatly improves the security of shutting off the charging gun in an AC charging pile.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of AC charging pile technology, and in particular to a method and system for shutting off the charging gun in an AC charging pile. Background Technology

[0002] With the increasing popularity of new energy vehicles, the importance of charging infrastructure is becoming increasingly prominent. As an important supporting facility for new energy vehicles, AC charging piles have become the preferred choice in many scenarios due to their convenient installation and relatively lower cost compared to DC charging piles. The charging gun, as a key device connecting the charging pile and the new energy vehicle, directly affects the safety of the charging process and the user experience due to its operational stability and shutdown safety.

[0003] Traditionally, the shutdown of the charging gun in an AC charging station mainly relies on the disconnection of mechanical or electrical contacts, combined with simple signal monitoring. However, sparks or arcs may occur during the shutdown process, which not only inconveniences users but also poses safety hazards. Furthermore, sparks or arcs can affect the lifespan of related components in the AC charging station.

[0004] Therefore, how to provide a method and system for shutting off the charging gun in AC charging piles to improve the safety of shutting off the charging gun in AC charging piles has become an urgent technical problem to be solved. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a method and system for shutting off the charging gun of an AC charging pile, thereby improving the safety of shutting off the charging gun of the AC charging pile.

[0006] In a first aspect, the present invention provides a method for shutting off a charging gun in an AC charging station, comprising the following steps:

[0007] Step S1: The AC charging pile obtains the user's input request to turn off the charging gun and verifies the request.

[0008] Step S2: Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command to the new energy vehicle via the CP signal;

[0009] Step S3: Based on the received current adjustment command, the new energy vehicle adjusts the current of the load connected to the charging gun and feeds back the current adjustment result to the AC charging pile.

[0010] Step S4: Based on the received current adjustment result, the AC charging pile disconnects the relay connected to the charging gun to perform a shutdown operation on the charging gun.

[0011] Step S5: The AC charging station verifies the off status of the charging gun.

[0012] Step S6: The AC charging pile records the shutdown log of the charging gun in real time, encrypts the shutdown log into an encrypted log, and stores and backs up the encrypted log.

[0013] Furthermore, step S1 specifically includes:

[0014] The AC charging station receives a user-input request to turn off the charging gun, which includes encrypted user data, a first timestamp, and a hash value. The encrypted user data is obtained by encrypting the user ID and vehicle model. The encryption process is as follows: the user ID and vehicle model are encrypted using the IDEA algorithm to obtain a first encrypted string; a random string of a specified length is created; the random string is added to a specified position of the first encrypted string to obtain a second encrypted string; and the second encrypted string is encrypted using the RC6 algorithm to obtain the encrypted user data. The hash value is obtained by hashing the encrypted user data and the first timestamp.

[0015] The user's encrypted data, first timestamp, and hash value are obtained by parsing the charging gun shutdown request. After verifying the integrity of the user's encrypted data and first timestamp using the hash value, the timeliness is verified using the first timestamp. The user's encrypted data is decrypted using the RC6 algorithm to obtain a second encrypted string. A random string is located from the second encrypted string based on the specified length and specified position. The random string is removed from the second encrypted string to obtain a first encrypted string. The first encrypted string is decrypted using the IDEA algorithm to obtain the user ID and car model. The user ID and car model are matched against a preset user management table to perform a validity verification.

[0016] Furthermore, step S2 specifically includes:

[0017] Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command carrying the target value of current adjustment to the new energy vehicle through the CP signal; the CP signal is based on PWM wave modulation with a linearly decreasing or exponentially decreasing duty cycle.

[0018] Furthermore, step S3 specifically includes:

[0019] The new energy vehicle adjusts the current of the load connected to the charging gun based on the current adjustment target value carried by the received current adjustment command, and feeds back the current adjustment result to the AC charging pile as either successful or unsuccessful.

[0020] Step S4 specifically involves:

[0021] The AC charging pile analyzes and receives the current adjustment result. When the current adjustment result is successful, it disconnects the relay connected to the charging gun, absorbs the arc through the RC circuit connected in parallel with the relay, and prompts the charging gun's off status through an audible and visual alarm, so as to perform a shutdown operation on the charging gun.

[0022] Step S5 specifically involves:

[0023] AC charging stations use current sensors to verify the off-state of the charging gun.

[0024] Furthermore, step S6 specifically includes:

[0025] AC charging piles record the shutdown log of the charging gun in real time, including at least the shutdown time, shutdown current, shutdown voltage, user ID, and vehicle model.

[0026] AC charging piles create a public and private key pair using the ECDH algorithm. The public key is then encrypted using the XTEA algorithm to obtain a first key. This first key is further encrypted using the RC6 algorithm to obtain a second key. The current second timestamp is obtained, and a MAC value is calculated from the shutdown log and the second timestamp. The shutdown log, the second key, the second timestamp, and the MAC value are then encrypted using the AES algorithm to obtain level 1 encrypted data. Each character of the level 1 encrypted data is shifted 5 bits to the right to obtain level 2 encrypted data. The level 2 encrypted data is then encrypted using the ECDSA algorithm to obtain level 3 encrypted data. Each character of the level 3 encrypted data is shifted 6 bits to the left to obtain level 4 encrypted data. The level 4 encrypted data is then encrypted using the IDEA algorithm to obtain level 5 encrypted data. Each character of the level 5 encrypted data is shifted 7 bits to the right to obtain level 6 encrypted data. Finally, the level 6 encrypted data is encrypted using the 3DES algorithm to obtain an encrypted log. This encrypted log is then stored and backed up in a distributed manner.

[0027] Secondly, the present invention provides a charging gun shut-off system for AC charging piles, comprising the following modules:

[0028] The charging gun shutdown request acquisition module is used for the AC charging pile to acquire the user's input charging gun shutdown request and to verify the charging gun shutdown request.

[0029] The current adjustment command sending module is used by the AC charging pile to send a current adjustment command to the new energy vehicle via the CP signal based on the charging gun shutdown request.

[0030] The load current adjustment module is used by new energy vehicles to adjust the current of the load connected to the charging gun based on the received current adjustment command, and to feed back the current adjustment result to the AC charging pile.

[0031] The charging gun shutdown module is used by the AC charging pile to disconnect the relay connected to the charging gun based on the received current adjustment result, so as to perform a shutdown operation on the charging gun.

[0032] The shutdown status verification module is used to verify the shutdown status of the charging gun by the AC charging pile.

[0033] The shutdown log management module is used to record the shutdown logs of the charging guns in real time by the AC charging pile, encrypt the shutdown logs into encrypted logs, and store and back up the encrypted logs.

[0034] Furthermore, the charging gun shutdown request acquisition module is specifically used for:

[0035] The AC charging station receives a user-input request to turn off the charging gun, which includes encrypted user data, a first timestamp, and a hash value. The encrypted user data is obtained by encrypting the user ID and vehicle model. The encryption process is as follows: the user ID and vehicle model are encrypted using the IDEA algorithm to obtain a first encrypted string; a random string of a specified length is created; the random string is added to a specified position of the first encrypted string to obtain a second encrypted string; and the second encrypted string is encrypted using the RC6 algorithm to obtain the encrypted user data. The hash value is obtained by hashing the encrypted user data and the first timestamp.

[0036] The user's encrypted data, first timestamp, and hash value are obtained by parsing the charging gun shutdown request. After verifying the integrity of the user's encrypted data and first timestamp using the hash value, the timeliness is verified using the first timestamp. The user's encrypted data is decrypted using the RC6 algorithm to obtain a second encrypted string. A random string is located from the second encrypted string based on the specified length and specified position. The random string is removed from the second encrypted string to obtain a first encrypted string. The first encrypted string is decrypted using the IDEA algorithm to obtain the user ID and car model. The user ID and car model are matched against a preset user management table to perform a validity verification.

[0037] Furthermore, the current adjustment command sending module is specifically used for:

[0038] Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command carrying the target value of current adjustment to the new energy vehicle through the CP signal; the CP signal is based on PWM wave modulation with a linearly decreasing or exponentially decreasing duty cycle.

[0039] Furthermore, the load current adjustment module is specifically used for:

[0040] The new energy vehicle adjusts the current of the load connected to the charging gun based on the current adjustment target value carried by the received current adjustment command, and feeds back the current adjustment result to the AC charging pile as either successful or unsuccessful.

[0041] The charging gun shutdown module is specifically used for:

[0042] The AC charging pile analyzes and receives the current adjustment result. When the current adjustment result is successful, it disconnects the relay connected to the charging gun, absorbs the arc through the RC circuit connected in parallel with the relay, and prompts the charging gun's off status through an audible and visual alarm, so as to perform a shutdown operation on the charging gun.

[0043] The shutdown status verification module is specifically used for:

[0044] AC charging stations use current sensors to verify the off-state of the charging gun.

[0045] Furthermore, the shutdown log management module is specifically used for:

[0046] AC charging piles record the shutdown log of the charging gun in real time, including at least the shutdown time, shutdown current, shutdown voltage, user ID, and vehicle model.

[0047] AC charging piles create a public and private key pair using the ECDH algorithm. The public key is then encrypted using the XTEA algorithm to obtain a first key. This first key is further encrypted using the RC6 algorithm to obtain a second key. The current second timestamp is obtained, and a MAC value is calculated from the shutdown log and the second timestamp. The shutdown log, the second key, the second timestamp, and the MAC value are then encrypted using the AES algorithm to obtain level 1 encrypted data. Each character of the level 1 encrypted data is shifted 5 bits to the right to obtain level 2 encrypted data. The level 2 encrypted data is then encrypted using the ECDSA algorithm to obtain level 3 encrypted data. Each character of the level 3 encrypted data is shifted 6 bits to the left to obtain level 4 encrypted data. The level 4 encrypted data is then encrypted using the IDEA algorithm to obtain level 5 encrypted data. Each character of the level 5 encrypted data is shifted 7 bits to the right to obtain level 6 encrypted data. Finally, the level 6 encrypted data is encrypted using the 3DES algorithm to obtain an encrypted log. This encrypted log is then stored and backed up in a distributed manner.

[0048] The advantages of this invention are:

[0049] 1. After receiving and verifying the user's input request to turn off the charging gun via the AC charging pile, the AC charging pile sends a current adjustment command to the new energy vehicle via the CP signal. The new energy vehicle adjusts the current of the load connected to the charging gun based on the current adjustment command and feeds back the current adjustment result to the AC charging pile. Based on the current adjustment result, the AC charging pile disconnects the relay connected to the charging gun to perform a shutdown operation on the charging gun, verifies the shutdown status of the charging gun, and records the shutdown log of the charging gun in real time. The shutdown log is then encrypted and stored and backed up. In other words, when the charging gun needs to be turned off, the AC charging pile first interacts with the new energy vehicle to adjust the current of the new energy vehicle's load to the current adjustment target value, thereby reducing the current flowing through the relay connected to the charging gun and minimizing the possibility of sparks or arcs generated at the moment of relay shutdown. Ultimately, this greatly improves the safety of the AC charging pile's charging gun shutdown.

[0050] 2. By setting the charging gun shutdown request to carry user encrypted data, a first timestamp, and a hash value, the user encrypted data is obtained by encrypting the user ID and vehicle model. The integrity can be verified by the hash value, and the timeliness can be verified by the first timestamp. Since the user ID and vehicle model are encrypted to avoid plaintext leakage, the legitimacy can also be verified by the user ID and vehicle model. In addition, the encryption process combines the IDEA algorithm, random string, and RC6 algorithm to effectively increase the difficulty of cracking the user encrypted data. At least 7 security measures are taken (first timestamp, hash value, IDEA algorithm, specified length, specified position, RC6 algorithm, user ID, and vehicle model) to prevent the shutdown operation from being executed based on the wrong charging gun shutdown request, thereby greatly improving the security of the AC charging pile's charging gun shutdown.

[0051] 3. By setting the CP signal based on PWM wave modulation with linear or exponentially decreasing duty cycle, linear decreasing can dynamically optimize the change amplitude of duty cycle according to the actual load adjustment speed, ensuring a smooth load transition for new energy vehicles and avoiding shocks caused by drastic current fluctuations; while exponential decreasing is suitable for scenarios with rapid response requirements, improving the charging gun's turn-off efficiency.

[0052] 4. By absorbing the electric arc through the RC circuit connected in parallel to the relay during the disconnection of the charging gun, indicating the off status of the charging gun through an audible and visual alarm, and verifying the off status of the charging gun through a current sensor, the safety of the charging gun being turned off by the AC charging pile is further improved.

[0053] 5. By recording the shutdown log of the charging gun in real time, the shutdown log is encrypted and stored and backed up for easy traceability later.

[0054] 6. Create a public and private key pair using the ECDH algorithm. Encrypt the public key using the XTEA algorithm to obtain the first key. Encrypt the first key using the RC6 algorithm to obtain the second key. Obtain the current second timestamp. Calculate the MAC value by performing a MAC operation on the shutdown log and the second timestamp. Encrypt the shutdown log, the second key, the second timestamp, and the MAC value using the AES algorithm to obtain the first-level encrypted data. Shift each character of the first-level encrypted data 5 bits to the right to obtain the second-level encrypted data. Encrypt the second-level encrypted data using the ECDSA algorithm to obtain the third-level encrypted data. Shift each character of the third-level encrypted data 6 bits to the left to obtain the fourth-level encrypted data. Encrypt the fourth-level encrypted data using the IDEA algorithm to obtain the fifth-level encrypted data. Shift each character of the fifth-level encrypted data 7 bits to the right to obtain the sixth-level encrypted data. The system employs a multi-level encryption mechanism, using the 3DES algorithm to encrypt six levels of data to obtain encrypted logs. These encrypted logs are then stored and backed up in a distributed manner. Since data encrypted with the private key can only be decrypted by the public key, and the public key undergoes multiple levels of encryption, subsequent integrity verification can be performed using the MAC value, and timeliness verification can be performed using the second timestamp. Furthermore, multiple encryption algorithms and data transformation rules are incorporated. Without knowing the corresponding encryption algorithm or data transformation rules, the encrypted logs cannot be cracked. At least 14 security measures are implemented (ECDH algorithm, public and private keys, XTEA algorithm, RC6 algorithm, second timestamp, MAC calculation, AES algorithm, right shift by 5 bits, ECDSA algorithm, left shift by 6 bits, IDEA algorithm, right shift by 7 bits, 3DES algorithm, and distributed backup), significantly enhancing the security of the closed log storage. Attached Figure Description

[0055] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0056] Figure 1 This is a flowchart of a charging gun shut-off method for AC charging piles according to the present invention.

[0057] Figure 2 This is a schematic diagram of the structure of a charging gun shut-off system for AC charging piles according to the present invention. Detailed Implementation

[0058] The overall idea of ​​the technical solution in this application embodiment is as follows: When it is necessary to turn off the charging gun, the AC charging pile first interacts with the new energy vehicle to adjust the load current of the new energy vehicle to the current adjustment target value, thereby reducing the current flowing through the relay connected to the charging gun, and avoiding sparks or arcs generated at the moment of relay turn-off as much as possible, so as to improve the safety of the AC charging pile's charging gun turn-off.

[0059] Please refer to Figures 1 to 2 As shown, a preferred embodiment of the charging gun shut-off method for AC charging piles according to the present invention includes the following steps:

[0060] Step S1: The AC charging pile obtains the user's input request to turn off the charging gun and verifies the request.

[0061] Step S2: Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command to the new energy vehicle via the CP signal;

[0062] Step S3: Based on the received current adjustment command, the new energy vehicle adjusts the current of the load connected to the charging gun and feeds back the current adjustment result to the AC charging pile.

[0063] Step S4: Based on the received current adjustment result, the AC charging pile disconnects the relay connected to the charging gun to perform a shutdown operation on the charging gun.

[0064] Step S5: The AC charging station verifies the off status of the charging gun.

[0065] Step S6: The AC charging pile records the shutdown log of the charging gun in real time, encrypts the shutdown log into an encrypted log, and stores and backs up the encrypted log.

[0066] By recording the shutdown log of the charging gun in real time, the shutdown log is encrypted and stored and backed up for easy traceability later.

[0067] Step S1 specifically involves:

[0068] The AC charging station receives a user-input request to turn off the charging gun, which includes encrypted user data, a first timestamp, and a hash value. The encrypted user data is obtained by encrypting the user ID and vehicle model. The encryption process is as follows: the user ID and vehicle model are encrypted using the IDEA algorithm to obtain a first encrypted string; a random string of a specified length is created; the random string is added to a specified position of the first encrypted string to obtain a second encrypted string; and the second encrypted string is encrypted using the RC6 algorithm to obtain the encrypted user data. The hash value is obtained by hashing the encrypted user data and the first timestamp.

[0069] The user's encrypted data, first timestamp, and hash value are obtained by parsing the charging gun shutdown request. After verifying the integrity of the user's encrypted data and first timestamp using the hash value, the timeliness is verified using the first timestamp. The user's encrypted data is decrypted using the RC6 algorithm to obtain a second encrypted string. A random string is located from the second encrypted string based on the specified length and specified position. The random string is removed from the second encrypted string to obtain a first encrypted string. The first encrypted string is decrypted using the IDEA algorithm to obtain the user ID and car model. The user ID and car model are matched against a preset user management table to perform a validity verification.

[0070] By setting the charging gun shutdown request to include user encrypted data, a first timestamp, and a hash value, the user encrypted data is obtained by encrypting the user ID and vehicle model. The integrity can be verified by the hash value, and the timeliness can be verified by the first timestamp. Since the user ID and vehicle model are encrypted to prevent plaintext leakage, the legitimacy can also be verified by the user ID and vehicle model. In addition, the encryption process combines the IDEA algorithm, random strings, and RC6 algorithm to effectively increase the difficulty of cracking the user encrypted data. At least 7 security measures are taken (first timestamp, hash value, IDEA algorithm, specified length, specified position, RC6 algorithm, user ID, and vehicle model) to prevent the shutdown operation from being executed based on the wrong charging gun shutdown request, thereby greatly improving the security of the AC charging pile's charging gun shutdown.

[0071] Step S2 specifically involves:

[0072] Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command carrying the target current adjustment value to the new energy vehicle via a CP signal; the CP signal is based on PWM wave modulation with a linearly or exponentially decreasing duty cycle. For example, the duty cycle is gradually reduced to the minimum value allowed by the protocol (10%) to indicate that the target current adjustment value is 6A.

[0073] By setting the CP signal based on PWM wave modulation with linear or exponentially decreasing duty cycle, linear decreasing can dynamically optimize the change amplitude of duty cycle according to the actual load adjustment speed, ensuring a smooth load transition for new energy vehicles and avoiding shocks caused by drastic current fluctuations; while exponential decreasing is suitable for scenarios with rapid response needs, improving the charging gun's turn-off efficiency.

[0074] Step S3 specifically involves:

[0075] The new energy vehicle adjusts the current of the load connected to the charging gun based on the current adjustment target value carried by the received current adjustment command, and feeds back the current adjustment result to the AC charging pile as either successful or unsuccessful.

[0076] Step S4 specifically involves:

[0077] The AC charging pile analyzes and receives the current adjustment result. When the current adjustment result is successful, it disconnects the relay connected to the charging gun, absorbs the arc through the RC circuit connected in parallel with the relay, and prompts the charging gun's off status through an audible and visual alarm, so as to perform a shutdown operation on the charging gun.

[0078] Step S5 specifically involves:

[0079] AC charging stations use current sensors to verify the off-state of the charging gun. In real time, the off-state can also be verified by detecting the voltage difference across the relay to prevent current from continuing to flow due to relay sticking.

[0080] By absorbing the electric arc through the RC circuit connected in parallel to the relay during the disconnection of the charging gun, indicating the off status of the charging gun through an audible and visual alarm, and verifying the off status of the charging gun through a current sensor, the safety of the charging gun being turned off by the AC charging pile is further improved.

[0081] Step S6 specifically involves:

[0082] AC charging piles record the shutdown log of the charging gun in real time, including at least the shutdown time, shutdown current, shutdown voltage, user ID, and vehicle model.

[0083] AC charging piles create a public and private key pair using the ECDH algorithm. The public key is then encrypted using the XTEA algorithm to obtain a first key. This first key is further encrypted using the RC6 algorithm to obtain a second key. The current second timestamp is obtained, and a MAC value is calculated from the shutdown log and the second timestamp. The shutdown log, the second key, the second timestamp, and the MAC value are then encrypted using the AES algorithm to obtain level 1 encrypted data. Each character of the level 1 encrypted data is shifted 5 bits to the right to obtain level 2 encrypted data. The level 2 encrypted data is then encrypted using the ECDSA algorithm to obtain level 3 encrypted data. Each character of the level 3 encrypted data is shifted 6 bits to the left to obtain level 4 encrypted data. The level 4 encrypted data is then encrypted using the IDEA algorithm to obtain level 5 encrypted data. Each character of the level 5 encrypted data is shifted 7 bits to the right to obtain level 6 encrypted data. Finally, the level 6 encrypted data is encrypted using the 3DES algorithm to obtain an encrypted log. This encrypted log is then stored and backed up in a distributed manner.

[0084] A public and private key pair is created using the ECDH algorithm. The public key is then encrypted using the XTEA algorithm to obtain the first key. The first key is further encrypted using the RC6 algorithm to obtain the second key. The current second timestamp is obtained. The MAC value is calculated by performing a MAC operation on the shutdown log and the second timestamp. The shutdown log, the second key, the second timestamp, and the MAC value are then encrypted using the AES algorithm to obtain the first-level encrypted data. Each character of the first-level encrypted data is shifted 5 bits to the right to obtain the second-level encrypted data. The second-level encrypted data is then encrypted using the ECDSA algorithm to obtain the third-level encrypted data. Each character of the third-level encrypted data is shifted 6 bits to the left to obtain the fourth-level encrypted data. Finally, the fourth-level encrypted data is encrypted using the IDEA algorithm to obtain the fifth-level encrypted data. Each character of the fifth-level encrypted data is shifted 7 bits to the right to obtain the sixth-level encrypted data. Encrypted data is obtained by encrypting six levels of data using the 3DES algorithm to obtain encrypted logs, which are then stored and backed up in a distributed manner. Since data encrypted with the private key can only be decrypted by the public key, and the public key undergoes multiple levels of encryption, subsequent integrity verification can be performed using the MAC value, and timeliness verification can be performed using the second timestamp. It also combines multiple encryption algorithms and data transformation rules. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted log cannot be cracked. At least 14 security measures are taken (ECDH algorithm, public and private keys, XTEA algorithm, RC6 algorithm, second timestamp, MAC calculation, AES algorithm, right shift by 5 bits, ECDSA algorithm, left shift by 6 bits, IDEA algorithm, right shift by 7 bits, 3DES algorithm, distributed backup), which greatly improves the security of the closed log storage.

[0085] A preferred embodiment of the charging gun shut-off system for AC charging piles of the present invention includes the following modules:

[0086] The charging gun shutdown request acquisition module is used for the AC charging pile to acquire the user's input charging gun shutdown request and to verify the charging gun shutdown request.

[0087] The current adjustment command sending module is used by the AC charging pile to send a current adjustment command to the new energy vehicle via the CP signal based on the charging gun shutdown request.

[0088] The load current adjustment module is used by new energy vehicles to adjust the current of the load connected to the charging gun based on the received current adjustment command, and to feed back the current adjustment result to the AC charging pile.

[0089] The charging gun shutdown module is used by the AC charging pile to disconnect the relay connected to the charging gun based on the received current adjustment result, so as to perform a shutdown operation on the charging gun.

[0090] The shutdown status verification module is used to verify the shutdown status of the charging gun by the AC charging pile.

[0091] The shutdown log management module is used to record the shutdown logs of the charging guns in real time by the AC charging pile, encrypt the shutdown logs into encrypted logs, and store and back up the encrypted logs.

[0092] By recording the shutdown log of the charging gun in real time, the shutdown log is encrypted and stored and backed up for easy traceability later.

[0093] The charging gun shutdown request acquisition module is specifically used for:

[0094] The AC charging station receives a user-input request to turn off the charging gun, which includes encrypted user data, a first timestamp, and a hash value. The encrypted user data is obtained by encrypting the user ID and vehicle model. The encryption process is as follows: the user ID and vehicle model are encrypted using the IDEA algorithm to obtain a first encrypted string; a random string of a specified length is created; the random string is added to a specified position of the first encrypted string to obtain a second encrypted string; and the second encrypted string is encrypted using the RC6 algorithm to obtain the encrypted user data. The hash value is obtained by hashing the encrypted user data and the first timestamp.

[0095] The user's encrypted data, first timestamp, and hash value are obtained by parsing the charging gun shutdown request. After verifying the integrity of the user's encrypted data and first timestamp using the hash value, the timeliness is verified using the first timestamp. The user's encrypted data is decrypted using the RC6 algorithm to obtain a second encrypted string. A random string is located from the second encrypted string based on the specified length and specified position. The random string is removed from the second encrypted string to obtain a first encrypted string. The first encrypted string is decrypted using the IDEA algorithm to obtain the user ID and car model. The user ID and car model are matched against a preset user management table to perform a validity verification.

[0096] By setting the charging gun shutdown request to include user encrypted data, a first timestamp, and a hash value, the user encrypted data is obtained by encrypting the user ID and vehicle model. The integrity can be verified by the hash value, and the timeliness can be verified by the first timestamp. Since the user ID and vehicle model are encrypted to prevent plaintext leakage, the legitimacy can also be verified by the user ID and vehicle model. In addition, the encryption process combines the IDEA algorithm, random strings, and RC6 algorithm to effectively increase the difficulty of cracking the user encrypted data. At least 7 security measures are taken (first timestamp, hash value, IDEA algorithm, specified length, specified position, RC6 algorithm, user ID, and vehicle model) to prevent the shutdown operation from being executed based on the wrong charging gun shutdown request, thereby greatly improving the security of the AC charging pile's charging gun shutdown.

[0097] The current adjustment command sending module is specifically used for:

[0098] Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command carrying the target current adjustment value to the new energy vehicle via a CP signal; the CP signal is based on PWM wave modulation with a linearly or exponentially decreasing duty cycle. For example, the duty cycle is gradually reduced to the minimum value allowed by the protocol (10%) to indicate that the target current adjustment value is 6A.

[0099] By setting the CP signal based on PWM wave modulation with linear or exponentially decreasing duty cycle, linear decreasing can dynamically optimize the change amplitude of duty cycle according to the actual load adjustment speed, ensuring a smooth load transition for new energy vehicles and avoiding shocks caused by drastic current fluctuations; while exponential decreasing is suitable for scenarios with rapid response needs, improving the charging gun's turn-off efficiency.

[0100] The load current adjustment module is specifically used for:

[0101] The new energy vehicle adjusts the current of the load connected to the charging gun based on the current adjustment target value carried by the received current adjustment command, and feeds back the current adjustment result to the AC charging pile as either successful or unsuccessful.

[0102] The charging gun shutdown module is specifically used for:

[0103] The AC charging pile analyzes and receives the current adjustment result. When the current adjustment result is successful, it disconnects the relay connected to the charging gun, absorbs the arc through the RC circuit connected in parallel with the relay, and prompts the charging gun's off status through an audible and visual alarm, so as to perform a shutdown operation on the charging gun.

[0104] The shutdown status verification module is specifically used for:

[0105] AC charging stations use current sensors to verify the off-state of the charging gun. In real time, the off-state can also be verified by detecting the voltage difference across the relay to prevent current from continuing to flow due to relay sticking.

[0106] By absorbing the electric arc through the RC circuit connected in parallel to the relay during the disconnection of the charging gun, indicating the off status of the charging gun through an audible and visual alarm, and verifying the off status of the charging gun through a current sensor, the safety of the charging gun being turned off by the AC charging pile is further improved.

[0107] The shutdown log management module is specifically used for:

[0108] AC charging piles record the shutdown log of the charging gun in real time, including at least the shutdown time, shutdown current, shutdown voltage, user ID, and vehicle model.

[0109] AC charging piles create a public and private key pair using the ECDH algorithm. The public key is then encrypted using the XTEA algorithm to obtain a first key. This first key is further encrypted using the RC6 algorithm to obtain a second key. The current second timestamp is obtained, and a MAC value is calculated from the shutdown log and the second timestamp. The shutdown log, the second key, the second timestamp, and the MAC value are then encrypted using the AES algorithm to obtain level 1 encrypted data. Each character of the level 1 encrypted data is shifted 5 bits to the right to obtain level 2 encrypted data. The level 2 encrypted data is then encrypted using the ECDSA algorithm to obtain level 3 encrypted data. Each character of the level 3 encrypted data is shifted 6 bits to the left to obtain level 4 encrypted data. The level 4 encrypted data is then encrypted using the IDEA algorithm to obtain level 5 encrypted data. Each character of the level 5 encrypted data is shifted 7 bits to the right to obtain level 6 encrypted data. Finally, the level 6 encrypted data is encrypted using the 3DES algorithm to obtain an encrypted log. This encrypted log is then stored and backed up in a distributed manner.

[0110] A public and private key pair is created using the ECDH algorithm. The public key is then encrypted using the XTEA algorithm to obtain the first key. The first key is further encrypted using the RC6 algorithm to obtain the second key. The current second timestamp is obtained. The MAC value is calculated by performing a MAC operation on the shutdown log and the second timestamp. The shutdown log, the second key, the second timestamp, and the MAC value are then encrypted using the AES algorithm to obtain the first-level encrypted data. Each character of the first-level encrypted data is shifted 5 bits to the right to obtain the second-level encrypted data. The second-level encrypted data is then encrypted using the ECDSA algorithm to obtain the third-level encrypted data. Each character of the third-level encrypted data is shifted 6 bits to the left to obtain the fourth-level encrypted data. Finally, the fourth-level encrypted data is encrypted using the IDEA algorithm to obtain the fifth-level encrypted data. Each character of the fifth-level encrypted data is shifted 7 bits to the right to obtain the sixth-level encrypted data. Encrypted data is obtained by encrypting six levels of data using the 3DES algorithm to obtain encrypted logs, which are then stored and backed up in a distributed manner. Since data encrypted with the private key can only be decrypted by the public key, and the public key undergoes multiple levels of encryption, subsequent integrity verification can be performed using the MAC value, and timeliness verification can be performed using the second timestamp. It also combines multiple encryption algorithms and data transformation rules. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted log cannot be cracked. At least 14 security measures are taken (ECDH algorithm, public and private keys, XTEA algorithm, RC6 algorithm, second timestamp, MAC calculation, AES algorithm, right shift by 5 bits, ECDSA algorithm, left shift by 6 bits, IDEA algorithm, right shift by 7 bits, 3DES algorithm, distributed backup), which greatly improves the security of the closed log storage.

[0111] In summary, the advantages of this invention are:

[0112] 1. After receiving and verifying the user's input request to turn off the charging gun via the AC charging pile, the AC charging pile sends a current adjustment command to the new energy vehicle via the CP signal. The new energy vehicle adjusts the current of the load connected to the charging gun based on the current adjustment command and feeds back the current adjustment result to the AC charging pile. Based on the current adjustment result, the AC charging pile disconnects the relay connected to the charging gun to perform a shutdown operation on the charging gun, verifies the shutdown status of the charging gun, and records the shutdown log of the charging gun in real time. The shutdown log is then encrypted and stored and backed up. In other words, when the charging gun needs to be turned off, the AC charging pile first interacts with the new energy vehicle to adjust the current of the new energy vehicle's load to the current adjustment target value, thereby reducing the current flowing through the relay connected to the charging gun and minimizing the possibility of sparks or arcs generated at the moment of relay shutdown. Ultimately, this greatly improves the safety of the AC charging pile's charging gun shutdown.

[0113] 2. By setting the charging gun shutdown request to carry user encrypted data, a first timestamp, and a hash value, the user encrypted data is obtained by encrypting the user ID and vehicle model. The integrity can be verified by the hash value, and the timeliness can be verified by the first timestamp. Since the user ID and vehicle model are encrypted to avoid plaintext leakage, the legitimacy can also be verified by the user ID and vehicle model. In addition, the encryption process combines the IDEA algorithm, random string, and RC6 algorithm to effectively increase the difficulty of cracking the user encrypted data. At least 7 security measures are taken (first timestamp, hash value, IDEA algorithm, specified length, specified position, RC6 algorithm, user ID, and vehicle model) to prevent the shutdown operation from being executed based on the wrong charging gun shutdown request, thereby greatly improving the security of the AC charging pile's charging gun shutdown.

[0114] 3. By setting the CP signal based on PWM wave modulation with linear or exponentially decreasing duty cycle, linear decreasing can dynamically optimize the change amplitude of duty cycle according to the actual load adjustment speed, ensuring a smooth load transition for new energy vehicles and avoiding shocks caused by drastic current fluctuations; while exponential decreasing is suitable for scenarios with rapid response requirements, improving the charging gun's turn-off efficiency.

[0115] 4. By absorbing the electric arc through the RC circuit connected in parallel to the relay during the disconnection of the charging gun, indicating the off status of the charging gun through an audible and visual alarm, and verifying the off status of the charging gun through a current sensor, the safety of the charging gun being turned off by the AC charging pile is further improved.

[0116] 5. By recording the shutdown log of the charging gun in real time, the shutdown log is encrypted and stored and backed up for easy traceability later.

[0117] 6. Create a public and private key pair using the ECDH algorithm. Encrypt the public key using the XTEA algorithm to obtain the first key. Encrypt the first key using the RC6 algorithm to obtain the second key. Obtain the current second timestamp. Calculate the MAC value by performing a MAC operation on the shutdown log and the second timestamp. Encrypt the shutdown log, the second key, the second timestamp, and the MAC value using the AES algorithm to obtain the first-level encrypted data. Shift each character of the first-level encrypted data 5 bits to the right to obtain the second-level encrypted data. Encrypt the second-level encrypted data using the ECDSA algorithm to obtain the third-level encrypted data. Shift each character of the third-level encrypted data 6 bits to the left to obtain the fourth-level encrypted data. Encrypt the fourth-level encrypted data using the IDEA algorithm to obtain the fifth-level encrypted data. Shift each character of the fifth-level encrypted data 7 bits to the right to obtain the sixth-level encrypted data. The system employs a multi-level encryption mechanism, using the 3DES algorithm to encrypt six levels of data to obtain encrypted logs. These encrypted logs are then stored and backed up in a distributed manner. Since data encrypted with the private key can only be decrypted by the public key, and the public key undergoes multiple levels of encryption, subsequent integrity verification can be performed using the MAC value, and timeliness verification can be performed using the second timestamp. Furthermore, multiple encryption algorithms and data transformation rules are incorporated. Without knowing the corresponding encryption algorithm or data transformation rules, the encrypted logs cannot be cracked. At least 14 security measures are implemented (ECDH algorithm, public and private keys, XTEA algorithm, RC6 algorithm, second timestamp, MAC calculation, AES algorithm, right shift by 5 bits, ECDSA algorithm, left shift by 6 bits, IDEA algorithm, right shift by 7 bits, 3DES algorithm, and distributed backup), significantly enhancing the security of the closed log storage.

[0118] While specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments described are merely illustrative and not intended to limit the scope of the present invention. Equivalent modifications and variations made by those skilled in the art in accordance with the spirit of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for turning off a charging gun of an AC charging pile, characterized in that: Includes the following steps: Step S1: The AC charging pile obtains the user's input request to turn off the charging gun and verifies the request. Step S2: Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command to the new energy vehicle via the CP signal; Step S3: Based on the received current adjustment command, the new energy vehicle adjusts the current of the load connected to the charging gun and feeds back the current adjustment result to the AC charging pile. Step S4: Based on the received current adjustment result, the AC charging pile disconnects the relay connected to the charging gun to perform a shutdown operation on the charging gun. Step S5: The AC charging station verifies the off status of the charging gun. Step S6: The AC charging pile records the shutdown log of the charging gun in real time, encrypts the shutdown log into an encrypted log, and stores and backs up the encrypted log. Step S1 specifically involves: The AC charging station receives a user-input request to turn off the charging gun, which includes encrypted user data, a first timestamp, and a hash value. The encrypted user data is obtained by encrypting the user ID and vehicle model. The encryption process is as follows: the user ID and vehicle model are encrypted using the IDEA algorithm to obtain a first encrypted string; a random string of a specified length is created; the random string is added to a specified position of the first encrypted string to obtain a second encrypted string; and the second encrypted string is encrypted using the RC6 algorithm to obtain the encrypted user data. The hash value is obtained by hashing the encrypted user data and the first timestamp. The user's encrypted data, first timestamp, and hash value are obtained by parsing the charging gun shutdown request. After verifying the integrity of the user's encrypted data and first timestamp using the hash value, the timeliness is verified using the first timestamp. The user's encrypted data is decrypted using the RC6 algorithm to obtain a second encrypted string. A random string is located from the second encrypted string based on the specified length and specified position. The random string is removed from the second encrypted string to obtain a first encrypted string. The first encrypted string is decrypted using the IDEA algorithm to obtain the user ID and car model. The user ID and car model are matched with a preset user management table to perform a legality verification. Step S6 specifically involves: AC charging piles record the shutdown log of the charging gun in real time, including at least the shutdown time, shutdown current, shutdown voltage, user ID, and vehicle model. AC charging piles create a public and private key pair using the ECDH algorithm. The public key is then encrypted using the XTEA algorithm to obtain a first key. This first key is further encrypted using the RC6 algorithm to obtain a second key. The current second timestamp is obtained, and a MAC value is calculated from the shutdown log and the second timestamp. The shutdown log, the second key, the second timestamp, and the MAC value are then encrypted using the AES algorithm to obtain level 1 encrypted data. Each character of the level 1 encrypted data is shifted 5 bits to the right to obtain level 2 encrypted data. The level 2 encrypted data is then encrypted using the ECDSA algorithm to obtain level 3 encrypted data. Each character of the level 3 encrypted data is shifted 6 bits to the left to obtain level 4 encrypted data. The level 4 encrypted data is then encrypted using the IDEA algorithm to obtain level 5 encrypted data. Each character of the level 5 encrypted data is shifted 7 bits to the right to obtain level 6 encrypted data. Finally, the level 6 encrypted data is encrypted using the 3DES algorithm to obtain an encrypted log. This encrypted log is then stored and backed up in a distributed manner.

2. The charging gun shut-off method for AC charging piles as described in claim 1, characterized in that: Step S2 specifically involves: Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command carrying the target value of current adjustment to the new energy vehicle through the CP signal; the CP signal is based on PWM wave modulation with a linearly decreasing or exponentially decreasing duty cycle.

3. The charging gun shut-off method for AC charging piles as described in claim 1, characterized in that: Step S3 specifically involves: The new energy vehicle adjusts the current of the load connected to the charging gun based on the current adjustment target value carried by the received current adjustment command, and feeds back the current adjustment result to the AC charging pile as either successful or unsuccessful. Step S4 specifically involves: The AC charging pile analyzes the received current adjustment result. When the current adjustment result is successful, it disconnects the relay connected to the charging gun, absorbs the arc through the RC circuit connected in parallel with the relay, and prompts the charging gun's off status through an audible and visual alarm, so as to perform a shutdown operation on the charging gun. Step S5 specifically involves: AC charging stations use current sensors to verify the off-state of the charging gun.

4. A charging gun shut-off system for AC charging piles, characterized in that: Includes the following modules: The charging gun shutdown request acquisition module is used for the AC charging pile to acquire the user's input charging gun shutdown request and to verify the charging gun shutdown request. The current adjustment command sending module is used by the AC charging pile to send a current adjustment command to the new energy vehicle via the CP signal based on the charging gun shutdown request. The load current adjustment module is used by new energy vehicles to adjust the current of the load connected to the charging gun based on the received current adjustment command, and to feed back the current adjustment result to the AC charging pile. The charging gun shutdown module is used by the AC charging pile to disconnect the relay connected to the charging gun based on the received current adjustment result, so as to perform a shutdown operation on the charging gun. The shutdown status verification module is used to verify the shutdown status of the charging gun by the AC charging pile. The shutdown log management module is used to record the shutdown log of the charging gun in real time by the AC charging pile, encrypt the shutdown log into an encrypted log, and store and back up the encrypted log. The charging gun shutdown request acquisition module is specifically used for: The AC charging station receives a user-input request to turn off the charging gun, which includes encrypted user data, a first timestamp, and a hash value. The encrypted user data is obtained by encrypting the user ID and vehicle model. The encryption process is as follows: the user ID and vehicle model are encrypted using the IDEA algorithm to obtain a first encrypted string; a random string of a specified length is created; the random string is added to a specified position of the first encrypted string to obtain a second encrypted string; and the second encrypted string is encrypted using the RC6 algorithm to obtain the encrypted user data. The hash value is obtained by hashing the encrypted user data and the first timestamp. The user's encrypted data, first timestamp, and hash value are obtained by parsing the charging gun shutdown request. After verifying the integrity of the user's encrypted data and first timestamp using the hash value, the timeliness is verified using the first timestamp. The user's encrypted data is decrypted using the RC6 algorithm to obtain a second encrypted string. A random string is located from the second encrypted string based on the specified length and specified position. The random string is removed from the second encrypted string to obtain a first encrypted string. The first encrypted string is decrypted using the IDEA algorithm to obtain the user ID and car model. The user ID and car model are matched with a preset user management table to perform a legality verification. The shutdown log management module is specifically used for: AC charging piles record the shutdown log of the charging gun in real time, including at least the shutdown time, shutdown current, shutdown voltage, user ID, and vehicle model. AC charging piles create a public and private key pair using the ECDH algorithm. The public key is then encrypted using the XTEA algorithm to obtain a first key. This first key is further encrypted using the RC6 algorithm to obtain a second key. The current second timestamp is obtained, and a MAC value is calculated from the shutdown log and the second timestamp. The shutdown log, the second key, the second timestamp, and the MAC value are then encrypted using the AES algorithm to obtain level 1 encrypted data. Each character of the level 1 encrypted data is shifted 5 bits to the right to obtain level 2 encrypted data. The level 2 encrypted data is then encrypted using the ECDSA algorithm to obtain level 3 encrypted data. Each character of the level 3 encrypted data is shifted 6 bits to the left to obtain level 4 encrypted data. The level 4 encrypted data is then encrypted using the IDEA algorithm to obtain level 5 encrypted data. Each character of the level 5 encrypted data is shifted 7 bits to the right to obtain level 6 encrypted data. Finally, the level 6 encrypted data is encrypted using the 3DES algorithm to obtain an encrypted log. This encrypted log is then stored and backed up in a distributed manner.

5. A charging gun shut-off system for AC charging piles as described in claim 4, characterized in that: The current adjustment command sending module is specifically used for: Based on the charging gun shutdown request, the AC charging pile sends a current adjustment command carrying the target value of current adjustment to the new energy vehicle through the CP signal; the CP signal is based on PWM wave modulation with a linearly decreasing or exponentially decreasing duty cycle.

6. The charging gun shut-off system for AC charging piles as described in claim 4, characterized in that: The load current adjustment module is specifically used for: The new energy vehicle adjusts the current of the load connected to the charging gun based on the current adjustment target value carried by the received current adjustment command, and feeds back the current adjustment result to the AC charging pile as either successful or unsuccessful. The charging gun shutdown module is specifically used for: The AC charging pile analyzes the received current adjustment result. When the current adjustment result is successful, it disconnects the relay connected to the charging gun, absorbs the arc through the RC circuit connected in parallel with the relay, and prompts the charging gun's off status through an audible and visual alarm, so as to perform a shutdown operation on the charging gun. The shutdown status verification module is specifically used for: AC charging stations use current sensors to verify the off-state of the charging gun.