Charging pile authorization and unlocking method and charging pile authorization method
By receiving authorization notifications from the charging station server, the target vehicle establishes an automatic unlocking mechanism with the authorized charging station, solving the cumbersome problem caused by manually unlocking home charging stations, ensuring electricity safety and rights, and improving charging efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU XIAOPENG MOTORS TECH CO LTD
- Filing Date
- 2024-12-25
- Publication Date
- 2026-04-17
AI Technical Summary
Home charging stations require manual unlocking during normal vehicle use, which makes charging cumbersome, affects user experience, and poses risks to electrical safety and rights.
By receiving authorization notifications from the charging station server, the system determines and saves the authorization relationship and communication key between the target vehicle and the authorized charging station, automatically unlocks the charging station, and starts charging. Bluetooth communication and authentication mechanisms are used to ensure the accuracy and security of the authorization relationship.
It achieves automatic unlocking of charging stations while ensuring users' electricity safety and rights, improving charging efficiency and user experience, and avoiding the inconvenience of manual operation.
Smart Images

Figure CN119810971B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of charging pile technology, specifically to a charging pile authorization and unlocking method and a charging pile authorization method. Background Technology
[0002] With the increasing popularity of electric vehicles, home charging stations have become widely used as a convenient charging device. Home charging stations are typically connected to the home power grid to provide electricity to vehicles. However, due to their convenience, without security measures, they can easily be used illegally by others, leading to electricity theft. To prevent this, home charging stations are generally equipped with electronic anti-theft locks.
[0003] Electronic anti-theft locks use a specific control mechanism to unlock only when certain conditions are met (such as vehicle owner authentication), allowing power output for charging, effectively protecting users' electrical safety and rights.
[0004] However, current home charging station electronic anti-theft locks typically require manual unlocking during normal vehicle use. This manual unlocking method presents numerous inconveniences. For example, each time a car owner uses a home charging station, they need to walk to the station and unlock it by pressing a physical button or using a mobile application. In practice, many car owners forget to unlock the station due to rushing, carelessness, or habit. Once this is forgotten, the vehicle cannot charge properly, causing significant inconvenience and severely impacting the user's charging experience.
[0005] Therefore, how to solve the problem of cumbersome charging at home charging stations while ensuring users' electricity safety and rights has become an urgent issue. Summary of the Invention
[0006] In view of this, the present invention provides a charging pile authorization and unlocking method and a charging pile authorization method to solve the problem of cumbersome charging of home charging piles while ensuring the electricity safety and rights of users.
[0007] In a first aspect, the present invention provides a method for authorizing and unlocking charging piles, applied to a target vehicle, the method comprising:
[0008] The system receives an authorization notification from the charging pile server. The authorization notification includes the charging pile identification information and communication key corresponding to the authorized charging pile to be authorized. The authorization notification is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging pile.
[0009] Based on the authorization notification, determine and save the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile, and send confirmation information to the charging pile server;
[0010] Based on the communication key corresponding to the authorized charging station, the authorized charging station is unlocked, and the target vehicle is charged using the authorized charging station.
[0011] The charging pile authorization and unlocking method provided in this application receives an authorization notification from a charging pile server. Based on the authorization notification, it determines and saves the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile, ensuring the accuracy of the determined and saved authorization relationship. Then, it sends confirmation information to the charging pile server, enabling the charging pile server to confirm that the authorization relationship between the target vehicle and the authorized charging pile is saved in the target vehicle. Finally, the target vehicle unlocks the authorized charging pile based on the communication key corresponding to the authorized charging pile and uses the authorized charging pile to charge the target vehicle. This prevents the authorized charging pile from being unlocked by other vehicles, thus avoiding any compromise to the user's electricity safety and rights. Furthermore, the above method does not require manual unlocking by the user. Therefore, the above method solves the problem of cumbersome home charging pile charging while ensuring the user's electricity safety and rights.
[0012] In one optional implementation, based on the authorization notification, the authorization relationship between the target vehicle and the authorized charging station, as well as the communication key corresponding to the authorized charging station, are determined and stored, and confirmation information is sent to the charging station server, including:
[0013] The authorization notification is decoded to obtain a decoded notification.
[0014] Generate a decryption key based on the charging pile identification information corresponding to the authorized charging pile;
[0015] Based on the decryption key and the preset decryption algorithm, the decoding notification is decrypted to determine the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile.
[0016] Save the authorization relationship between the target vehicle and the authorized charging station, as well as the communication key corresponding to the authorized charging station.
[0017] The charging pile authorization and unlocking method provided in this application decodes the authorization notification to obtain a decoded notification, ensuring the accuracy of the decoded notification. Then, based on the charging pile identification information corresponding to the authorized charging pile, a decryption key is generated, ensuring the accuracy of the generated decryption key. Based on the decryption key and a preset decryption algorithm, the decoded notification can be decrypted to determine the authorization relationship between the target vehicle and the authorized charging pile, ensuring the accuracy of determining the authorization relationship between the target vehicle and the authorized charging pile. Then, the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile, are saved. This allows the target vehicle to unlock the authorized charging pile based on the saved authorization relationship between the target vehicle and the authorized charging pile, and to use the authorized charging pile to charge the target vehicle. Thus, while ensuring the user's electricity safety and rights, the method solves the problem of cumbersome home charging pile charging.
[0018] In one optional implementation, the authorized charging station is unlocked based on the communication key corresponding to the authorized charging station, and the target vehicle is charged using the authorized charging station, including:
[0019] Monitor whether a charging gun is inserted into the charging port of the target vehicle;
[0020] If a charging gun is inserted into the charging port, monitor whether the target vehicle is currently charging.
[0021] If the target vehicle is not currently charging, then based on the authorization relationship between the target vehicle and the authorized charging station, find an authorized charging station that has an authorization relationship with the target vehicle;
[0022] Based on the communication key corresponding to the authorized charging pile, the authorized charging pile is unlocked, and the target vehicle is charged using the authorized charging pile, and a charging curve is generated in real time.
[0023] The charging pile authorization and unlocking method provided in this application monitors whether a charging gun is inserted into the charging port of the target vehicle. If a charging gun is inserted, it monitors whether the target vehicle is currently charging. If the target vehicle is not currently charging, it searches for authorized charging piles with an authorization relationship with the target vehicle based on the authorization relationship between the target vehicle and the authorized charging pile, ensuring the accuracy of the found authorized charging piles. Based on the communication key corresponding to the authorized charging pile, the authorized charging pile is unlocked, and the target vehicle is charged using the authorized charging pile, generating a charging curve in real time. This eliminates the need for the user to manually unlock the authorized charging pile, thus improving the efficiency of charging based on the charging pile and enhancing the intelligent charging experience.
[0024] In one optional implementation, based on the authorization relationship between the target vehicle and the authorized charging station, the process of finding authorized charging stations with an authorization relationship to the target vehicle includes:
[0025] Based on the authorization relationship between the target vehicle and the authorized charging station, obtain the charging station identification information of the authorized charging station that has an authorization relationship with the target vehicle;
[0026] Based on Bluetooth communication, establish a communication connection with each candidate charging station within a preset range of the target vehicle;
[0027] Obtain the candidate identifier information for each candidate charging station;
[0028] The charging pile identification information of the authorized charging piles is compared with the candidate identification information of each candidate charging pile;
[0029] Based on the comparison results, authorized charging stations were selected from the candidate charging stations.
[0030] The charging pile authorization and unlocking method provided in this application embodiment obtains the charging pile identification information of authorized charging piles that have an authorization relationship with the target vehicle based on the authorization relationship between the target vehicle and the authorized charging pile; establishes a communication connection with each candidate charging pile within a preset range of the target vehicle based on Bluetooth communication; obtains the candidate identification information of each candidate charging pile; compares the charging pile identification information of the authorized charging pile with the candidate identification information of each candidate charging pile; thereby, based on the comparison results, the authorized charging pile that has an authorization relationship with the target vehicle can be determined from each candidate charging pile, ensuring the accuracy and efficiency of the determined authorized charging pile.
[0031] In one optional implementation, the number of authorized charging stations is at least one. The authorized charging stations are unlocked based on the communication key corresponding to them, and the target vehicle is charged using the authorized charging stations, including:
[0032] Send authentication requests to each authorized charging station, and designate the authorized charging station that sends the authentication result to the target vehicle as the backup charging station;
[0033] Based on the communication connection with each backup charging pile, obtain the current status of each backup charging pile;
[0034] Identify the standby charging station that is currently idle as the target charging station;
[0035] Based on the communication key corresponding to the authorized charging pile, an unlocking command is sent to the target charging pile to unlock it;
[0036] After the target charging station is unlocked, the target battery in the target vehicle is charged based on the target charging station.
[0037] The charging pile authorization and unlocking method provided in this application sends authentication requests to each authorized charging pile, and identifies the authorized charging pile that sends authentication results to the target vehicle as a backup charging pile. This ensures that the target vehicle is connected to a legitimate authorized charging pile, and that the vehicle user has the authority to use that authorized charging pile. Based on the communication connection with each backup charging pile, the current status of each backup charging pile is obtained, ensuring the accuracy of the obtained current status of the authorized charging pile. Backup charging piles currently in an idle state are identified as target charging piles, ensuring that the identified target charging piles can charge the target vehicle. Based on the communication key corresponding to the authorized charging pile, an unlocking command is sent to the target charging pile to unlock it, eliminating the need for manual unlocking. After the target charging pile is unlocked, the target battery in the target vehicle is charged using the target charging pile, thereby improving the charging efficiency of the target vehicle.
[0038] In a second aspect, the present invention provides a charging pile authorization method, applied to a charging pile server in the first aspect or any corresponding embodiment described above, the method comprising:
[0039] The system receives an authorization request sent by the terminal device corresponding to the target vehicle. The authorization request includes the terminal identification information of the terminal device, the vehicle identification information of the target vehicle, and the charging pile identification information of the authorized charging pile that has an authorization relationship with the target vehicle. The authorization request is used to request authorization of the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device.
[0040] Monitor whether the authorized charging pile is in an active state. The active state indicates that the authorized charging pile is in an authorized state.
[0041] If the authorized charging station is active, an authorization notification is sent to the target vehicle. The authorization notification includes the charging station identification information corresponding to the authorized charging station. The authorization notification is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging station.
[0042] Receive confirmation information sent by the target vehicle, and store the authorization relationship and authorization status between the target vehicle, authorized charging pile and terminal equipment;
[0043] The authorization relationship and authorization status between the target vehicle, authorized charging pile, and terminal equipment are simultaneously sent to the terminal equipment.
[0044] The charging pile authorization method provided in this application embodiment receives an authorization request sent by a terminal device corresponding to a target vehicle. Then, it monitors whether the authorized charging pile is active. If the authorized charging pile is active, an authorization notification is sent to the target vehicle. This allows the target vehicle to determine and save the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile. Furthermore, the target vehicle can unlock the authorized charging pile based on the authorization relationship between the target vehicle and the authorized charging pile, and use the authorized charging pile to charge the target vehicle. Then, it receives confirmation information sent by the target vehicle and stores the authorization relationship and authorization status between the target vehicle, the authorized charging pile, and the terminal device; it also synchronously sends the authorization relationship and authorization status between the target vehicle, the authorized charging pile, and the terminal device to the terminal device. This allows the terminal device to save and display the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device. Therefore, based on the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device, the authorized charging pile can be unlocked, and the target vehicle can be charged using the authorized charging pile. The above method does not require manual unlocking by the user. Therefore, the above method solves the problem of cumbersome charging at home charging stations while ensuring users' electricity safety and rights.
[0045] In one optional implementation, if the authorized charging station is active, an authorization notification is sent to the target vehicle, including:
[0046] If the authorized charging pile is active, a verification request is sent to the user server. The verification request includes terminal identification information and vehicle identification information. The verification request is used to request the user server to verify the binding relationship between the terminal device and the target vehicle.
[0047] Receive the verification result sent by the user server;
[0048] If the verification result indicates that there is a binding relationship between the terminal device and the target vehicle, then an authorization notification is sent to the target vehicle according to the authorization request.
[0049] The charging pile authorization method provided in this application embodiment, if the authorized charging pile is in an active state, sends a verification request to the user server, thereby verifying the binding relationship between the terminal device and the target vehicle, and receiving the verification result sent by the user server; if the verification result indicates that there is a binding relationship between the terminal device and the target vehicle, then according to the authorization request, an authorization notification is sent to the target vehicle, thereby ensuring the accuracy and security of sending the authorization notification to the target vehicle.
[0050] In one alternative implementation, before monitoring whether the authorized charging station is active, the method further includes:
[0051] Detect whether there is an authorization relationship between the target vehicle, authorized charging pile, and terminal equipment;
[0052] If an authorization relationship exists between the target vehicle, the authorized charging station, and the terminal device, the authorization relationship and authorization status between the target vehicle, the authorized charging station, and the terminal device are returned to the terminal device.
[0053] If there is no authorization relationship between the target vehicle, authorized charging station, and terminal equipment, then monitor whether the authorized charging station is in an active state.
[0054] The charging pile authorization method provided in this application detects whether an authorization relationship exists between the target vehicle, the authorized charging pile, and the terminal device. If such an authorization relationship exists, the method returns the authorization relationship and authorization status to the terminal device, eliminating the need to re-execute the operation of binding the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device. If no authorization relationship exists, the method monitors whether the authorized charging pile is active and then continues to execute the operation of binding the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device. This improves efficiency.
[0055] In one alternative implementation, the method further includes:
[0056] Obtain a processing request sent by the terminal device; the processing request includes at least one of the following: terminal identification information of the terminal device, vehicle identification information of other vehicles, and charging pile identification information of the charging pile to be processed;
[0057] The processing request is identified and processed based on the authorization relationship and authorization status between other vehicles, charging piles to be processed, and terminal devices.
[0058] The charging pile authorization method provided in this application embodiment obtains the processing request sent by the terminal device; identifies the processing request; and processes the processing request according to the authorization relationship and authorization status between the target vehicle, the charging pile to be processed, and the terminal device, thereby ensuring the accuracy of processing the processing request.
[0059] Thirdly, the present invention provides a target vehicle, including: an electronic device and a vehicle body, the electronic device including a first memory and a first processor, the first memory and the first processor being communicatively connected to each other, the first memory storing first computer instructions, the first processor executing the charging pile authorization and unlocking method of the first aspect or any corresponding embodiment thereof by executing the first computer instructions.
[0060] Fourthly, the present invention provides a charging pile server, comprising: a second memory and a second processor, wherein the second memory and the second processor are communicatively connected to each other, the second memory stores second computer instructions, and the second processor executes the charging pile authorization method of the second aspect or any corresponding embodiment thereof by executing the second computer instructions. Attached Figure Description
[0061] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in 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 the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0062] Figure 1 This is a flowchart illustrating the charging pile authorization and unlocking method according to an embodiment of the present invention;
[0063] Figure 2 This is a flowchart illustrating another charging pile authorization and unlocking method according to an embodiment of the present invention;
[0064] Figure 3 This is a schematic diagram of the charging process according to an embodiment of the present invention;
[0065] Figure 4 This is a schematic diagram of the charging end according to an embodiment of the present invention;
[0066] Figure 5 This is a flowchart illustrating another charging pile authorization and unlocking method according to an embodiment of the present invention;
[0067] Figure 6 This is a flowchart of "authorization and deauthorization" and "authorization status synchronization" according to an embodiment of the present invention;
[0068] Figure 7 This is a flowchart illustrating another method for authorizing and unlocking a charging pile according to an embodiment of the present invention;
[0069] Figure 8 This is a flowchart illustrating the process of processing a request according to an embodiment of the present invention;
[0070] Figure 9 This is an operation flowchart of a charging system involving multiple components according to an embodiment of the present invention;
[0071] Figure 10 This is a structural block diagram of a charging pile authorization and unlocking device according to an embodiment of the present invention;
[0072] Figure 11This is a structural block diagram of a charging pile authorization device according to an embodiment of the present invention;
[0073] Figure 12 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0074] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0075] With the increasing popularity of electric vehicles, home charging stations have become widely used as a convenient charging device. Home charging stations are typically connected to the home power grid to provide electricity to vehicles. However, due to their convenience, without security measures, they can easily be used illegally by others, leading to electricity theft. To prevent this, home charging stations are generally equipped with electronic anti-theft locks.
[0076] Electronic anti-theft locks use a specific control mechanism to unlock only when certain conditions are met (such as vehicle owner authentication), allowing power output for charging, effectively protecting users' electrical safety and rights.
[0077] However, current home charging station electronic anti-theft locks typically require manual unlocking during normal vehicle use. This manual unlocking method presents numerous inconveniences. For example, each time a car owner uses a home charging station, they need to walk to the station and unlock it by pressing a physical button or using a mobile application. In practice, many car owners forget to unlock the station due to rushing, carelessness, or habit. Once this is forgotten, the vehicle cannot charge properly, causing significant inconvenience and severely impacting the user's charging experience.
[0078] Therefore, how to solve the problem of cumbersome charging at home charging stations while ensuring users' electricity safety and rights has become an urgent issue.
[0079] It should be noted that the charging pile authorization and unlocking method provided in this application embodiment can be executed by a charging pile authorization and unlocking device. This device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. The electronic device can be a control device in the target vehicle. In the following method embodiments, the execution subject is always the target vehicle.
[0080] According to an embodiment of the present invention, a method for authorizing and unlocking a charging pile is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0081] This embodiment provides a charging pile authorization and unlocking method, which can be used for the aforementioned target vehicle. Figure 1 This is a flowchart of the charging pile authorization and unlocking method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0082] Step S101: Receive the authorization notification sent by the charging pile server.
[0083] The authorization notice includes the charging pile identification information and communication key corresponding to the authorized charging pile to be authorized; the authorization notice is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging pile.
[0084] Specifically, the charging pile server can receive authorization requests sent by the terminal device corresponding to the target vehicle. The authorization request includes the terminal identification information of the terminal device, the vehicle identification information of the target vehicle, and the charging pile identification information of the authorized charging pile that has an authorization relationship with the target vehicle; the authorization request is used to request authorization of the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device.
[0085] Then, the charging station server monitors whether the authorized charging station is active. The active status indicates that the authorized charging station is in an authorized state. If the authorized charging station is active, the charging station server establishes a communication connection with the target vehicle based on the vehicle identification information corresponding to the target vehicle, and then sends an authorization notification to the target vehicle based on the communication connection. This allows the target vehicle to receive the authorization notification sent by the charging station server.
[0086] Step S102: Based on the authorization notification, determine and save the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile, and send confirmation information to the charging pile server.
[0087] Specifically, after receiving the authorization notification from the charging station server, the target vehicle identifies the notification, determines the authorization relationship between the target vehicle and the authorized charging station, and saves this relationship. Then, based on the communication connection with the charging station server, the target vehicle sends a confirmation message to the charging station server, enabling the charging station server to confirm that the target vehicle has saved the authorization relationship with the authorized charging station.
[0088] This step will be explained in detail below.
[0089] Step S103: Based on the communication key corresponding to the authorized charging pile, unlock the authorized charging pile and use the authorized charging pile to charge the target vehicle.
[0090] Specifically, when the target vehicle needs to be charged, the target vehicle can unlock the authorized charging station based on the authorization relationship between the target vehicle and the authorized charging station, and use the communication key corresponding to the authorized charging station to charge the target vehicle.
[0091] This step will be explained in detail below.
[0092] The charging pile authorization and unlocking method provided in this application receives an authorization notification from a charging pile server. Based on the authorization notification, it determines and saves the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile, ensuring the accuracy of the determined and saved authorization relationship. Then, it sends confirmation information to the charging pile server, enabling the charging pile server to confirm that the authorization relationship between the target vehicle and the authorized charging pile is saved in the target vehicle. Finally, the target vehicle unlocks the authorized charging pile based on the communication key corresponding to the authorized charging pile and uses the authorized charging pile to charge the target vehicle. This prevents the authorized charging pile from being unlocked by other vehicles, thus avoiding any compromise to the user's electricity safety and rights. Furthermore, the above method does not require manual unlocking by the user. Therefore, the above method solves the problem of cumbersome home charging pile charging while ensuring the user's electricity safety and rights.
[0093] This embodiment provides a charging pile authorization and unlocking method, which can be used for the aforementioned target vehicle. Figure 2 This is a flowchart of the charging pile authorization and unlocking method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0094] Step S201: Receive the authorization notification sent by the charging pile server.
[0095] The authorization notice includes the charging pile identification information and communication key corresponding to the authorized charging pile to be authorized; the authorization notice is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging pile.
[0096] Please refer to the above description of step S101 for details on this step, which will not be repeated here.
[0097] Step S202: Based on the authorization notification, determine and save the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile, and send confirmation information to the charging pile server.
[0098] Specifically, step S202 above may include the following steps:
[0099] Step S2021: Decode the authorization notification to obtain a decoded notification.
[0100] Specifically, after the target vehicle receives the authorization notification sent by the charging pile server, it can perform a Base64 decode operation on the authorization notification.
[0101] Base64 decode is the reverse process of Base64 encode. Its purpose is to restore the ciphertext obtained after encryption on the charging pile server, so that the communication key can be decrypted and restored in the future.
[0102] Step S2022: Generate a decryption key based on the charging pile identification information corresponding to the authorized charging pile.
[0103] Specifically, when the charging station server sends an authorization notification to the target vehicle, it also sends the encrypted version of the authorization notification to the target vehicle.
[0104] The target vehicle identifies the encryption method of the authorization notification and determines the generation process of the encryption key based on the charging pile identification information corresponding to the authorized charging pile. Then, based on the charging pile identification information corresponding to the authorized charging pile and the reverse process of the encryption key generation, a decryption key is generated.
[0105] Step S2023: Based on the decryption key and the preset decryption algorithm, the decoding notification is decrypted to determine the authorization relationship between the target vehicle and the authorized charging pile and the communication key corresponding to the authorized charging pile.
[0106] Specifically, the electronic device can decrypt the decoding notification based on the decryption key and the preset decryption algorithm to determine the authorization relationship between the target vehicle and the authorized charging pile, the communication key corresponding to the authorized charging pile, the charging pile identification information corresponding to the authorized charging pile, and the Bluetooth communication key of the authorized charging pile.
[0107] The preset decryption algorithm can be a symmetric encryption algorithm, such as AES. Using the decryption key as input, it performs block-by-block decryption calculations on the ciphertext data in the decoding notification according to its defined block cipher mode (such as CBC, ECB, etc.), gradually restoring the ciphertext to the original plaintext information. Alternatively, it can be an asymmetric encryption algorithm, such as RSA. Using the corresponding private key (as the decryption key), it performs decryption operations on the ciphertext in the encoded notification according to its mathematical operation rules, recovering the original message content through modular exponentiation and other related mathematical operations.
[0108] For example, the target vehicle can decrypt the decoding notification using the decryption key, employing the AES-CBC encryption algorithm and zero-padding (a method of padding data to ensure the data length meets the encryption algorithm's requirements). This decryption process recovers the authorized charging station's Bluetooth communication key. Finally, the charging station's identification information and Bluetooth communication key are stored locally on the target vehicle for future use in relevant scenarios, such as enabling secure Bluetooth communication between the target vehicle and the authorized charging station.
[0109] Step S2024: Save the authorization relationship between the target vehicle and the authorized charging station, as well as the communication key corresponding to the authorized charging station.
[0110] Specifically, the target vehicle stores the authorization relationship between the target vehicle and the authorized charging station, the charging station identification information corresponding to the authorized charging station, and the Bluetooth communication key of the authorized charging station locally on the target vehicle.
[0111] Step S203: Based on the communication key corresponding to the authorized charging pile, unlock the authorized charging pile and use the authorized charging pile to charge the target vehicle.
[0112] Specifically, step S203 above may include the following steps:
[0113] Step S2031: Monitor whether a charging gun is inserted into the charging port of the target vehicle.
[0114] Optionally, the target vehicle can receive an electrical signal sent by the mechanical switch of the charging port, and then monitor whether a charging gun is inserted into the charging port of the target vehicle based on the electrical signal sent by the mechanical switch of the charging port.
[0115] It should be noted that a simple mechanical switch can be installed inside the charging port. When the charging gun is inserted into the charging port, it will push or trigger this mechanical switch. The change in the state of the mechanical switch (from open to closed) will generate an electrical signal.
[0116] Optionally, the target vehicle can detect the induced current at the charging port and monitor whether a charging gun is inserted into the charging port based on the induced current.
[0117] It should be noted that both the charging gun and the charging port can be equipped with electromagnetic induction elements. When the charging gun is inserted into the charging port, the proximity of the electromagnetic induction element causes a change in the magnetic or electric field. According to the law of electromagnetic induction, this generates an induced current. The electronic equipment of the target vehicle can detect this induced current, thus determining that the charging gun has been inserted. The advantage of this method is that there are no mechanical contact parts, reducing the possibility of mechanical wear and malfunction.
[0118] Optionally, the target vehicle can be monitored for the presence of a charging gun inserted into its charging port based on photoelectric signals.
[0119] Specifically, a light transmitter and a light receiver are placed inside the charging port, and their light paths are blocked when the charging gun is inserted. When the light path is blocked, the light receiver cannot receive the light signal, which will cause a signal change.
[0120] Step S2032: If a charging gun is inserted into the charging port, monitor whether the target vehicle is currently charging.
[0121] Optionally, if a charging gun is inserted into the charging port, the target vehicle can use a current sensor to measure the current flowing through the circuit in real time. When the target vehicle is charging, a certain amount of charging current will flow from the charging station to the target battery of the target vehicle.
[0122] Optionally, if a charging gun is inserted into the charging port, the target vehicle can monitor the terminal voltage of the target battery using voltage sensors connected to both ends of the target battery. During charging, the voltage of the target battery will gradually increase. Based on the charging characteristic curve of the target battery, when the voltage of the parent battery is within the voltage range corresponding to the charging stage, it can be determined that the target vehicle is being charged.
[0123] Step S2033: If the target vehicle is not currently charging, then based on the authorization relationship between the target vehicle and the authorized charging station, find an authorized charging station that has an authorization relationship with the target vehicle.
[0124] Specifically, step S2033 above, "based on the authorization relationship between the target vehicle and the authorized charging station, find authorized charging stations that have an authorization relationship with the target vehicle," may include the following steps:
[0125] Step a1: Based on the authorization relationship between the target vehicle and the authorized charging pile, obtain the charging pile identification information of the authorized charging pile that has an authorization relationship with the target vehicle.
[0126] Specifically, if the target vehicle is not currently charging, the system searches for authorized charging stations with an authorization relationship with the target vehicle in the storage space, based on the authorization relationship between the target vehicle and the authorized charging station, and retrieves the charging station identification information.
[0127] Step a2: Establish a communication connection with each candidate charging station within the preset range of the target vehicle based on Bluetooth communication.
[0128] Specifically, the target vehicle can start scanning for nearby candidate charging stations via the IoT Bluetooth module, thereby establishing a communication connection with each candidate charging station within the preset range of the target vehicle based on Bluetooth communication.
[0129] Step a3: Obtain the candidate identifier information for each candidate charging pile.
[0130] Specifically, the target vehicle can obtain the candidate identification information of each candidate charging station based on the communication connection between the target vehicle and each candidate charging station.
[0131] Step a4: Compare the charging pile identification information of the authorized charging pile with the candidate identification information of each candidate charging pile.
[0132] Specifically, the target vehicle compares the charging pile identification information of the authorized charging pile with the candidate identification information of each candidate charging pile.
[0133] Step a5: Based on the comparison results, determine the authorized charging piles from each candidate charging pile.
[0134] Specifically, if the charging pile identification information of an authorized charging pile is consistent with the candidate identification information of a candidate charging pile, then the candidate charging pile whose candidate identification information is consistent with the charging pile identification information of an authorized charging pile is determined as an authorized charging pile.
[0135] Step S2034: Based on the communication key corresponding to the authorized charging pile, unlock the authorized charging pile, use the authorized charging pile to charge the target vehicle, and generate a charging curve in real time.
[0136] Specifically, the number of authorized charging piles is at least one, and the step S2034 above, "unlocking the authorized charging pile based on the communication key corresponding to the authorized charging pile and charging the target vehicle using the authorized charging pile," may include the following steps:
[0137] Step b1: Send authentication requests to each authorized charging station and designate the authorized charging station that sends the authentication result to the target vehicle as the backup charging station.
[0138] Specifically, electronic devices can send authentication requests to authorized charging stations via Bluetooth communication. These authentication requests may include vehicle identification information corresponding to the target vehicle, as well as a charging request.
[0139] After receiving the authentication request from the target vehicle, the authorized charging station compares the vehicle identification information of the target vehicle with the vehicle identification information of the authorized vehicle stored in the charging station. If the vehicle identification information of the target vehicle matches the vehicle identification information of the authorized vehicle, the authentication result is sent to the target vehicle. The authentication result indicates that there is an authorization relationship between the target vehicle and the backup charging station, and the target vehicle can use the backup charging station for charging.
[0140] Then, the target vehicle will identify the authorized charging station that sent the authentication result to the target vehicle as the backup charging station.
[0141] Step b2: Based on the communication connection with each backup charging pile, obtain the current status of each backup charging pile.
[0142] Specifically, the target vehicle can obtain the current status of each backup charging station based on the communication connection with each backup charging station.
[0143] Step b3: Identify the standby charging station that is currently in an idle state as the target charging station.
[0144] Specifically, the target vehicle can identify a standby charging station that is currently idle as the target charging station.
[0145] Step b4: Based on the communication key corresponding to the authorized charging pile, send an unlocking command to the target charging pile to unlock the target charging pile.
[0146] Specifically, the target vehicle can retrieve the communication keys corresponding to each authorized charging station from the storage space, and then determine the communication key corresponding to the target charging station from the communication keys corresponding to each authorized charging station. The target vehicle then generates an unlocking command. This command may be a simple numeric code or a data structure with a specific format, containing information such as the charging station identification information and the unlocking request type.
[0147] Then, the target vehicle encrypts the unlocking command using the communication key corresponding to the target charging station. If the communication key is a symmetric key, the same key is used directly for encryption, such as using the Advanced Encryption Standard (AES) algorithm. For example, the unlocking command "UNLOCK-CHARGER-001" (assuming this is an unlocking command for charging station number 001) is encrypted using the AES algorithm and the communication key, resulting in an encrypted byte sequence.
[0148] The target vehicle then sends the encrypted unlock command to the target charging station via an established communication channel (such as Bluetooth or Wi-Fi). During transmission, additional information, such as a vehicle identification number (VIN), may be included to verify that the command originates from a legitimate vehicle.
[0149] For example, in the case of Bluetooth communication, the target vehicle will send the encrypted unlock command as a Bluetooth data packet to the Bluetooth receiving module of the target charging station.
[0150] After receiving the encrypted command from the target vehicle, the communication module of the target charging station will first verify the identity of the target vehicle (by verifying information such as the vehicle identification information of the target vehicle).
[0151] If the target vehicle is legitimate, the target charging station will use a pre-stored communication key (matching the key used by the vehicle) to decrypt the encrypted unlock command. Continuing with the example above, the target charging station uses the same AES algorithm and communication key to decrypt the received byte sequence and recover the original unlock command "UNLOCK-CHARGER-001".
[0152] After successfully decrypting and verifying the unlock command, the control unit of the target charging station will trigger its internal unlocking mechanism. This may involve operations such as controlling the relays of the electronic lock and activating the mechanical unlocking device.
[0153] For example, if the charging gun of the charging station is locked by an electromagnetic lock, after receiving and verifying the unlocking command, the control circuit of the charging station will cut off the power to the electromagnetic lock, so that the charging gun can be pulled out and the unlocking operation of the charging station can be completed.
[0154] Step b5: After the target charging station is unlocked, the target battery in the target vehicle is charged based on the target charging station.
[0155] Specifically, after the target charging station is unlocked, the target vehicle charges the target battery in the target vehicle using the target charging station.
[0156] During charging, the vehicle-side SDK in the target vehicle detects the charging progress and SOC changes. Every 1% change, it reports the vehicle-side charging information, including charging status, current battery level, remaining time, start time, starting range, current current, current voltage, and current power. A schematic diagram of the charging process is shown below. Figure 3 As shown.
[0157] Once charging is complete, the vehicle-side SDK in the target vehicle reports charging status information, including charging status, current battery level, end time, and current range, and stops monitoring charging information. After the charging gun is unplugged, the process stops and reports the unplugging event. A diagram illustrating the charging completion process is shown below. Figure 4 As shown.
[0158] The charging pile authorization and unlocking method provided in this application decodes the authorization notification to obtain a decoded notification, ensuring the accuracy of the decoded notification. Then, based on the charging pile identification information corresponding to the authorized charging pile, a decryption key is generated, ensuring the accuracy of the generated decryption key. Based on the decryption key and a preset decryption algorithm, the decoded notification can be decrypted to determine the authorization relationship between the target vehicle and the authorized charging pile, ensuring the accuracy of determining the authorization relationship between the target vehicle and the authorized charging pile. Then, the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile, are saved. This allows the target vehicle to unlock the authorized charging pile based on the saved authorization relationship between the target vehicle and the authorized charging pile, and to use the authorized charging pile to charge the target vehicle. Thus, while ensuring the user's electricity safety and rights, the method solves the problem of cumbersome home charging pile charging.
[0159] This embodiment provides a charging pile authorization method, applied to the aforementioned charging pile server. Figure 5 This is a flowchart of a charging pile authorization method according to an embodiment of the present invention, such as... Figure 5 As shown, the process includes the following steps:
[0160] Step S301: Receive the authorization request sent by the terminal device corresponding to the target vehicle.
[0161] The authorization request includes the terminal identification information corresponding to the terminal device, the vehicle identification information corresponding to the target vehicle, and the charging pile identification information corresponding to the authorized charging pile that has an authorization relationship with the target vehicle. The authorization request is used to request authorization of the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device.
[0162] Specifically, the charging pile server can receive authorization requests sent by terminal devices that are connected to the target vehicle.
[0163] Step S302: Detect whether there is an authorization relationship between the target vehicle, the authorized charging pile, and the terminal device.
[0164] Specifically, the charging pile server detects whether there is an authorization relationship between the target vehicle, the authorized charging pile, and the terminal device in the storage space of the charging pile server based on the terminal identification information corresponding to the terminal device, the vehicle identification information corresponding to the target vehicle, and the charging pile identification information corresponding to the authorized charging pile that has an authorization relationship with the target vehicle included in the authorization request.
[0165] Step S303: If an authorization relationship exists between the target vehicle, the authorized charging pile, and the terminal device, then return the authorization relationship and authorization status between the target vehicle, the authorized charging pile, and the terminal device to the terminal device.
[0166] Specifically, if the charging pile server's storage space contains the authorization relationship between the target vehicle, authorized charging pile, and terminal device, the charging pile server returns the authorization relationship and authorization status between the target vehicle, authorized charging pile, and terminal device to the terminal device.
[0167] The authorization status can be either "authorized" or "authorized".
[0168] Step S304: If there is no authorization relationship between the target vehicle, the authorized charging pile, and the terminal device, then monitor whether the authorized charging pile is in an active state.
[0169] The "activation status" indicates that the authorized charging pile is in an authorized state.
[0170] Specifically, if the charging pile server does not have an authorization relationship between the target vehicle, authorized charging pile, and terminal device in its storage space, the charging pile server will monitor whether the authorized charging pile is in an active state.
[0171] Step S305: If the authorized charging station is in an active state, an authorization notification is sent to the target vehicle.
[0172] The authorization notice includes the charging pile identification information corresponding to the authorized charging pile; the authorization notice is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging pile.
[0173] Specifically, if the authorized charging station is active, an authorization notification is sent to the target vehicle.
[0174] Specifically, step S305 above may include the following steps:
[0175] Step S3051: If the authorized charging pile is in an active state, a verification request is sent to the user server.
[0176] The verification request includes terminal identification information and vehicle identification information. The verification request is used to request the user server to verify the binding relationship between the terminal device and the target vehicle.
[0177] Specifically, if the authorized charging station is active, the charging station server can send a verification request to the user server corresponding to the target vehicle.
[0178] After receiving the verification request sent by the charging pile service, the user server searches for the binding relationship between the terminal device and the target vehicle in the user server's storage space.
[0179] If the user server finds the binding relationship between the terminal device and the target vehicle in the storage space, it determines that there is a binding relationship between the terminal device and the target vehicle.
[0180] If the user server does not find a binding relationship between the terminal device and the target vehicle in the storage space, it is determined that there is no binding relationship between the terminal device and the target vehicle.
[0181] Then, the user server sends the verification result to the charging pile server.
[0182] Step S3052: Receive the verification result sent by the user server.
[0183] Specifically, the charging pile server receives the verification result sent by the user server.
[0184] Step S3053: If the verification result indicates that there is a binding relationship between the terminal device and the target vehicle, then send an authorization notification to the target vehicle according to the authorization request.
[0185] Specifically, the charging pile server identifies the verification result sent by the user server. If the verification result indicates that there is a binding relationship between the terminal device and the target vehicle, the charging pile server sends an authorization notification to the target vehicle according to the authorization request.
[0186] For example, the encryption algorithm that a charging pile server can use is AES128-CBC (Cipher Block Chaining). In this mode, the encryption process blocks plaintext data into fixed data block sizes (here, 128 bits, or 16 bytes), and the encryption of each data block depends on the encryption result of the previous data block, which can effectively enhance the security of encryption.
[0187] The specific encryption process can be as follows:
[0188] The charging pile server sets the encryption key (represented by K) to a length of 16 bytes, and the communication key of the authorized charging pile (represented by M) is also required to be a length of 16 bytes. According to the calculation logic of the encryption algorithm, the ciphertext is generated by the formula "ciphertext = AES - CBC(K, M)".
[0189] For example, a specific example is given: when the encryption key is 0x5849414f50454e475849414f50454e47 (16 bytes, hexadecimal), and the plaintext (i.e., the communication key for the charging station) is 0x3132333435363738AA3D567834AEF5 (16 bytes, hexadecimal), the ciphertext obtained after encryption is 0x5c5c4f4e85a060a032e1e9b97a692ba4 (16 bytes, hexadecimal). At the same time, the initialization vector (iv) is specified as 0 here. The initialization vector is used in CBC mode for encrypting the first data block, increasing randomness.
[0190] The charging pile server generates an authorization notification based on the encrypted charging pile identification information corresponding to the unauthorized charging pile and the communication key, and sends it to the target vehicle.
[0191] Step S306: Receive confirmation information sent by the target vehicle and store the authorization relationship and authorization status between the target vehicle, the authorized charging pile and the terminal device.
[0192] Specifically, the charging pile server receives the confirmation information sent by the target vehicle and stores the authorization relationship and authorization status between the target vehicle, the authorized charging pile, and the terminal equipment.
[0193] In one optional implementation, if the charging pile server does not receive confirmation information from the target vehicle within a preset time period, it will send an authorization notification to the target vehicle again.
[0194] For example, after a timeout failure, the charging station server initiates a retry, and the target vehicle checks whether the authorized charging station has already been authorized. If the authorized charging station has not been authorized, it needs to re-request the charging station identification information corresponding to the authorized charging station; if the authorized charging station has been authorized, it directly reports the confirmation result (status).
[0195] Step S307: The authorization relationship and authorization status between the target vehicle, the authorized charging pile and the terminal device are synchronously sent to the terminal device.
[0196] Specifically, the charging pile server synchronously sends the authorization relationship and authorization status between the target vehicle, authorized charging pile, and terminal device to the terminal device.
[0197] The terminal device can be a mobile phone. For example, when a user opens the charging interface, it triggers a synchronization between the mobile app and the charging station server to send an authorization switch. Several situations will occur, requiring the mobile app to handle each one:
[0198] a. Once the mobile device successfully obtains the latest status, the mobile app will display the latest status and save it locally.
[0199] b. When the mobile app cannot obtain the latest status (possibly due to a 4G network malfunction), the mobile app needs to first check if the previous on / off status is saved locally.
[0200] b-1. If so, display the status to the user according to the previous status.
[0201] b-2. If not, display "Network error"; (When a page appears, the default is "On". If no page appears, display "Network error").
[0202] For example, such as Figure 6 The diagram shows the flowcharts for "Authorization and Deauthorization" and "Authorization Status Synchronization," involving multiple system components, including the terminal device, user server, charging platform, message center, vehicle-side Tbox, and motor SDK. The specific authorization and deauthorization processes are as follows:
[0203] Starting point: Begin with "changes in the relationship between people and vehicles". First, determine whether it is necessary to subscribe to the user server for changes in the relationship between people and vehicles.
[0204] step:
[0205] If necessary, subscribe to changes in the vehicle-human relationship (UDID+VIN+SSD) from the user server.
[0206] The user server returns the subscription result.
[0207] Based on the result, determine whether the subscription was successful. If successful, proceed to the next step; if unsuccessful, return the corresponding error message.
[0208] After successful subscription, the system will notify you of the VIN+ charging station information and download the authorization status information for the corresponding VIN.
[0209] Perform a verification. If the verification passes, confirm that the authorization or deauthorization operation was successful and send the result back.
[0210] If the verification fails, a timeout message will appear, and you will be prompted to re-verify.
[0211] Endpoint: Complete the authorization or deauthorization operation and provide feedback on the result.
[0212] The authorization status synchronization process includes the following:
[0213] Starting point: Starting from "Enabled status (UDID+VIN+SSD+Enabled status)", first determine whether there are records of human-vehicle relationship and authorization status locally.
[0214] step:
[0215] If it exists, check if the local records (UDID+VIN+SSD+On Status) exist.
[0216] If the record exists, return the corresponding result; if it does not exist, indicate that there is no record and the above process needs to be repeated.
[0217] If the record does not exist locally, request the vehicle-person relationship and authorization status record from the message center.
[0218] After the message center returns the record, it is verified.
[0219] If the verification passes, the authorization status is confirmed to be successfully synchronized, and the result is fed back; if the verification fails, a timeout message is displayed, and the verification is repeated.
[0220] Endpoint: Complete the authorization status synchronization operation and provide feedback on the result.
[0221] This flowchart is mainly used to handle vehicle-related authorization operations and synchronize authorization status, ensuring that information between various system components is accurate and updated in a timely manner.
[0222] The charging pile authorization and unlocking method provided in this application embodiment receives an authorization request sent by a terminal device corresponding to a target vehicle. It detects whether an authorization relationship exists between the target vehicle, the authorized charging pile, and the terminal device. If such a relationship exists, the method returns the authorization relationship and authorization status to the terminal device, eliminating the need to re-execute the binding operation between the target vehicle, the authorized charging pile, and the terminal device. If no authorization relationship exists, it monitors whether the authorized charging pile is active. If active, it sends a verification request to the user server to verify the binding relationship between the terminal device and the target vehicle, and receives the verification result from the user server. If the verification result indicates a binding relationship between the terminal device and the target vehicle, it sends an authorization notification to the target vehicle according to the authorization request, ensuring the accuracy and security of sending the authorization notification to the target vehicle.
[0223] This allows the target vehicle to determine and save the authorization relationship between itself and the authorized charging station, as well as the communication key corresponding to the authorized charging station. Then, based on this authorization relationship and the communication key, the target vehicle can unlock the authorized charging station and use it to charge. Next, the system receives confirmation information from the target vehicle and stores the authorization relationship and status between the target vehicle, the authorized charging station, and the terminal device; this relationship and status are then synchronously sent to the terminal device. This allows the terminal device to save and display the authorization relationship between the target vehicle, the authorized charging station, and the terminal device. Based on this relationship, the authorized charging station can be unlocked and used to charge the target vehicle. This method eliminates the need for manual unlocking by the user. Therefore, this method solves the problem of cumbersome home charging station charging while ensuring user electricity safety and rights.
[0224] In one optional embodiment of this application, such as Figure 7 As shown, the above-mentioned charging pile authorization and unlocking method may also include the following steps:
[0225] Step 401: Obtain the processing request sent by the terminal device.
[0226] The processing request includes at least one of the following: terminal identification information of the terminal device, vehicle identification information of other vehicles, and charging pile identification information of the charging pile to be processed.
[0227] Specifically, the charging pile server can receive processing requests sent by the terminal device based on the communication connection between the server and the terminal device.
[0228] The processing request can be any one of the following: binding the target vehicle corresponding to the terminal device to the charging pile to be processed (authorization required); unbinding the target vehicle corresponding to the terminal device to the charging pile to be processed (deauthorization required); adding a binding relationship between the terminal device and other vehicles (authorization required); deleting a binding relationship between the terminal device and other vehicles (deauthorization required); or requesting an authorization relationship between the terminal device and other vehicles and the charging pile to be processed (authorization required).
[0229] Step 402: Identify the processing request and process it based on the authorization relationship and authorization status between other vehicles, charging piles to be processed, and terminal devices.
[0230] Specifically, the charging pile server identifies the processing request and determines the authorization relationship and authorization status between other vehicles, charging piles to be processed, and terminal devices. Then, it processes the processing request based on the authorization relationship and authorization status between other vehicles, charging piles to be processed, and terminal devices.
[0231] For example, such as Figure 8 As shown, the processing request may include electric vehicle charging station binding (requires authorization), electric vehicle charging station unbinding (revoke authorization), adding a person-vehicle relationship (requires authorization), deleting a person-vehicle relationship (revoke authorization), or requesting authorization information (requires authorization).
[0232] First step in judgment:
[0233] The charging pile server first checks whether the terminal identification information of the terminal device included in the processing request corresponds to the owner of the charging pile to be processed.
[0234] If so, proceed to the next decision node.
[0235] If not, automatic authorization or deauthorization is not required.
[0236] Second step judgment:
[0237] The second judgment node is the charging pile server, which checks whether the authorization information corresponding to the terminal identification information of the terminal device exists.
[0238] If it exists, proceed to the next decision node.
[0239] If it does not exist, there is no need to perform automatic authorization or deauthorization.
[0240] Third step judgment:
[0241] The third judgment node is the charging pile server, which checks the authorization information to see if there is an authorization relationship and authorization status between the target vehicle and the charging pile to be processed.
[0242] If it exists, proceed to the next decision node.
[0243] If it does not exist, there is no need to perform automatic authorization or deauthorization.
[0244] Fourth step in judgment:
[0245] The fourth judgment node is the charging pile server checking whether there is a binding relationship between the terminal device and the target vehicle.
[0246] If it exists, proceed to the next decision node.
[0247] If it does not exist, there is no need to perform automatic authorization or deauthorization.
[0248] Fifth step: Judgment
[0249] The fifth judgment node is that the charging pile server checks whether there is an authorization relationship between the target vehicle and the charging pile to be processed.
[0250] If there is no authorization relationship between the target vehicle and the charging station to be processed, proceed to the "Authorize the target vehicle and the charging station to be processed" branch.
[0251] If there is an authorization barrier between the target vehicle and the charging station to be processed, proceed to the "Authorize or Deauthorize?" branch.
[0252] Authorization operation
[0253] If authorization is required, execute the "Authorization Execution Process", which is as described in the above implementation method, and then update the stored authorization information (UID+VIN+SSID+Authorization Status).
[0254] If authorization is not required, the authorization process will not be executed.
[0255] Deauthorization operation
[0256] If authorization needs to be revoked, execute the "Execute Revocation Process" and then update the stored authorization information (UID+VIN+SSID+Authorization Status).
[0257] If revocation of authorization is not required, the revocation process will not be executed.
[0258] The charging pile authorization and unlocking method provided in this application embodiment obtains the processing request sent by the terminal device; identifies the processing request; and processes the processing request according to the authorization relationship and authorization status between the target vehicle, the charging pile to be processed, and the terminal device, thereby ensuring the accuracy of processing the processing request.
[0259] To better illustrate the charging pile authorization and unlocking method and the charging pile authorization method provided in the embodiments of this application, the embodiments of this application provide an operation flow of a charging system involving multiple components, such as... Figure 9 As shown, the specific description is as follows:
[0260] User's mobile phone: The user's mobile phone communicates with the charging station via Bluetooth. The user's mobile phone can receive charging station status reports and control the unlocking and unlocking of the charging station.
[0261] Bluetooth charging stations: Bluetooth charging stations communicate with users' mobile phones via Bluetooth. They can receive unlock and release commands from users' mobile phones and report the status of the charging station to users' mobile phones.
[0262] Bluetooth key: The key communicates with the Bluetooth charging dock for slow charging operations. It can achieve automatic cover opening and linked unlocking functions.
[0263] IoT Bluetooth: This technology enables communication between the charging station and the charging dock for fast charging. It provides notifications when the charging port cover is opened and the charging dock is unlocked.
[0264] BCM (Body Control Module): The BCM communicates with the TMU (Telematics Management Unit) via CAN (Controller Area Network). It receives control commands from the TMU and controls relevant vehicle operations.
[0265] TMU (Remote Monitoring Unit): The TMU communicates with the BCM via CAN and with the TPCAN via UART (Universal Asynchronous Receiver / Transmitter). It is responsible for remotely monitoring and controlling the vehicle's operations.
[0266] TPCAN: TPCAN communicates with the TMU via UART and with the CDCU (Charging Control and Distribution Unit) via a status reporting service. It is responsible for reporting vehicle status information to the CDCU.
[0267] CDCU (Charging Control and Distribution Unit): The CDCU communicates with TPCAN via a status reporting service, and also communicates with the message center and vehicle control platform. It is responsible for controlling the charging operation and reporting charging status information to the message center and vehicle control platform.
[0268] Message Center and Vehicle Control Platform: The message center and vehicle control platform receive charging status information from the CDCU and communicate with the charging platform. They are responsible for remote authorization and deauthorization operations and synchronizing authorization status.
[0269] Charging Platform: The charging platform communicates with the message center and vehicle control platform, and is responsible for handling remote authorization and deauthorization operations. Through communication and collaboration among multiple components, the entire system enables users to remotely control and monitor charging piles, as well as the charging platform to authorize and synchronize the status of charging piles.
[0270] This embodiment also provides a charging pile authorization and unlocking device, which is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0271] This embodiment provides a charging pile authorization and unlocking device, applied to a target vehicle, such as... Figure 10 As shown, it includes:
[0272] The first receiving module 501 is used to receive an authorization notification sent by the charging pile server. The authorization notification includes the charging pile identification information corresponding to the authorized charging pile to be authorized and the communication key. The authorization notification is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging pile.
[0273] The determination module 502 is used to determine and save the authorization relationship between the target vehicle and the authorized charging pile and the communication key corresponding to the authorized charging pile based on the authorization notification, and send confirmation information to the charging pile server;
[0274] The unlocking module 503 is used to unlock the authorized charging pile based on the communication key corresponding to the authorized charging pile, and to charge the target vehicle using the authorized charging pile.
[0275] In some optional implementations, the determining module 502 is specifically used to decode the authorization notification to obtain a decoded notification; generate a decryption key based on the charging pile identification information corresponding to the authorized charging pile; decrypt the decoded notification based on the decryption key and a preset decryption algorithm to determine the authorization relationship between the target vehicle and the authorized charging pile and the communication key corresponding to the authorized charging pile; and save the authorization relationship between the target vehicle and the authorized charging pile and the communication key corresponding to the authorized charging pile.
[0276] In some optional implementations, the unlocking module 503 is specifically used to monitor whether a charging gun is inserted into the charging port of the target vehicle; if a charging gun is inserted into the charging port, it monitors whether the target vehicle is currently charging; if the target vehicle is not currently charging, it searches for an authorized charging station with an authorization relationship with the target vehicle based on the authorization relationship between the target vehicle and the authorized charging station; based on the communication key corresponding to the authorized charging station, it unlocks the authorized charging station, uses the authorized charging station to charge the target vehicle, and generates a charging curve in real time.
[0277] In some optional implementations, the unlocking module 503 is specifically used to: obtain the charging pile identification information of the authorized charging pile that has an authorization relationship with the target vehicle based on the authorization relationship between the target vehicle and the authorized charging pile; establish a communication connection with each candidate charging pile within a preset range of the target vehicle based on Bluetooth communication; obtain the candidate identification information of each candidate charging pile; compare the charging pile identification information of the authorized charging pile with the candidate identification information of each candidate charging pile; and determine the authorized charging pile from each candidate charging pile based on the comparison result.
[0278] In some optional implementations, the number of authorized charging piles is at least one. The unlocking module 503 is specifically used to send authentication requests to each authorized charging pile, identify the authorized charging pile that sends the authentication result to the target vehicle as a backup charging pile; obtain the current status of each backup charging pile based on the communication connection with each backup charging pile; identify the backup charging pile whose current status is idle as the target charging pile; send an unlocking command to the target charging pile based on the communication key corresponding to the authorized charging pile to unlock the target charging pile; and charge the target battery in the target vehicle based on the target charging pile after the target charging pile is unlocked.
[0279] This embodiment provides a charging pile authorization device, applied to the charging pile server of one of the above-described embodiments, such as... Figure 11 As shown, it includes:
[0280] The second receiving module 601 is used to receive an authorization request sent by the terminal device corresponding to the target vehicle. The authorization request includes terminal identification information corresponding to the terminal device, vehicle identification information corresponding to the target vehicle, and charging pile identification information corresponding to the authorized charging pile that has an authorization relationship with the target vehicle. The authorization request is used to request authorization of the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device.
[0281] Monitoring module 602 is used to monitor whether the authorized charging pile is in an active state. The active state indicates that the authorized charging pile is in an authorized state.
[0282] The first sending module 603 is used to send an authorization notification to the target vehicle if the authorized charging pile is in an active state; the authorization notification includes the charging pile identification information corresponding to the authorized charging pile; the authorization notification is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging pile;
[0283] The third receiving module 604 is used to receive the confirmation information sent by the target vehicle and store the authorization relationship and authorization status between the target vehicle, the authorized charging pile and the terminal device.
[0284] The second sending module 605 is used to synchronously send the authorization relationship and authorization status between the target vehicle, the authorized charging pile and the terminal device to the terminal device.
[0285] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0286] In this embodiment, the charging pile authorization and unlocking device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0287] This invention also provides a target vehicle having the above-described features. Figure 10 The charging station authorization and unlocking device shown.
[0288] Please see Figure 12 , Figure 12 This is a schematic diagram of the structure of an electronic device in a target vehicle provided by an optional embodiment of the present invention, such as... Figure 12 As shown, the electronic device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic 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). Figure 12 Take a processor 10 as an example.
[0289] 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.
[0290] 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.
[0291] 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 electronic 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 electronic 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.
[0292] 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.
[0293] The electronic device also includes a communication interface 30 for communicating with other devices or communication networks.
[0294] This invention also provides a charging pile server, including: a second memory and a second processor, which are interconnected. The second memory stores second computer instructions, and the second processor executes the charging pile authorization method of any of the above embodiments by executing the second computer instructions.
[0295] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then 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, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0296] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. 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. Correspondingly, 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.
[0297] Although embodiments of the invention 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 the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for authorizing and unlocking charging piles, characterized in that, Applied to a target vehicle, the method includes: The system receives an authorization notification from the charging pile server. The authorization notification includes the charging pile identification information and communication key corresponding to the authorized charging pile to be authorized. The authorization notification is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging pile. Based on the authorization notification, the authorization relationship between the target vehicle and the authorized charging pile and the communication key corresponding to the authorized charging pile are determined and saved, and confirmation information is sent to the charging pile server. Based on the communication key corresponding to the authorized charging pile, the authorized charging pile is unlocked, and the target vehicle is charged using the authorized charging pile; The step of unlocking the authorized charging pile based on the communication key corresponding to the authorized charging pile and then using the authorized charging pile to charge the target vehicle includes: Monitor whether a charging gun is inserted into the charging port of the target vehicle; If a charging gun is inserted into the charging port, monitor whether the target vehicle is currently charging. If the target vehicle is not currently charging, then based on the authorization relationship between the target vehicle and the authorized charging station, the authorized charging station with an authorization relationship with the target vehicle is searched. Based on the communication key corresponding to the authorized charging pile, the authorized charging pile is unlocked, and the target vehicle is charged using the authorized charging pile, and a charging curve is generated in real time; The authorized charging piles are at least one in number. The process of unlocking the authorized charging pile based on the communication key corresponding to the authorized charging pile and then charging the target vehicle using the authorized charging pile includes: An authentication request is sent to each of the authorized charging piles, and the authorized charging pile that sends the authentication result to the target vehicle is identified as a backup charging pile; the authentication result shows that there is an authorization relationship between the target vehicle and the backup charging pile, and the target vehicle can use the backup charging pile for charging; Based on the communication connection with each of the backup charging piles, obtain the current status of each of the backup charging piles; The standby charging pile that is currently in an idle state is identified as the target charging pile; Find the communication key corresponding to each of the authorized charging piles, determine the communication key corresponding to the target charging pile from the communication keys corresponding to each of the authorized charging piles, and generate an unlocking command; Based on the communication key corresponding to the target charging pile, the unlocking command is encrypted, and the encrypted unlocking command is transmitted to the target charging pile to unlock the target charging pile; After the target charging station is unlocked, the target battery in the target vehicle is charged based on the target charging station.
2. The method according to claim 1, characterized in that, Based on the authorization notification, the process of determining and saving the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile, and sending confirmation information to the charging pile server includes: The authorization notification is decoded to obtain a decoded notification; A decryption key is generated based on the charging pile identification information corresponding to the authorized charging pile; Based on the decryption key and the preset decryption algorithm, the decoding notification is decrypted to determine the authorization relationship between the target vehicle and the authorized charging pile, as well as the communication key corresponding to the authorized charging pile. The authorization relationship between the target vehicle and the authorized charging station, as well as the communication key corresponding to the authorized charging station, are stored.
3. The method according to claim 1, characterized in that, The step of finding authorized charging stations that have an authorization relationship with the target vehicle based on the authorization relationship between the target vehicle and the authorized charging station includes: Based on the authorization relationship between the target vehicle and the authorized charging pile, obtain the charging pile identification information of the authorized charging pile that has an authorization relationship with the target vehicle; Based on Bluetooth communication, establish a communication connection with each candidate charging pile within a preset range of the target vehicle; Obtain the candidate identifier information for each of the candidate charging piles; The charging pile identification information of the authorized charging pile is compared with the candidate identification information of each of the candidate charging piles; Based on the comparison results, the authorized charging pile is determined from each of the candidate charging piles.
4. A method for authorizing charging piles, characterized in that, The method, applied to the charging pile server according to any one of claims 1-3, comprises: The system receives an authorization request sent by a terminal device corresponding to the target vehicle. The authorization request includes terminal identification information corresponding to the terminal device, vehicle identification information corresponding to the target vehicle, and charging pile identification information corresponding to an authorized charging pile that has an authorization relationship with the target vehicle. The authorization request is used to request authorization of the authorization relationship between the target vehicle, the authorized charging pile, and the terminal device. Monitor whether the authorized charging pile is in an active state, the active state being used to indicate that the authorized charging pile is in an authorizable state; If the authorized charging station is in the activated state, an authorization notification is sent to the target vehicle; the authorization notification includes the charging station identification information corresponding to the authorized charging station; the authorization notification is used to indicate that there is an authorization relationship between the target vehicle and the authorized charging station; Receive confirmation information sent by the target vehicle, and store the authorization relationship and authorization status between the target vehicle, the authorized charging pile, and the terminal device; The authorization relationship and authorization status between the target vehicle, the authorized charging pile, and the terminal device are simultaneously sent to the terminal device.
5. The method according to claim 4, characterized in that, If the authorized charging station is in the activated state, an authorization notification is sent to the target vehicle, including: If the authorized charging pile is in the activated state, a verification request is sent to the user server. The verification request includes the terminal identification information and the vehicle identification information. The verification request is used to request the user server to verify the binding relationship between the terminal device and the target vehicle. Receive the verification result sent by the user server; If the verification result indicates that there is a binding relationship between the terminal device and the target vehicle, then an authorization notification is sent to the target vehicle according to the authorization request.
6. The method according to claim 5, characterized in that, Before monitoring whether the authorized charging pile is in an active state, the method further includes: Detect whether an authorization relationship exists between the target vehicle, the authorized charging pile, and the terminal device; If an authorization relationship exists between the target vehicle, the authorized charging pile, and the terminal device, then the authorization relationship and authorization status between the target vehicle, the authorized charging pile, and the terminal device are returned to the terminal device. If there is no authorization relationship between the target vehicle, the authorized charging pile, and the terminal device, then monitor whether the authorized charging pile is in an active state.
7. The method according to claim 4, characterized in that, The method further includes: Obtain the processing request sent by the terminal device; the processing request includes at least one of the following: terminal identification information of the terminal device, vehicle identification information of other vehicles, and charging pile identification information of the charging pile to be processed; The processing request is identified, and processed according to the authorization relationship and authorization status between the other vehicles, the charging pile to be processed, and the terminal device.
8. A target vehicle, characterized in that, include: An electronic device and a vehicle body, the electronic device including a first memory and a first processor, the first memory and the first processor being communicatively connected to each other, the first memory storing first computer instructions, the first processor executing the charging pile authorization and unlocking method according to any one of claims 1 to 3 by executing the first computer instructions.
9. A charging pile server, characterized in that, include: A second memory and a second processor are interconnected and communicate with each other. The second memory stores second computer instructions, and the second processor executes the charging pile authorization method according to any one of claims 4 to 7 by executing the second computer instructions.
Citation Information
Patent Citations
Charging pile binding method, mobile terminal and charging pile
CN117156601A
Vehicle charging pile connection method and device, storage medium and electronic device
CN117935428A