Vehicle charging method and device, computer equipment and storage medium

By matching authentication information between the vehicle and the server, the vehicle charging process is automated and secure, solving the problem of low charging efficiency caused by users manually scanning codes or swiping cards in existing technologies, thus improving charging efficiency and enhancing security.

CN120963447APending Publication Date: 2025-11-18ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511138305.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-14
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

In existing technologies, vehicle charging requires users to manually scan a code or swipe a card, resulting in low charging efficiency.

Method used

The charging station sends an authentication request to the vehicle. The vehicle generates first authentication information based on the vehicle identifier and the first key. The server generates second authentication information based on the vehicle identifier and the second key. When the first authentication information matches the second authentication information, the charging station automatically charges the vehicle, achieving automatic authentication and charging without manual operation by the user.

Benefits of technology

It improves vehicle charging efficiency and enhances charging security through a dual authentication mechanism, preventing identity forgery attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120963447A_ABST
    Figure CN120963447A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, and discloses a vehicle charging method and device, computer equipment and a storage medium. The method comprises the following steps: a charging pile sends an authentication request to a vehicle, so that the vehicle generates first authentication information according to a vehicle identifier and a first key, and sends the first authentication information to the charging pile; the charging pile sends first authentication information to the server, so that the server finds out a second key corresponding to the vehicle identifier, and generates second authentication information according to the vehicle identifier and the second key; the charging pile responds to the received information which is sent by the server and indicates that the vehicle passes the authentication, the information which indicates that the vehicle passes the authentication is sent due to the fact that the server determines that the authentication passing condition is met, and the authentication passing condition comprises that the first authentication information is consistent with the second authentication information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, specifically to vehicle charging methods, devices, computer equipment, and storage media. Background Technology

[0002] In related technologies, when a vehicle needs to be charged, it must be scanned or a card swiped after plugging in the charging gun. However, this manual operation by the user reduces the efficiency of vehicle charging.

[0003] Therefore, improving vehicle charging efficiency has become a technical problem that needs to be solved. Summary of the Invention

[0004] In view of the above, embodiments of this application provide a vehicle charging method, apparatus, computer equipment, and storage medium.

[0005] In a first aspect, embodiments of this application provide a vehicle charging method, the method comprising: a charging pile sending an authentication request to a vehicle, causing the vehicle to generate first authentication information based on a vehicle identifier and a first key, and sending the first authentication information to the charging pile; the charging pile sending the first authentication information to a server, causing the server to find a second key corresponding to the vehicle identifier, and generate second authentication information based on the vehicle identifier and the second key; and the charging pile charging the vehicle in response to receiving information from the server instructing the vehicle to pass authentication, wherein the information instructing the vehicle to pass authentication is sent because the server determines that the authentication pass conditions are met, and the authentication pass conditions include: the first authentication information and the second authentication information being consistent.

[0006] In one possible implementation, the authentication request includes: a time parameter; and generating first authentication information based on the vehicle identifier and the first key includes: generating first authentication information based on the vehicle identifier, the first key, and the time parameter.

[0007] In one possible implementation, generating the first authentication information based on the vehicle identifier, the first key, and the time parameter includes: generating the first hash value of the first key; and generating the first authentication information based on the vehicle identifier, the first hash value, and the time parameter.

[0008] In one possible implementation, generating the first authentication information based on the second hash value includes: performing a bitwise XOR operation on the first hash value and the external padding value to obtain a second bitwise XOR result; concatenating the second bitwise XOR result with the second hash value to obtain a second concatenated result; generating the hash value of the second concatenated result; and using the hash value of the second concatenated result as the first authentication information.

[0009] In one possible implementation, the authentication pass condition also includes: the time difference between the time indicated by the time parameter and the current time is less than the duration threshold.

[0010] Secondly, embodiments of this application provide a vehicle charging system, which includes: a charging pile, a server, and a vehicle; the charging pile is used to send an authentication request to the vehicle; the vehicle is used to receive the authentication request, generate first authentication information based on a vehicle identifier and a first key, and send the first authentication information to the charging pile; the charging pile is further used to send the first authentication information to the server; the server is used to find a second key corresponding to the vehicle identifier, and generate second authentication information based on the vehicle identifier and the second key; the charging pile is further used to charge the vehicle in response to receiving information from the server instructing the vehicle to pass authentication, wherein the information instructing the vehicle to pass authentication is sent because the server determines that the authentication pass conditions are met, and the authentication pass conditions include: the first authentication information and the second authentication information are consistent.

[0011] Thirdly, embodiments of this application provide a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the method described in the first aspect or any corresponding embodiment.

[0012] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer instructions for causing a computer to perform the method described in the first aspect or any corresponding embodiment.

[0013] Fifthly, the present invention provides a computer program product, including computer instructions for causing a computer to perform the method described in the first aspect or any corresponding embodiment thereof.

[0014] The method provided in this application involves the following steps: When a vehicle needs charging, the charging pile sends an authentication request to the vehicle. The vehicle generates first authentication information based on its vehicle identifier and a first key. The server generates second authentication information based on the vehicle identifier and a second key. When the first and second authentication information match, the charging pile begins charging the vehicle. This eliminates the need for users to manually scan a code or swipe a card; the vehicle automatically completes authentication and begins charging after plugging in the charging gun, effectively improving charging efficiency.

[0015] On the other hand, considering the security of vehicle charging, when a vehicle needs charging, it uses its unique vehicle identifier and a first key to generate first authentication information. The server then uses a stored second key corresponding to the vehicle identifier to generate second authentication information. Only when the first and second authentication information match is the vehicle considered authenticated, and the charging station will then begin charging. Due to the uniqueness and confidentiality of the keys, attackers find it difficult to obtain the correct key to forge an identity, thus effectively preventing identity spoofing attacks and improving the security of vehicle charging. Attached Figure Description

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

[0017] Figure 1 This is a schematic diagram of the structure of a vehicle charging system provided according to an embodiment of this application;

[0018] Figure 2 This is another structural schematic diagram of a vehicle charging system provided according to an embodiment of this application;

[0019] Figure 3 This is a schematic flowchart of a vehicle charging method provided according to an embodiment of this application;

[0020] Figure 4 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of a vehicle charging system provided according to an embodiment of this application.

[0023] Combination Figure 1 As shown, the vehicle charging system includes a charging pile, a server, and a vehicle. The charging pile can communicate with both the server and the vehicle.

[0024] When a vehicle is plugged into a charging gun, it sends first authentication information to the charging station. After receiving the first authentication information, the charging station can send it to the server, which can then generate second authentication information. The server can compare the first and second authentication information. If they match, the server can send a message to the charging station instructing the vehicle to pass the authentication, so that the charging station can begin charging the vehicle.

[0025] Please refer to Figure 2 , Figure 2 This is another structural schematic diagram of a vehicle charging system provided according to an embodiment of this application.

[0026] Combination Figure 2 As shown, the vehicle charging system includes: charging piles, server, and vehicle; the server includes vehicle cloud and charging pile cloud; the vehicle cloud and charging pile cloud communicate and interact with each other; the charging pile communicates and interacts with the charging pile cloud and the vehicle respectively.

[0027] When a vehicle is plugged into the charging station, the charging station sends a private message (HVR message) to the vehicle. This private message includes a time parameter that indicates Coordinated Universal Time (UTC), preventing replay attacks. Upon receiving the HVR message, the vehicle reads its vehicle identifier and first key, and generates first authentication information based on these three parameters. This first authentication information is then sent to the charging station via a VIR message. Upon receiving the first authentication information, the charging station sends it to its cloud platform. The cloud platform then sends the vehicle identifier from the first authentication information to its vehicle cloud platform. The vehicle cloud platform reads the second key corresponding to the stored vehicle identifier. Upon receiving the second key, the charging station cloud platform generates second authentication information based on the second key, the time parameter, and the vehicle identifier. It then compares the first and second authentication information. If they match, the charging station cloud platform sends a message instructing the vehicle to pass authentication, allowing the charging station to begin charging.

[0028] Among them, HVR and VIR messages can be added as proprietary messages based on the national fast charging standard protocol GB / T 27930-2015. HVR messages are proprietary messages sent by the charging pile to the charging vehicle, used to transmit time parameters. VIR messages are proprietary messages sent by the charging vehicle to the charging pile, used to transmit the vehicle identification number and first authentication information. Please refer to Tables 1 and 2. Table 1 introduces HVR messages, and Table 2 introduces VIR messages.

[0029] Table 1

[0030]

[0031] The HVR message is sent from the charging pile, received by the vehicle, and uses a Trigger period for sending time parameters.

[0032] Table 2

[0033]

[0034] The VIR message is sent by the vehicle, received by the charging pile, and has a period of 500ms. It is used to send the vehicle identification code and the first authentication information.

[0035] It should be noted that after receiving the HVR message from the charging station, the vehicle reads the vehicle identification number (VIN) and the first key; and calculates the first authentication information by combining the first key, the VIN, and time parameters, and sends it to the charging station via a VIR message. If the charging station does not receive the HVR message, it assumes that plug-and-charge is not required, and waits for the user to pay or swipe a card to start the charging station, and charges in accordance with the national standard GBT27930-2015.

[0036] refer to Figure 3 , Figure 3 This is a schematic flowchart of a vehicle charging method provided according to an embodiment of this application.

[0037] like Figure 3 As shown, the vehicle charging method includes the following steps:

[0038] In step S301, the charging pile sends an authentication request to the vehicle, so that the vehicle generates first authentication information based on the vehicle identifier and the first key, and sends the first authentication information to the charging pile.

[0039] An authentication request can be a request sent by the charging station to the vehicle after the charging gun is plugged in. Specifically, the authentication request can be used by the charging station to request the vehicle's identifier and first key.

[0040] The vehicle identification can be the vehicle's own identification or an illegal identification, i.e., the identification of an unauthorized vehicle. The vehicle identification can indicate the Vehicle Identification Number (VIN). The primary key can be the key used when the vehicle was manufactured, or it can be an illegal key.

[0041] The vehicle's identification and the key used when the vehicle leaves the factory can be pre-stored in the vehicle.

[0042] As an example, when a vehicle rolls off the production line, the vehicle's identification code and vehicle key can be pre-written into the storage space of the Battery Management System (BMS). Each vehicle has a unique identification code and vehicle key.

[0043] The first authentication information is information that instructs the vehicle to perform legitimate verification. When the charging station sends an authentication request to the vehicle, the charging station can receive the first authentication information.

[0044] As an example, when a charging station sends an authentication request to a vehicle, it can read the vehicle identifier and the first key from the battery management system's storage. The first key can be preprocessed. Specifically, this can include: preprocessing the vehicle key using a cryptographic function (Secure Hash Algorithm 256-bit, SHA-256) to obtain the hash value of the first key (e.g., KeyPre); then concatenating the hashes of the vehicle identifier and the first key to generate the first authentication information, and sending the first authentication information to the charging station.

[0045] In step S302, the charging pile sends the first authentication information to the server so that the server can find the second key corresponding to the vehicle identifier and generate the second authentication information based on the vehicle identifier and the second key.

[0046] The server can pre-store a second key for each vehicle, then preprocess the second key to obtain the hash value of the first key, and then concatenate the second key and the vehicle identifier to generate second authentication information. After generating the second authentication information, the server can compare it with the first and second authentication information to generate a comparison result. The comparison result indicates whether the first and second authentication information are consistent. When the first and second authentication information are consistent, step S303 is executed. When the first and second authentication information are inconsistent, the charging station stops charging the vehicle.

[0047] In step S303, the charging pile responds to receiving the information sent by the server instructing the vehicle to pass authentication and starts charging the vehicle. The information instructing the vehicle to pass authentication is sent because the server determines that the authentication pass conditions are met. The authentication pass conditions include: the first authentication information and the second authentication information are consistent.

[0048] The information indicating that the vehicle has passed authentication can instruct the charging station to charge the vehicle. Specifically, when the first authentication information and the second authentication information are consistent, it indicates that the vehicle's authentication verification is successful, and the charging station responds by charging the vehicle in response to receiving the information from the server indicating that the vehicle has passed authentication.

[0049] The method provided in this application involves the following steps: When a vehicle needs charging, the charging pile sends an authentication request to the vehicle. The vehicle generates first authentication information based on its vehicle identifier and a first key. The server generates second authentication information based on the vehicle identifier and a second key. When the first and second authentication information match, the charging pile begins charging the vehicle. This eliminates the need for users to manually scan a code or swipe a card; the vehicle automatically completes authentication and begins charging after plugging in the charging gun, effectively improving charging efficiency.

[0050] On the other hand, considering the security of vehicle charging, when a vehicle needs charging, it uses its unique vehicle identifier and a first key to generate first authentication information. The server then uses a stored second key corresponding to the vehicle identifier to generate second authentication information. Only when the first and second authentication information match is the vehicle considered authenticated, and the charging station will then begin charging. Due to the uniqueness and confidentiality of the keys, attackers find it difficult to obtain the correct key to forge an identity, thus effectively preventing identity spoofing attacks and improving the security of vehicle charging.

[0051] In one possible implementation, the authentication pass condition also includes: the time difference between the time indicated by the time parameter and the current time is less than the duration threshold.

[0052] The current time indicates the time at which the authentication pass condition is determined, i.e., the time at which the vehicle time parameter is determined to be valid. The duration threshold can be a preset threshold. The duration threshold can be 5 seconds, 6 seconds, etc., without specific limitations here.

[0053] In this embodiment, when the authentication pass condition indicates that the first authentication information and the second authentication information are consistent, it is necessary to further determine whether the time difference between the time indicated by the time parameter and the current time is less than a duration threshold. If the time difference between the time indicated by the time parameter and the current time is less than the duration threshold, it is determined that the charging pile can charge the vehicle. If the time difference between the time indicated by the time parameter and the current time is not less than the duration threshold, it is determined that the charging pile cannot charge the vehicle.

[0054] The method provided in this embodiment improves the safety of vehicle charging through a dual verification mechanism, namely time verification and authentication information verification.

[0055] In one possible implementation, the authentication request includes: a time parameter; and the generation of the first authentication information based on the vehicle identifier and the first key in step S301 above includes: step S3011.

[0056] In step S3011, first authentication information is generated based on the vehicle identifier, the first key, and the time parameter.

[0057] The time parameter indicates when the authentication request was started. The time parameter is used to prevent message replay attacks. Specifically, the time parameter can be the timestamp of the authentication request.

[0058] The authentication request includes a time parameter. After determining the vehicle identifier and the first key, the vehicle can generate first authentication information based on the vehicle identifier, the first key, and the time parameter.

[0059] As an example, the first authentication information can be obtained by concatenating the vehicle identifier, the first key, and the time parameter.

[0060] As an example, a neural network model can be used to generate first authentication information based on the vehicle identifier, first key, and time parameters. The vehicle identifier, first key, and time parameters can be used as inputs to the neural network model, and the first authentication information can be used as its output.

[0061] The method provided in this embodiment, if relying solely on the vehicle identifier and the first key to generate authentication information, could allow an attacker to forge an identity by replaying intercepted legitimate requests. By using a time parameter to provide a unique timestamp for each authentication request, even if an attacker intercepts legitimate authentication information, the existence of the time parameter will cause the authentication information to expire later, increasing the difficulty of a replay attack and thus improving vehicle security.

[0062] In one possible implementation, step S3011 above includes steps S3011A to S3011B.

[0063] In step S3011A, the first hash value of the first key is generated.

[0064] The first hash value can be the hash value obtained after preprocessing the first key.

[0065] As an example, the vehicle key is preprocessed using a cryptographic function (Secure Hash Algorithm 256-bit, SHA-256) to obtain the hash value of the first key (such as KeyPre). KeyPre can then be used as the first hash value of the first key.

[0066] As an example, a neural network model can be used to generate a first hash value of the first key based on the first key. The first key can be used as input to the neural network model, and the first hash value can be used as output.

[0067] In step S3011B, first authentication information is generated based on the vehicle identifier, the first hash value, and the time parameter.

[0068] After generating the first hash value based on the first key, the first authentication information can be generated based on the vehicle identifier, the first hash value, and the time parameter.

[0069] As an example, the vehicle identifier, the first hash value, and the time parameter can be concatenated to generate the first authentication information.

[0070] As an example, a neural network model can be used to generate first authentication information based on the vehicle identifier, the first hash value, and the time parameter. The vehicle identifier, the first hash value, and the time parameter can be used as inputs to the neural network model, and the first authentication information can be used as the output of the neural network model.

[0071] The neural network model can be a multilayer perceptron (MLP), a convolutional neural network (CNN), a long short-term memory (LSTM) network, etc., without any specific limitations.

[0072] The method provided in this embodiment first generates a hash value (such as SHA-256) for the first key, converting the original key into a fixed-length digest. Even if an attacker intercepts the authentication information, it is difficult to deduce the original key from the hash value, thereby protecting the key from being leaked and improving the security of vehicle charging.

[0073] In one possible implementation, step S3011B above includes steps S3011B1 to S3011B4.

[0074] In step S3011B1, the first hash value and the internal padding value are XORed bitwise to obtain the first bitwise XOR result.

[0075] The inner padding value is used to perform the first XOR operation on the first hash value. The process of generating the inner and outer padding values ​​in the HMAC algorithm can be understood as constructing a fixed 64-byte block by repeatedly padding specific byte values ​​in a fixed pattern. The inner padding value can be a 64-byte padding value `ipad` (0x36 repeated 64 times).

[0076] Bitwise XOR can indicate that each bit of two binary numbers is compared independently, with 0 for the same bit and 1 for different bits. In this embodiment, each bit of the first hash value and the inner padding value are compared independently, with 0 for the same bit and 1 for different bits, to obtain the first bitwise XOR result.

[0077] In step S3011B2, the first bitwise XOR result, vehicle identifier, and time parameter are concatenated to obtain the first concatenation result.

[0078] In step S3011B3, a second hash value of the first concatenation result is generated.

[0079] After obtaining the first bitwise XOR result, the first bitwise XOR result, the vehicle identifier, and the time parameter can be concatenated to obtain the first concatenated result. Furthermore, a second hash value can be generated using a hash function and the first concatenated result.

[0080] As an example, the first hash value KeyPre is XORed with the inner padding value ipad, and the resulting first bitwise XOR result is concatenated with the vehicle identifier and time parameter. Then, a hash function is used to calculate the second hash value from the concatenated result, resulting in inner H. Here, inner_H = H((KeyPre⊕ipad)||VIN||DataT); where H is the SHA-256 hash function, DataT is the time parameter, and VIN is the vehicle identifier.

[0081] In step S3011B4, first authentication information is generated based on the second hash value.

[0082] After determining the second hash value, the first authentication information can be generated based on the second hash value and the external padding value. The specific implementation method will be described in detail below, and will not be specifically limited here.

[0083] The method provided in this embodiment generates a fixed-length first hash value through hashing, and then XORs it with the internal padding value. Even if an attacker intercepts the intermediate result, they will not be able to recover the original key, thus improving the security of vehicle charging.

[0084] In one possible implementation, step S3011B4 above includes steps S3011B41 to S3011B43.

[0085] In step S3011B41, the first hash value and the external padding value are XORed bitwise to obtain the second XOR result.

[0086] The outer padding value is used to perform a second XOR operation on the first hash value. Bitwise XOR indicates that each bit of two binary numbers is compared independently, with 0 for the same bit and 1 for different bits. In this embodiment, each bit of the first hash value and the outer padding value are compared independently, with 0 for the same bit and 1 for different bits, to obtain the second bitwise XOR result.

[0087] In step S3011B42, the second bitwise XOR result is concatenated with the second hash value to obtain the second concatenation result.

[0088] After obtaining the second bitwise XOR result, the second bitwise XOR result can be concatenated with the second hash value to obtain the second concatenated result.

[0089] As an example, the second bitwise XOR result can be chained sequentially with the second hash value to obtain the second concatenation result.

[0090] In step S3011B43, the hash value of the second concatenation result is generated, and the hash value of the second concatenation result is used as the first authentication information.

[0091] After obtaining the second concatenation result, the hash value of the second concatenation result can be generated.

[0092] As an example, the first hash value is XORed with the outer padding value `opad`, and the resulting second XOR is concatenated with the second hash value `inner_H`. Then, a hash function is used to calculate the hash value of the second concatenated result. The hash value of the second concatenated result is HMAC, where HMAC = H((KeyPre⊕opad)||inner_H).

[0093] The method provided in this embodiment generates a fixed-length first hash value, then XORs it with an inner padding value, and finally XORs the first hash value with an outer padding value. Even if an attacker intercepts the intermediate results, they cannot recover the original key, thus improving the security of vehicle charging.

[0094] refer to Figure 4 This illustration shows a schematic diagram of a computer device provided in an embodiment of this application. The computer device includes one or more processors 10, a memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system).

[0095] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0096] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.

[0097] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0098] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0099] The computer device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means.

[0100] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.

[0101] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the methods shown in the above embodiments are implemented.

[0102] A portion of the embodiments of this application can be applied as a computer program product, such as computer program instructions. When executed by a computer, these instructions, through the operation of the computer, can invoke or provide the methods and / or technical solutions according to the present invention. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Accordingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0103] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A vehicle charging method, characterized in that, The method includes: The charging pile sends an authentication request to the vehicle, so that the vehicle generates first authentication information based on the vehicle identifier and the first key, and sends the first authentication information to the charging pile. The charging pile sends the first authentication information to the server so that the server can find the second key corresponding to the vehicle identifier and generate the second authentication information based on the vehicle identifier and the second key. The charging pile responds to receiving the information sent by the server instructing the vehicle to pass authentication, and charges the vehicle. The information instructing the vehicle to pass authentication is sent because the server determines that the authentication pass conditions are met. The authentication pass conditions include: the first authentication information and the second authentication information are consistent.

2. The method according to claim 1, characterized in that, The authentication request includes: time parameters; and the generation of first authentication information based on the vehicle identifier and the first key, including: The first authentication information is generated based on the vehicle identifier, the first key, and the time parameter.

3. The method according to claim 2, characterized in that, Based on the vehicle identifier, the first key, and the time parameter, the first authentication information is generated, including: Generate the first hash value of the first key; The first authentication information is generated based on the vehicle identifier, the first hash value, and the time parameter.

4. The method according to claim 3, characterized in that, Based on the vehicle identifier, the first hash value, and the time parameter, the first authentication information is generated, including: Perform a bitwise XOR operation between the first hash value and the internal padding value to obtain the first bitwise XOR result; The first bitwise XOR result, vehicle identifier, and time parameter are concatenated to obtain the first concatenation result; Generate the second hash value of the first concatenation result; The first authentication information is generated based on the second hash value.

5. The method according to claim 4, characterized in that, Based on the second hash value, the first authentication information is generated as follows: Perform a bitwise XOR operation between the first hash value and the outer padding value to obtain the second bitwise XOR result; The second bitwise XOR result is concatenated with the second hash value to obtain the second concatenated result; Generate the hash value of the second concatenation result, and use the hash value of the second concatenation result as the first authentication information.

6. The method according to any one of claims 2-5, characterized in that, The authentication pass conditions also include: the time difference between the time indicated by the time parameter and the current time is less than the duration threshold.

7. A vehicle charging system, characterized in that, The system includes: charging piles, server, and vehicle; Charging piles are used to send authentication requests to the vehicle. The vehicle terminal is used to receive the authentication request, generate first authentication information based on the vehicle identifier and the first key, and send the first authentication information to the charging pile. The charging pile is further used to send the first authentication information to the server; The server is used to find the second key corresponding to the vehicle identifier, and to generate second authentication information based on the vehicle identifier and the second key; The charging pile is further configured to charge the vehicle in response to receiving information from the server instructing the vehicle to pass authentication, wherein the information instructing the vehicle to pass authentication is sent because the server determines that the authentication pass conditions are met, and the authentication pass conditions include: the first authentication information and the second authentication information are consistent.

8. A computer device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the method of any one of claims 1 to 6.